material-components-web 2.0.2 → 2.0.3

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
  SHA256:
3
- metadata.gz: 4b6872e20a4ad80f8783c1dbe598c9b87ae91fd9c2eb4cb091a6cc4eb5ff31b3
4
- data.tar.gz: fefc7a494f9452130e66344398331bc39b9965a1b3ae09b0b0cf0b56eeda1205
3
+ metadata.gz: d32a229ac0fd458f42503ece88e74dccb6b968ffd4e3a99047f8982244e87645
4
+ data.tar.gz: 5ef03e4d6ff2cf0d0aa1c9f223256332858e26495be146b92c2a9259f58f0e5a
5
5
  SHA512:
6
- metadata.gz: 7f0084396e351c768690a6ca58f12bab332732b80d0cf614395ee0cac9ac0ea8b995a06d1584a037fef8370e1d077e4265a4a88cae327bc052432007386da0e5
7
- data.tar.gz: c532f9e5446d1e0ca93096b35f6690e2c383f1a0b42df26e8de16763661d03ab433569d928e72e840ac464b1d60dc330cf2ab598d8c7dd8efa705d889063301f
6
+ metadata.gz: 659aa76b325ca22539fd2500574d03164d2634bc9583e5a6c9160273fa1935a215563956d274ed8323b61a3c889ee067e14512250821e54576836500128aef2a
7
+ data.tar.gz: af885c1f22bc7feb7b670050d56d8a234879794f7bc0f2441d5b505de5e26f50a36190eab0111155db580096d76a4d8c5742468434c7d23f2a712f802271fed8
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.3 - 2018/01/13
8
+
9
+ * bugfixes
10
+ * fixed `mdc-checkbox` `checked` option
11
+
7
12
  ### 2.0.2 - 2018/01/12
8
13
 
9
14
  * bugfixes
@@ -1,8 +1,10 @@
1
1
  <div class="mdc-checkbox<%= ' mdc-checkbox--disabled' if options[:disabled] %>">
2
2
  <input value="0" type="hidden" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" />
3
- <input checked="<%= options[:checked] %>" class="mdc-checkbox__native-control" type="checkbox" value="1" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>" />
3
+ <input type="checkbox" class="mdc-checkbox__native-control"<%= ' checked="true"' if options[:checked] %> value="1" name="<%= options[:class_name] ? options[:class_name].to_s + '[' + options[:attribute].to_s + ']' : options[:attribute].to_s %>" id="<%= options[:class_name] ? options[:class_name].to_s + '_' + options[:attribute].to_s : options[:attribute].to_s %>" />
4
4
  <div class="mdc-checkbox__background">
5
- <svg class='mdc-checkbox__checkmark' viewBox='0 0 24 24'><path class='mdc-checkbox__checkmark__path' fill='none' stroke='white' d='M1.73,12.91 8.1,19.28 22.79,4.59'/></svg>
5
+ <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
6
+ <path class="mdc-checkbox__checkmark__path" fill="none" stroke="white" d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
7
+ </svg>
6
8
  <div class="mdc-checkbox__mixedmark"></div>
7
9
  </div>
8
10
  </div>
@@ -3,7 +3,7 @@ require 'rails/railtie'
3
3
  module MaterialComponentsWeb
4
4
  class Railtie < Rails::Railtie
5
5
 
6
- config.after_initialize do
6
+ initializer 'material-components-web.mozaic' do
7
7
  Mozaic.configure do |config|
8
8
  config.define_component 'mdc-checkbox', class_name: false, label: false, checked: false, disabled: false
9
9
  config.define_component 'mdc-form-field'
@@ -1,5 +1,5 @@
1
1
  module MaterialComponentsWeb
2
2
 
3
- VERSION = '2.0.2'
3
+ VERSION = '2.0.3'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material-components-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties