human_attributes 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ script:
6
+ - RAILS_ENV=test bundle exec rake db:create db:migrate
7
+ - bundle exec rspec spec
8
+ deploy:
9
+ provider: rubygems
10
+ api_key:
11
+ secure: E6ajLuO5il2IstmXIMo+jVqLN8x5GO7LVLSRolZwxYHOiN28OYJbPvKGKCEoDJ0l8XHcsJJAaaKKGg9rJEtzoqCVDvIyf4Zmp3XW804yVEoO9m69gJRn7TDbVvEFyJDPwWDG0Li9J4FbmyLoubqPT4KjTC8tVzYN7cKo9FbHlvtS1F9DvnmvyYVW/dU3iuQDFFD0ctO32+9TS1RnJ9RJXEFJd2GFX2eIKJgvlSQZeI2ZgXVZ1PSZVKElkIQLMnhDJVy/Zj/wde1eRzU/AXNQi5p+4LLnLOAxiqWCq8LsPufmuDHZlpkXBOjXYPhaLiRZFeKu/ymBGEu/FqXkpu//ANQDKZS5AkhbddAfZcR3+hRiCb5pUKuRX5X912w20ormNePKYwfs//WpZECneL3UaPq4T4msstOTjeBomJ99zvpU7DC1LAVv1ja1e44eHd3lXasVtXOFMJUv2eTncGY+nVqdqyFFTnB59AtloxfTFaGI9e894rE7dpxEzPO3UOVeBodBH8CkZVMG6OWiP7zkF9vqfrrBETiQXlyGaN9XEk8G+y6Rui8eoETXZYJKfXHPZnv56ntTBHoMu7VWdYPVuwuKKIyaOoNJPsIbKRbF7O9XWkb5/HbDPnt8Q+eFEntYP3Jr+YelghAKN2RX0CDhXFUBxxf7Ew7GEvt2tpbHq44=
12
+ gem: human_attributes
13
+ on:
14
+ tags: true
15
+ repo: platanus/human_attributes
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### 1.4.0
6
+
7
+ ##### Added
8
+
9
+ * Add Hound configuration.
10
+ * Deploy with Travis CI.
11
+ * Configure coveralls.
12
+
5
13
  ### v0.3.1
6
14
 
7
15
  ##### Fixed
data/Gemfile.lock CHANGED
@@ -1,53 +1,59 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- human_attributes (0.3.1)
4
+ human_attributes (0.4.0)
5
5
  factory_girl_rails (~> 4.6)
6
6
  rails (~> 4.2, >= 4.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.2.7.1)
12
- actionpack (= 4.2.7.1)
13
- actionview (= 4.2.7.1)
14
- activejob (= 4.2.7.1)
11
+ actionmailer (4.2.8)
12
+ actionpack (= 4.2.8)
13
+ actionview (= 4.2.8)
14
+ activejob (= 4.2.8)
15
15
  mail (~> 2.5, >= 2.5.4)
16
16
  rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.7.1)
18
- actionview (= 4.2.7.1)
19
- activesupport (= 4.2.7.1)
17
+ actionpack (4.2.8)
18
+ actionview (= 4.2.8)
19
+ activesupport (= 4.2.8)
20
20
  rack (~> 1.6)
21
21
  rack-test (~> 0.6.2)
22
22
  rails-dom-testing (~> 1.0, >= 1.0.5)
23
23
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.7.1)
25
- activesupport (= 4.2.7.1)
24
+ actionview (4.2.8)
25
+ activesupport (= 4.2.8)
26
26
  builder (~> 3.1)
27
27
  erubis (~> 2.7.0)
28
28
  rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- activejob (4.2.7.1)
31
- activesupport (= 4.2.7.1)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
+ activejob (4.2.8)
31
+ activesupport (= 4.2.8)
32
32
  globalid (>= 0.3.0)
33
- activemodel (4.2.7.1)
34
- activesupport (= 4.2.7.1)
33
+ activemodel (4.2.8)
34
+ activesupport (= 4.2.8)
35
35
  builder (~> 3.1)
36
- activerecord (4.2.7.1)
37
- activemodel (= 4.2.7.1)
38
- activesupport (= 4.2.7.1)
36
+ activerecord (4.2.8)
37
+ activemodel (= 4.2.8)
38
+ activesupport (= 4.2.8)
39
39
  arel (~> 6.0)
40
- activesupport (4.2.7.1)
40
+ activesupport (4.2.8)
41
41
  i18n (~> 0.7)
42
- json (~> 1.7, >= 1.7.7)
43
42
  minitest (~> 5.1)
44
43
  thread_safe (~> 0.3, >= 0.3.4)
45
44
  tzinfo (~> 1.1)
46
- arel (6.0.3)
47
- builder (3.2.2)
45
+ arel (6.0.4)
46
+ builder (3.2.3)
48
47
  coderay (1.1.1)
49
- concurrent-ruby (1.0.2)
50
- diff-lcs (1.2.5)
48
+ concurrent-ruby (1.0.5)
49
+ coveralls (0.8.19)
50
+ json (>= 1.8, < 3)
51
+ simplecov (~> 0.12.0)
52
+ term-ansicolor (~> 1.3)
53
+ thor (~> 0.19.1)
54
+ tins (~> 1.6)
55
+ diff-lcs (1.3)
56
+ docile (1.1.5)
51
57
  draper (2.1.0)
52
58
  actionpack (>= 3.0)
53
59
  activemodel (>= 3.0)
@@ -56,16 +62,16 @@ GEM
56
62
  enumerize (1.1.1)
57
63
  activesupport (>= 3.2)
58
64
  erubis (2.7.0)
59
- factory_girl (4.7.0)
65
+ factory_girl (4.8.0)
60
66
  activesupport (>= 3.0.0)
61
- factory_girl_rails (4.7.0)
62
- factory_girl (~> 4.7.0)
67
+ factory_girl_rails (4.8.0)
68
+ factory_girl (~> 4.8.0)
63
69
  railties (>= 3.0.0)
64
- ffi (1.9.14)
70
+ ffi (1.9.18)
65
71
  formatador (0.2.5)
66
72
  globalid (0.3.7)
67
73
  activesupport (>= 4.1.0)
68
- guard (2.14.0)
74
+ guard (2.14.1)
69
75
  formatador (>= 0.2.4)
70
76
  listen (>= 2.7, < 4.0)
71
77
  lumberjack (~> 1.0)
@@ -79,15 +85,15 @@ GEM
79
85
  guard (~> 2.1)
80
86
  guard-compat (~> 1.1)
81
87
  rspec (>= 2.99.0, < 4.0)
82
- i18n (0.7.0)
83
- json (1.8.3)
88
+ i18n (0.8.1)
89
+ json (2.0.3)
84
90
  listen (3.1.5)
85
91
  rb-fsevent (~> 0.9, >= 0.9.4)
86
92
  rb-inotify (~> 0.9, >= 0.9.7)
87
93
  ruby_dep (~> 1.2)
88
94
  loofah (2.0.3)
89
95
  nokogiri (>= 1.5.9)
90
- lumberjack (1.0.10)
96
+ lumberjack (1.0.11)
91
97
  mail (2.6.4)
92
98
  mime-types (>= 1.16, < 4)
93
99
  method_source (0.8.2)
@@ -95,9 +101,9 @@ GEM
95
101
  mime-types-data (~> 3.2015)
96
102
  mime-types-data (3.2016.0521)
97
103
  mini_portile2 (2.1.0)
98
- minitest (5.9.1)
104
+ minitest (5.10.1)
99
105
  nenv (0.3.0)
100
- nokogiri (1.6.8.1)
106
+ nokogiri (1.7.1)
101
107
  mini_portile2 (~> 2.1.0)
102
108
  notiffany (0.1.1)
103
109
  nenv (~> 0.1)
@@ -106,81 +112,90 @@ GEM
106
112
  coderay (~> 1.1.0)
107
113
  method_source (~> 0.8.1)
108
114
  slop (~> 3.4)
109
- pry-rails (0.3.4)
110
- pry (>= 0.9.10)
111
- rack (1.6.4)
115
+ pry-rails (0.3.6)
116
+ pry (>= 0.10.4)
117
+ rack (1.6.5)
112
118
  rack-test (0.6.3)
113
119
  rack (>= 1.0)
114
- rails (4.2.7.1)
115
- actionmailer (= 4.2.7.1)
116
- actionpack (= 4.2.7.1)
117
- actionview (= 4.2.7.1)
118
- activejob (= 4.2.7.1)
119
- activemodel (= 4.2.7.1)
120
- activerecord (= 4.2.7.1)
121
- activesupport (= 4.2.7.1)
120
+ rails (4.2.8)
121
+ actionmailer (= 4.2.8)
122
+ actionpack (= 4.2.8)
123
+ actionview (= 4.2.8)
124
+ activejob (= 4.2.8)
125
+ activemodel (= 4.2.8)
126
+ activerecord (= 4.2.8)
127
+ activesupport (= 4.2.8)
122
128
  bundler (>= 1.3.0, < 2.0)
123
- railties (= 4.2.7.1)
129
+ railties (= 4.2.8)
124
130
  sprockets-rails
125
131
  rails-deprecated_sanitizer (1.0.3)
126
132
  activesupport (>= 4.2.0.alpha)
127
- rails-dom-testing (1.0.7)
133
+ rails-dom-testing (1.0.8)
128
134
  activesupport (>= 4.2.0.beta, < 5.0)
129
- nokogiri (~> 1.6.0)
135
+ nokogiri (~> 1.6)
130
136
  rails-deprecated_sanitizer (>= 1.0.1)
131
137
  rails-html-sanitizer (1.0.3)
132
138
  loofah (~> 2.0)
133
- railties (4.2.7.1)
134
- actionpack (= 4.2.7.1)
135
- activesupport (= 4.2.7.1)
139
+ railties (4.2.8)
140
+ actionpack (= 4.2.8)
141
+ activesupport (= 4.2.8)
136
142
  rake (>= 0.8.7)
137
143
  thor (>= 0.18.1, < 2.0)
138
- rake (11.3.0)
139
- rb-fsevent (0.9.7)
140
- rb-inotify (0.9.7)
144
+ rake (12.0.0)
145
+ rb-fsevent (0.9.8)
146
+ rb-inotify (0.9.8)
141
147
  ffi (>= 0.5.0)
142
- request_store (1.3.1)
143
- rspec (3.4.0)
144
- rspec-core (~> 3.4.0)
145
- rspec-expectations (~> 3.4.0)
146
- rspec-mocks (~> 3.4.0)
147
- rspec-core (3.4.4)
148
- rspec-support (~> 3.4.0)
149
- rspec-expectations (3.4.0)
148
+ request_store (1.3.2)
149
+ rspec (3.5.0)
150
+ rspec-core (~> 3.5.0)
151
+ rspec-expectations (~> 3.5.0)
152
+ rspec-mocks (~> 3.5.0)
153
+ rspec-core (3.5.4)
154
+ rspec-support (~> 3.5.0)
155
+ rspec-expectations (3.5.0)
150
156
  diff-lcs (>= 1.2.0, < 2.0)
151
- rspec-support (~> 3.4.0)
152
- rspec-mocks (3.4.1)
157
+ rspec-support (~> 3.5.0)
158
+ rspec-mocks (3.5.0)
153
159
  diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.4.0)
155
- rspec-rails (3.4.2)
156
- actionpack (>= 3.0, < 4.3)
157
- activesupport (>= 3.0, < 4.3)
158
- railties (>= 3.0, < 4.3)
159
- rspec-core (~> 3.4.0)
160
- rspec-expectations (~> 3.4.0)
161
- rspec-mocks (~> 3.4.0)
162
- rspec-support (~> 3.4.0)
163
- rspec-support (3.4.1)
160
+ rspec-support (~> 3.5.0)
161
+ rspec-rails (3.5.2)
162
+ actionpack (>= 3.0)
163
+ activesupport (>= 3.0)
164
+ railties (>= 3.0)
165
+ rspec-core (~> 3.5.0)
166
+ rspec-expectations (~> 3.5.0)
167
+ rspec-mocks (~> 3.5.0)
168
+ rspec-support (~> 3.5.0)
169
+ rspec-support (3.5.0)
164
170
  ruby_dep (1.5.0)
165
171
  shellany (0.0.1)
172
+ simplecov (0.12.0)
173
+ docile (~> 1.1.0)
174
+ json (>= 1.8, < 3)
175
+ simplecov-html (~> 0.10.0)
176
+ simplecov-html (0.10.0)
166
177
  slop (3.6.0)
167
- sprockets (3.7.0)
178
+ sprockets (3.7.1)
168
179
  concurrent-ruby (~> 1.0)
169
180
  rack (> 1, < 3)
170
181
  sprockets-rails (3.2.0)
171
182
  actionpack (>= 4.0)
172
183
  activesupport (>= 4.0)
173
184
  sprockets (>= 3.0.0)
174
- sqlite3 (1.3.12)
175
- thor (0.19.1)
176
- thread_safe (0.3.5)
177
- tzinfo (1.2.2)
185
+ sqlite3 (1.3.13)
186
+ term-ansicolor (1.4.1)
187
+ tins (~> 1.0)
188
+ thor (0.19.4)
189
+ thread_safe (0.3.6)
190
+ tins (1.13.2)
191
+ tzinfo (1.2.3)
178
192
  thread_safe (~> 0.1)
179
193
 
180
194
  PLATFORMS
181
195
  ruby
182
196
 
183
197
  DEPENDENCIES
198
+ coveralls
184
199
  draper (~> 2.1.0)
185
200
  enumerize (~> 1, >= 1.1.1)
186
201
  guard-rspec (~> 4.7)
@@ -191,4 +206,4 @@ DEPENDENCIES
191
206
  sqlite3
192
207
 
193
208
  BUNDLED WITH
194
- 1.13.3
209
+ 1.14.6
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Human Attributes
1
+ # Human Attributes [![Gem Version](https://badge.fury.io/rb/human_attributes.svg)](https://badge.fury.io/rb/human_attributes) [![Build Status](https://travis-ci.org/platanus/human_attributes.svg?branch=master)](https://travis-ci.org/platanus/human_attributes) [![Coverage Status](https://coveralls.io/repos/github/platanus/human_attributes/badge.svg)](https://coveralls.io/github/platanus/human_attributes)
2
2
 
3
3
  It's a Gem to convert ActiveRecord models' attributes and methods to human readable representations of these.
4
4
 
@@ -28,4 +28,5 @@ Gem::Specification.new do |s|
28
28
  s.add_development_dependency "sqlite3"
29
29
  s.add_development_dependency "rspec-rails", "~> 3.4"
30
30
  s.add_development_dependency "guard-rspec", "~> 4.7"
31
+ s.add_development_dependency "coveralls"
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module HumanAttributes
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
data/spec/rails_helper.rb CHANGED
@@ -1,3 +1,23 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter::new(formatters)
6
+
7
+ SimpleCov.start do
8
+ add_filter do |src|
9
+ r = [
10
+ src.filename =~ /lib/,
11
+ src.filename =~ /models/,
12
+ src.filename =~ /controllers/
13
+ ].uniq
14
+ r.count == 1 && r.first.nil?
15
+ end
16
+
17
+ add_filter "engine.rb"
18
+ add_filter "spec.rb"
19
+ end
20
+
1
21
  ENV["RAILS_ENV"] ||= "test"
2
22
  require File.expand_path("../../spec/dummy/config/environment", __FILE__)
3
23
  abort("The Rails environment is running in production mode!") if Rails.env.production?
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.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-19 00:00:00.000000000 Z
12
+ date: 2017-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -149,6 +149,20 @@ dependencies:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
151
  version: '4.7'
152
+ - !ruby/object:Gem::Dependency
153
+ name: coveralls
154
+ requirement: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ type: :development
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
152
166
  description: Gem to convert ActiveRecord attributes and methods to human readable
153
167
  attributes
154
168
  email:
@@ -158,9 +172,13 @@ executables: []
158
172
  extensions: []
159
173
  extra_rdoc_files: []
160
174
  files:
175
+ - ".coveralls.yml"
161
176
  - ".gitignore"
177
+ - ".hound.yml"
162
178
  - ".rspec"
179
+ - ".rubocop.yml"
163
180
  - ".ruby-version"
181
+ - ".travis.yml"
164
182
  - CHANGELOG.md
165
183
  - Gemfile
166
184
  - Gemfile.lock
@@ -217,11 +235,9 @@ files:
217
235
  - spec/dummy/config/locales/en.yml
218
236
  - spec/dummy/config/routes.rb
219
237
  - spec/dummy/config/secrets.yml
220
- - spec/dummy/db/development.sqlite3
221
238
  - spec/dummy/db/migrate/20161113032308_create_purchases.rb
222
239
  - spec/dummy/db/schema.rb
223
240
  - spec/dummy/db/test.sqlite3
224
- - spec/dummy/log/development.log
225
241
  - spec/dummy/log/test.log
226
242
  - spec/dummy/public/404.html
227
243
  - spec/dummy/public/422.html
@@ -254,11 +270,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
270
  version: '0'
255
271
  requirements: []
256
272
  rubyforge_project:
257
- rubygems_version: 2.5.1
273
+ rubygems_version: 2.4.5
258
274
  signing_key:
259
275
  specification_version: 4
260
276
  summary: Gem to generate human readable ActiveRecord attributes
261
277
  test_files:
278
+ - spec/dummy/README.rdoc
279
+ - spec/dummy/Rakefile
262
280
  - spec/dummy/app/assets/javascripts/application.js
263
281
  - spec/dummy/app/assets/stylesheets/application.css
264
282
  - spec/dummy/app/controllers/application_controller.rb
@@ -270,6 +288,7 @@ test_files:
270
288
  - spec/dummy/bin/rails
271
289
  - spec/dummy/bin/rake
272
290
  - spec/dummy/bin/setup
291
+ - spec/dummy/config.ru
273
292
  - spec/dummy/config/application.rb
274
293
  - spec/dummy/config/boot.rb
275
294
  - spec/dummy/config/database.yml
@@ -288,19 +307,14 @@ test_files:
288
307
  - spec/dummy/config/locales/en.yml
289
308
  - spec/dummy/config/routes.rb
290
309
  - spec/dummy/config/secrets.yml
291
- - spec/dummy/config.ru
292
- - spec/dummy/db/development.sqlite3
293
310
  - spec/dummy/db/migrate/20161113032308_create_purchases.rb
294
311
  - spec/dummy/db/schema.rb
295
312
  - spec/dummy/db/test.sqlite3
296
- - spec/dummy/log/development.log
297
313
  - spec/dummy/log/test.log
298
314
  - spec/dummy/public/404.html
299
315
  - spec/dummy/public/422.html
300
316
  - spec/dummy/public/500.html
301
317
  - spec/dummy/public/favicon.ico
302
- - spec/dummy/Rakefile
303
- - spec/dummy/README.rdoc
304
318
  - spec/dummy/spec/assets/image.png
305
319
  - spec/dummy/spec/assets/video.mp4
306
320
  - spec/dummy/spec/factories/purchases.rb