pg_morph 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/Gemfile.lock +119 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +62 -0
  6. data/Rakefile +8 -0
  7. data/docs/pg_morph.png +0 -0
  8. data/lib/pg_morph/adapter.rb +39 -0
  9. data/lib/pg_morph/naming.rb +37 -0
  10. data/lib/pg_morph/polymorphic.rb +158 -0
  11. data/lib/pg_morph/railtie.rb +11 -0
  12. data/lib/pg_morph/version.rb +3 -0
  13. data/lib/pg_morph.rb +16 -0
  14. data/pg_morph.gemspec +31 -0
  15. data/spec/dummy/.rspec +1 -0
  16. data/spec/dummy/Rakefile +6 -0
  17. data/spec/dummy/app/models/.keep +0 -0
  18. data/spec/dummy/app/models/comment.rb +3 -0
  19. data/spec/dummy/app/models/like.rb +3 -0
  20. data/spec/dummy/app/models/post.rb +3 -0
  21. data/spec/dummy/bin/bundle +3 -0
  22. data/spec/dummy/bin/rails +4 -0
  23. data/spec/dummy/bin/rake +4 -0
  24. data/spec/dummy/config/application.rb +24 -0
  25. data/spec/dummy/config/boot.rb +4 -0
  26. data/spec/dummy/config/database.yml +8 -0
  27. data/spec/dummy/config/database.yml.example +8 -0
  28. data/spec/dummy/config/environment.rb +5 -0
  29. data/spec/dummy/config/environments/test.rb +36 -0
  30. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  31. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  32. data/spec/dummy/config/initializers/inflections.rb +16 -0
  33. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  34. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  35. data/spec/dummy/config/initializers/session_store.rb +3 -0
  36. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/spec/dummy/config/locales/en.yml +23 -0
  38. data/spec/dummy/config/routes.rb +56 -0
  39. data/spec/dummy/config.ru +4 -0
  40. data/spec/dummy/db/migrate/20140401124656_create_comments.rb +9 -0
  41. data/spec/dummy/db/migrate/20140401124705_create_posts.rb +9 -0
  42. data/spec/dummy/db/migrate/20140401124727_create_likes.rb +10 -0
  43. data/spec/dummy/db/schema.rb +38 -0
  44. data/spec/dummy/db/seeds.rb +7 -0
  45. data/spec/pg_morph/adapter_integration_spec.rb +89 -0
  46. data/spec/pg_morph/adapter_spec.rb +31 -0
  47. data/spec/pg_morph/naming_spec.rb +29 -0
  48. data/spec/pg_morph/polymorphic_integration_spec.rb +86 -0
  49. data/spec/pg_morph/polymorphic_spec.rb +98 -0
  50. data/spec/spec_helper.rb +16 -0
  51. metadata +246 -0
metadata ADDED
@@ -0,0 +1,246 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pg_morph
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Hanka Seweryn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-10-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3'
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: '3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3'
46
+ - !ruby/object:Gem::Dependency
47
+ name: pg
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '0.17'
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: '0.17'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec-rails
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: rake
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '10.3'
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: '10.3'
94
+ - !ruby/object:Gem::Dependency
95
+ name: pry
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '0.10'
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: '0.10'
110
+ - !ruby/object:Gem::Dependency
111
+ name: awesome_print
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '1.2'
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: '1.2'
126
+ description: Takes care of postgres DB consistency for ActiveRecord polymorphic associations
127
+ via partitioning and inheritance
128
+ email:
129
+ - hanka@lunarlogic.io
130
+ executables: []
131
+ extensions: []
132
+ extra_rdoc_files: []
133
+ files:
134
+ - .gitignore
135
+ - Gemfile
136
+ - Gemfile.lock
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - docs/pg_morph.png
141
+ - lib/pg_morph.rb
142
+ - lib/pg_morph/adapter.rb
143
+ - lib/pg_morph/naming.rb
144
+ - lib/pg_morph/polymorphic.rb
145
+ - lib/pg_morph/railtie.rb
146
+ - lib/pg_morph/version.rb
147
+ - pg_morph.gemspec
148
+ - spec/dummy/.rspec
149
+ - spec/dummy/Rakefile
150
+ - spec/dummy/app/models/.keep
151
+ - spec/dummy/app/models/comment.rb
152
+ - spec/dummy/app/models/like.rb
153
+ - spec/dummy/app/models/post.rb
154
+ - spec/dummy/bin/bundle
155
+ - spec/dummy/bin/rails
156
+ - spec/dummy/bin/rake
157
+ - spec/dummy/config.ru
158
+ - spec/dummy/config/application.rb
159
+ - spec/dummy/config/boot.rb
160
+ - spec/dummy/config/database.yml
161
+ - spec/dummy/config/database.yml.example
162
+ - spec/dummy/config/environment.rb
163
+ - spec/dummy/config/environments/test.rb
164
+ - spec/dummy/config/initializers/backtrace_silencers.rb
165
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
166
+ - spec/dummy/config/initializers/inflections.rb
167
+ - spec/dummy/config/initializers/mime_types.rb
168
+ - spec/dummy/config/initializers/secret_token.rb
169
+ - spec/dummy/config/initializers/session_store.rb
170
+ - spec/dummy/config/initializers/wrap_parameters.rb
171
+ - spec/dummy/config/locales/en.yml
172
+ - spec/dummy/config/routes.rb
173
+ - spec/dummy/db/migrate/20140401124656_create_comments.rb
174
+ - spec/dummy/db/migrate/20140401124705_create_posts.rb
175
+ - spec/dummy/db/migrate/20140401124727_create_likes.rb
176
+ - spec/dummy/db/schema.rb
177
+ - spec/dummy/db/seeds.rb
178
+ - spec/pg_morph/adapter_integration_spec.rb
179
+ - spec/pg_morph/adapter_spec.rb
180
+ - spec/pg_morph/naming_spec.rb
181
+ - spec/pg_morph/polymorphic_integration_spec.rb
182
+ - spec/pg_morph/polymorphic_spec.rb
183
+ - spec/spec_helper.rb
184
+ homepage: https://github.com/LunarLogic/pg_morph
185
+ licenses:
186
+ - MIT
187
+ post_install_message:
188
+ rdoc_options: []
189
+ require_paths:
190
+ - lib
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ none: false
193
+ requirements:
194
+ - - ! '>='
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ required_rubygems_version: !ruby/object:Gem::Requirement
198
+ none: false
199
+ requirements:
200
+ - - ! '>='
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
203
+ requirements: []
204
+ rubyforge_project:
205
+ rubygems_version: 1.8.25
206
+ signing_key:
207
+ specification_version: 3
208
+ summary: Takes care of postgres DB consistency for ActiveRecord polymorphic associations
209
+ test_files:
210
+ - spec/dummy/.rspec
211
+ - spec/dummy/Rakefile
212
+ - spec/dummy/app/models/.keep
213
+ - spec/dummy/app/models/comment.rb
214
+ - spec/dummy/app/models/like.rb
215
+ - spec/dummy/app/models/post.rb
216
+ - spec/dummy/bin/bundle
217
+ - spec/dummy/bin/rails
218
+ - spec/dummy/bin/rake
219
+ - spec/dummy/config.ru
220
+ - spec/dummy/config/application.rb
221
+ - spec/dummy/config/boot.rb
222
+ - spec/dummy/config/database.yml
223
+ - spec/dummy/config/database.yml.example
224
+ - spec/dummy/config/environment.rb
225
+ - spec/dummy/config/environments/test.rb
226
+ - spec/dummy/config/initializers/backtrace_silencers.rb
227
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
228
+ - spec/dummy/config/initializers/inflections.rb
229
+ - spec/dummy/config/initializers/mime_types.rb
230
+ - spec/dummy/config/initializers/secret_token.rb
231
+ - spec/dummy/config/initializers/session_store.rb
232
+ - spec/dummy/config/initializers/wrap_parameters.rb
233
+ - spec/dummy/config/locales/en.yml
234
+ - spec/dummy/config/routes.rb
235
+ - spec/dummy/db/migrate/20140401124656_create_comments.rb
236
+ - spec/dummy/db/migrate/20140401124705_create_posts.rb
237
+ - spec/dummy/db/migrate/20140401124727_create_likes.rb
238
+ - spec/dummy/db/schema.rb
239
+ - spec/dummy/db/seeds.rb
240
+ - spec/pg_morph/adapter_integration_spec.rb
241
+ - spec/pg_morph/adapter_spec.rb
242
+ - spec/pg_morph/naming_spec.rb
243
+ - spec/pg_morph/polymorphic_integration_spec.rb
244
+ - spec/pg_morph/polymorphic_spec.rb
245
+ - spec/spec_helper.rb
246
+ has_rdoc: