static_model 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/History.txt +6 -0
- data/README.rdoc +5 -0
- data/Rakefile +31 -0
- data/index.html +80 -0
- data/lib/static_model/base.rb +12 -2
- data/lib/static_model.rb +6 -6
- data/static_model.gemspec +85 -0
- data/test/data/authors.yml +10 -0
- data/test/data/books.yml +22 -0
- data/test/data/empty.yml +0 -0
- data/test/data/pages.yml +16 -0
- data/test/data/projects.yml +7 -0
- data/test/data/publishers.yml +7 -0
- data/test/data/stores.yml +5 -0
- data/test/test_static_model.rb +472 -427
- metadata +40 -17
- data/Manifest.txt +0 -17
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: static_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Quint
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-12-03 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,39 +20,47 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.
|
23
|
+
version: 2.2.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
26
|
+
name: rubigen
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.1
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: Shoulda
|
27
37
|
type: :development
|
28
38
|
version_requirement:
|
29
39
|
version_requirements: !ruby/object:Gem::Requirement
|
30
40
|
requirements:
|
31
41
|
- - ">="
|
32
42
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
43
|
+
version: 1.2.0
|
34
44
|
version:
|
35
|
-
description:
|
45
|
+
description: StaticModel provides a Base class much like ActiveRecord which supports reading from a YAML file and basic associations to ActiveRecord
|
36
46
|
email:
|
37
|
-
- aaron@quirkey.com
|
38
47
|
executables: []
|
39
48
|
|
40
49
|
extensions: []
|
41
50
|
|
42
51
|
extra_rdoc_files:
|
43
|
-
- History.txt
|
44
|
-
- License.txt
|
45
|
-
- Manifest.txt
|
46
52
|
- README.rdoc
|
47
53
|
files:
|
54
|
+
- .gitignore
|
48
55
|
- History.txt
|
49
56
|
- License.txt
|
50
|
-
- Manifest.txt
|
51
57
|
- README.rdoc
|
58
|
+
- Rakefile
|
52
59
|
- generators/static_model/USAGE
|
53
60
|
- generators/static_model/static_model_generator.rb
|
54
61
|
- generators/static_model/templates/model.rb.erb
|
55
62
|
- generators/static_model/templates/models.yml.erb
|
63
|
+
- index.html
|
56
64
|
- lib/static_model.rb
|
57
65
|
- lib/static_model/active_record.rb
|
58
66
|
- lib/static_model/associations.rb
|
@@ -62,12 +70,27 @@ files:
|
|
62
70
|
- lib/static_model/rails.rb
|
63
71
|
- lib/static_model/scope.rb
|
64
72
|
- lib/static_model/version.rb
|
73
|
+
- static_model.gemspec
|
74
|
+
- test/data/authors.yml
|
75
|
+
- test/data/books.yml
|
76
|
+
- test/data/empty.yml
|
77
|
+
- test/data/pages.yml
|
78
|
+
- test/data/projects.yml
|
79
|
+
- test/data/publishers.yml
|
80
|
+
- test/data/stores.yml
|
81
|
+
- test/test_generator_helper.rb
|
82
|
+
- test/test_helper.rb
|
83
|
+
- test/test_static_model.rb
|
84
|
+
- test/test_static_model_associations.rb
|
85
|
+
- test/test_static_model_generator.rb
|
86
|
+
- test/test_static_model_scope.rb
|
65
87
|
has_rdoc: true
|
66
|
-
homepage:
|
67
|
-
|
88
|
+
homepage:
|
89
|
+
licenses: []
|
90
|
+
|
91
|
+
post_install_message:
|
68
92
|
rdoc_options:
|
69
|
-
- --
|
70
|
-
- README.rdoc
|
93
|
+
- --charset=UTF-8
|
71
94
|
require_paths:
|
72
95
|
- lib
|
73
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -85,9 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
108
|
requirements: []
|
86
109
|
|
87
110
|
rubyforge_project: quirkey
|
88
|
-
rubygems_version: 1.3.
|
111
|
+
rubygems_version: 1.3.5
|
89
112
|
signing_key:
|
90
|
-
specification_version:
|
113
|
+
specification_version: 3
|
91
114
|
summary: ActiveRecord like functionalities for reading from YAML with a simple class implementation
|
92
115
|
test_files:
|
93
116
|
- test/test_generator_helper.rb
|
data/Manifest.txt
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
License.txt
|
3
|
-
Manifest.txt
|
4
|
-
README.rdoc
|
5
|
-
generators/static_model/USAGE
|
6
|
-
generators/static_model/static_model_generator.rb
|
7
|
-
generators/static_model/templates/model.rb.erb
|
8
|
-
generators/static_model/templates/models.yml.erb
|
9
|
-
lib/static_model.rb
|
10
|
-
lib/static_model/active_record.rb
|
11
|
-
lib/static_model/associations.rb
|
12
|
-
lib/static_model/base.rb
|
13
|
-
lib/static_model/comparable.rb
|
14
|
-
lib/static_model/errors.rb
|
15
|
-
lib/static_model/rails.rb
|
16
|
-
lib/static_model/scope.rb
|
17
|
-
lib/static_model/version.rb
|