donors_choose 0.0.1 → 0.0.2

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/README.textile CHANGED
@@ -4,25 +4,29 @@ This library sprung from the 2011 Hacking Education contest for DonorsChoose.org
4
4
 
5
5
  The DonorsChoose::Data module match up the normalized data provided by DonorsChoose.org to classes that inherit from ActiveRecord::Base.
6
6
 
7
- *This gem assumes you have loaded the DonorsChoose.org datasets into a PostgreSQL database.*
7
+ *This gem assumes you have loaded the DonorsChoose.org datasets into a PostgreSQL database and normalized the data. See the "contest documentation":http://developer.donorschoose.org/the-data/data-schema for more information.*
8
8
 
9
9
  h2. Usage
10
10
 
11
- <code>
11
+ <pre>
12
+ gem install donors_choose
13
+ </pre>
14
+
15
+ <pre>
12
16
  project = DonorsChoose::Data::Project.first
13
17
  project.donations
14
18
  school = DonorsChoose::Data::School.last
15
19
  school.teachers
16
- </code>
20
+ </pre>
17
21
 
18
22
 
19
23
  h3. Rails
20
24
 
21
25
  If you'd like to use it in Rails, just add the following to your Gemfile:
22
26
 
23
- <code>
27
+ <pre>
24
28
  gem 'donors_choose'
25
- </code>
29
+ </pre>
26
30
 
27
31
  h3. Stand alone
28
32
 
@@ -40,12 +44,12 @@ schema_search_path: public
40
44
 
41
45
  Then, drop into irb, require the gem, and establish the db connection
42
46
 
43
- <code>
47
+ <pre>
44
48
  terminal$ irb
45
49
  irb(main):001:0> require 'rubygems'
46
50
  irb(main):001:0> require 'donors_choose'
47
51
  irb(main):001:0> DonorsChoose::Data.connect(YAML.load(File.read('database.yml')))
48
52
  irb(main):001:0> DonorsChoose::Data::Project.first
49
- </code>
53
+ </pre>
50
54
 
51
55
 
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "donors_choose"
7
7
  s.version = DonorsChoose::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Mark McSpadden"]
9
+ s.authors = ["steve@steveklabnik.com"]
10
10
  s.email = [""]
11
11
  s.homepage = ""
12
12
  s.summary = %q{Libaries to assist with mining and utilizing donorschoose.org}
@@ -1,3 +1,3 @@
1
1
  module DonorsChoose
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: donors_choose
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
- - Mark McSpadden
13
+ - steve@steveklabnik.com
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-26 00:00:00 -05:00
18
+ date: 2012-02-13 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements: []
114
114
 
115
115
  rubyforge_project: donors_choose
116
- rubygems_version: 1.3.7
116
+ rubygems_version: 1.5.2
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: Libaries to assist with mining and utilizing donorschoose.org