materialize-form 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74ee9d90ad894bce3088a65402c377613aff1710
4
- data.tar.gz: 838af73f486f60e619fe3c84a9c8a37e7bc91702
3
+ metadata.gz: 8c8f178a0f8eccb9b5717b7aceb38941dbae4e7b
4
+ data.tar.gz: 257ea9a5e75fdaaea28689eb2344024da8dbbd98
5
5
  SHA512:
6
- metadata.gz: 68e8fd0045207a332d5df1e1905c9751438353eec9e38f452dca4d0eaf908e4a40a13225a39ea819ec713c57fd5d2ed40897c59bf6b87115e6d2e13f962fd3db
7
- data.tar.gz: 890a98fa3540df88937fbe79b748ea82f4e13f4e9bc49a0ae4e81a1004e50665f348fc938ef74d40287c442b1f8ed50603b2d8a025fa54271093d390d43adba7
6
+ metadata.gz: 5b3aa1d62f7ae9b5b07e96c4cabb85158d4a6c2a3173a20d6c53f10f523df8401689164e13e0dbfbf6a085fa8cda05aa5757f927cfce690c9158f5051390e033
7
+ data.tar.gz: a083b1bc6a2f262d80767b1347a866dbbf6653c82329e4330e12df789d6cc2f8406eac48b051492d38c9b4b718ac3c46f719eaec94b3651513d96e9270c5e98c
data/README.md CHANGED
@@ -7,21 +7,26 @@ There is an example application available on Heroku that demonstrate various fea
7
7
  Haven't install [SimpleForm](https://github.com/plataformatec/simple_form) and [MaterializeCSS](http://materializecss.com/)? Please follow this instruction:
8
8
 
9
9
  Add this line to your application's Gemfile:
10
- ``` ruby
10
+
11
+ ```
11
12
  gem 'simple_form'
12
13
  gem 'materialize-sass'
13
14
  ```
14
- ```console
15
+
16
+ ```
15
17
  $ bundle install
16
18
  rails generate simple_form:install
17
19
  ```
20
+
18
21
  Import Materialize styles in app/assets/stylesheets/application.scss:
19
- ```scss
22
+
23
+ ```
20
24
  @import "materialize";
21
25
  ```
26
+
22
27
  **NOTE:** If you have just generated a new Rails application, it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so remove it.
23
28
 
24
- ```console
29
+ ```
25
30
  $ rm app/assets/stylesheets/application.css
26
31
  ```
27
32
 
@@ -29,25 +34,22 @@ $ rm app/assets/stylesheets/application.css
29
34
 
30
35
  ### Step 1:
31
36
  Add this line to your application's Gemfile:
32
- ```ruby
37
+ ```
33
38
  gem 'materialize-form'
34
39
  ```
35
40
 
36
41
  ### Step 2:
37
42
  Run the bundler and restart your server to make the files available through the pipeline and run the generator
38
- ```console
43
+ ```
39
44
  $ bundle install
40
45
  $ rails generate simple_form:materialize:install
41
46
  ```
42
47
 
43
48
  ### Step 3:
44
49
  Import Materialize Form javascript in `app/assets/javascripts/application.js`:
45
- ```js
46
- //= require materialize-form
47
50
 
48
- $(document).ready(function() {
49
- window.materializeForm.init()
50
- });
51
+ ```
52
+ //= require materialize-form
51
53
  ```
52
54
 
53
55
  ## Usage
@@ -115,7 +117,7 @@ Date picker will be generated automatically if the type of the field is date.
115
117
 
116
118
  In `app/assets/javascripts/application.js`:
117
119
 
118
- ```js
120
+ ```
119
121
  $(document).on('nested:fieldAdded', function(event){
120
122
  window.materializeForm.init()
121
123
  })
@@ -18,3 +18,11 @@ window.materializeForm = {
18
18
  });
19
19
  }
20
20
  }
21
+
22
+ $(document).ready(function() {
23
+ window.materializeForm.init()
24
+ });
25
+
26
+ $(document).ajaxSuccess(function() {
27
+ window.materializeForm.init()
28
+ });
@@ -1,5 +1,5 @@
1
1
  module Materialize
2
2
  module Form
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: materialize-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James La
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,7 @@ files:
80
80
  - materialize-form-1.0.0.gem
81
81
  - materialize-form-1.0.1.gem
82
82
  - materialize-form-1.0.2.gem
83
+ - materialize-form-1.0.3.gem
83
84
  - materialize-form.gemspec
84
85
  homepage: http://materialize-form.herokuapp.com/users/new
85
86
  licenses:
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
102
  version: '0'
102
103
  requirements: []
103
104
  rubyforge_project:
104
- rubygems_version: 2.6.4
105
+ rubygems_version: 2.5.1
105
106
  signing_key:
106
107
  specification_version: 4
107
108
  summary: Materialize - SimpleForm Generator.