bootstrap-datepicker-rails 0.6.24 → 0.6.28
Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
7
|
# Only full ruby name is supported here, for short names use:
|
8
8
|
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
-
environment_id="ruby-1.9.3-
|
9
|
+
environment_id="ruby-1.9.3-p327@bootstrap-datepicker-rails"
|
10
10
|
|
11
11
|
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
-
# rvmrc_rvm_version="1.
|
12
|
+
# rvmrc_rvm_version="1.16.20 (stable)" # 1.10.1 seams as a safe start
|
13
13
|
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
14
|
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
15
|
# return 1
|
data/Rakefile
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
|
3
2
|
|
4
3
|
desc "Update assets"
|
5
4
|
task 'update' do
|
@@ -12,17 +11,13 @@ task 'update' do
|
|
12
11
|
end
|
13
12
|
|
14
13
|
desc "Build and publish de gem"
|
15
|
-
task "
|
16
|
-
version_file = File.read("lib/bootstrap-datepicker-rails/version.rb")
|
17
|
-
current_version = version_file.match(/\d\d/)[0]
|
18
|
-
updated_version = current_version.to_i + 1
|
19
|
-
replaced = version_file.gsub(current_version, updated_version.to_s)
|
20
|
-
File.open("lib/bootstrap-datepicker-rails/version.rb", "w") { |file| file.puts replaced }
|
21
|
-
|
22
|
-
system("git add . ")
|
23
|
-
system("git commit -m 'update assets'")
|
24
|
-
|
14
|
+
task "build" do
|
25
15
|
system("gem build bootstrap-datepicker-rails.gemspec")
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Build and publish de gem"
|
19
|
+
task "publish" do
|
20
|
+
require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
|
26
21
|
system("gem push bootstrap-datepicker-rails-#{BootstrapDatepickerRails::Rails::VERSION}.gem")
|
27
22
|
system("git push")
|
28
23
|
end
|
@@ -745,7 +745,7 @@
|
|
745
745
|
val, filtered, part;
|
746
746
|
setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];
|
747
747
|
setters_map['dd'] = setters_map['d'];
|
748
|
-
date = UTCDate(date.
|
748
|
+
date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
|
749
749
|
if (parts.length == format.parts.length) {
|
750
750
|
for (var i=0, cnt = format.parts.length; i < cnt; i++) {
|
751
751
|
val = parseInt(parts[i], 10);
|
@@ -774,7 +774,7 @@
|
|
774
774
|
}
|
775
775
|
for (var i=0, s; i<setters_order.length; i++){
|
776
776
|
s = setters_order[i];
|
777
|
-
if (s in parsed)
|
777
|
+
if (s in parsed && !isNaN(parsed[s]))
|
778
778
|
setters_map[s](date, parsed[s])
|
779
779
|
}
|
780
780
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
daysShort: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab", "Aha"],
|
9
9
|
daysMin: ["Ah", "Is", "Se", "Ra", "Kh", "Ju", "Sa", "Ah"],
|
10
10
|
months: ["Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember"],
|
11
|
-
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]
|
11
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]
|
12
12
|
today: "Hari Ini"
|
13
13
|
};
|
14
14
|
}(jQuery));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-datepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
segments:
|
123
123
|
- 0
|
124
|
-
hash:
|
124
|
+
hash: 693739899130698621
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
none: false
|
127
127
|
requirements:
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
segments:
|
132
132
|
- 0
|
133
|
-
hash:
|
133
|
+
hash: 693739899130698621
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
136
|
rubygems_version: 1.8.24
|