simple_form_materialize 1.0.1 → 1.1.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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +54 -0
- data/.github/CONTRIBUTING.md +17 -0
- data/.github/ISSUE_TEMPLATE.md +21 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- data/.rubocop.yml +1192 -309
- data/.ruby-version +1 -1
- data/CHANGELOG.md +10 -1
- data/Gemfile +3 -0
- data/Gemfile.lock +85 -79
- data/Rakefile +6 -16
- data/lib/generators/simple_form_materialize/install_generator.rb +1 -0
- data/lib/generators/templates/assets/javascripts/init_form_materialize.coffee +5 -1
- data/lib/generators/templates/config/initializers/simple_form_components.rb +1 -0
- data/lib/generators/templates/config/initializers/simple_form_materialize.rb +13 -13
- data/lib/simple_form_materialize.rb +1 -0
- data/lib/simple_form_materialize/version.rb +2 -1
- data/simple_form_materialize.gemspec +1 -1
- data/test/lib/install_generator_test.rb +1 -0
- data/test/simple_form_materialize_test.rb +1 -0
- data/test/test_helper.rb +1 -0
- metadata +9 -6
- data/circle.yml +0 -21
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## v1.1.0
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
- Various Enhancements to the repo (Issue #4)
|
7
|
+
|
8
|
+
#### Bugs
|
9
|
+
- Fix Input upload (Issue #3)
|
10
|
+
- Resolve dependency Issues (Issue #1)
|
11
|
+
|
3
12
|
## v1.0.1
|
4
|
-
Fix ReadMe typos
|
13
|
+
- Fix ReadMe typos
|
5
14
|
|
6
15
|
## v1.0.0
|
7
16
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_form_materialize (1.0
|
5
|
-
railties (>= 4.1.0, < 5.
|
4
|
+
simple_form_materialize (1.1.0)
|
5
|
+
railties (>= 4.1.0, < 5.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.0.
|
11
|
-
actionpack (= 5.0.
|
12
|
-
nio4r (
|
10
|
+
actioncable (5.0.6)
|
11
|
+
actionpack (= 5.0.6)
|
12
|
+
nio4r (>= 1.2, < 3.0)
|
13
13
|
websocket-driver (~> 0.6.1)
|
14
|
-
actionmailer (5.0.
|
15
|
-
actionpack (= 5.0.
|
16
|
-
actionview (= 5.0.
|
17
|
-
activejob (= 5.0.
|
14
|
+
actionmailer (5.0.6)
|
15
|
+
actionpack (= 5.0.6)
|
16
|
+
actionview (= 5.0.6)
|
17
|
+
activejob (= 5.0.6)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.0.
|
21
|
-
actionview (= 5.0.
|
22
|
-
activesupport (= 5.0.
|
20
|
+
actionpack (5.0.6)
|
21
|
+
actionview (= 5.0.6)
|
22
|
+
activesupport (= 5.0.6)
|
23
23
|
rack (~> 2.0)
|
24
24
|
rack-test (~> 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.0.
|
28
|
-
activesupport (= 5.0.
|
27
|
+
actionview (5.0.6)
|
28
|
+
activesupport (= 5.0.6)
|
29
29
|
builder (~> 3.1)
|
30
30
|
erubis (~> 2.7.0)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
33
|
-
activejob (5.0.
|
34
|
-
activesupport (= 5.0.
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.0.6)
|
34
|
+
activesupport (= 5.0.6)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.0.
|
37
|
-
activesupport (= 5.0.
|
38
|
-
activerecord (5.0.
|
39
|
-
activemodel (= 5.0.
|
40
|
-
activesupport (= 5.0.
|
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
41
|
arel (~> 7.0)
|
42
|
-
activesupport (5.0.
|
42
|
+
activesupport (5.0.6)
|
43
43
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
44
|
i18n (~> 0.7)
|
45
45
|
minitest (~> 5.1)
|
@@ -47,89 +47,92 @@ GEM
|
|
47
47
|
arel (7.1.4)
|
48
48
|
ast (2.3.0)
|
49
49
|
builder (3.2.3)
|
50
|
-
codeclimate-test-reporter (1.0.
|
50
|
+
codeclimate-test-reporter (1.0.7)
|
51
51
|
simplecov
|
52
|
-
concurrent-ruby (1.0.
|
52
|
+
concurrent-ruby (1.0.5)
|
53
|
+
crass (1.0.3)
|
53
54
|
docile (1.1.5)
|
54
55
|
erubis (2.7.0)
|
55
|
-
globalid (0.
|
56
|
-
activesupport (>= 4.
|
57
|
-
i18n (0.
|
58
|
-
|
59
|
-
|
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)
|
60
63
|
nokogiri (>= 1.5.9)
|
61
|
-
mail (2.
|
62
|
-
|
63
|
-
method_source (0.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
ast (~> 2.2)
|
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)
|
76
78
|
powerpack (0.1.1)
|
77
|
-
rack (2.0.
|
79
|
+
rack (2.0.3)
|
78
80
|
rack-test (0.6.3)
|
79
81
|
rack (>= 1.0)
|
80
|
-
rails (5.0.
|
81
|
-
actioncable (= 5.0.
|
82
|
-
actionmailer (= 5.0.
|
83
|
-
actionpack (= 5.0.
|
84
|
-
actionview (= 5.0.
|
85
|
-
activejob (= 5.0.
|
86
|
-
activemodel (= 5.0.
|
87
|
-
activerecord (= 5.0.
|
88
|
-
activesupport (= 5.0.
|
89
|
-
bundler (>= 1.3.0
|
90
|
-
railties (= 5.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)
|
91
93
|
sprockets-rails (>= 2.0.0)
|
92
|
-
rails-dom-testing (2.0.
|
93
|
-
activesupport (>= 4.2.0
|
94
|
-
nokogiri (
|
94
|
+
rails-dom-testing (2.0.3)
|
95
|
+
activesupport (>= 4.2.0)
|
96
|
+
nokogiri (>= 1.6)
|
95
97
|
rails-html-sanitizer (1.0.3)
|
96
98
|
loofah (~> 2.0)
|
97
|
-
railties (5.0.
|
98
|
-
actionpack (= 5.0.
|
99
|
-
activesupport (= 5.0.
|
99
|
+
railties (5.0.6)
|
100
|
+
actionpack (= 5.0.6)
|
101
|
+
activesupport (= 5.0.6)
|
100
102
|
method_source
|
101
103
|
rake (>= 0.8.7)
|
102
104
|
thor (>= 0.18.1, < 2.0)
|
103
|
-
rainbow (
|
104
|
-
rake (12.
|
105
|
-
rubocop (0.
|
106
|
-
|
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)
|
107
110
|
powerpack (~> 0.1)
|
108
|
-
rainbow (>=
|
111
|
+
rainbow (>= 2.2.2, < 4.0)
|
109
112
|
ruby-progressbar (~> 1.7)
|
110
113
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
111
|
-
ruby-progressbar (1.
|
112
|
-
simplecov (0.
|
114
|
+
ruby-progressbar (1.9.0)
|
115
|
+
simplecov (0.15.1)
|
113
116
|
docile (~> 1.1.0)
|
114
117
|
json (>= 1.8, < 3)
|
115
118
|
simplecov-html (~> 0.10.0)
|
116
|
-
simplecov-html (0.10.
|
119
|
+
simplecov-html (0.10.2)
|
117
120
|
sprockets (3.7.1)
|
118
121
|
concurrent-ruby (~> 1.0)
|
119
122
|
rack (> 1, < 3)
|
120
|
-
sprockets-rails (3.2.
|
123
|
+
sprockets-rails (3.2.1)
|
121
124
|
actionpack (>= 4.0)
|
122
125
|
activesupport (>= 4.0)
|
123
126
|
sprockets (>= 3.0.0)
|
124
|
-
thor (0.
|
125
|
-
thread_safe (0.3.
|
126
|
-
tzinfo (1.2.
|
127
|
+
thor (0.20.0)
|
128
|
+
thread_safe (0.3.6)
|
129
|
+
tzinfo (1.2.4)
|
127
130
|
thread_safe (~> 0.1)
|
128
|
-
unicode-display_width (1.
|
131
|
+
unicode-display_width (1.3.0)
|
129
132
|
websocket-driver (0.6.5)
|
130
133
|
websocket-extensions (>= 0.1.0)
|
131
|
-
websocket-extensions (0.1.
|
132
|
-
yard (0.9.
|
134
|
+
websocket-extensions (0.1.3)
|
135
|
+
yard (0.9.12)
|
133
136
|
|
134
137
|
PLATFORMS
|
135
138
|
ruby
|
@@ -143,5 +146,8 @@ DEPENDENCIES
|
|
143
146
|
simplecov
|
144
147
|
yard
|
145
148
|
|
149
|
+
RUBY VERSION
|
150
|
+
ruby 2.4.1p111
|
151
|
+
|
146
152
|
BUNDLED WITH
|
147
|
-
1.
|
153
|
+
1.16.1
|
data/Rakefile
CHANGED
@@ -1,29 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
4
|
require "rake/testtask"
|
3
5
|
require "rubocop/rake_task"
|
4
6
|
|
5
|
-
if ENV['CIRCLECI']
|
6
|
-
dir = File.join(ENV['CIRCLE_ARTIFACTS'], 'linters')
|
7
|
-
end
|
8
|
-
|
9
7
|
Rake::TestTask.new(:test) do |t|
|
10
8
|
t.libs << "test"
|
11
9
|
t.libs << "lib"
|
12
|
-
t.test_files = FileList[
|
10
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
13
11
|
end
|
14
12
|
|
15
|
-
desc
|
16
|
-
task
|
17
|
-
outputpath =
|
18
|
-
if ENV['CIRCLECI']
|
19
|
-
"#{dir}/rubocop-results.html"
|
20
|
-
else
|
21
|
-
'rubocop-results.html'
|
22
|
-
end
|
13
|
+
desc "Rubocop Task"
|
14
|
+
task(:rubocop) do
|
23
15
|
RuboCop::RakeTask.new do |t|
|
24
|
-
t.options = [
|
25
|
-
'-c', '.rubocop.yml', '-D', '-f', 'html', '-o', outputpath,
|
26
|
-
]
|
16
|
+
t.options = ["-c", ".rubocop.yml", "-D"]
|
27
17
|
t.fail_on_error = true
|
28
18
|
end
|
29
19
|
end
|
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
document.addEventListener 'turbolinks:load', ->
|
2
|
+
$('.slider').slider();
|
3
|
+
$('.carousel').carousel();
|
4
|
+
$('.dropdown-button').dropdown()
|
5
|
+
$('.button-collapse').sideNav()
|
2
6
|
$('input, textarea').characterCounter()
|
3
7
|
$('textarea').trigger('autoresize')
|
4
8
|
$('select').material_select()
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
# Use this setup block to configure all options available in SimpleForm.
|
3
4
|
SimpleForm.setup do |config|
|
4
5
|
config.error_notification_class = "alert alert-danger"
|
@@ -183,25 +184,24 @@ SimpleForm.setup do |config|
|
|
183
184
|
b.use :input
|
184
185
|
b.use :hint, wrap_with: { tag: "span", class: "help-text" }
|
185
186
|
end
|
186
|
-
|
187
187
|
# File Upload
|
188
|
-
config.wrappers :materialize_file_input,
|
189
|
-
tag: "div", class: "file-field input-field col s12" do |b|
|
190
|
-
# Form Extensions
|
188
|
+
config.wrappers :materialize_file_input, tag: 'div', class: 'file-field input-field col s12' do |b|
|
191
189
|
b.use :html5
|
190
|
+
b.optional :readonly
|
192
191
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
ba.use :input
|
192
|
+
b.wrapper :button_wrapper, tag: 'div', class: 'btn' do |button_wrapper|
|
193
|
+
button_wrapper.use :label_text, wrap_with: { tag: :span }
|
194
|
+
button_wrapper.use :input
|
197
195
|
end
|
198
|
-
|
199
|
-
|
200
|
-
|
196
|
+
|
197
|
+
b.wrapper :path_validate, tag: 'div', class: 'file-path-wrapper' do |path_validate_wrapper|
|
198
|
+
path_validate_wrapper.wrapper :path_validate_input, tag: 'input', class: 'file-path validate', type: 'text' do
|
199
|
+
end
|
201
200
|
end
|
202
|
-
b.use :hint, wrap_with: { tag: "span", class: "help-text" }
|
203
|
-
end
|
204
201
|
|
202
|
+
b.use :hint, wrap_with: { tag: :span, class: 'help-block' }
|
203
|
+
b.use :error, wrap_with: { tag: :span, class: 'error-block' }
|
204
|
+
end
|
205
205
|
# Multiple File Upload
|
206
206
|
config.wrappers :materialize_multiple_file_input,
|
207
207
|
tag: "div", class: "file-field input-field col s12" do |b|
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form_materialize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
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-
|
11
|
+
date: 2017-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.1.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '5.
|
22
|
+
version: '5.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.1.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '5.
|
32
|
+
version: '5.2'
|
33
33
|
description: This Gem provides a generator for a Materialized simple_form config file
|
34
34
|
email:
|
35
35
|
- pezza.chris@gmail.com
|
@@ -37,7 +37,11 @@ executables: []
|
|
37
37
|
extensions: []
|
38
38
|
extra_rdoc_files: []
|
39
39
|
files:
|
40
|
+
- ".circleci/config.yml"
|
40
41
|
- ".codeclimate.yml"
|
42
|
+
- ".github/CONTRIBUTING.md"
|
43
|
+
- ".github/ISSUE_TEMPLATE.md"
|
44
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
41
45
|
- ".gitignore"
|
42
46
|
- ".rubocop.yml"
|
43
47
|
- ".ruby-version"
|
@@ -52,7 +56,6 @@ files:
|
|
52
56
|
- _config.yml
|
53
57
|
- bin/console
|
54
58
|
- bin/setup
|
55
|
-
- circle.yml
|
56
59
|
- lib/generators/simple_form_materialize/install_generator.rb
|
57
60
|
- lib/generators/templates/assets/javascripts/init_form_materialize.coffee
|
58
61
|
- lib/generators/templates/config/initializers/simple_form_components.rb
|
@@ -109,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
112
|
version: 1.3.1
|
110
113
|
requirements: []
|
111
114
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.6.
|
115
|
+
rubygems_version: 2.6.12
|
113
116
|
signing_key:
|
114
117
|
specification_version: 4
|
115
118
|
summary: Generator for Simple form config Materialized
|