blm 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/blm.gemspec +1 -1
  3. data/lib/blm.rb +3 -5
  4. data/spec/blm_spec.rb +6 -0
  5. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/blm.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blm}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert May"]
data/lib/blm.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module BLM
2
- module Parser
2
+ class Document
3
3
  def initialize(source)
4
4
  @source = source
5
5
  end
@@ -49,11 +49,9 @@ module BLM
49
49
  end
50
50
  end
51
51
 
52
- class Document
53
- include Parser
54
- end
55
-
56
52
  class Row
53
+ attr_accessor :attributes
54
+
57
55
  def initialize(hash)
58
56
  @attributes = hash
59
57
  end
data/spec/blm_spec.rb CHANGED
@@ -32,5 +32,11 @@ describe BLM do
32
32
  row.address_1.should_not be_nil
33
33
  end
34
34
  end
35
+
36
+ it "should allow access to the @attributes hash directly" do
37
+ @blm.data.each do |row|
38
+ row.attributes.should be_a(Hash)
39
+ end
40
+ end
35
41
  end
36
42
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Robert May
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- hash: -355063473
115
+ hash: -967802719
116
116
  segments:
117
117
  - 0
118
118
  version: "0"