human_attributes 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +187 -0
- data/Guardfile +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +402 -0
- data/Rakefile +10 -0
- data/human_attributes.gemspec +30 -0
- data/lib/human_attributes/active_record_extension.rb +53 -0
- data/lib/human_attributes/config.rb +92 -0
- data/lib/human_attributes/engine.rb +24 -0
- data/lib/human_attributes/errors.rb +46 -0
- data/lib/human_attributes/formatters/base.rb +27 -0
- data/lib/human_attributes/formatters/boolean.rb +10 -0
- data/lib/human_attributes/formatters/custom.rb +17 -0
- data/lib/human_attributes/formatters/date.rb +9 -0
- data/lib/human_attributes/formatters/enumerize.rb +11 -0
- data/lib/human_attributes/formatters/numeric.rb +11 -0
- data/lib/human_attributes/formatters_builder.rb +44 -0
- data/lib/human_attributes/method_builder.rb +20 -0
- data/lib/human_attributes/version.rb +3 -0
- data/lib/human_attributes.rb +26 -0
- data/lib/tasks/human_attributes_tasks.rake +32 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/purchase.rb +28 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +25 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20161113032308_create_purchases.rb +15 -0
- data/spec/dummy/db/schema.rb +28 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +16 -0
- data/spec/dummy/log/test.log +25913 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/assets/image.png +0 -0
- data/spec/dummy/spec/assets/video.mp4 +0 -0
- data/spec/dummy/spec/factories/purchases.rb +26 -0
- data/spec/dummy/spec/lib/active_record_extension_spec.rb +402 -0
- data/spec/dummy/spec/support/test_helpers.rb +5 -0
- data/spec/rails_helper.rb +28 -0
- data/spec/spec_helper.rb +9 -0
- metadata +293 -0
metadata
ADDED
@@ -0,0 +1,293 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: human_attributes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Platanus
|
8
|
+
- Leandro Segovia
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-12-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '4.2'
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 4.2.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '4.2'
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.2.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: enumerize
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.1.1
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '1.1'
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.1.1
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: factory_girl_rails
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 4.6.0
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 4.6.0
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: pry
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: pry-rails
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: sqlite3
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec-rails
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 3.4.0
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 3.4.0
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: guard-rspec
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '4.7'
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '4.7'
|
138
|
+
description: Gem to convert ActiveRecord attributes and methods to human readable
|
139
|
+
attributes
|
140
|
+
email:
|
141
|
+
- rubygems@platan.us
|
142
|
+
- ldlsegovia@gmail.com
|
143
|
+
executables: []
|
144
|
+
extensions: []
|
145
|
+
extra_rdoc_files: []
|
146
|
+
files:
|
147
|
+
- ".gitignore"
|
148
|
+
- ".rspec"
|
149
|
+
- ".ruby-version"
|
150
|
+
- CHANGELOG.md
|
151
|
+
- Gemfile
|
152
|
+
- Gemfile.lock
|
153
|
+
- Guardfile
|
154
|
+
- LICENSE.txt
|
155
|
+
- README.md
|
156
|
+
- Rakefile
|
157
|
+
- human_attributes.gemspec
|
158
|
+
- lib/human_attributes.rb
|
159
|
+
- lib/human_attributes/active_record_extension.rb
|
160
|
+
- lib/human_attributes/config.rb
|
161
|
+
- lib/human_attributes/engine.rb
|
162
|
+
- lib/human_attributes/errors.rb
|
163
|
+
- lib/human_attributes/formatters/base.rb
|
164
|
+
- lib/human_attributes/formatters/boolean.rb
|
165
|
+
- lib/human_attributes/formatters/custom.rb
|
166
|
+
- lib/human_attributes/formatters/date.rb
|
167
|
+
- lib/human_attributes/formatters/enumerize.rb
|
168
|
+
- lib/human_attributes/formatters/numeric.rb
|
169
|
+
- lib/human_attributes/formatters_builder.rb
|
170
|
+
- lib/human_attributes/method_builder.rb
|
171
|
+
- lib/human_attributes/version.rb
|
172
|
+
- lib/tasks/human_attributes_tasks.rake
|
173
|
+
- spec/dummy/README.rdoc
|
174
|
+
- spec/dummy/Rakefile
|
175
|
+
- spec/dummy/app/assets/javascripts/application.js
|
176
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
177
|
+
- spec/dummy/app/controllers/application_controller.rb
|
178
|
+
- spec/dummy/app/helpers/application_helper.rb
|
179
|
+
- spec/dummy/app/models/purchase.rb
|
180
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
181
|
+
- spec/dummy/bin/bundle
|
182
|
+
- spec/dummy/bin/rails
|
183
|
+
- spec/dummy/bin/rake
|
184
|
+
- spec/dummy/bin/setup
|
185
|
+
- spec/dummy/config.ru
|
186
|
+
- spec/dummy/config/application.rb
|
187
|
+
- spec/dummy/config/boot.rb
|
188
|
+
- spec/dummy/config/database.yml
|
189
|
+
- spec/dummy/config/environment.rb
|
190
|
+
- spec/dummy/config/environments/development.rb
|
191
|
+
- spec/dummy/config/environments/production.rb
|
192
|
+
- spec/dummy/config/environments/test.rb
|
193
|
+
- spec/dummy/config/initializers/assets.rb
|
194
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
195
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
196
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
197
|
+
- spec/dummy/config/initializers/inflections.rb
|
198
|
+
- spec/dummy/config/initializers/mime_types.rb
|
199
|
+
- spec/dummy/config/initializers/session_store.rb
|
200
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
201
|
+
- spec/dummy/config/locales/en.yml
|
202
|
+
- spec/dummy/config/routes.rb
|
203
|
+
- spec/dummy/config/secrets.yml
|
204
|
+
- spec/dummy/db/development.sqlite3
|
205
|
+
- spec/dummy/db/migrate/20161113032308_create_purchases.rb
|
206
|
+
- spec/dummy/db/schema.rb
|
207
|
+
- spec/dummy/db/test.sqlite3
|
208
|
+
- spec/dummy/log/development.log
|
209
|
+
- spec/dummy/log/test.log
|
210
|
+
- spec/dummy/public/404.html
|
211
|
+
- spec/dummy/public/422.html
|
212
|
+
- spec/dummy/public/500.html
|
213
|
+
- spec/dummy/public/favicon.ico
|
214
|
+
- spec/dummy/spec/assets/image.png
|
215
|
+
- spec/dummy/spec/assets/video.mp4
|
216
|
+
- spec/dummy/spec/factories/purchases.rb
|
217
|
+
- spec/dummy/spec/lib/active_record_extension_spec.rb
|
218
|
+
- spec/dummy/spec/support/test_helpers.rb
|
219
|
+
- spec/rails_helper.rb
|
220
|
+
- spec/spec_helper.rb
|
221
|
+
homepage: https://github.com/platanus/human_attributes
|
222
|
+
licenses:
|
223
|
+
- MIT
|
224
|
+
metadata: {}
|
225
|
+
post_install_message:
|
226
|
+
rdoc_options: []
|
227
|
+
require_paths:
|
228
|
+
- lib
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - ">="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: '0'
|
234
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - ">="
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '0'
|
239
|
+
requirements: []
|
240
|
+
rubyforge_project:
|
241
|
+
rubygems_version: 2.5.1
|
242
|
+
signing_key:
|
243
|
+
specification_version: 4
|
244
|
+
summary: Gem to generate human readable ActiveRecord attributes
|
245
|
+
test_files:
|
246
|
+
- spec/dummy/app/assets/javascripts/application.js
|
247
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
248
|
+
- spec/dummy/app/controllers/application_controller.rb
|
249
|
+
- spec/dummy/app/helpers/application_helper.rb
|
250
|
+
- spec/dummy/app/models/purchase.rb
|
251
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
252
|
+
- spec/dummy/bin/bundle
|
253
|
+
- spec/dummy/bin/rails
|
254
|
+
- spec/dummy/bin/rake
|
255
|
+
- spec/dummy/bin/setup
|
256
|
+
- spec/dummy/config/application.rb
|
257
|
+
- spec/dummy/config/boot.rb
|
258
|
+
- spec/dummy/config/database.yml
|
259
|
+
- spec/dummy/config/environment.rb
|
260
|
+
- spec/dummy/config/environments/development.rb
|
261
|
+
- spec/dummy/config/environments/production.rb
|
262
|
+
- spec/dummy/config/environments/test.rb
|
263
|
+
- spec/dummy/config/initializers/assets.rb
|
264
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
265
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
266
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
267
|
+
- spec/dummy/config/initializers/inflections.rb
|
268
|
+
- spec/dummy/config/initializers/mime_types.rb
|
269
|
+
- spec/dummy/config/initializers/session_store.rb
|
270
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
271
|
+
- spec/dummy/config/locales/en.yml
|
272
|
+
- spec/dummy/config/routes.rb
|
273
|
+
- spec/dummy/config/secrets.yml
|
274
|
+
- spec/dummy/config.ru
|
275
|
+
- spec/dummy/db/development.sqlite3
|
276
|
+
- spec/dummy/db/migrate/20161113032308_create_purchases.rb
|
277
|
+
- spec/dummy/db/schema.rb
|
278
|
+
- spec/dummy/db/test.sqlite3
|
279
|
+
- spec/dummy/log/development.log
|
280
|
+
- spec/dummy/log/test.log
|
281
|
+
- spec/dummy/public/404.html
|
282
|
+
- spec/dummy/public/422.html
|
283
|
+
- spec/dummy/public/500.html
|
284
|
+
- spec/dummy/public/favicon.ico
|
285
|
+
- spec/dummy/Rakefile
|
286
|
+
- spec/dummy/README.rdoc
|
287
|
+
- spec/dummy/spec/assets/image.png
|
288
|
+
- spec/dummy/spec/assets/video.mp4
|
289
|
+
- spec/dummy/spec/factories/purchases.rb
|
290
|
+
- spec/dummy/spec/lib/active_record_extension_spec.rb
|
291
|
+
- spec/dummy/spec/support/test_helpers.rb
|
292
|
+
- spec/rails_helper.rb
|
293
|
+
- spec/spec_helper.rb
|