human_attributes 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +104 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.rubocop.yml +65 -594
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +6 -0
  7. data/Gemfile.lock +216 -144
  8. data/Guardfile +4 -4
  9. data/README.md +37 -17
  10. data/Rakefile +1 -1
  11. data/human_attributes.gemspec +11 -7
  12. data/lib/human_attributes/extension.rb +5 -3
  13. data/lib/human_attributes/formatters/base.rb +1 -0
  14. data/lib/human_attributes/formatters/enumerize.rb +1 -0
  15. data/lib/human_attributes/formatters_builder.rb +1 -0
  16. data/lib/human_attributes/version.rb +1 -1
  17. data/spec/dummy/Rakefile +1 -1
  18. data/spec/dummy/app/assets/config/manifest.js +3 -0
  19. data/spec/dummy/app/assets/stylesheets/application.css +3 -3
  20. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  21. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  22. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  23. data/spec/dummy/app/{assets/javascripts → javascript/packs}/application.js +3 -1
  24. data/spec/dummy/app/jobs/application_job.rb +7 -0
  25. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  26. data/spec/dummy/app/models/application_record.rb +3 -0
  27. data/spec/dummy/app/models/purchase.rb +1 -1
  28. data/spec/dummy/app/views/layouts/application.html.erb +10 -9
  29. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  30. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  31. data/spec/dummy/bin/rails +3 -3
  32. data/spec/dummy/bin/rake +2 -2
  33. data/spec/dummy/bin/setup +18 -14
  34. data/spec/dummy/config.ru +3 -1
  35. data/spec/dummy/config/application.rb +12 -22
  36. data/spec/dummy/config/boot.rb +3 -3
  37. data/spec/dummy/config/cable.yml +10 -0
  38. data/spec/dummy/config/database.yml +4 -18
  39. data/spec/dummy/config/environment.rb +1 -1
  40. data/spec/dummy/config/environments/development.rb +49 -14
  41. data/spec/dummy/config/environments/production.rb +63 -22
  42. data/spec/dummy/config/environments/test.rb +29 -12
  43. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  44. data/spec/dummy/config/initializers/assets.rb +4 -3
  45. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  46. data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
  47. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -0
  48. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  49. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  50. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
  51. data/spec/dummy/config/locales/en.yml +11 -1
  52. data/spec/dummy/config/puma.rb +43 -0
  53. data/spec/dummy/config/routes.rb +1 -54
  54. data/spec/dummy/config/storage.yml +34 -0
  55. data/spec/dummy/db/migrate/20161113032308_create_purchases.rb +1 -1
  56. data/spec/dummy/db/schema.rb +14 -15
  57. data/spec/dummy/public/404.html +6 -6
  58. data/spec/dummy/public/422.html +6 -6
  59. data/spec/dummy/public/500.html +6 -6
  60. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  61. data/spec/dummy/public/apple-touch-icon.png +0 -0
  62. data/spec/dummy/spec/factories/purchases.rb +6 -22
  63. data/spec/dummy/spec/lib/active_record_extension_spec.rb +34 -32
  64. metadata +97 -36
  65. data/spec/dummy/README.rdoc +0 -28
  66. data/spec/dummy/bin/bundle +0 -3
  67. data/spec/dummy/config/initializers/session_store.rb +0 -3
  68. data/spec/dummy/config/secrets.yml +0 -22
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: human_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-03-12 00:00:00.000000000 Z
12
+ date: 2021-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: factory_bot
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: rails
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -26,13 +40,13 @@ dependencies:
26
40
  - !ruby/object:Gem::Version
27
41
  version: 4.2.0
28
42
  - !ruby/object:Gem::Dependency
29
- name: factory_bot
43
+ name: coveralls
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
46
  - - ">="
33
47
  - !ruby/object:Gem::Version
34
48
  version: '0'
35
- type: :runtime
49
+ type: :development
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
@@ -40,39 +54,47 @@ dependencies:
40
54
  - !ruby/object:Gem::Version
41
55
  version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
- name: enumerize
57
+ name: draper
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '1'
49
60
  - - ">="
50
61
  - !ruby/object:Gem::Version
51
- version: 1.1.1
62
+ version: '0'
52
63
  type: :development
53
64
  prerelease: false
54
65
  version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: enumerize
72
+ requirement: !ruby/object:Gem::Requirement
55
73
  requirements:
56
74
  - - "~>"
57
75
  - !ruby/object:Gem::Version
58
- version: '1'
59
- - - ">="
76
+ version: '2.1'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
60
82
  - !ruby/object:Gem::Version
61
- version: 1.1.1
83
+ version: '2.1'
62
84
  - !ruby/object:Gem::Dependency
63
- name: draper
85
+ name: guard-rspec
64
86
  requirement: !ruby/object:Gem::Requirement
65
87
  requirements:
66
88
  - - "~>"
67
89
  - !ruby/object:Gem::Version
68
- version: 2.1.0
90
+ version: '4.7'
69
91
  type: :development
70
92
  prerelease: false
71
93
  version_requirements: !ruby/object:Gem::Requirement
72
94
  requirements:
73
95
  - - "~>"
74
96
  - !ruby/object:Gem::Version
75
- version: 2.1.0
97
+ version: '4.7'
76
98
  - !ruby/object:Gem::Dependency
77
99
  name: pry
78
100
  requirement: !ruby/object:Gem::Requirement
@@ -102,7 +124,7 @@ dependencies:
102
124
  - !ruby/object:Gem::Version
103
125
  version: '0'
104
126
  - !ruby/object:Gem::Dependency
105
- name: sqlite3
127
+ name: rspec_junit_formatter
106
128
  requirement: !ruby/object:Gem::Requirement
107
129
  requirements:
108
130
  - - ">="
@@ -119,32 +141,46 @@ dependencies:
119
141
  name: rspec-rails
120
142
  requirement: !ruby/object:Gem::Requirement
121
143
  requirements:
122
- - - "~>"
144
+ - - ">="
123
145
  - !ruby/object:Gem::Version
124
- version: '3.4'
146
+ version: '0'
125
147
  type: :development
126
148
  prerelease: false
127
149
  version_requirements: !ruby/object:Gem::Requirement
128
150
  requirements:
129
- - - "~>"
151
+ - - ">="
130
152
  - !ruby/object:Gem::Version
131
- version: '3.4'
153
+ version: '0'
132
154
  - !ruby/object:Gem::Dependency
133
- name: guard-rspec
155
+ name: rubocop
134
156
  requirement: !ruby/object:Gem::Requirement
135
157
  requirements:
136
158
  - - "~>"
137
159
  - !ruby/object:Gem::Version
138
- version: '4.7'
160
+ version: '1.9'
139
161
  type: :development
140
162
  prerelease: false
141
163
  version_requirements: !ruby/object:Gem::Requirement
142
164
  requirements:
143
165
  - - "~>"
144
166
  - !ruby/object:Gem::Version
145
- version: '4.7'
167
+ version: '1.9'
146
168
  - !ruby/object:Gem::Dependency
147
- name: coveralls
169
+ name: rubocop-rails
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ - !ruby/object:Gem::Dependency
183
+ name: sqlite3
148
184
  requirement: !ruby/object:Gem::Requirement
149
185
  requirements:
150
186
  - - ">="
@@ -166,6 +202,8 @@ executables: []
166
202
  extensions: []
167
203
  extra_rdoc_files: []
168
204
  files:
205
+ - ".circleci/config.yml"
206
+ - ".circleci/setup-rubygems.sh"
169
207
  - ".coveralls.yml"
170
208
  - ".gitignore"
171
209
  - ".hound.yml"
@@ -197,43 +235,55 @@ files:
197
235
  - lib/human_attributes/method_builder.rb
198
236
  - lib/human_attributes/version.rb
199
237
  - lib/tasks/human_attributes_tasks.rake
200
- - spec/dummy/README.rdoc
201
238
  - spec/dummy/Rakefile
202
- - spec/dummy/app/assets/javascripts/application.js
239
+ - spec/dummy/app/assets/config/manifest.js
203
240
  - spec/dummy/app/assets/stylesheets/application.css
241
+ - spec/dummy/app/channels/application_cable/channel.rb
242
+ - spec/dummy/app/channels/application_cable/connection.rb
204
243
  - spec/dummy/app/controllers/application_controller.rb
205
244
  - spec/dummy/app/decorators/purchase_decorator.rb
206
245
  - spec/dummy/app/helpers/application_helper.rb
246
+ - spec/dummy/app/javascript/packs/application.js
247
+ - spec/dummy/app/jobs/application_job.rb
248
+ - spec/dummy/app/mailers/application_mailer.rb
249
+ - spec/dummy/app/models/application_record.rb
207
250
  - spec/dummy/app/models/purchase.rb
208
251
  - spec/dummy/app/views/layouts/application.html.erb
209
- - spec/dummy/bin/bundle
252
+ - spec/dummy/app/views/layouts/mailer.html.erb
253
+ - spec/dummy/app/views/layouts/mailer.text.erb
210
254
  - spec/dummy/bin/rails
211
255
  - spec/dummy/bin/rake
212
256
  - spec/dummy/bin/setup
213
257
  - spec/dummy/config.ru
214
258
  - spec/dummy/config/application.rb
215
259
  - spec/dummy/config/boot.rb
260
+ - spec/dummy/config/cable.yml
216
261
  - spec/dummy/config/database.yml
217
262
  - spec/dummy/config/environment.rb
218
263
  - spec/dummy/config/environments/development.rb
219
264
  - spec/dummy/config/environments/production.rb
220
265
  - spec/dummy/config/environments/test.rb
266
+ - spec/dummy/config/initializers/application_controller_renderer.rb
221
267
  - spec/dummy/config/initializers/assets.rb
222
268
  - spec/dummy/config/initializers/backtrace_silencers.rb
269
+ - spec/dummy/config/initializers/content_security_policy.rb
223
270
  - spec/dummy/config/initializers/cookies_serializer.rb
224
271
  - spec/dummy/config/initializers/filter_parameter_logging.rb
225
272
  - spec/dummy/config/initializers/inflections.rb
226
273
  - spec/dummy/config/initializers/mime_types.rb
227
- - spec/dummy/config/initializers/session_store.rb
274
+ - spec/dummy/config/initializers/permissions_policy.rb
228
275
  - spec/dummy/config/initializers/wrap_parameters.rb
229
276
  - spec/dummy/config/locales/en.yml
277
+ - spec/dummy/config/puma.rb
230
278
  - spec/dummy/config/routes.rb
231
- - spec/dummy/config/secrets.yml
279
+ - spec/dummy/config/storage.yml
232
280
  - spec/dummy/db/migrate/20161113032308_create_purchases.rb
233
281
  - spec/dummy/db/schema.rb
234
282
  - spec/dummy/public/404.html
235
283
  - spec/dummy/public/422.html
236
284
  - spec/dummy/public/500.html
285
+ - spec/dummy/public/apple-touch-icon-precomposed.png
286
+ - spec/dummy/public/apple-touch-icon.png
237
287
  - spec/dummy/public/favicon.ico
238
288
  - spec/dummy/spec/assets/image.png
239
289
  - spec/dummy/spec/assets/video.mp4
@@ -261,49 +311,60 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
311
  - !ruby/object:Gem::Version
262
312
  version: '0'
263
313
  requirements: []
264
- rubyforge_project:
265
- rubygems_version: 2.7.6
314
+ rubygems_version: 3.1.6
266
315
  signing_key:
267
316
  specification_version: 4
268
317
  summary: Gem to generate human readable ActiveRecord attributes
269
318
  test_files:
270
- - spec/dummy/README.rdoc
271
319
  - spec/dummy/Rakefile
272
- - spec/dummy/app/assets/javascripts/application.js
320
+ - spec/dummy/app/assets/config/manifest.js
273
321
  - spec/dummy/app/assets/stylesheets/application.css
322
+ - spec/dummy/app/channels/application_cable/channel.rb
323
+ - spec/dummy/app/channels/application_cable/connection.rb
274
324
  - spec/dummy/app/controllers/application_controller.rb
275
325
  - spec/dummy/app/decorators/purchase_decorator.rb
276
326
  - spec/dummy/app/helpers/application_helper.rb
327
+ - spec/dummy/app/javascript/packs/application.js
328
+ - spec/dummy/app/jobs/application_job.rb
329
+ - spec/dummy/app/mailers/application_mailer.rb
330
+ - spec/dummy/app/models/application_record.rb
277
331
  - spec/dummy/app/models/purchase.rb
278
332
  - spec/dummy/app/views/layouts/application.html.erb
279
- - spec/dummy/bin/bundle
333
+ - spec/dummy/app/views/layouts/mailer.html.erb
334
+ - spec/dummy/app/views/layouts/mailer.text.erb
280
335
  - spec/dummy/bin/rails
281
336
  - spec/dummy/bin/rake
282
337
  - spec/dummy/bin/setup
283
338
  - spec/dummy/config.ru
284
339
  - spec/dummy/config/application.rb
285
340
  - spec/dummy/config/boot.rb
341
+ - spec/dummy/config/cable.yml
286
342
  - spec/dummy/config/database.yml
287
343
  - spec/dummy/config/environment.rb
288
344
  - spec/dummy/config/environments/development.rb
289
345
  - spec/dummy/config/environments/production.rb
290
346
  - spec/dummy/config/environments/test.rb
347
+ - spec/dummy/config/initializers/application_controller_renderer.rb
291
348
  - spec/dummy/config/initializers/assets.rb
292
349
  - spec/dummy/config/initializers/backtrace_silencers.rb
350
+ - spec/dummy/config/initializers/content_security_policy.rb
293
351
  - spec/dummy/config/initializers/cookies_serializer.rb
294
352
  - spec/dummy/config/initializers/filter_parameter_logging.rb
295
353
  - spec/dummy/config/initializers/inflections.rb
296
354
  - spec/dummy/config/initializers/mime_types.rb
297
- - spec/dummy/config/initializers/session_store.rb
355
+ - spec/dummy/config/initializers/permissions_policy.rb
298
356
  - spec/dummy/config/initializers/wrap_parameters.rb
299
357
  - spec/dummy/config/locales/en.yml
358
+ - spec/dummy/config/puma.rb
300
359
  - spec/dummy/config/routes.rb
301
- - spec/dummy/config/secrets.yml
360
+ - spec/dummy/config/storage.yml
302
361
  - spec/dummy/db/migrate/20161113032308_create_purchases.rb
303
362
  - spec/dummy/db/schema.rb
304
363
  - spec/dummy/public/404.html
305
364
  - spec/dummy/public/422.html
306
365
  - spec/dummy/public/500.html
366
+ - spec/dummy/public/apple-touch-icon-precomposed.png
367
+ - spec/dummy/public/apple-touch-icon.png
307
368
  - spec/dummy/public/favicon.ico
308
369
  - spec/dummy/spec/assets/image.png
309
370
  - spec/dummy/spec/assets/video.mp4
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: c78f678a886386639b947efb337881edf89dcef5d8b03f60494d81aa6cf1c4693d9b9a0ebffdee3234d061f0ec5947a4755d08180736b2f9a4c7e288244d1449
15
-
16
- test:
17
- secret_key_base: 62aac4ff5a4fb121f4f48d84dbb33b9f1a5cba7fb5002700adc5a28f5c8aa5a1582d7e5bcf7080d2d0f0ecd0a6c077efdbeca697743cd52d1a16029296f0fd53
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>