schoolfinder 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/schoolfinder/response.rb +1 -1
- data/schoolfinder.gemspec +36 -39
- data/spec/schoolfinder/client_spec.rb +4 -0
- metadata +70 -29
- data/.gitignore +0 -22
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
gem.authors = ["tcocca"]
|
13
13
|
gem.add_dependency "httparty", ">= 0.6.1"
|
14
14
|
gem.add_dependency "hashie", ">= 0.3.1"
|
15
|
-
gem.add_dependency "rash", ">= 0.
|
15
|
+
gem.add_dependency "rash", ">= 0.3.1"
|
16
16
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
17
17
|
gem.add_development_dependency "webmock", ">= 1.3.4"
|
18
18
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/schoolfinder.gemspec
CHANGED
@@ -1,82 +1,79 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{schoolfinder}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["tcocca"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-10-16}
|
13
13
|
s.description = %q{api wrapper for the education.com schoolfinder}
|
14
14
|
s.email = %q{tom.cocca@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
"spec/spec_helper.rb"
|
21
|
+
"LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/schoolfinder.rb",
|
26
|
+
"lib/schoolfinder/client.rb",
|
27
|
+
"lib/schoolfinder/error.rb",
|
28
|
+
"lib/schoolfinder/response.rb",
|
29
|
+
"schoolfinder.gemspec",
|
30
|
+
"spec/responses/branding_data.json",
|
31
|
+
"spec/responses/district_search.json",
|
32
|
+
"spec/responses/failure.json",
|
33
|
+
"spec/responses/number_of.json",
|
34
|
+
"spec/responses/reviews.json",
|
35
|
+
"spec/responses/school_search.json",
|
36
|
+
"spec/responses/student_diversity.json",
|
37
|
+
"spec/responses/student_stats.json",
|
38
|
+
"spec/responses/teacher_stats.json",
|
39
|
+
"spec/responses/test_rating.json",
|
40
|
+
"spec/responses/test_scores.json",
|
41
|
+
"spec/schoolfinder/client_spec.rb",
|
42
|
+
"spec/schoolfinder/error_spec.rb",
|
43
|
+
"spec/schoolfinder_api_key.example.yml",
|
44
|
+
"spec/spec.opts",
|
45
|
+
"spec/spec_helper.rb"
|
47
46
|
]
|
48
47
|
s.homepage = %q{http://github.com/tcocca/schoolfinder}
|
49
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
50
48
|
s.require_paths = ["lib"]
|
51
|
-
s.rubygems_version = %q{1.
|
49
|
+
s.rubygems_version = %q{1.4.2}
|
52
50
|
s.summary = %q{api wrapper for the education.com schoolfinder}
|
53
51
|
s.test_files = [
|
54
52
|
"spec/schoolfinder/client_spec.rb",
|
55
|
-
|
56
|
-
|
53
|
+
"spec/schoolfinder/error_spec.rb",
|
54
|
+
"spec/spec_helper.rb"
|
57
55
|
]
|
58
56
|
|
59
57
|
if s.respond_to? :specification_version then
|
60
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
61
58
|
s.specification_version = 3
|
62
59
|
|
63
|
-
if Gem::Version.new(Gem::
|
60
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
64
61
|
s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
|
65
62
|
s.add_runtime_dependency(%q<hashie>, [">= 0.3.1"])
|
66
|
-
s.add_runtime_dependency(%q<rash>, [">= 0.
|
63
|
+
s.add_runtime_dependency(%q<rash>, [">= 0.3.1"])
|
67
64
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
68
65
|
s.add_development_dependency(%q<webmock>, [">= 1.3.4"])
|
69
66
|
else
|
70
67
|
s.add_dependency(%q<httparty>, [">= 0.6.1"])
|
71
68
|
s.add_dependency(%q<hashie>, [">= 0.3.1"])
|
72
|
-
s.add_dependency(%q<rash>, [">= 0.
|
69
|
+
s.add_dependency(%q<rash>, [">= 0.3.1"])
|
73
70
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
74
71
|
s.add_dependency(%q<webmock>, [">= 1.3.4"])
|
75
72
|
end
|
76
73
|
else
|
77
74
|
s.add_dependency(%q<httparty>, [">= 0.6.1"])
|
78
75
|
s.add_dependency(%q<hashie>, [">= 0.3.1"])
|
79
|
-
s.add_dependency(%q<rash>, [">= 0.
|
76
|
+
s.add_dependency(%q<rash>, [">= 0.3.1"])
|
80
77
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
81
78
|
s.add_dependency(%q<webmock>, [">= 1.3.4"])
|
82
79
|
end
|
@@ -16,6 +16,7 @@ describe "Schoolfinder::Client" do
|
|
16
16
|
@response = @schoolfinder.school_search(:zip => "29601")
|
17
17
|
@response.should_not be_nil
|
18
18
|
@response.body.should be_kind_of(Array)
|
19
|
+
@response.body.first.should be_kind_of(Hashie::Rash)
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
@@ -30,6 +31,7 @@ describe "Schoolfinder::Client" do
|
|
30
31
|
@response = @schoolfinder.test_rating(:nces_id => "061029001146")
|
31
32
|
@response.should_not be_nil
|
32
33
|
@response.body.should be_kind_of(Array)
|
34
|
+
@response.body.first.should be_kind_of(Hashie::Rash)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
@@ -114,6 +116,7 @@ describe "Schoolfinder::Client" do
|
|
114
116
|
@response = @schoolfinder.number_of("Greenville", "SC")
|
115
117
|
@response.should_not be_nil
|
116
118
|
@response.body.should be_kind_of(Array)
|
119
|
+
@response.body.first.should be_kind_of(Hashie::Rash)
|
117
120
|
end
|
118
121
|
end
|
119
122
|
|
@@ -128,6 +131,7 @@ describe "Schoolfinder::Client" do
|
|
128
131
|
@response = @schoolfinder.district_search(:city => "Greenville", :state => "SC")
|
129
132
|
@response.should_not be_nil
|
130
133
|
@response.body.should be_kind_of(Array)
|
134
|
+
@response.body.first.should be_kind_of(Hashie::Rash)
|
131
135
|
end
|
132
136
|
end
|
133
137
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schoolfinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- tcocca
|
@@ -9,59 +15,89 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-10-16 00:00:00 -04:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: httparty
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 6
|
33
|
+
- 1
|
23
34
|
version: 0.6.1
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
38
|
name: hashie
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
30
42
|
requirements:
|
31
43
|
- - ">="
|
32
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 17
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 3
|
49
|
+
- 1
|
33
50
|
version: 0.3.1
|
34
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
35
53
|
- !ruby/object:Gem::Dependency
|
36
54
|
name: rash
|
37
|
-
|
38
|
-
|
39
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
40
58
|
requirements:
|
41
59
|
- - ">="
|
42
60
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
61
|
+
hash: 17
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 3
|
65
|
+
- 1
|
66
|
+
version: 0.3.1
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
45
69
|
- !ruby/object:Gem::Dependency
|
46
70
|
name: rspec
|
47
|
-
|
48
|
-
|
49
|
-
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
50
74
|
requirements:
|
51
75
|
- - ">="
|
52
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 13
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 2
|
81
|
+
- 9
|
53
82
|
version: 1.2.9
|
54
|
-
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id004
|
55
85
|
- !ruby/object:Gem::Dependency
|
56
86
|
name: webmock
|
57
|
-
|
58
|
-
|
59
|
-
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
60
90
|
requirements:
|
61
91
|
- - ">="
|
62
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 19
|
94
|
+
segments:
|
95
|
+
- 1
|
96
|
+
- 3
|
97
|
+
- 4
|
63
98
|
version: 1.3.4
|
64
|
-
|
99
|
+
type: :development
|
100
|
+
version_requirements: *id005
|
65
101
|
description: api wrapper for the education.com schoolfinder
|
66
102
|
email: tom.cocca@gmail.com
|
67
103
|
executables: []
|
@@ -73,7 +109,6 @@ extra_rdoc_files:
|
|
73
109
|
- README.rdoc
|
74
110
|
files:
|
75
111
|
- .document
|
76
|
-
- .gitignore
|
77
112
|
- LICENSE
|
78
113
|
- README.rdoc
|
79
114
|
- Rakefile
|
@@ -104,26 +139,32 @@ homepage: http://github.com/tcocca/schoolfinder
|
|
104
139
|
licenses: []
|
105
140
|
|
106
141
|
post_install_message:
|
107
|
-
rdoc_options:
|
108
|
-
|
142
|
+
rdoc_options: []
|
143
|
+
|
109
144
|
require_paths:
|
110
145
|
- lib
|
111
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
112
148
|
requirements:
|
113
149
|
- - ">="
|
114
150
|
- !ruby/object:Gem::Version
|
151
|
+
hash: 3
|
152
|
+
segments:
|
153
|
+
- 0
|
115
154
|
version: "0"
|
116
|
-
version:
|
117
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
118
157
|
requirements:
|
119
158
|
- - ">="
|
120
159
|
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
161
|
+
segments:
|
162
|
+
- 0
|
121
163
|
version: "0"
|
122
|
-
version:
|
123
164
|
requirements: []
|
124
165
|
|
125
166
|
rubyforge_project:
|
126
|
-
rubygems_version: 1.
|
167
|
+
rubygems_version: 1.4.2
|
127
168
|
signing_key:
|
128
169
|
specification_version: 3
|
129
170
|
summary: api wrapper for the education.com schoolfinder
|
data/.gitignore
DELETED