danwoolley-numbertwopencil 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. data/README +10 -6
  2. data/numbertwopencil.gemspec +2 -2
  3. metadata +11 -3
data/README CHANGED
@@ -2,6 +2,15 @@ NumberTwoPencil
2
2
  Created by Dan Woolley, September 2008.
3
3
 
4
4
 
5
+ To install from gem:
6
+ $ gem sources -a http://gems.github.com
7
+ $ sudo gem install danwoolley-numbertwopencil --include-dependencies
8
+
9
+
10
+ Library requirements:
11
+ * gem install json # include-dependencies above should take care of this.
12
+
13
+
5
14
  Education.com API requirements:
6
15
  * Docs at http://www.education.com/webservice/documentation/
7
16
  * Sign up for an API key at http://www.education.com/webservice/request/
@@ -10,15 +19,10 @@ Education.com API requirements:
10
19
  multiple IP's.
11
20
 
12
21
 
13
- Library requirements:
14
- * gem install json
15
-
16
-
17
22
  Sample library usage:
18
23
  require 'numbertwopencil'
19
24
  foo = NumberTwoPencil.new(your_api_key)
20
- params = { "zip" => "33432" }
21
- data = foo.education_com_getSchools params
25
+ data = foo.education_com_getSchools "zip" => "33432"
22
26
  p data
23
27
  data.each {|item| puts "#{item["schoolname"]}\t#{item["gradelevel"]}\t#{item["city"]}"}
24
28
 
@@ -18,7 +18,7 @@ end
18
18
 
19
19
  Gem::Specification.new do |s|
20
20
  s.name = "numbertwopencil"
21
- s.version = "0.1.2"
21
+ s.version = "0.1.3"
22
22
  s.date = "2008-09-18"
23
23
  s.summary = "Ruby library for accessing school data using the education.com web services."
24
24
  s.email = "danwoolley@gmail.com"
@@ -50,6 +50,6 @@ Gem::Specification.new do |s|
50
50
  s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
51
51
  s.add_dependency("diff-lcs", ["> 0.0.0"])
52
52
  s.add_dependency("mime-types", ["> 0.0.0"])
53
- s.add_dependency("open4", ["> 0.0.0"])
54
53
  =end
54
+ s.add_dependency("json", [">= 1.1.3"])
55
55
  end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Woolley
@@ -11,8 +11,16 @@ cert_chain: []
11
11
 
12
12
  date: 2008-09-18 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.1.3
23
+ version:
16
24
  description: Ruby library for accessing school data using the education.com web services.
17
25
  email: danwoolley@gmail.com
18
26
  executables: []