bs_form_builder 0.2.0 → 0.2.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: cc56817ddd7ab47fbcabcca6b36c219890895a9d
4
- data.tar.gz: 441875d1c46389bf24584d8a38070d1542dab08a
3
+ metadata.gz: 801fcfa6098304541550b4b4d70d2dcb5cc5ff44
4
+ data.tar.gz: a9f7a346372eec2d82bb1da7487eb5e40335f83f
5
5
  SHA512:
6
- metadata.gz: a3af01183a3a2cc3bbaa6626e716668e9341b5e8b3e059c76019630d73ab0ee86a1af79cb1ae02c35aa803004952ac0f85846affb047d006ddfdda49fbd00ea9
7
- data.tar.gz: 8ea82e7c6ccbaf8b486a6faa9902ed5dca8c21aa963722b9314b714adb9dd430ff807f2b040ed6946eb18714637f1ebb014aa1a6a8d8a4cebc7e08d44e28beb4
6
+ metadata.gz: 715f5880cf03e05e206a48eacfe34f47973a2cad749d13dfccaecf8c25c2a6a0d03e549720e5083d449dc543e80ebc19ad248c28af28f07caddd44c8367ed09e
7
+ data.tar.gz: 09c8fd04c2ea9281c8d6a82e9f0ae1c3b44f89839bab599c1c72c5ced839a8ac7a1ef5ab472295ec27144da995227e173d2ee3a29c2c5928a48e7dfdd506fd55
@@ -238,6 +238,11 @@ class BootstrapFormBuilder::HorizontalFormBuilder < ActionView::Helpers::FormBui
238
238
  else
239
239
  { }
240
240
  end
241
+ },
242
+ ActiveModel::Validations::FormatValidator => proc {|validator|
243
+ # Because RegExp#to_s is weird we use inspect, but strip first and last /
244
+ { :'data-pattern' => validator.options[:with].inspect[1..-2],
245
+ :'data-pattern-message' => validator.options[:message] }
241
246
  }
242
247
  }
243
248
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapFormBuilder
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Geoghegan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview