guidestar 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guidestar/result.rb +5 -2
- data/lib/guidestar/version.rb +1 -1
- metadata +2 -2
data/lib/guidestar/result.rb
CHANGED
@@ -81,6 +81,11 @@ module Guidestar
|
|
81
81
|
org[:world_locations] = org.delete(:world_locations).to_s.split(', ') if org[:word_locations]
|
82
82
|
org[:us_locations] = org.delete(:us_locations).to_s.split(', ') if org[:us_locations]
|
83
83
|
|
84
|
+
# number fields
|
85
|
+
%w(ruling_year year_founded assets income).each do |field|
|
86
|
+
org[field] = org[field].to_i if org[field]
|
87
|
+
end
|
88
|
+
|
84
89
|
org[:name] = org.delete :org_name
|
85
90
|
org[:tax_deductible] = org[:deductibility] == 'Contributions are deductible, as provided by law'
|
86
91
|
org[:type] = org[:irs_subsection].split(' ').first.gsub(/\W/,'').to_sym if org[:irs_subsection]
|
@@ -101,8 +106,6 @@ module Guidestar
|
|
101
106
|
else
|
102
107
|
if value.nil?
|
103
108
|
nil
|
104
|
-
elsif value =~ /\A[0-9]+\Z/
|
105
|
-
value.to_i
|
106
109
|
else
|
107
110
|
value.strip
|
108
111
|
end
|
data/lib/guidestar/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guidestar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|