bootstrap-datepicker-rails 1.1.1.3 → 1.1.1.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2773a6cc6f29b235e7bb8a338ad90277db221239
|
4
|
+
data.tar.gz: de98226e02f6ba2fea86a4fb00d7d97814087605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
32
|
-
system("
|
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
|
|
@@ -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.
|
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-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|