ascheink-active_yaml 0.0.7 → 0.1.0

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 (4) hide show
  1. data/README.rdoc +29 -1
  2. data/VERSION +1 -1
  3. data/active_yaml.gemspec +2 -2
  4. metadata +2 -2
data/README.rdoc CHANGED
@@ -1,6 +1,34 @@
1
1
  = active_yaml
2
2
 
3
- Treat YAML like ActiveRecord. Metaprogramming FTW.
3
+ Read YAML w/ ActiveRecord-like syntax.
4
+
5
+ For example,
6
+
7
+ db/yaml/senator.yml
8
+ <tt>
9
+ Gillibrand:
10
+ first_name: Kirsten
11
+ party: D
12
+ Schumer:
13
+ first_name: Charles
14
+ party: D
15
+ </tt>
16
+
17
+
18
+ models/senator.rb
19
+ <tt>
20
+ class Senator < ActiveYAML
21
+ end
22
+ </tt>
23
+
24
+ Then,
25
+
26
+ Senator.find_all
27
+ Senator.find_all_by_party('D')
28
+ @s = Senator.find("Schumer")
29
+ @s.first_name
30
+
31
+ etc.
4
32
 
5
33
  == Copyright
6
34
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.1.0
data/active_yaml.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{active_yaml}
5
- s.version = "0.0.7"
5
+ s.version = "0.1.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andrei Scheinkman"]
9
- s.date = %q{2009-07-07}
9
+ s.date = %q{2009-07-08}
10
10
  s.email = %q{andreischeinkman@gmail.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascheink-active_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Scheinkman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-07 00:00:00 -07:00
12
+ date: 2009-07-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency