parsley-rails 2.0.0.0 → 2.0.0.1

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
  SHA1:
3
- metadata.gz: c92ee750b4dbecb5cbc1743c7c46aee2defbfec0
4
- data.tar.gz: 9271de48d1b4710c440f5b3a043111499085d9f9
3
+ metadata.gz: 343a071a6edbb2d8f4c17ae00dcb5583571d0731
4
+ data.tar.gz: 1fca6a9258aad005babb98b90a2bd5c599c47f72
5
5
  SHA512:
6
- metadata.gz: bc396b1dc36870420f69085cb10804948b9a7dc0adb87d39ca42ba3e9c70450ba2d3ee2b24a6fd67543f24bbbf2142581d57c1ddb0036e881d24c8ec07180f74
7
- data.tar.gz: 9173f9187d4be45cad0b2903ac6faf01f5774fdda07223193b860d864bb8ff7d3504ff22128c625bcaa711b5ee8775c27cc4f018d7fcf67dd00e163da35efc77
6
+ metadata.gz: ba6f7c2b524a53492746b33c4ab98468ee9251ae9b4c838dc1e5d43f78eda2140ad4c0fd5dd11da1df5b62e7c9efccc3373002d81d750c6f2c32b0b3b6cdd9a6
7
+ data.tar.gz: 35525ecc87614df6a9e7db38c914467f38386a3224e09d23280b154449197fce28e2c7519e4d832e3bad2322d01165ebc2aacc31a72050d3c94f995c18bffffc
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Parsley.js 2.0.0 for Rails Asset Pipeline
2
2
 
3
- [Parsley.js](https://github.com/guillaumepotier/Parsley.js) is an awesome form validation library ([documentation](http://parsleyjs.org/doc/index.html)).
3
+ [Parsley.js](https://github.com/guillaumepotier/Parsley.js) is an awesome form validation library ([documentation](http://parsleyjs.org/doc/index.html)).
4
4
  This gem makes it easy to use it with Rails Asset Pipeline.
5
5
 
6
6
  ## Installation
@@ -20,20 +20,23 @@ Add the following to your `app/assets/javascripts/application.js`:
20
20
  //= require jquery
21
21
  //= require parsley
22
22
 
23
- To use the `remote` library, add this right after:
23
+ To use the `remote` library or a different i18n, add this right after:
24
24
 
25
25
  //= require parsley.remote
26
+ //= require parsley.i18n.fr
26
27
 
27
- Finally, if you want to use a different i18n:
28
+ Finally, if you want to use the default CSS, add the following to your
29
+ `app/assets/stylesheets/application.css`:
30
+
31
+ *= require parsley
28
32
 
29
- //= require parsley.i18n.fr
30
33
 
31
34
  See the complete [Parsley.js documentation](http://parsleyjs.org/doc/index.html).
32
35
 
33
36
  ## Versions
34
37
 
35
- The gem follows Parsley.js's versions. If the gem version is `2.0.0.0`, then `2.0.0` is a version of Parsley.js and `0`
36
- is a patch level of the gem itself.
38
+ The gem follows Parsley.js' versions. If the gem version is `2.0.0.0`, then `2.0.0` is the version of Parsley.js and `0`
39
+ is the patch level of the gem itself.
37
40
 
38
41
  ## Contributing
39
42
 
@@ -1,5 +1,5 @@
1
1
  module Parsley
2
2
  module Rails
3
- VERSION = "2.0.0.0"
3
+ VERSION = "2.0.0.1"
4
4
  end
5
5
  end
data/update.sh CHANGED
@@ -13,19 +13,21 @@ FILE_NAME="$EXTRACT_DIRECTORY.tar.gz"
13
13
  RELEASE_URL="https://github.com/guillaumepotier/Parsley.js/archive/$TAG.tar.gz"
14
14
  RELEASE_PATH="$EXTRACT_DIRECTORY/Parsley.js-$TAG"
15
15
 
16
- VENDOR_PATH="vendor/assets/javascripts"
16
+ VENDOR_JS_PATH="vendor/assets/javascripts"
17
+ VENDOR_CSS_PATH="vendor/assets/stylesheets"
17
18
 
18
19
  wget -O $FILE_NAME $RELEASE_URL
19
20
  mkdir $EXTRACT_DIRECTORY
20
21
  tar xfz $FILE_NAME -C $EXTRACT_DIRECTORY
21
22
 
22
- cp "$RELEASE_PATH/dist/parsley.js" $VENDOR_PATH
23
- cp "$RELEASE_PATH/dist/parsley.remote.js" $VENDOR_PATH
23
+ cp "$RELEASE_PATH/dist/parsley.js" $VENDOR_JS_PATH
24
+ cp "$RELEASE_PATH/dist/parsley.remote.js" $VENDOR_JS_PATH
25
+ cp "$RELEASE_PATH/src/parsley.css" $VENDOR_CSS_PATH
24
26
 
25
27
  for file in "$RELEASE_PATH/src/i18n/"*; do
26
28
  base_name=$(basename "$file")
27
29
  final_name="parsley.i18n.$(echo $base_name)"
28
- cp $file "$VENDOR_PATH/$final_name"
30
+ cp $file "$VENDOR_JS_PATH/$final_name"
29
31
  done
30
32
 
31
33
 
@@ -0,0 +1,36 @@
1
+ input.parsley-success,
2
+ select.parsley-success,
3
+ textarea.parsley-success {
4
+ color: #468847;
5
+ background-color: #DFF0D8;
6
+ border: 1px solid #D6E9C6;
7
+ }
8
+
9
+ input.parsley-error,
10
+ select.parsley-error,
11
+ textarea.parsley-error {
12
+ color: #B94A48;
13
+ background-color: #F2DEDE;
14
+ border: 1px solid #EED3D7;
15
+ }
16
+
17
+ .parsley-errors-list {
18
+ margin: 2px 0 3px 0;
19
+ padding: 0;
20
+ list-style-type: none;
21
+ font-size: 0.9em;
22
+ line-height: 0.9em;
23
+ opacity: 0;
24
+ -moz-opacity: 0;
25
+ -webkit-opacity: 0;
26
+
27
+ transition: all .3s ease-in;
28
+ -o-transition: all .3s ease-in;
29
+ -ms-transition: all .3s ease-in-;
30
+ -moz-transition: all .3s ease-in;
31
+ -webkit-transition: all .3s ease-in;
32
+ }
33
+
34
+ .parsley-errors-list.filled {
35
+ opacity: 1;
36
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsley-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.0
4
+ version: 2.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiri Pospisil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-19 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -64,6 +64,7 @@ files:
64
64
  - vendor/assets/javascripts/parsley.i18n.zh_cn.js
65
65
  - vendor/assets/javascripts/parsley.js
66
66
  - vendor/assets/javascripts/parsley.remote.js
67
+ - vendor/assets/stylesheets/parsley.css
67
68
  homepage: https://github.com/mekishizufu/parsley-rails
68
69
  licenses:
69
70
  - MIT