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 +4 -4
- data/README.md +14 -12
- data/app/assets/javascripts/materialize-form.js +8 -0
- data/lib/materialize/form/version.rb +1 -1
- data/materialize-form-1.0.3.gem +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c8f178a0f8eccb9b5717b7aceb38941dbae4e7b
|
4
|
+
data.tar.gz: 257ea9a5e75fdaaea28689eb2344024da8dbbd98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
+
|
11
|
+
```
|
11
12
|
gem 'simple_form'
|
12
13
|
gem 'materialize-sass'
|
13
14
|
```
|
14
|
-
|
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
|
-
|
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
|
-
```
|
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
|
-
```
|
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
|
-
```
|
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
|
-
|
49
|
-
|
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
|
-
```
|
120
|
+
```
|
119
121
|
$(document).on('nested:fieldAdded', function(event){
|
120
122
|
window.materializeForm.init()
|
121
123
|
})
|
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.
|
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-
|
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.
|
105
|
+
rubygems_version: 2.5.1
|
105
106
|
signing_key:
|
106
107
|
specification_version: 4
|
107
108
|
summary: Materialize - SimpleForm Generator.
|