bootstrap-datepicker-rails 1.1.1.3 → 1.1.1.4

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: 543ea7f018f2018374f6691de7616c57fa4cb1a7
4
- data.tar.gz: f8442f5fa7df877d66f16553ef870ba7d3576855
3
+ metadata.gz: 2773a6cc6f29b235e7bb8a338ad90277db221239
4
+ data.tar.gz: de98226e02f6ba2fea86a4fb00d7d97814087605
5
5
  SHA512:
6
- metadata.gz: 5e0a23c921da0ec08468a82076036f60ce70f7e9c1bcfe503446ebe3d489d68546547e688c6131acfd124356b6e0a4c9c835865c28358ab6ddf8f12abc67ab04
7
- data.tar.gz: 5deedc3ce4c0bb6be957f004ac8d91ca6fa85c3799eb72f9dda1bbd2b24e895615976f565a9ed8ae26e7e3f677b867f919a1e292cda8aa28bb2e2245674db57e
6
+ metadata.gz: e152fbdda1ede806aac99fcd3416e624af8c9ca98ae470f7a560f982412be287413ca87d037a5ef2702295dc2834aeaf9a58a11d2c2be65faad67aeda9c64831
7
+ data.tar.gz: 4f2b640e6c5840dba9a275dce04fb9ced4cb3b5ba33bb385b368c5fe673739e22f65b5623a1ca712b2e17da5adb808e52e91761caa8bbdefe4976e4372c02ab9
data/Rakefile CHANGED
@@ -27,9 +27,10 @@ end
27
27
  desc "Build and publish the gem"
28
28
  task :publish => :build do
29
29
  require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
30
- tags = `git tag`
31
- system("git tag #{BootstrapDatepickerRails::Rails::VERSION}") unless tags =~ /#{BootstrapDatepickerRails::Rails::VERSION}/
32
- system("gem push bootstrap-datepicker-rails-#{BootstrapDatepickerRails::Rails::VERSION}.gem")
30
+ tags = `git tag`.split
31
+ current_version = BootstrapDatepickerRails::Rails::VERSION
32
+ system("git tag -a #{current_version} -m 'Release #{current_version}'") unless tags.include?(current_version)
33
+ system("gem push bootstrap-datepicker-rails-#{current_version}.gem")
33
34
  system("git push --follow-tags")
34
35
  end
35
36
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "1.1.1.3"
3
+ VERSION = "1.1.1.4"
4
4
  end
5
5
  end
@@ -461,6 +461,8 @@
461
461
  var date, fromArgs = false;
462
462
  if(arguments && arguments.length && (typeof arguments[0] === 'string' || arguments[0] instanceof Date)) {
463
463
  date = arguments[0];
464
+ if (date instanceof Date)
465
+ date = new Date(date.getTime() - (date.getTimezoneOffset()*60000));
464
466
  fromArgs = true;
465
467
  } else {
466
468
  date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-datepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.3
4
+ version: 1.1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Rodríguez-Baltanás Díaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-21 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties