pickadate-rails 1.0.1 → 1.0.2

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: 9a4960ce8c268fa246c31d341b14ffd516322b94
4
- data.tar.gz: 47857e18fda875db3afbf6b33716b3f844661d53
3
+ metadata.gz: b8263d2bf4b7a6916904ed084bd1027456ca3b7c
4
+ data.tar.gz: 91f32767b809be5bcb1b32192d0f29fd2359e396
5
5
  SHA512:
6
- metadata.gz: d648c29457b37d37e9eb17a26a8dac0bef6ead19029eaa3d03732cb9dc3b6b0e53d43d144b11bddc5882b1f030a161884cecf61bd231ccb6c60eb4975c0c77fd
7
- data.tar.gz: 9684c1c258d2a42543e682a9a5129ef1f4c4933cd4e1eb326b2bd142995fcb299b536c92b32110d617777189d60f942379806de6070eb8b5ec777e3c50e25eb5
6
+ metadata.gz: d4dd092bbc5664a33fac5d58d9fed682c8ecefb6f6a0bf2e4be13e45ead525bbe3f59ccab839e88cb8d85b4a1c0da6d5eac791a4b0cf3d196edc5c413082ebdf
7
+ data.tar.gz: 95002448e6d96a4a5b7ca9610fd68ab1914a113bbb526ea322ab0f689d7fabc827036eaddbb45d7457fb61cd89351ad3f13224780a2e459f9207f3cbbeb821c0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Pickadate-Rails
1
+ # Pickadate-Rails [![Gem Version](https://badge.fury.io/rb/pickadate-rails.png)](http://badge.fury.io/rb/pickadate-rails)
2
2
 
3
- ## Pickadate Version: 3.0.4
3
+ ## Pickadate Version: 3.0.5
4
4
 
5
5
  Easily add [pickadate.js](https://github.com/amsul/pickadate.js) to your Rails 3.1+ application using the asset pipeline.
6
6
 
@@ -1,3 +1,3 @@
1
1
  module PickadateRails
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Date picker for pickadate.js v3.0.4
3
+ * Date picker for pickadate.js v3.0.5
4
4
  * http://amsul.github.io/pickadate.js/date.htm
5
5
  */
6
6
 
@@ -458,7 +458,7 @@ DatePicker.prototype.parse = function( type, value, options ) {
458
458
  DatePicker.prototype.formats = (function() {
459
459
 
460
460
  // Return the length of the first word in a collection.
461
- var getWordLengthFromCollection = function( string, collection, dateObject ) {
461
+ function getWordLengthFromCollection( string, collection, dateObject ) {
462
462
 
463
463
  // Grab the first word from the string.
464
464
  var word = string.match( /\w+/ )[ 0 ]
@@ -472,6 +472,11 @@ DatePicker.prototype.formats = (function() {
472
472
  return word.length
473
473
  }
474
474
 
475
+ // Get the length of the first word in a string.
476
+ function getFirstWordLength( string ) {
477
+ return string.match( /\w+/ )[ 0 ].length
478
+ }
479
+
475
480
  return {
476
481
 
477
482
  d: function( string, dateObject ) {
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * pickadate.js v3.0.4, 2013/05/25
3
+ * pickadate.js v3.0.5, 2013/06/14
4
4
  * By Amsul, http://amsul.ca
5
5
  * Hosted on http://amsul.github.io/pickadate.js
6
6
  * Licensed under MIT
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*!
3
- * Time picker for pickadate.js v3.0.4
3
+ * Time picker for pickadate.js v3.0.5
4
4
  * http://amsul.github.io/pickadate.js/time.htm
5
5
  */
6
6
 
@@ -1,12 +1,12 @@
1
1
  // Norwegian
2
2
 
3
3
  $.extend( $.fn.pickadate.defaults, {
4
- monthsFull: [ 'janaur', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember' ],
4
+ monthsFull: [ 'januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember' ],
5
5
  monthsShort: [ 'jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des' ],
6
6
  weekdaysFull: [ 'søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag' ],
7
7
  weekdaysShort: [ 'søn','man','tir', 'ons', 'tor', 'fre', 'lør' ],
8
8
  today: 'i dag',
9
- clear: 'slette',
9
+ clear: 'nullstill',
10
10
  firstDay: 1,
11
11
  format: 'dd. mmm. yyyy',
12
12
  formatSubmit: 'yyyy/mm/dd'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickadate-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Fraser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-28 00:00:00.000000000 Z
11
+ date: 2013-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties