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 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.1.1"
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.0
1
+ 0.2.1
@@ -4,7 +4,7 @@ module Schoolfinder
4
4
  attr_accessor :body
5
5
 
6
6
  def initialize(response)
7
- self.body = rash_response(response)
7
+ rash_response(response)
8
8
  if self.body.respond_to?('fault_string')
9
9
  raise Schoolfinder::Error.new(self.body.fault_code, self.body.fault_string)
10
10
  end
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 the gemspec command
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.0"
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{2010-08-26}
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
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/schoolfinder.rb",
27
- "lib/schoolfinder/client.rb",
28
- "lib/schoolfinder/error.rb",
29
- "lib/schoolfinder/response.rb",
30
- "schoolfinder.gemspec",
31
- "spec/responses/branding_data.json",
32
- "spec/responses/district_search.json",
33
- "spec/responses/failure.json",
34
- "spec/responses/number_of.json",
35
- "spec/responses/reviews.json",
36
- "spec/responses/school_search.json",
37
- "spec/responses/student_diversity.json",
38
- "spec/responses/student_stats.json",
39
- "spec/responses/teacher_stats.json",
40
- "spec/responses/test_rating.json",
41
- "spec/responses/test_scores.json",
42
- "spec/schoolfinder/client_spec.rb",
43
- "spec/schoolfinder/error_spec.rb",
44
- "spec/schoolfinder_api_key.example.yml",
45
- "spec/spec.opts",
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.3.5}
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
- "spec/schoolfinder/error_spec.rb",
56
- "spec/spec_helper.rb"
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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.1.1"])
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.1.1"])
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.1.1"])
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
- version: 0.2.0
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: 2010-08-26 00:00:00 -04:00
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
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: hashie
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: rash
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
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
- version: 0.1.1
44
- version:
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
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
83
+ type: :development
84
+ version_requirements: *id004
55
85
  - !ruby/object:Gem::Dependency
56
86
  name: webmock
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
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
- version:
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
- - --charset=UTF-8
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.3.5
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
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- spec/schoolfinder_api_key.yml