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 ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 0
4
+ :patch: 2
@@ -11,6 +11,7 @@ class CsvDictionary
11
11
  load_dictionary unless dictionary_loaded?
12
12
  attributes[value_name] = lookup(attributes[key_name])
13
13
  attributes.delete(key_name)
14
+ true
14
15
  end
15
16
 
16
17
  def lookup(key)
@@ -16,8 +16,11 @@ class CsvDictionaryTest < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_should_set_url
19
- dictionary = CsvDictionary.new(:bts_aircraft_type, :url => CSV_URL)
20
- assert_equal CSV_URL, dictionary.url
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.1
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