danwoolley-numbertwopencil 0.1.4 → 0.1.5

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.
@@ -17,7 +17,7 @@ class NumberTwoPencil
17
17
  # data = foo.education_com_getSchools params
18
18
  # p data
19
19
  def education_com_getSchools(params)
20
- # Allowed params: zip, city, state, address, distance, latitude, longitude
20
+ # Allowed params: zip, city, state, address, distance, latitude, longitude, minResult
21
21
  # Returns an array of school data in hashes, or nil, or raises an error
22
22
 
23
23
  url = "#{@@education_com_webservice_url}?sn=sf&f=schoolSearch&resf=json&key=#{@apikey}"
@@ -135,7 +135,7 @@ class NumberTwoPencil
135
135
  private
136
136
 
137
137
  def fetch_result(url)
138
- puts url
138
+ #puts url
139
139
  #data = File.read("sample_data/schoolSearch.json")
140
140
  data = Net::HTTP.get_response(URI.parse(URI.escape(url))).body
141
141
  return JSON.parse(data) rescue nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danwoolley-numbertwopencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Woolley
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-15 00:00:00 -08:00
12
+ date: 2009-09-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -31,13 +32,13 @@ extra_rdoc_files: []
31
32
 
32
33
  files:
33
34
  - README
34
- - numbertwopencil.gemspec
35
35
  - lib/numbertwopencil.rb
36
36
  - demo/demo.rb
37
37
  - sample_data/schoolSearch.json
38
38
  - sample_data/schoolSearch.xml
39
39
  has_rdoc: false
40
40
  homepage: http://github.com/danwoolley/numbertwopencil
41
+ licenses:
41
42
  post_install_message:
42
43
  rdoc_options: []
43
44
 
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements: []
59
60
 
60
61
  rubyforge_project:
61
- rubygems_version: 1.2.0
62
+ rubygems_version: 1.3.5
62
63
  signing_key:
63
64
  specification_version: 2
64
65
  summary: Ruby library for accessing school data using the education.com web services.
@@ -1,55 +0,0 @@
1
- =begin
2
- require 'rake/gempackagetask'
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "NumberTwoPencil"
6
- s.version = "0.1.1"
7
- s.date = "2008-09-18"
8
- s.author = "Dan Woolley"
9
- s.email = "danwoolley@gmail.com"
10
- s.summary = "Ruby library for accessing school data using the education.com web services."
11
- s.files = FileList['lib/*.rb', 'test/*', 'sample_data/*', 'demo/demo.rb'].to_a
12
- s.test_files = Dir.glob('test/*.rb')
13
- s.require_path = "lib"
14
- s.has_rdoc = false
15
- s.extra_rdoc_files = ["README"]
16
- end
17
- =end
18
-
19
- Gem::Specification.new do |s|
20
- s.name = "numbertwopencil"
21
- s.version = "0.1.4"
22
- s.date = "2009-01-15"
23
- s.summary = "Ruby library for accessing school data using the education.com web services."
24
- s.email = "danwoolley@gmail.com"
25
- s.homepage = "http://github.com/danwoolley/numbertwopencil"
26
- s.description = "Ruby library for accessing school data using the education.com web services."
27
- s.has_rdoc = false
28
- s.authors = ["Dan Woolley"]
29
- s.files = ["README",
30
- "numbertwopencil.gemspec",
31
- "lib/numbertwopencil.rb",
32
- "demo/demo.rb",
33
- "sample_data/schoolSearch.json",
34
- "sample_data/schoolSearch.xml"]
35
- =begin
36
- s.test_files = ["test/test_actor.rb",
37
- "test/test_blob.rb", "test/test_commit.rb",
38
- "test/test_config.rb",
39
- "test/test_diff.rb",
40
- "test/test_git.rb",
41
- "test/test_grit.rb",
42
- "test/test_head.rb",
43
- "test/test_real.rb",
44
- "test/test_reality.rb",
45
- "test/test_remote.rb",
46
- "test/test_repo.rb",
47
- "test/test_tag.rb",
48
- "test/test_tree.rb"]
49
- s.rdoc_options = ["--main", "README.txt"]
50
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
51
- s.add_dependency("diff-lcs", ["> 0.0.0"])
52
- s.add_dependency("mime-types", ["> 0.0.0"])
53
- =end
54
- s.add_dependency("json", [">= 1.1.3"])
55
- end