effective_form_inputs 1.2.4 → 1.2.5

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: 8cb8f161744c909d4981bf76cc5bed478e109274
4
- data.tar.gz: 86c82908903606957bfaccb8521186b355ef9004
3
+ metadata.gz: 38949f77670f429369ebe4c42481b723fcb47503
4
+ data.tar.gz: f5c617cde65e5e9b64b81cd66a227ed8cd9c0771
5
5
  SHA512:
6
- metadata.gz: acd2fdf963de5704989de965cb3e8df6ade509017b88986441dc8c7ba306400368c57fd4ade3c386180401bbc86e013350499e407f55dc02a1a32dfe658b8ca3
7
- data.tar.gz: f285a61d2decb2b94121482421f7d45fc0d1c1e743b38cc67fe78515925461e274ece5913d18436f1935bbb18813c5b8c245779e19bfcdd7d92ea4cbb8aa29b0
6
+ metadata.gz: 3c52d5222ab07a362564d1460faba890085682c5c3877a22cd7de4fe87514ad8071ecbffc502189e5f5b42405b9cb36a9181c0c1e9b5c6d41f843f83c286c81e
7
+ data.tar.gz: 91e545fa95cabdafe83cdc10d81ed629b14b25bce8f389189964fbd954d710c60980a7eac60c7d24e3cbc3a4b1510553c026e25f65ab7558605e9938468e2d38
@@ -4,7 +4,7 @@ module Inputs
4
4
  delegate :content_tag, :text_field_tag, :to => :@template
5
5
 
6
6
  def default_input_js
7
- { format: 'HH:mm', showClear: true, useCurrent: 'hour' }
7
+ { format: 'LT', showClear: false, useCurrent: 'hour' }
8
8
  end
9
9
 
10
10
  def default_input_html
@@ -32,7 +32,7 @@ module Inputs
32
32
  def html_options
33
33
  super.tap do |html_options|
34
34
  if js_options[:format] == default_input_js[:format] # Unless someone changed from the default
35
- html_options[:pattern] = '\d{2}:\d{2}' # Match default pattern defined above
35
+ html_options[:pattern] = '\d\d?:\d{2} \D{2}' # Match default pattern defined above
36
36
  end
37
37
 
38
38
  if options[:date_linked] == false
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.2.4'.freeze
2
+ VERSION = '1.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-01 00:00:00.000000000 Z
11
+ date: 2018-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.4.5.1
146
+ rubygems_version: 2.5.2.3
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Collection of Form Inputs