tabular_data 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/tabular_data.rb CHANGED
@@ -80,7 +80,7 @@ module TabularData
80
80
  end
81
81
 
82
82
  def read(entry, attributes_to_parse)
83
- @strategy.call(entry, attributes_to_parse, @attributes)
83
+ strategy.call(entry, attributes_to_parse, @attributes)
84
84
  entry
85
85
  end
86
86
 
@@ -1,3 +1,3 @@
1
1
  module TabularData
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -77,4 +77,10 @@ class TestEntry < Test::Unit::TestCase
77
77
 
78
78
  FileUtils.rm_rf("temp")
79
79
  end
80
+
81
+ def test_default_strategy
82
+ @reader.read(@entry, "first;second")
83
+ assert_equal "first", @entry.a
84
+ assert_equal "second", @entry.b
85
+ end
80
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabular_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: