schemaless 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +93 -0
  3. data/Rakefile +18 -0
  4. data/lib/generators/schemaless/migrations/USAGE +8 -0
  5. data/lib/generators/schemaless/migrations/migrations_generator.rb +108 -0
  6. data/lib/generators/schemaless/migrations/templates/change_table.rb +34 -0
  7. data/lib/generators/schemaless/migrations/templates/create_table.rb +18 -0
  8. data/lib/generators/schemaless/setup/setup_generator.rb +17 -0
  9. data/lib/generators/schemaless/setup/templates/schemaless.rb +3 -0
  10. data/lib/schemaless/ar/fields.rb +76 -0
  11. data/lib/schemaless/ar/indexes.rb +46 -0
  12. data/lib/schemaless/ar/stubs.rb +15 -0
  13. data/lib/schemaless/field.rb +94 -0
  14. data/lib/schemaless/index.rb +59 -0
  15. data/lib/schemaless/railtie.rb +23 -0
  16. data/lib/schemaless/table.rb +95 -0
  17. data/lib/schemaless/version.rb +4 -0
  18. data/lib/schemaless/worker.rb +47 -0
  19. data/lib/schemaless.rb +21 -0
  20. data/lib/tasks/schemaless_tasks.rake +23 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  26. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  27. data/spec/dummy/app/models/bike.rb +18 -0
  28. data/spec/dummy/app/models/place.rb +8 -0
  29. data/spec/dummy/app/models/rider.rb +8 -0
  30. data/spec/dummy/app/models/user.rb +21 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/spec/dummy/bin/bundle +3 -0
  33. data/spec/dummy/bin/rails +4 -0
  34. data/spec/dummy/bin/rake +4 -0
  35. data/spec/dummy/config/application.rb +28 -0
  36. data/spec/dummy/config/boot.rb +5 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +37 -0
  40. data/spec/dummy/config/environments/production.rb +78 -0
  41. data/spec/dummy/config/environments/test.rb +39 -0
  42. data/spec/dummy/config/initializers/assets.rb +8 -0
  43. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  45. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  46. data/spec/dummy/config/initializers/inflections.rb +16 -0
  47. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  48. data/spec/dummy/config/initializers/session_store.rb +3 -0
  49. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  50. data/spec/dummy/config/locales/en.yml +23 -0
  51. data/spec/dummy/config/routes.rb +56 -0
  52. data/spec/dummy/config/secrets.yml +22 -0
  53. data/spec/dummy/config.ru +4 -0
  54. data/spec/dummy/db/development.sqlite3 +0 -0
  55. data/spec/dummy/db/migrate/20141202223732_create_bikes.rb +16 -0
  56. data/spec/dummy/db/migrate/20141202223750_create_places.rb +9 -0
  57. data/spec/dummy/db/migrate/20141202223751_create_riders.rb +10 -0
  58. data/spec/dummy/db/migrate/20141202223752_create_users.rb +8 -0
  59. data/spec/dummy/db/migrate/20141202223753_create_user_skills.rb +8 -0
  60. data/spec/dummy/db/migrate/20141202223754_create_user_extras.rb +8 -0
  61. data/spec/dummy/db/production.sqlite3 +0 -0
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/log/development.log +213 -0
  64. data/spec/dummy/log/test.log +185888 -0
  65. data/spec/dummy/public/404.html +67 -0
  66. data/spec/dummy/public/422.html +67 -0
  67. data/spec/dummy/public/500.html +66 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/generators/schemaless/migrations/migration_generator_spec.rb +14 -0
  70. data/spec/locales/en.yml +15 -0
  71. data/spec/locales/pt.yml +27 -0
  72. data/spec/schemaless/ar/fields_spec.rb +45 -0
  73. data/spec/schemaless/ar/indexes_spec.rb +43 -0
  74. data/spec/schemaless/field_spec.rb +29 -0
  75. data/spec/schemaless/index_spec.rb +9 -0
  76. data/spec/schemaless/table_spec.rb +25 -0
  77. data/spec/schemaless/worker_spec.rb +57 -0
  78. data/spec/schemaless_spec.rb +15 -0
  79. data/spec/spec_helper.rb +57 -0
  80. data/spec/support/001_create_testing_structure.rb +36 -0
  81. metadata +309 -0
metadata ADDED
@@ -0,0 +1,309 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: schemaless
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Marcos Piccinini
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: ActiveRecord field!
140
+ email: x@nofxx.com
141
+ executables: []
142
+ extensions: []
143
+ extra_rdoc_files: []
144
+ files:
145
+ - README.md
146
+ - Rakefile
147
+ - lib/generators/schemaless/migrations/USAGE
148
+ - lib/generators/schemaless/migrations/migrations_generator.rb
149
+ - lib/generators/schemaless/migrations/templates/change_table.rb
150
+ - lib/generators/schemaless/migrations/templates/create_table.rb
151
+ - lib/generators/schemaless/setup/setup_generator.rb
152
+ - lib/generators/schemaless/setup/templates/schemaless.rb
153
+ - lib/schemaless.rb
154
+ - lib/schemaless/ar/fields.rb
155
+ - lib/schemaless/ar/indexes.rb
156
+ - lib/schemaless/ar/stubs.rb
157
+ - lib/schemaless/field.rb
158
+ - lib/schemaless/index.rb
159
+ - lib/schemaless/railtie.rb
160
+ - lib/schemaless/table.rb
161
+ - lib/schemaless/version.rb
162
+ - lib/schemaless/worker.rb
163
+ - lib/tasks/schemaless_tasks.rake
164
+ - spec/dummy/README.rdoc
165
+ - spec/dummy/Rakefile
166
+ - spec/dummy/app/assets/javascripts/application.js
167
+ - spec/dummy/app/assets/stylesheets/application.css
168
+ - spec/dummy/app/controllers/application_controller.rb
169
+ - spec/dummy/app/helpers/application_helper.rb
170
+ - spec/dummy/app/models/bike.rb
171
+ - spec/dummy/app/models/place.rb
172
+ - spec/dummy/app/models/rider.rb
173
+ - spec/dummy/app/models/user.rb
174
+ - spec/dummy/app/views/layouts/application.html.erb
175
+ - spec/dummy/bin/bundle
176
+ - spec/dummy/bin/rails
177
+ - spec/dummy/bin/rake
178
+ - spec/dummy/config.ru
179
+ - spec/dummy/config/application.rb
180
+ - spec/dummy/config/boot.rb
181
+ - spec/dummy/config/database.yml
182
+ - spec/dummy/config/environment.rb
183
+ - spec/dummy/config/environments/development.rb
184
+ - spec/dummy/config/environments/production.rb
185
+ - spec/dummy/config/environments/test.rb
186
+ - spec/dummy/config/initializers/assets.rb
187
+ - spec/dummy/config/initializers/backtrace_silencers.rb
188
+ - spec/dummy/config/initializers/cookies_serializer.rb
189
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
190
+ - spec/dummy/config/initializers/inflections.rb
191
+ - spec/dummy/config/initializers/mime_types.rb
192
+ - spec/dummy/config/initializers/session_store.rb
193
+ - spec/dummy/config/initializers/wrap_parameters.rb
194
+ - spec/dummy/config/locales/en.yml
195
+ - spec/dummy/config/routes.rb
196
+ - spec/dummy/config/secrets.yml
197
+ - spec/dummy/db/development.sqlite3
198
+ - spec/dummy/db/migrate/20141202223732_create_bikes.rb
199
+ - spec/dummy/db/migrate/20141202223750_create_places.rb
200
+ - spec/dummy/db/migrate/20141202223751_create_riders.rb
201
+ - spec/dummy/db/migrate/20141202223752_create_users.rb
202
+ - spec/dummy/db/migrate/20141202223753_create_user_skills.rb
203
+ - spec/dummy/db/migrate/20141202223754_create_user_extras.rb
204
+ - spec/dummy/db/production.sqlite3
205
+ - spec/dummy/db/test.sqlite3
206
+ - spec/dummy/log/development.log
207
+ - spec/dummy/log/test.log
208
+ - spec/dummy/public/404.html
209
+ - spec/dummy/public/422.html
210
+ - spec/dummy/public/500.html
211
+ - spec/dummy/public/favicon.ico
212
+ - spec/generators/schemaless/migrations/migration_generator_spec.rb
213
+ - spec/locales/en.yml
214
+ - spec/locales/pt.yml
215
+ - spec/schemaless/ar/fields_spec.rb
216
+ - spec/schemaless/ar/indexes_spec.rb
217
+ - spec/schemaless/field_spec.rb
218
+ - spec/schemaless/index_spec.rb
219
+ - spec/schemaless/table_spec.rb
220
+ - spec/schemaless/worker_spec.rb
221
+ - spec/schemaless_spec.rb
222
+ - spec/spec_helper.rb
223
+ - spec/support/001_create_testing_structure.rb
224
+ homepage: http://github.com/nofxx/schemaless
225
+ licenses:
226
+ - MIT
227
+ metadata: {}
228
+ post_install_message:
229
+ rdoc_options: []
230
+ require_paths:
231
+ - lib
232
+ required_ruby_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ requirements: []
243
+ rubyforge_project:
244
+ rubygems_version: 2.4.3
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: Object enums with i18n in AR or Mongoid
248
+ test_files:
249
+ - spec/spec_helper.rb
250
+ - spec/schemaless_spec.rb
251
+ - spec/locales/pt.yml
252
+ - spec/locales/en.yml
253
+ - spec/support/001_create_testing_structure.rb
254
+ - spec/schemaless/worker_spec.rb
255
+ - spec/schemaless/ar/fields_spec.rb
256
+ - spec/schemaless/ar/indexes_spec.rb
257
+ - spec/schemaless/table_spec.rb
258
+ - spec/schemaless/field_spec.rb
259
+ - spec/schemaless/index_spec.rb
260
+ - spec/generators/schemaless/migrations/migration_generator_spec.rb
261
+ - spec/dummy/bin/rails
262
+ - spec/dummy/bin/rake
263
+ - spec/dummy/bin/bundle
264
+ - spec/dummy/Rakefile
265
+ - spec/dummy/config.ru
266
+ - spec/dummy/log/test.log
267
+ - spec/dummy/log/development.log
268
+ - spec/dummy/public/500.html
269
+ - spec/dummy/public/404.html
270
+ - spec/dummy/public/422.html
271
+ - spec/dummy/public/favicon.ico
272
+ - spec/dummy/config/initializers/wrap_parameters.rb
273
+ - spec/dummy/config/initializers/cookies_serializer.rb
274
+ - spec/dummy/config/initializers/mime_types.rb
275
+ - spec/dummy/config/initializers/session_store.rb
276
+ - spec/dummy/config/initializers/assets.rb
277
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
278
+ - spec/dummy/config/initializers/inflections.rb
279
+ - spec/dummy/config/initializers/backtrace_silencers.rb
280
+ - spec/dummy/config/secrets.yml
281
+ - spec/dummy/config/locales/en.yml
282
+ - spec/dummy/config/database.yml
283
+ - spec/dummy/config/application.rb
284
+ - spec/dummy/config/environments/development.rb
285
+ - spec/dummy/config/environments/production.rb
286
+ - spec/dummy/config/environments/test.rb
287
+ - spec/dummy/config/routes.rb
288
+ - spec/dummy/config/environment.rb
289
+ - spec/dummy/config/boot.rb
290
+ - spec/dummy/app/helpers/application_helper.rb
291
+ - spec/dummy/app/assets/stylesheets/application.css
292
+ - spec/dummy/app/assets/javascripts/application.js
293
+ - spec/dummy/app/views/layouts/application.html.erb
294
+ - spec/dummy/app/controllers/application_controller.rb
295
+ - spec/dummy/app/models/user.rb
296
+ - spec/dummy/app/models/rider.rb
297
+ - spec/dummy/app/models/bike.rb
298
+ - spec/dummy/app/models/place.rb
299
+ - spec/dummy/README.rdoc
300
+ - spec/dummy/db/production.sqlite3
301
+ - spec/dummy/db/migrate/20141202223751_create_riders.rb
302
+ - spec/dummy/db/migrate/20141202223754_create_user_extras.rb
303
+ - spec/dummy/db/migrate/20141202223752_create_users.rb
304
+ - spec/dummy/db/migrate/20141202223750_create_places.rb
305
+ - spec/dummy/db/migrate/20141202223732_create_bikes.rb
306
+ - spec/dummy/db/migrate/20141202223753_create_user_skills.rb
307
+ - spec/dummy/db/test.sqlite3
308
+ - spec/dummy/db/development.sqlite3
309
+ has_rdoc: