activerecord-chemistry 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +1 -0
  4. data/.ruby-version +1 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +95 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +42 -0
  10. data/Rakefile +2 -0
  11. data/activerecord-chemistry.gemspec +34 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/circle.yml +3 -0
  15. data/lib/activerecord/chemistry/actable/instance_methods.rb +36 -0
  16. data/lib/activerecord/chemistry/actable/migration.rb +27 -0
  17. data/lib/activerecord/chemistry/actable/relation.rb +39 -0
  18. data/lib/activerecord/chemistry/actable.rb +11 -0
  19. data/lib/activerecord/chemistry/extendable/instance_methods.rb +36 -0
  20. data/lib/activerecord/chemistry/extendable/migration.rb +27 -0
  21. data/lib/activerecord/chemistry/extendable/relation.rb +36 -0
  22. data/lib/activerecord/chemistry/extendable.rb +11 -0
  23. data/lib/activerecord/chemistry/representable/class_methods.rb +8 -0
  24. data/lib/activerecord/chemistry/representable/instance_methods.rb +49 -0
  25. data/lib/activerecord/chemistry/representable/migration.rb +27 -0
  26. data/lib/activerecord/chemistry/representable/relation.rb +49 -0
  27. data/lib/activerecord/chemistry/representable.rb +11 -0
  28. data/lib/activerecord/chemistry/version.rb +5 -0
  29. data/lib/activerecord/chemistry.rb +30 -0
  30. data/spec/actable/actable_spec.rb +5 -0
  31. data/spec/actable/acts_as_spec.rb +63 -0
  32. data/spec/database_helper.rb +26 -0
  33. data/spec/extendable/extendable_by_spec.rb +5 -0
  34. data/spec/extendable/extends_spec.rb +63 -0
  35. data/spec/factories.rb +22 -0
  36. data/spec/migrations_spec.rb +128 -0
  37. data/spec/models.rb +56 -0
  38. data/spec/representable/representable_spec.rb +5 -0
  39. data/spec/representable/represents_spec.rb +91 -0
  40. data/spec/spec_helper.rb +35 -0
  41. metadata +223 -0
metadata ADDED
@@ -0,0 +1,223 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-chemistry
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thom Bruce
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sqlite3
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.8'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.8.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.8.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '12.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '12.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.49.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.49.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: activesupport
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '5.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '5.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: activerecord
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '5.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '5.1'
139
+ description: Adds several different inheritance patterns for use with Rails models
140
+ and ActiveRecord relations.
141
+ email:
142
+ - thom@thombruce.com
143
+ executables:
144
+ - console
145
+ - setup
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - ".gitignore"
150
+ - ".rspec"
151
+ - ".ruby-version"
152
+ - CODE_OF_CONDUCT.md
153
+ - Gemfile
154
+ - Gemfile.lock
155
+ - LICENSE.txt
156
+ - README.md
157
+ - Rakefile
158
+ - activerecord-chemistry.gemspec
159
+ - bin/console
160
+ - bin/setup
161
+ - circle.yml
162
+ - lib/activerecord/chemistry.rb
163
+ - lib/activerecord/chemistry/actable.rb
164
+ - lib/activerecord/chemistry/actable/instance_methods.rb
165
+ - lib/activerecord/chemistry/actable/migration.rb
166
+ - lib/activerecord/chemistry/actable/relation.rb
167
+ - lib/activerecord/chemistry/extendable.rb
168
+ - lib/activerecord/chemistry/extendable/instance_methods.rb
169
+ - lib/activerecord/chemistry/extendable/migration.rb
170
+ - lib/activerecord/chemistry/extendable/relation.rb
171
+ - lib/activerecord/chemistry/representable.rb
172
+ - lib/activerecord/chemistry/representable/class_methods.rb
173
+ - lib/activerecord/chemistry/representable/instance_methods.rb
174
+ - lib/activerecord/chemistry/representable/migration.rb
175
+ - lib/activerecord/chemistry/representable/relation.rb
176
+ - lib/activerecord/chemistry/version.rb
177
+ - spec/actable/actable_spec.rb
178
+ - spec/actable/acts_as_spec.rb
179
+ - spec/database_helper.rb
180
+ - spec/extendable/extendable_by_spec.rb
181
+ - spec/extendable/extends_spec.rb
182
+ - spec/factories.rb
183
+ - spec/migrations_spec.rb
184
+ - spec/models.rb
185
+ - spec/representable/representable_spec.rb
186
+ - spec/representable/represents_spec.rb
187
+ - spec/spec_helper.rb
188
+ homepage: http://github.com/thombruce/activerecord-chemistry
189
+ licenses:
190
+ - MIT
191
+ metadata: {}
192
+ post_install_message:
193
+ rdoc_options: []
194
+ require_paths:
195
+ - lib
196
+ required_ruby_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '2.4'
201
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ requirements: []
207
+ rubyforge_project:
208
+ rubygems_version: 2.6.11
209
+ signing_key:
210
+ specification_version: 4
211
+ summary: Adds inheritance logic for Rails ActiveRecord.
212
+ test_files:
213
+ - spec/actable/actable_spec.rb
214
+ - spec/actable/acts_as_spec.rb
215
+ - spec/database_helper.rb
216
+ - spec/extendable/extendable_by_spec.rb
217
+ - spec/extendable/extends_spec.rb
218
+ - spec/factories.rb
219
+ - spec/migrations_spec.rb
220
+ - spec/models.rb
221
+ - spec/representable/representable_spec.rb
222
+ - spec/representable/represents_spec.rb
223
+ - spec/spec_helper.rb