nested_has_many_through 0.0.1

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 (49) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +5 -0
  3. data/Gemfile.lock +94 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +61 -0
  6. data/Rakefile +12 -0
  7. data/init.rb +2 -0
  8. data/lib/nested_has_many_through/association.rb +132 -0
  9. data/lib/nested_has_many_through/reflection.rb +14 -0
  10. data/lib/nested_has_many_through/version.rb +3 -0
  11. data/lib/nested_has_many_through.rb +15 -0
  12. data/nested_has_many_through.gemspec +32 -0
  13. data/spec/models/author_spec.rb +84 -0
  14. data/spec/models/commenter_spec.rb +108 -0
  15. data/spec/rails_app/.gitignore +4 -0
  16. data/spec/rails_app/Gemfile +31 -0
  17. data/spec/rails_app/Gemfile.lock +74 -0
  18. data/spec/rails_app/README +13 -0
  19. data/spec/rails_app/Rakefile +7 -0
  20. data/spec/rails_app/app/controllers/application_controller.rb +3 -0
  21. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  22. data/spec/rails_app/app/models/author.rb +8 -0
  23. data/spec/rails_app/app/models/category.rb +3 -0
  24. data/spec/rails_app/app/models/comment.rb +4 -0
  25. data/spec/rails_app/app/models/post.rb +17 -0
  26. data/spec/rails_app/app/models/user.rb +7 -0
  27. data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
  28. data/spec/rails_app/config/application.rb +42 -0
  29. data/spec/rails_app/config/boot.rb +6 -0
  30. data/spec/rails_app/config/database.yml +22 -0
  31. data/spec/rails_app/config/environment.rb +5 -0
  32. data/spec/rails_app/config/environments/development.rb +26 -0
  33. data/spec/rails_app/config/environments/production.rb +49 -0
  34. data/spec/rails_app/config/environments/test.rb +35 -0
  35. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/rails_app/config/initializers/inflections.rb +10 -0
  37. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  38. data/spec/rails_app/config/initializers/secret_token.rb +7 -0
  39. data/spec/rails_app/config/initializers/session_store.rb +8 -0
  40. data/spec/rails_app/config/locales/en.yml +5 -0
  41. data/spec/rails_app/config/routes.rb +58 -0
  42. data/spec/rails_app/config.ru +4 -0
  43. data/spec/rails_app/db/schema.rb +31 -0
  44. data/spec/rails_app/db/seeds.rb +7 -0
  45. data/spec/rails_app/script/delayed_job +5 -0
  46. data/spec/rails_app/script/gitr +14 -0
  47. data/spec/rails_app/script/rails +6 -0
  48. data/spec/spec_helper.rb +10 -0
  49. metadata +197 -0
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nested_has_many_through
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Ian White
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-04-14 00:00:00 +03:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rails
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 3.0.0
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 1.0.0
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: rspec
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 2.5.0
47
+ type: :development
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: yard
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: sqlite3-ruby
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :development
70
+ version_requirements: *id005
71
+ description: |-
72
+ This plugin makes it possible to define has_many :through relationships that
73
+ go through other has_many :through relationships, possibly through an arbitrarily deep hierarchy.
74
+ This allows associations across any number of tables to be constructed, without having to resort to
75
+ find_by_sql (which isn't a suitable solution if you need to do eager loading through :include as well).
76
+ email:
77
+ - ian.w.white@gmail.com
78
+ executables: []
79
+
80
+ extensions: []
81
+
82
+ extra_rdoc_files: []
83
+
84
+ files:
85
+ - .gitignore
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - MIT-LICENSE
89
+ - README.rdoc
90
+ - Rakefile
91
+ - init.rb
92
+ - lib/nested_has_many_through.rb
93
+ - lib/nested_has_many_through/association.rb
94
+ - lib/nested_has_many_through/reflection.rb
95
+ - lib/nested_has_many_through/version.rb
96
+ - nested_has_many_through.gemspec
97
+ - spec/models/author_spec.rb
98
+ - spec/models/commenter_spec.rb
99
+ - spec/rails_app/.gitignore
100
+ - spec/rails_app/Gemfile
101
+ - spec/rails_app/Gemfile.lock
102
+ - spec/rails_app/README
103
+ - spec/rails_app/Rakefile
104
+ - spec/rails_app/app/controllers/application_controller.rb
105
+ - spec/rails_app/app/helpers/application_helper.rb
106
+ - spec/rails_app/app/models/author.rb
107
+ - spec/rails_app/app/models/category.rb
108
+ - spec/rails_app/app/models/comment.rb
109
+ - spec/rails_app/app/models/post.rb
110
+ - spec/rails_app/app/models/user.rb
111
+ - spec/rails_app/app/views/layouts/application.html.erb
112
+ - spec/rails_app/config.ru
113
+ - spec/rails_app/config/application.rb
114
+ - spec/rails_app/config/boot.rb
115
+ - spec/rails_app/config/database.yml
116
+ - spec/rails_app/config/environment.rb
117
+ - spec/rails_app/config/environments/development.rb
118
+ - spec/rails_app/config/environments/production.rb
119
+ - spec/rails_app/config/environments/test.rb
120
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
121
+ - spec/rails_app/config/initializers/inflections.rb
122
+ - spec/rails_app/config/initializers/mime_types.rb
123
+ - spec/rails_app/config/initializers/secret_token.rb
124
+ - spec/rails_app/config/initializers/session_store.rb
125
+ - spec/rails_app/config/locales/en.yml
126
+ - spec/rails_app/config/routes.rb
127
+ - spec/rails_app/db/schema.rb
128
+ - spec/rails_app/db/seeds.rb
129
+ - spec/rails_app/script/delayed_job
130
+ - spec/rails_app/script/gitr
131
+ - spec/rails_app/script/rails
132
+ - spec/spec_helper.rb
133
+ has_rdoc: true
134
+ homepage: http://twitter.com/i2w
135
+ licenses: []
136
+
137
+ post_install_message:
138
+ rdoc_options: []
139
+
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: "0"
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: "0"
154
+ requirements: []
155
+
156
+ rubyforge_project: nested_has_many_through
157
+ rubygems_version: 1.5.0
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: Rails gem that allows has_many :through to go through other has_many :throughs
161
+ test_files:
162
+ - spec/models/author_spec.rb
163
+ - spec/models/commenter_spec.rb
164
+ - spec/rails_app/.gitignore
165
+ - spec/rails_app/Gemfile
166
+ - spec/rails_app/Gemfile.lock
167
+ - spec/rails_app/README
168
+ - spec/rails_app/Rakefile
169
+ - spec/rails_app/app/controllers/application_controller.rb
170
+ - spec/rails_app/app/helpers/application_helper.rb
171
+ - spec/rails_app/app/models/author.rb
172
+ - spec/rails_app/app/models/category.rb
173
+ - spec/rails_app/app/models/comment.rb
174
+ - spec/rails_app/app/models/post.rb
175
+ - spec/rails_app/app/models/user.rb
176
+ - spec/rails_app/app/views/layouts/application.html.erb
177
+ - spec/rails_app/config.ru
178
+ - spec/rails_app/config/application.rb
179
+ - spec/rails_app/config/boot.rb
180
+ - spec/rails_app/config/database.yml
181
+ - spec/rails_app/config/environment.rb
182
+ - spec/rails_app/config/environments/development.rb
183
+ - spec/rails_app/config/environments/production.rb
184
+ - spec/rails_app/config/environments/test.rb
185
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
186
+ - spec/rails_app/config/initializers/inflections.rb
187
+ - spec/rails_app/config/initializers/mime_types.rb
188
+ - spec/rails_app/config/initializers/secret_token.rb
189
+ - spec/rails_app/config/initializers/session_store.rb
190
+ - spec/rails_app/config/locales/en.yml
191
+ - spec/rails_app/config/routes.rb
192
+ - spec/rails_app/db/schema.rb
193
+ - spec/rails_app/db/seeds.rb
194
+ - spec/rails_app/script/delayed_job
195
+ - spec/rails_app/script/gitr
196
+ - spec/rails_app/script/rails
197
+ - spec/spec_helper.rb