transparencia_brasil 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module TransparenciaBrasil
8
8
  mod = Module.new do
9
9
  attrs.each do |attribute|
10
10
  define_method attribute do
11
- @attrs[attribute.to_s]
11
+ @attrs[attribute.to_sym]
12
12
  end
13
13
  end
14
14
  end
@@ -19,6 +19,7 @@ module TransparenciaBrasil
19
19
  #
20
20
  # @param attrs [Hash]
21
21
  def initialize(attrs={})
22
+ attrs = attrs.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
22
23
  @attrs = attrs
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module TransparenciaBrasil
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transparencia_brasil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -179,7 +179,7 @@ files:
179
179
  - spec/client_spec.rb
180
180
  - spec/fixtures/excelencia.json
181
181
  - spec/fixtures/excelencias.json
182
- - spec/identity/excelencia.rb
182
+ - spec/identity/excelencia_spec.rb
183
183
  - spec/spec_helper.rb
184
184
  - transparencia_brasil.gemspec
185
185
  homepage: http://github.com/dukex/transparencia_brasil
@@ -212,6 +212,6 @@ test_files:
212
212
  - spec/client_spec.rb
213
213
  - spec/fixtures/excelencia.json
214
214
  - spec/fixtures/excelencias.json
215
- - spec/identity/excelencia.rb
215
+ - spec/identity/excelencia_spec.rb
216
216
  - spec/spec_helper.rb
217
217
  has_rdoc: