bootstrap-datepicker-rails 0.6.29 → 0.6.30

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.
data/Rakefile CHANGED
@@ -12,11 +12,7 @@ task :update do
12
12
  end
13
13
 
14
14
  def fixes
15
- puts "hello"
16
- core_file = File.read("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js")
17
- string = 'monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]'
18
- modified_file = core_file.gsub(string, string + ',')
19
- File.open("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js", "w") { |file| file.puts modified_file }
15
+
20
16
  end
21
17
 
22
18
  desc "Build and publish de gem"
@@ -1,5 +1,5 @@
1
1
  module BootstrapDatepickerRails
2
2
  module Rails
3
- VERSION = "0.6.29"
3
+ VERSION = "0.6.30"
4
4
  end
5
5
  end
@@ -48,6 +48,13 @@
48
48
  if(this.component && this.component.length === 0)
49
49
  this.component = false;
50
50
 
51
+ this.forceParse = true;
52
+ if ('forceParse' in options) {
53
+ this.forceParse = options.forceParse;
54
+ } else if ('dateForceParse' in this.element.data()) {
55
+ this.forceParse = this.element.data('date-force-parse');
56
+ }
57
+
51
58
  if (this.isInput) {
52
59
  this.element.on({
53
60
  focus: $.proxy(this.show, this),
@@ -149,8 +156,13 @@
149
156
  $(document).off('mousedown', this.hide);
150
157
  }
151
158
 
152
- if (this.isInput && this.element.val() ||
153
- this.hasInput && this.element.find('input').val())
159
+ if (
160
+ this.forceParse &&
161
+ (
162
+ this.isInput && this.element.val() ||
163
+ this.hasInput && this.element.find('input').val()
164
+ )
165
+ )
154
166
  this.setValue();
155
167
  this.element.trigger({
156
168
  type: 'hide',
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.29
4
+ version: 0.6.30
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-11-20 00:00:00.000000000 Z
12
+ date: 2012-11-22 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: 916469626407533721
124
+ hash: -911006301523283185
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: 916469626407533721
133
+ hash: -911006301523283185
134
134
  requirements: []
135
135
  rubyforge_project:
136
136
  rubygems_version: 1.8.24