guidestar-ruby 1.0.0 → 1.1.0
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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/Rakefile +0 -8
- data/VERSION +1 -1
- data/lib/guidestar/connection.rb +6 -0
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ Additional options (and their respective defaults):
|
|
|
63
63
|
|
|
64
64
|
### Organization Categories & Sub-Categories
|
|
65
65
|
|
|
66
|
-
Categories
|
|
66
|
+
#### Categories:
|
|
67
67
|
|
|
68
68
|
* "C1_Arts_Culture_and_Humanities"
|
|
69
69
|
* "C2_Education_and_Research"
|
|
@@ -75,7 +75,7 @@ Categories (defaults to "C1_Arts_Culture_and_Humanities"):
|
|
|
75
75
|
* "C8_Religion"
|
|
76
76
|
* "C9_Unknown"
|
|
77
77
|
|
|
78
|
-
Sub-Categories
|
|
78
|
+
#### Sub-Categories:
|
|
79
79
|
|
|
80
80
|
* "C1_Humanities_and_Historical_Societies"
|
|
81
81
|
* "C1_Media"
|
data/Rakefile
CHANGED
|
@@ -2,14 +2,6 @@ require 'bundler'
|
|
|
2
2
|
Bundler::GemHelper.install_tasks
|
|
3
3
|
|
|
4
4
|
require 'rake'
|
|
5
|
-
require 'rspec/core'
|
|
6
|
-
require 'rspec/core/rake_task'
|
|
7
|
-
|
|
8
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
9
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
task :default => :spec
|
|
13
5
|
|
|
14
6
|
require 'rake/rdoctask'
|
|
15
7
|
Rake::RDocTask.new do |rdoc|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.1.0
|
data/lib/guidestar/connection.rb
CHANGED
|
@@ -78,6 +78,7 @@ module Guidestar
|
|
|
78
78
|
organization[:asset_amount] = info.at('assets').text ? info.at('assets').text.to_i : nil
|
|
79
79
|
organization[:annual_revenue] = info.at('income').text ? info.at('income').text.to_i : nil
|
|
80
80
|
organization[:alternate_name] = info.at('aka').text
|
|
81
|
+
organization[:description] = info.at('description').text
|
|
81
82
|
|
|
82
83
|
info.xpath('.//address').each do |address|
|
|
83
84
|
organization[:address] = address.at('addressLine1').text
|
|
@@ -102,6 +103,11 @@ module Guidestar
|
|
|
102
103
|
organization[:ntees] << { :code => ntee.at('code').text, :description => ntee.at('description').text }
|
|
103
104
|
end
|
|
104
105
|
|
|
106
|
+
org.xpath('.//missionAndPrograms').each do |mission_and_programs|
|
|
107
|
+
organization[:mission] = mission_and_programs.at('mission').text
|
|
108
|
+
organization[:programs] = mission_and_programs.at('programs').text
|
|
109
|
+
end
|
|
110
|
+
|
|
105
111
|
end
|
|
106
112
|
|
|
107
113
|
organizations << tidy_org(organization)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guidestar-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-05-08 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70334141727040 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: 1.4.3.1
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70334141727040
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: rest-client
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70334141726560 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ~>
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: 1.6.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70334141726560
|
|
36
36
|
description: A ruby wrapper around the Guidestar API
|
|
37
37
|
email: mgomes@geminisbs.com
|
|
38
38
|
executables: []
|