This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
country0_id = "AGO" | |
country0_name = "Angola" | |
country0_population = 21_471_618 | |
country0_capital = "Luanda" | |
country0_latitude = -8.81155 | |
country0_longitude = 13.242 | |
country0_income_level = "Upper Middle" | |
country0_high_income = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
country0_id = "AGO" | |
country0_name = "Angola" | |
country0_population = 21_471_618 | |
country0_capital = "Luanda" | |
country0_latitude = -8.81155 | |
country0_longitude = 13.242 | |
country0_income_level = "Upper Middle" | |
country0_high_income = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
country0_id = "AGO" | |
country0_name = "Angola" | |
country0_population = 21_471_618 | |
country0_capital = "Luanda" | |
country0_latitude = -8.81155 | |
country0_longitude = 13.242 | |
country0_income_level = "Upper Middle" | |
country0_high_income = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
# id: AGO | |
# name: Angola | |
# population: 21,471,618 | |
# capital: Luanda | |
# latitude: -8.81155 | |
# longitude: 13.242 | |
# income level: Upper Middle | |
# high income?: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
# id: AGO | |
# name: Angola | |
# population: 21,471,618 | |
# capital: Luanda | |
# latitude: -8.81155 | |
# longitude: 13.242 | |
# income level: Upper Middle | |
# high income?: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Angola: | |
# id: AGO | |
# name: Angola | |
# population: 21,471,618 | |
# capital: Luanda | |
# latitude: -8.81155 | |
# longitude: 13.242 | |
# income level: Upper Middle | |
# high income?: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. create a variable named 'a' with the value of 1 and display 'a' | |
# 2. create a variable named 'b' with the value of 2 and display 'b' | |
# 3. create a variable named 'c' with the value of 3 and display 'c' | |
# 4. create a variable named 'd' with the value of 10 and display 'd' | |
# 5. add 'a' and 'b' and display the result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "rom", github: 'rom-rb/rom', branch: 'master' | |
gem "rom-sql", github: 'rom-rb/rom-sql', branch: 'master' | |
gem "rom-rails", github: 'rom-rb/rom-rails', branch: 'master' | |
gem_group(:test) do | |
gem "rspec" | |
gem "rspec-rails" | |
gem "capybara" | |
gem "spring-commands-rspec" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Remove all gems EXCEPT defaults :) | |
`gem list -d`.split(/\n\n^(?=\w)/).each do |data| | |
match = data.match(/(?<name>([^\s]+)) \((?<versions>.*)\)/) | |
name = match[:name] | |
versions = match[:versions].split(', ') | |
if match = data.match(/^.*\(([\d\.]*),? ?default\): .*$/) | |
next if match[1].empty? # it's the only version if this match is empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ROM | |
module CSV | |
class Adapter < ROM::Adapter | |
def self.schemes | |
[:csv] | |
end | |
attr_reader :path, :basename |