parsley-rails 2.0.2.0 → 2.0.3.0

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: d7b531f0bdbf8c9d14f63a4ba8a44f0de20eac14
4
- data.tar.gz: ba8fb75a8d0f67e1170345ff592d43e0897d53fa
3
+ metadata.gz: a3ead0d29389220711f24d0f8b993feeb8888022
4
+ data.tar.gz: ed85d75483846cdc1a07568a14cc0dea734367cc
5
5
  SHA512:
6
- metadata.gz: 3ae49fb759fe058a914813359a73674ea20628502464c5d811093b7a29f3ee14f86b72567c5068a8f89224061da5db2e8848e8330fe6fea64b1a8f54877de868
7
- data.tar.gz: d14a57ee5d615f314af7908bbe0daae4d68b7e7b120f054312c39a8f4d1e4f42b734c77806d534f9672406408552575a0d236ea917902fb2c1be4b7e5b512a92
6
+ metadata.gz: 88aaaebacad1390bf8bcb4e9a7b24c5eab2888d1308d95d967e3a7364fa8d7b5b81be9bb2807b8a35223fface6af9eb8a6df1cb0218df3f1f2454332fe35a8b1
7
+ data.tar.gz: af872f156ed5310f485a4399d304e1fe62df09c7c378e4e1332b079fd66535b0a335c9debdbdf612d50e86447baf79cfe1df67eb72f34bc507b73e7f482c40c3
@@ -1,5 +1,5 @@
1
1
  module Parsley
2
2
  module Rails
3
- VERSION = "2.0.2.0"
3
+ VERSION = "2.0.3.0"
4
4
  end
5
5
  end
@@ -20,10 +20,10 @@ window.ParsleyConfig.i18n.en = $.extend(window.ParsleyConfig.i18n.en || {}, {
20
20
  max: "This value should be lower than or equal to %s.",
21
21
  range: "This value should be between %s and %s.",
22
22
  minlength: "This value is too short. It should have %s characters or more.",
23
- maxlength: "This value is too long. It should have %s characters or less.",
23
+ maxlength: "This value is too long. It should have %s characters or fewer.",
24
24
  length: "This value length is invalid. It should be between %s and %s characters long.",
25
25
  mincheck: "You must select at least %s choices.",
26
- maxcheck: "You must select %s choices or less.",
26
+ maxcheck: "You must select %s choices or fewer.",
27
27
  check: "You must select between %s and %s choices.",
28
28
  equalto: "This value should be the same."
29
29
  });
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Parsleyjs
3
3
  * Guillaume Potier - <guillaume@wisembly.com>
4
- * Version 2.0.2 - built Tue Jun 17 2014 15:25:35
4
+ * Version 2.0.3 - built Mon Jul 21 2014 11:56:56
5
5
  * MIT Licensed
6
6
  *
7
7
  */
@@ -13,7 +13,11 @@
13
13
  // No AMD. Register plugin with global jQuery object.
14
14
  factory(jQuery);
15
15
  }
16
- }(function () {
16
+ }(function ($) {
17
+ // small hack for requirejs if jquery is loaded through map and not path
18
+ // see http://requirejs.org/docs/jquery.html
19
+ if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
20
+ $ = window.jQuery;
17
21
  var ParsleyUtils = {
18
22
  // Parsley DOM-API
19
23
  // returns object from dom attributes and values
@@ -968,7 +972,7 @@
968
972
  },
969
973
  // Add a specific message for a given constraint in a given locale
970
974
  addMessage: function (locale, name, message) {
971
- if (undefined === typeof this.catalog[locale])
975
+ if ('undefined' === typeof this.catalog[locale])
972
976
  this.catalog[locale] = {};
973
977
  this.catalog[locale][name.toLowerCase()] = message;
974
978
  return this;
@@ -1915,10 +1919,10 @@ window.ParsleyConfig.i18n.en = $.extend(window.ParsleyConfig.i18n.en || {}, {
1915
1919
  max: "This value should be lower than or equal to %s.",
1916
1920
  range: "This value should be between %s and %s.",
1917
1921
  minlength: "This value is too short. It should have %s characters or more.",
1918
- maxlength: "This value is too long. It should have %s characters or less.",
1922
+ maxlength: "This value is too long. It should have %s characters or fewer.",
1919
1923
  length: "This value length is invalid. It should be between %s and %s characters long.",
1920
1924
  mincheck: "You must select at least %s choices.",
1921
- maxcheck: "You must select %s choices or less.",
1925
+ maxcheck: "You must select %s choices or fewer.",
1922
1926
  check: "You must select between %s and %s choices.",
1923
1927
  equalto: "This value should be the same."
1924
1928
  });
@@ -1926,7 +1930,7 @@ window.ParsleyConfig.i18n.en = $.extend(window.ParsleyConfig.i18n.en || {}, {
1926
1930
  if ('undefined' !== typeof window.ParsleyValidator)
1927
1931
  window.ParsleyValidator.addCatalog('en', window.ParsleyConfig.i18n.en, true);
1928
1932
 
1929
- // Parsley.js 2.0.2
1933
+ // Parsley.js 2.0.3
1930
1934
  // http://parsleyjs.org
1931
1935
  // (c) 20012-2014 Guillaume Potier, Wisembly
1932
1936
  // Parsley may be freely distributed under the MIT license.
@@ -1934,7 +1938,7 @@ if ('undefined' !== typeof window.ParsleyValidator)
1934
1938
  // ### Parsley factory
1935
1939
  var Parsley = function (element, options, parsleyFormInstance) {
1936
1940
  this.__class__ = 'Parsley';
1937
- this.__version__ = '2.0.2';
1941
+ this.__version__ = '2.0.3';
1938
1942
  this.__id__ = ParsleyUtils.hash(4);
1939
1943
  // Parsley must be instanciated with a DOM element or jQuery $element
1940
1944
  if ('undefined' === typeof element)
@@ -259,7 +259,7 @@ window.ParsleyConfig.validators.remote = {
259
259
  /*!
260
260
  * Parsleyjs
261
261
  * Guillaume Potier - <guillaume@wisembly.com>
262
- * Version 2.0.2 - built Tue Jun 17 2014 15:25:35
262
+ * Version 2.0.3 - built Mon Jul 21 2014 11:56:56
263
263
  * MIT Licensed
264
264
  *
265
265
  */
@@ -271,7 +271,11 @@ window.ParsleyConfig.validators.remote = {
271
271
  // No AMD. Register plugin with global jQuery object.
272
272
  factory(jQuery);
273
273
  }
274
- }(function () {
274
+ }(function ($) {
275
+ // small hack for requirejs if jquery is loaded through map and not path
276
+ // see http://requirejs.org/docs/jquery.html
277
+ if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
278
+ $ = window.jQuery;
275
279
  var ParsleyUtils = {
276
280
  // Parsley DOM-API
277
281
  // returns object from dom attributes and values
@@ -1226,7 +1230,7 @@ window.ParsleyConfig.validators.remote = {
1226
1230
  },
1227
1231
  // Add a specific message for a given constraint in a given locale
1228
1232
  addMessage: function (locale, name, message) {
1229
- if (undefined === typeof this.catalog[locale])
1233
+ if ('undefined' === typeof this.catalog[locale])
1230
1234
  this.catalog[locale] = {};
1231
1235
  this.catalog[locale][name.toLowerCase()] = message;
1232
1236
  return this;
@@ -2173,10 +2177,10 @@ window.ParsleyConfig.i18n.en = $.extend(window.ParsleyConfig.i18n.en || {}, {
2173
2177
  max: "This value should be lower than or equal to %s.",
2174
2178
  range: "This value should be between %s and %s.",
2175
2179
  minlength: "This value is too short. It should have %s characters or more.",
2176
- maxlength: "This value is too long. It should have %s characters or less.",
2180
+ maxlength: "This value is too long. It should have %s characters or fewer.",
2177
2181
  length: "This value length is invalid. It should be between %s and %s characters long.",
2178
2182
  mincheck: "You must select at least %s choices.",
2179
- maxcheck: "You must select %s choices or less.",
2183
+ maxcheck: "You must select %s choices or fewer.",
2180
2184
  check: "You must select between %s and %s choices.",
2181
2185
  equalto: "This value should be the same."
2182
2186
  });
@@ -2184,7 +2188,7 @@ window.ParsleyConfig.i18n.en = $.extend(window.ParsleyConfig.i18n.en || {}, {
2184
2188
  if ('undefined' !== typeof window.ParsleyValidator)
2185
2189
  window.ParsleyValidator.addCatalog('en', window.ParsleyConfig.i18n.en, true);
2186
2190
 
2187
- // Parsley.js 2.0.2
2191
+ // Parsley.js 2.0.3
2188
2192
  // http://parsleyjs.org
2189
2193
  // (c) 20012-2014 Guillaume Potier, Wisembly
2190
2194
  // Parsley may be freely distributed under the MIT license.
@@ -2192,7 +2196,7 @@ if ('undefined' !== typeof window.ParsleyValidator)
2192
2196
  // ### Parsley factory
2193
2197
  var Parsley = function (element, options, parsleyFormInstance) {
2194
2198
  this.__class__ = 'Parsley';
2195
- this.__version__ = '2.0.2';
2199
+ this.__version__ = '2.0.3';
2196
2200
  this.__id__ = ParsleyUtils.hash(4);
2197
2201
  // Parsley must be instanciated with a DOM element or jQuery $element
2198
2202
  if ('undefined' === typeof element)
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.2.0
4
+ version: 2.0.3.0
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-06-19 00:00:00.000000000 Z
11
+ date: 2014-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -97,3 +97,4 @@ signing_key:
97
97
  specification_version: 4
98
98
  summary: Parsley.js bundled for Rails Asset Pipeline
99
99
  test_files: []
100
+ has_rdoc: