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.
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.0
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
@@ -1,6 +1,9 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source "https://rubygems.org"
3
4
 
5
+ ruby "2.4.1"
6
+
4
7
  gemspec
5
8
 
6
9
  gem "minitest-ci"
data/Gemfile.lock CHANGED
@@ -1,45 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_form_materialize (1.0.1)
5
- railties (>= 4.1.0, < 5.1)
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.1)
11
- actionpack (= 5.0.1)
12
- nio4r (~> 1.2)
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.1)
15
- actionpack (= 5.0.1)
16
- actionview (= 5.0.1)
17
- activejob (= 5.0.1)
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.1)
21
- actionview (= 5.0.1)
22
- activesupport (= 5.0.1)
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.1)
28
- activesupport (= 5.0.1)
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.2)
33
- activejob (5.0.1)
34
- activesupport (= 5.0.1)
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.1)
37
- activesupport (= 5.0.1)
38
- activerecord (5.0.1)
39
- activemodel (= 5.0.1)
40
- activesupport (= 5.0.1)
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.1)
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.5)
50
+ codeclimate-test-reporter (1.0.7)
51
51
  simplecov
52
- concurrent-ruby (1.0.4)
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.3.7)
56
- activesupport (>= 4.1.0)
57
- i18n (0.8.0)
58
- json (2.0.3)
59
- loofah (2.0.3)
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.6.4)
62
- mime-types (>= 1.16, < 4)
63
- method_source (0.8.2)
64
- mime-types (3.1)
65
- mime-types-data (~> 3.2015)
66
- mime-types-data (3.2016.0521)
67
- mini_portile2 (2.1.0)
68
- minitest (5.10.1)
69
- minitest-ci (3.1.0)
70
- minitest (~> 5.0, >= 5.0.6)
71
- nio4r (1.2.1)
72
- nokogiri (1.7.0.1)
73
- mini_portile2 (~> 2.1.0)
74
- parser (2.3.3.1)
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.1)
79
+ rack (2.0.3)
78
80
  rack-test (0.6.3)
79
81
  rack (>= 1.0)
80
- rails (5.0.1)
81
- actioncable (= 5.0.1)
82
- actionmailer (= 5.0.1)
83
- actionpack (= 5.0.1)
84
- actionview (= 5.0.1)
85
- activejob (= 5.0.1)
86
- activemodel (= 5.0.1)
87
- activerecord (= 5.0.1)
88
- activesupport (= 5.0.1)
89
- bundler (>= 1.3.0, < 2.0)
90
- railties (= 5.0.1)
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.2)
93
- activesupport (>= 4.2.0, < 6.0)
94
- nokogiri (~> 1.6)
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.1)
98
- actionpack (= 5.0.1)
99
- activesupport (= 5.0.1)
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 (2.2.1)
104
- rake (12.0.0)
105
- rubocop (0.47.1)
106
- parser (>= 2.3.3.1, < 3.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)
107
110
  powerpack (~> 0.1)
108
- rainbow (>= 1.99.1, < 3.0)
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.8.1)
112
- simplecov (0.13.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.0)
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.0)
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.19.4)
125
- thread_safe (0.3.5)
126
- tzinfo (1.2.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.1.3)
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.2)
132
- yard (0.9.8)
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.13.7
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['test/**/*_test.rb']
10
+ t.test_files = FileList["test/**/*_test.rb"]
13
11
  end
14
12
 
15
- desc 'Rubocop Task'
16
- task (:rubocop) do
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,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "rails/generators"
3
4
 
4
5
  module SimpleFormMaterialize
@@ -1,4 +1,8 @@
1
- $(document).ready ->
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
  module SimpleForm
3
4
  module Components
4
5
  module Icons
@@ -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
- # Form Components
194
- b.wrapper tag: :div, class: "btn" do |ba|
195
- ba.use :tag, tag: :span, text: :label_text
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
- b.wrapper tag: :div, class: "file-path-wrapper" do |ba|
199
- ba.use :tag, tag: :input, class: "file-path validate", type: "text",
200
- placeholder: "Browse...", error_class: "invalid"
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|
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "simple_form_materialize/version"
3
4
 
4
5
  module SimpleFormMaterialize
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module SimpleFormMaterialize
3
- VERSION = "1.0.1"
4
+ VERSION = "1.1.0"
4
5
  end
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.required_ruby_version = ">= 2.2.0"
25
25
  spec.required_rubygems_version = "> 1.3.1"
26
26
 
27
- spec.add_dependency "railties", ">= 4.1.0", "< 5.1"
27
+ spec.add_dependency "railties", ">= 4.1.0", "< 5.2"
28
28
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "test_helper"
3
4
 
4
5
  class InstallGeneratorTest < Rails::Generators::TestCase
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require "test_helper"
3
4
 
4
5
  class SimpleFormMaterializeTest < Minitest::Test
data/test/test_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ENV["RAILS_ENV"] = "test"
3
4
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
4
5
 
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.1
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-02-12 00:00:00.000000000 Z
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.1'
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.1'
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.8
115
+ rubygems_version: 2.6.12
113
116
  signing_key:
114
117
  specification_version: 4
115
118
  summary: Generator for Simple form config Materialized