effective_form_inputs 0.9.0 → 0.9.1

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: 1f7b8d4bc39c6e0a33b893227a51bafc52e3c59a
4
- data.tar.gz: 11cb7352cbe0faed4df331f6abd87d20ba26ea0b
3
+ metadata.gz: 302d7d81e88d9f434d633d20a3dd00fec344248c
4
+ data.tar.gz: f844591e1be8f56d3c6f9a8c2592e3ace75c6e21
5
5
  SHA512:
6
- metadata.gz: b970881f7a43a39d74bdd57f093d0dc7081e782482a67a973c258d3b799fbea2d17fbe6c795b36f493589f76778b1097aac32363dc8075963dfc6ff9ec9b8e2c
7
- data.tar.gz: 2a826b4c4abed3795b89c52afba82e571a0dc293688add2d430b5b20b5654fce34953ffef7c8fc18069ab848195a3156cc2cbdbc04c0e20d5d2c67f00101e89b
6
+ metadata.gz: e8be1c61e8fe4bdfab9f5b53cfc2babd4eb9786c437acc3c3841b1f2cb93590e9ea3d84a5afb01d589274809770f85f84077bdadb7e1adff6e36172ed366a909
7
+ data.tar.gz: 5241cc03fc907342228b1012f405f7f5e48d1ebff8fdd9591706f404c8e6cf56d535ce7398a4753985ce2a8af5d605e5680160c48e608cf2705e4c0d081299c1
@@ -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{4}-\d{2}-\d{2}' # Match default pattern defined above
35
+ html_options[:pattern] = '\d{4}(-\d{2})?(-\d{2})?' # Match default pattern defined above
36
36
  end
37
37
  end
38
38
  end
@@ -27,7 +27,7 @@ module Inputs
27
27
  def html_options
28
28
  super.tap do |html_options|
29
29
  if js_options[:format] == default_input_js[:format] # Unless someone changed from the default
30
- html_options[:pattern] = '\d{4}-\d{2}-\d{2} \d+:\d{2}' # Match default pattern defined above
30
+ html_options[:pattern] = '\d{4}(-\d{2})?-(\d{2})?( \d+)?(:\d{2})?' # Match default pattern defined above
31
31
  end
32
32
  end
33
33
  end
@@ -5,7 +5,7 @@ if defined?(SimpleForm)
5
5
 
6
6
  class EffectiveSelectInput < SimpleForm::Inputs::CollectionSelectInput
7
7
  def input(wrapper_options = nil)
8
- label_method, value_method = detect_collection_methods
8
+ label_method, value_method = (detect_collection_methods rescue [:to_s, :to_s])
9
9
 
10
10
  options[:collection] = collection
11
11
  options[:label_method] = label_method unless options[:polymorphic]
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.9.0'.freeze
2
+ VERSION = '0.9.1'.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: 0.9.0
4
+ version: 0.9.1
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: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails