seamusabshere-csv_dictionary 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +4 -0
- data/lib/csv_dictionary.rb +1 -0
- data/test/csv_dictionary_test.rb +5 -6
- metadata +2 -1
data/VERSION.yml
ADDED
data/lib/csv_dictionary.rb
CHANGED
data/test/csv_dictionary_test.rb
CHANGED
@@ -16,8 +16,11 @@ class CsvDictionaryTest < Test::Unit::TestCase
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_should_set_url
|
19
|
-
|
20
|
-
|
19
|
+
assert_equal GDOCS_URL, @dictionary.url
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_should_set_zero_based_sheet
|
23
|
+
assert_equal 0, @dictionary.sheet
|
21
24
|
end
|
22
25
|
|
23
26
|
def test_should_interpret_gdocs_urls
|
@@ -35,10 +38,6 @@ class CsvDictionaryTest < Test::Unit::TestCase
|
|
35
38
|
CsvDictionary.new(:bts_aircraft_type, :url => CSV_URL, :sheet => 1)
|
36
39
|
end
|
37
40
|
end
|
38
|
-
|
39
|
-
def test_should_set_default_sheet
|
40
|
-
assert_equal 0, @dictionary.sheet
|
41
|
-
end
|
42
41
|
|
43
42
|
def test_should_replace_attributes
|
44
43
|
attributes = { :bts_aircraft_type => '103' }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seamusabshere-csv_dictionary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seamus Abshere
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- LICENSE
|
27
27
|
- README.rdoc
|
28
28
|
- Rakefile
|
29
|
+
- VERSION.yml
|
29
30
|
- lib/csv_dictionary.rb
|
30
31
|
- test/csv_dictionary_ext_test.rb
|
31
32
|
- test/csv_dictionary_test.rb
|