devise_materialize 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d3252ef7b61963b55bcc684ac7f4b77f1a5b03f
4
- data.tar.gz: 7de33b4116b68a1b83be7654fdbc68d2021819ce
3
+ metadata.gz: 82eab7b4b87f903ca6f56b8758621e21bcb46907
4
+ data.tar.gz: 661abbcfe88a80ad3ff70956754f9885318718d5
5
5
  SHA512:
6
- metadata.gz: d9348d41e6da94bc6584b0c2c3ab26a19d9941e3c2f9a19bb1440cb6a074301576ea72eee08afa65dbc9780c81de589e9733c2ef80e9038c209ac92c5ef4e104
7
- data.tar.gz: 8d96d4f82c745ebf01a92546aab686a60e279f4f3652e92b0b9b540ea6513886b8489cf3c0189d4ac979a1ec6be1de12116b10bbe93ec764aad434edfce07096
6
+ metadata.gz: 10465e0bc4b3172081fde51307a09d32da1b28a89cb468c96cf062e8be6cf968d21f5ceaa26ca89f7aeb5e7fd54bfcc8c63eb1cc2b146c07f478472c7eec869d
7
+ data.tar.gz: 794f75ba93a5fb565429cb7da9a630b6c053a53ac4e47eabd94bd2800df0ec296a54e69d0458561baa5ef6b951b71a40394117fb692ce29535aa700d2aadb996
@@ -1,14 +1,13 @@
1
- # Ruby CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
- #
5
1
  version: 2
2
+
6
3
  jobs:
7
- build:
4
+ ruby_2_5_0:
8
5
  docker:
9
- # specify the version you desire here
10
- - image: circleci/ruby:2.4.1
6
+ - image: circleci/ruby:2.5.0
11
7
  environment:
8
+ BUNDLE_JOBS: 3
9
+ BUNDLE_RETRY: 3
10
+ BUNDLE_PATH: vendor/bundle
12
11
  RAILS_ENV: test
13
12
 
14
13
  working_directory: ~/devise_materialize
@@ -19,36 +18,224 @@ jobs:
19
18
  # Download and cache dependencies
20
19
  - restore_cache:
21
20
  keys:
22
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
21
+ - rails-bundle-v1-{{ checksum "Gemfile" }}
22
+ - rails-bundle-v1-
23
23
 
24
24
  - run:
25
- name: Install Gems
26
- command: |
27
- bundle install --jobs=4 --retry=3 --path vendor/bundle
25
+ name: Bundle Install
26
+ command: bundle check || bundle install
28
27
 
29
28
  - save_cache:
29
+ key: rails-bundle-v1-{{ checksum "Gemfile" }}
30
30
  paths:
31
- - ./vendor/bundle
32
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
31
+ - vendor/bundle
33
32
 
34
33
  # run tests!
35
34
  - run:
36
35
  name: Run Tests
37
- command: |
38
- bundle exec rake test
36
+ command: bundle exec rake test
37
+ when: always
38
+
39
+ # collect reports
40
+ - store_artifacts:
41
+ path: coverage
42
+ destination: coverage
43
+
44
+ - store_test_results:
45
+ path: test/reports
46
+
47
+ ruby_2_4_3:
48
+ docker:
49
+ - image: circleci/ruby:2.4.3
50
+ environment:
51
+ BUNDLE_JOBS: 3
52
+ BUNDLE_RETRY: 3
53
+ BUNDLE_PATH: vendor/bundle
54
+ RAILS_ENV: test
55
+
56
+ working_directory: ~/devise_materialize
57
+
58
+ steps:
59
+ - checkout
60
+
61
+ # Download and cache dependencies
62
+ - restore_cache:
63
+ keys:
64
+ - rails-bundle-v1-{{ checksum "Gemfile" }}
65
+ - rails-bundle-v1-
39
66
 
40
67
  - run:
41
- name: Install Gems for Global Usage
68
+ name: Bundle Install
69
+ command: bundle check || bundle install
70
+
71
+ - save_cache:
72
+ key: rails-bundle-v1-{{ checksum "Gemfile" }}
73
+ paths:
74
+ - vendor/bundle
75
+
76
+ # run tests!
77
+ - run:
78
+ name: Run Tests
79
+ command: bundle exec rake test
80
+ when: always
81
+
82
+ # collect reports
83
+ - store_artifacts:
84
+ path: coverage
85
+ destination: coverage
86
+
87
+ - store_test_results:
88
+ path: test/reports
89
+
90
+ ruby_2_3_6:
91
+ docker:
92
+ - image: circleci/ruby:2.3.6
93
+ environment:
94
+ BUNDLE_JOBS: 3
95
+ BUNDLE_RETRY: 3
96
+ BUNDLE_PATH: vendor/bundle
97
+ RAILS_ENV: test
98
+
99
+ working_directory: ~/devise_materialize
100
+
101
+ steps:
102
+ - checkout
103
+
104
+ # Download and cache dependencies
105
+ - restore_cache:
106
+ keys:
107
+ - rails-bundle-v1-{{ checksum "Gemfile" }}
108
+ - rails-bundle-v1-
109
+
110
+ - run:
111
+ name: Bundle Install
112
+ command: bundle check || bundle install
113
+
114
+ - save_cache:
115
+ key: rails-bundle-v1-{{ checksum "Gemfile" }}
116
+ paths:
117
+ - vendor/bundle
118
+
119
+ # run tests!
120
+ - run:
121
+ name: Run Tests
122
+ command: bundle exec rake test
123
+ when: always
124
+
125
+ # collect reports
126
+ - store_artifacts:
127
+ path: coverage
128
+ destination: coverage
129
+
130
+ - store_test_results:
131
+ path: test/reports
132
+
133
+ ruby_2_2_9:
134
+ docker:
135
+ - image: circleci/ruby:2.2.9
136
+ environment:
137
+ BUNDLE_JOBS: 3
138
+ BUNDLE_RETRY: 3
139
+ BUNDLE_PATH: vendor/bundle
140
+ RAILS_ENV: test
141
+
142
+ working_directory: ~/devise_materialize
143
+
144
+ steps:
145
+ - checkout
146
+
147
+ # Download and cache dependencies
148
+ - restore_cache:
149
+ keys:
150
+ - rails-bundle-v1-{{ checksum "Gemfile" }}
151
+ - rails-bundle-v1-
152
+
153
+ - run:
154
+ name: Bundle Install
155
+ command: bundle check || bundle install
156
+
157
+ - save_cache:
158
+ key: rails-bundle-v1-{{ checksum "Gemfile" }}
159
+ paths:
160
+ - vendor/bundle
161
+
162
+ # run tests!
163
+ - run:
164
+ name: Run Tests
165
+ command: bundle exec rake test
166
+ when: always
167
+
168
+ # collect reports
169
+ - store_artifacts:
170
+ path: coverage
171
+ destination: coverage
172
+
173
+ - store_test_results:
174
+ path: test/reports
175
+
176
+ test:
177
+ docker:
178
+ - image: circleci/ruby:2.5.0
179
+ environment:
180
+ BUNDLE_JOBS: 3
181
+ BUNDLE_RETRY: 3
182
+ BUNDLE_PATH: vendor/bundle
183
+ RAILS_ENV: test
184
+
185
+ working_directory: ~/devise_materialize
186
+
187
+ steps:
188
+ - checkout
189
+
190
+ # Download and cache dependencies
191
+ - restore_cache:
192
+ keys:
193
+ - rails-bundle-v1-{{ checksum "Gemfile" }}
194
+ - rails-bundle-v1-
195
+
196
+ - run:
197
+ name: Bundle Install
198
+ command: bundle check || bundle install
199
+
200
+ - save_cache:
201
+ key: rails-bundle-v1-{{ checksum "Gemfile" }}
202
+ paths:
203
+ - vendor/bundle
204
+
205
+ # run tests!
206
+ - run:
207
+ name: Setup Code Climate test-reporter
42
208
  command: |
43
- gem install rubocop
209
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
210
+ chmod +x ./cc-test-reporter
44
211
 
45
212
  - run:
46
- name: Run Linters
213
+ name: Run Tests
47
214
  command: |
48
- bundle exec rake rubocop
49
- bundle exec codeclimate-test-reporter
215
+ ./cc-test-reporter before-build
216
+ bundle exec rake test
217
+ ./cc-test-reporter after-build
218
+ when: always
50
219
 
51
220
  # collect reports
52
221
  - store_artifacts:
53
222
  path: coverage
54
223
  destination: coverage
224
+
225
+ - store_test_results:
226
+ path: test/reports
227
+
228
+ workflows:
229
+ version: 2
230
+ ruby-versions-and-test:
231
+ jobs:
232
+ - ruby_2_5_0
233
+ - ruby_2_4_3
234
+ - ruby_2_3_6
235
+ - ruby_2_2_9
236
+ - test:
237
+ requires:
238
+ - ruby_2_5_0
239
+ - ruby_2_4_3
240
+ - ruby_2_3_6
241
+ - ruby_2_2_9
@@ -1,18 +1,45 @@
1
- ---
2
- engines:
3
- duplication:
1
+ version: "2"
2
+
3
+ checks:
4
+ argument-count:
4
5
  enabled: true
5
6
  config:
6
- languages:
7
- - ruby
8
- fixme:
7
+ threshold: 4
8
+ complex-logic:
9
9
  enabled: true
10
- rubocop:
10
+ config:
11
+ threshold: 4
12
+ file-lines:
13
+ enabled: true
14
+ config:
15
+ threshold: 250
16
+ method-complexity:
17
+ enabled: true
18
+ config:
19
+ threshold: 5
20
+ method-count:
21
+ enabled: true
22
+ config:
23
+ threshold: 20
24
+ method-lines:
25
+ enabled: true
26
+ config:
27
+ threshold: 25
28
+ nested-control-flow:
29
+ enabled: true
30
+ config:
31
+ threshold: 4
32
+ return-statements:
33
+ enabled: true
34
+ config:
35
+ threshold: 4
36
+ similar-code:
37
+ enabled: true
38
+ identical-code:
11
39
  enabled: true
12
- ratings:
13
- paths:
14
- - "**.rb"
15
- exclude_paths:
16
- - vendor/
17
- - test/rails_app
18
- - lib/generators/templates
40
+ plugins:
41
+ rubocop:
42
+ enabled: true
43
+ exclude_patterns:
44
+ - test/rails_app
45
+ - lib/generators/templates
data/.gitignore CHANGED
@@ -43,13 +43,9 @@ build-iPhoneSimulator/
43
43
 
44
44
  # for a library or gem, you might want to ignore these files since the code is
45
45
  # intended to run in multiple environments; otherwise, check them in:
46
- # Gemfile.lock
47
- # .ruby-version
46
+ Gemfile.lock
47
+ .ruby-version
48
48
  # .ruby-gemset
49
49
 
50
50
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
51
  .rvmrc
52
-
53
-
54
- # Linter outputs
55
- rubocop-results.html
@@ -8,7 +8,7 @@ AllCops:
8
8
  - test/rails_app/**/*
9
9
  - test/tmp/**/*
10
10
  - lib/generators/templates/**/*
11
- TargetRubyVersion: 2.4
11
+ TargetRubyVersion: 2.2
12
12
 
13
13
  # Department Bundler
14
14
  Bundler/DuplicatedGem:
data/.yardopts CHANGED
@@ -1 +1,2 @@
1
1
  --exclude /templates/
2
+ --exclude /test/rails_app/
@@ -1,12 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## v1.1.1
4
+
5
+ #### Features
6
+ - Enable Circleci testing for 2.2, 2.3, 2.4, and 2.5
7
+
8
+ #### Bugs
9
+ - N/A
10
+
11
+
3
12
  ## v1.1.0
4
13
 
5
14
  #### Features
6
- - Touch up Repo with various items (Issue #2)
15
+ - Touch up Repo with various items (#2)
7
16
 
8
17
  #### Bugs
9
- - Fix ERB markup (Issue #1)
18
+ - Fix ERB markup (#1)
10
19
 
11
20
  ## v1.0.0
12
21
 
data/Gemfile CHANGED
@@ -2,16 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- ruby "2.4.1"
6
-
7
5
  gemspec
8
6
 
9
- gem "minitest-ci"
10
- gem "rails", "~> 5.0.0"
7
+ gem "rails"
11
8
  gem "rubocop"
12
9
  gem "simplecov"
13
10
  gem "yard"
14
11
 
15
12
  group :test do
16
13
  gem "codeclimate-test-reporter", require: false
14
+ gem "minitest-ci"
17
15
  end
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # Devise Materialize
2
2
 
3
- [![Gem](https://img.shields.io/gem/v/devise_materialize.svg?style=flat-square)](https://rubygems.org/gems/devise_materialize)
4
- [![CircleCI](https://img.shields.io/circleci/project/github/techgurupezza/devise_materialize.svg?style=flat-square)](https://circleci.com/gh/techgurupezza/devise_materialize)
3
+ [![CircleCI](https://circleci.com/gh/techgurupezza/devise_materialize.svg?style=svg)](https://circleci.com/gh/techgurupezza/devise_materialize)
5
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/aa4da7ff94af7db3bc66/maintainability)](https://codeclimate.com/github/techgurupezza/devise_materialize/maintainability)
6
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/aa4da7ff94af7db3bc66/test_coverage)](https://codeclimate.com/github/techgurupezza/devise_materialize/test_coverage)
7
- [![Gemnasium](https://img.shields.io/gemnasium/mathiasbynens/he.svg?style=flat-square)](https://gemnasium.com/github.com/techgurupezza/devise_materialize)
8
6
  [![Gem](https://img.shields.io/gem/dt/devise_materialize.svg?style=flat-square)](https://rubygems.org/gems/devise_materialize)
7
+ [![Gem](https://img.shields.io/gem/v/devise_materialize.svg?style=flat-square)](https://rubygems.org/gems/devise_materialize)
9
8
 
10
9
 
11
10
  Devise Materialize gem is here to generate you devise view in a materialize styled format with or w/o simple_form.
@@ -31,7 +30,7 @@ gem "slim"
31
30
  # Required if using Simple Form
32
31
  gem "simple_form"
33
32
 
34
- gem "devise_materialize", "~>1.1.0"
33
+ gem "devise_materialize", "~>1.1.1"
35
34
  ```
36
35
 
37
36
  ## Usage
data/Rakefile CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "bundler/gem_tasks"
4
4
  require "rake/testtask"
5
- require "rubocop/rake_task"
6
5
 
7
6
  Rake::TestTask.new(:test) do |t|
8
7
  t.libs << "test"
@@ -10,12 +9,4 @@ Rake::TestTask.new(:test) do |t|
10
9
  t.test_files = FileList["test/**/*_test.rb"]
11
10
  end
12
11
 
13
- desc "Rubocop Task"
14
- task(:rubocop) do
15
- RuboCop::RakeTask.new do |t|
16
- t.options = ["-c", ".rubocop.yml", "-D"]
17
- t.fail_on_error = true
18
- end
19
- end
20
-
21
12
  task default: :test
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.test_files = `git ls-files -- test/*`.split("\n")
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.required_ruby_version = ">= 2.4.0"
25
+ spec.required_ruby_version = ">= 2.2"
26
26
  spec.required_rubygems_version = "> 1.3.1"
27
27
 
28
28
  spec.add_dependency("railties", ">= 4.1.0", "< 5.2")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseMaterialize
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_materialize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-24 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -45,12 +45,10 @@ files:
45
45
  - ".github/PULL_REQUEST_TEMPLATE.md"
46
46
  - ".gitignore"
47
47
  - ".rubocop.yml"
48
- - ".ruby-version"
49
48
  - ".yardopts"
50
49
  - CHANGELOG.md
51
50
  - CODE_OF_CONDUCT.md
52
51
  - Gemfile
53
- - Gemfile.lock
54
52
  - LICENSE.txt
55
53
  - README.md
56
54
  - Rakefile
@@ -177,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
175
  requirements:
178
176
  - - ">="
179
177
  - !ruby/object:Gem::Version
180
- version: 2.4.0
178
+ version: '2.2'
181
179
  required_rubygems_version: !ruby/object:Gem::Requirement
182
180
  requirements:
183
181
  - - ">"
@@ -1 +0,0 @@
1
- 2.4.0
@@ -1,153 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- devise_materialize (1.1.0)
5
- railties (>= 4.1.0, < 5.2)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (5.0.6)
11
- actionpack (= 5.0.6)
12
- nio4r (>= 1.2, < 3.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.0.6)
15
- actionpack (= 5.0.6)
16
- actionview (= 5.0.6)
17
- activejob (= 5.0.6)
18
- mail (~> 2.5, >= 2.5.4)
19
- rails-dom-testing (~> 2.0)
20
- actionpack (5.0.6)
21
- actionview (= 5.0.6)
22
- activesupport (= 5.0.6)
23
- rack (~> 2.0)
24
- rack-test (~> 0.6.3)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.0.6)
28
- activesupport (= 5.0.6)
29
- builder (~> 3.1)
30
- erubis (~> 2.7.0)
31
- rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.0.6)
34
- activesupport (= 5.0.6)
35
- globalid (>= 0.3.6)
36
- activemodel (5.0.6)
37
- activesupport (= 5.0.6)
38
- activerecord (5.0.6)
39
- activemodel (= 5.0.6)
40
- activesupport (= 5.0.6)
41
- arel (~> 7.0)
42
- activesupport (5.0.6)
43
- concurrent-ruby (~> 1.0, >= 1.0.2)
44
- i18n (~> 0.7)
45
- minitest (~> 5.1)
46
- tzinfo (~> 1.1)
47
- arel (7.1.4)
48
- ast (2.3.0)
49
- builder (3.2.3)
50
- codeclimate-test-reporter (1.0.7)
51
- simplecov
52
- concurrent-ruby (1.0.5)
53
- crass (1.0.3)
54
- docile (1.1.5)
55
- erubis (2.7.0)
56
- globalid (0.4.1)
57
- activesupport (>= 4.2.0)
58
- i18n (0.9.1)
59
- concurrent-ruby (~> 1.0)
60
- json (2.1.0)
61
- loofah (2.1.1)
62
- crass (~> 1.0.2)
63
- nokogiri (>= 1.5.9)
64
- mail (2.7.0)
65
- mini_mime (>= 0.1.1)
66
- method_source (0.9.0)
67
- mini_mime (1.0.0)
68
- mini_portile2 (2.3.0)
69
- minitest (5.10.3)
70
- minitest-ci (3.3.0)
71
- minitest (>= 5.0.6)
72
- nio4r (2.1.0)
73
- nokogiri (1.8.1)
74
- mini_portile2 (~> 2.3.0)
75
- parallel (1.12.1)
76
- parser (2.4.0.2)
77
- ast (~> 2.3)
78
- powerpack (0.1.1)
79
- rack (2.0.3)
80
- rack-test (0.6.3)
81
- rack (>= 1.0)
82
- rails (5.0.6)
83
- actioncable (= 5.0.6)
84
- actionmailer (= 5.0.6)
85
- actionpack (= 5.0.6)
86
- actionview (= 5.0.6)
87
- activejob (= 5.0.6)
88
- activemodel (= 5.0.6)
89
- activerecord (= 5.0.6)
90
- activesupport (= 5.0.6)
91
- bundler (>= 1.3.0)
92
- railties (= 5.0.6)
93
- sprockets-rails (>= 2.0.0)
94
- rails-dom-testing (2.0.3)
95
- activesupport (>= 4.2.0)
96
- nokogiri (>= 1.6)
97
- rails-html-sanitizer (1.0.3)
98
- loofah (~> 2.0)
99
- railties (5.0.6)
100
- actionpack (= 5.0.6)
101
- activesupport (= 5.0.6)
102
- method_source
103
- rake (>= 0.8.7)
104
- thor (>= 0.18.1, < 2.0)
105
- rainbow (3.0.0)
106
- rake (12.3.0)
107
- rubocop (0.52.0)
108
- parallel (~> 1.10)
109
- parser (>= 2.4.0.2, < 3.0)
110
- powerpack (~> 0.1)
111
- rainbow (>= 2.2.2, < 4.0)
112
- ruby-progressbar (~> 1.7)
113
- unicode-display_width (~> 1.0, >= 1.0.1)
114
- ruby-progressbar (1.9.0)
115
- simplecov (0.15.1)
116
- docile (~> 1.1.0)
117
- json (>= 1.8, < 3)
118
- simplecov-html (~> 0.10.0)
119
- simplecov-html (0.10.2)
120
- sprockets (3.7.1)
121
- concurrent-ruby (~> 1.0)
122
- rack (> 1, < 3)
123
- sprockets-rails (3.2.1)
124
- actionpack (>= 4.0)
125
- activesupport (>= 4.0)
126
- sprockets (>= 3.0.0)
127
- thor (0.20.0)
128
- thread_safe (0.3.6)
129
- tzinfo (1.2.4)
130
- thread_safe (~> 0.1)
131
- unicode-display_width (1.3.0)
132
- websocket-driver (0.6.5)
133
- websocket-extensions (>= 0.1.0)
134
- websocket-extensions (0.1.3)
135
- yard (0.9.12)
136
-
137
- PLATFORMS
138
- ruby
139
-
140
- DEPENDENCIES
141
- codeclimate-test-reporter
142
- devise_materialize!
143
- minitest-ci
144
- rails (~> 5.0.0)
145
- rubocop
146
- simplecov
147
- yard
148
-
149
- RUBY VERSION
150
- ruby 2.4.1p111
151
-
152
- BUNDLED WITH
153
- 1.16.1