learn_rails 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.coveralls.yml +1 -0
- data/.gitignore +19 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +143 -0
- data/Rakefile +16 -0
- data/bin/learn +4 -0
- data/features/accessors.feature +122 -0
- data/features/associations.feature +506 -0
- data/features/step_definitions/associations.rb +7 -0
- data/features/support/env.rb +3 -0
- data/features/support/setup.rb +4 -0
- data/learn_rails.gemspec +31 -0
- data/lib/ext/hash.rb +5 -0
- data/lib/learn_rails.rb +54 -3
- data/lib/learn_rails/accessors.rb +56 -0
- data/lib/learn_rails/associations.rb +44 -0
- data/lib/learn_rails/associations/belongs_to.rb +48 -0
- data/lib/learn_rails/associations/has_many.rb +13 -0
- data/lib/learn_rails/associations/has_one.rb +52 -0
- data/lib/learn_rails/cli.rb +11 -0
- data/lib/learn_rails/version.rb +3 -0
- data/spec/learn_rails/accessors_spec.rb +142 -0
- data/spec/learn_rails/associations_spec.rb +575 -0
- data/spec/spec_helper.rb +4 -0
- metadata +197 -11
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,17 +9,189 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 4.0.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.0.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: thor
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.18.1
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.18.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bundler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 2.14.1
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 2.14.1
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: cucumber
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.3.9
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.3.9
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: aruba
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.5.3
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.5.3
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: debugger
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 1.6.2
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.6.2
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: coveralls
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.7.0
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.7.0
|
158
|
+
description: Gem learn_rails shows you the ruby code behind rails magic.
|
159
|
+
email:
|
160
|
+
- pj@celis.org
|
161
|
+
executables:
|
162
|
+
- learn
|
17
163
|
extensions: []
|
18
164
|
extra_rdoc_files: []
|
19
165
|
files:
|
166
|
+
- .coveralls.yml
|
167
|
+
- .gitignore
|
168
|
+
- .travis.yml
|
169
|
+
- Gemfile
|
170
|
+
- LICENSE.txt
|
171
|
+
- README.md
|
172
|
+
- Rakefile
|
173
|
+
- bin/learn
|
174
|
+
- features/accessors.feature
|
175
|
+
- features/associations.feature
|
176
|
+
- features/step_definitions/associations.rb
|
177
|
+
- features/support/env.rb
|
178
|
+
- features/support/setup.rb
|
179
|
+
- learn_rails.gemspec
|
180
|
+
- lib/ext/hash.rb
|
20
181
|
- lib/learn_rails.rb
|
21
|
-
|
22
|
-
|
182
|
+
- lib/learn_rails/accessors.rb
|
183
|
+
- lib/learn_rails/associations.rb
|
184
|
+
- lib/learn_rails/associations/belongs_to.rb
|
185
|
+
- lib/learn_rails/associations/has_many.rb
|
186
|
+
- lib/learn_rails/associations/has_one.rb
|
187
|
+
- lib/learn_rails/cli.rb
|
188
|
+
- lib/learn_rails/version.rb
|
189
|
+
- spec/learn_rails/accessors_spec.rb
|
190
|
+
- spec/learn_rails/associations_spec.rb
|
191
|
+
- spec/spec_helper.rb
|
192
|
+
homepage: http://github.com/pjc/learn_rails
|
193
|
+
licenses:
|
194
|
+
- MIT
|
23
195
|
post_install_message:
|
24
196
|
rdoc_options: []
|
25
197
|
require_paths:
|
@@ -30,16 +202,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
202
|
- - ! '>='
|
31
203
|
- !ruby/object:Gem::Version
|
32
204
|
version: '0'
|
205
|
+
segments:
|
206
|
+
- 0
|
207
|
+
hash: -2472185554780427737
|
33
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
209
|
none: false
|
35
210
|
requirements:
|
36
211
|
- - ! '>='
|
37
212
|
- !ruby/object:Gem::Version
|
38
213
|
version: '0'
|
214
|
+
segments:
|
215
|
+
- 0
|
216
|
+
hash: -2472185554780427737
|
39
217
|
requirements: []
|
40
218
|
rubyforge_project:
|
41
|
-
rubygems_version: 1.8.
|
219
|
+
rubygems_version: 1.8.25
|
42
220
|
signing_key:
|
43
221
|
specification_version: 3
|
44
|
-
summary:
|
45
|
-
test_files:
|
222
|
+
summary: Gem learn_rails shows you the ruby code behind rails magic.
|
223
|
+
test_files:
|
224
|
+
- features/accessors.feature
|
225
|
+
- features/associations.feature
|
226
|
+
- features/step_definitions/associations.rb
|
227
|
+
- features/support/env.rb
|
228
|
+
- features/support/setup.rb
|
229
|
+
- spec/learn_rails/accessors_spec.rb
|
230
|
+
- spec/learn_rails/associations_spec.rb
|
231
|
+
- spec/spec_helper.rb
|