formtastic-bootstrap 3.0.0.rc.1 → 3.0.0.rc.2

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: ecb19013ed0931f06bd003f1ea90049610323e95
4
- data.tar.gz: 689d4e4702a9fe931cc3123291dada9d8df21d35
3
+ metadata.gz: 855a2f02f93378b601e8184fd54e0c614fab55fa
4
+ data.tar.gz: 7a808dcd0f182e21fcfabd56c3a0148f411507bc
5
5
  SHA512:
6
- metadata.gz: 5be322ff2419bc7915198e7d34bcdf98ff62843f6119c6f293ce87d799f33972e0fadfcb9dbd7d9bb10aa08dc0fca56c777612bc15c5ab20d1c3b74e55979049
7
- data.tar.gz: 0b30ebf52df315ad4223bb91f28804c74161c2a59fe33d45723a752e7dc11c5a1d330d1b237e1023e737424038e6c4f6b291fa2e7f0d1ea758419fc910fe8243
6
+ metadata.gz: 8739521afff71a81e72353ad8d8afc821726402484f245c961ebaf0542eda69e2780c4130cad115c4d88c07d7ba057626cbc5cb5ffb40eb226745da74d7e2218
7
+ data.tar.gz: 455841cca4609d8fc6981836c629e830eb59aad8715ad856de126b8ac006aa4c62b4b56aa461bee02fc64602d19e7f100d70de406c20f0bc94963c592722b55a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.rc.1
1
+ 3.0.0.rc.2
@@ -53,9 +53,9 @@ module FormtasticBootstrap
53
53
  return nil if full_errors.blank?
54
54
 
55
55
  if html_options[:class].blank?
56
- html_options[:class] = "alert alert-error"
56
+ html_options[:class] = "alert alert-danger"
57
57
  else
58
- html_options[:class] = "alert alert-error " + html_options[:class]
58
+ html_options[:class] = "alert alert-danger " + html_options[:class]
59
59
  end
60
60
 
61
61
  template.content_tag(:div, html_options) do
@@ -10,6 +10,7 @@ module FormtasticBootstrap
10
10
  # Bootstrap defines class 'label' too, so remove the
11
11
  # one that gets created by Formtastic.
12
12
  options[:class] = options[:class].reject { |c| c == 'label' }
13
+ options[:class] << " control-label"
13
14
  end
14
15
  end
15
16
 
@@ -46,6 +46,7 @@ module FormtasticBootstrap
46
46
  def wrapper_html_options
47
47
  super.tap do |options|
48
48
  options[:class] << " form-group"
49
+ options[:class] << " has-error" if errors?
49
50
  end
50
51
  end
51
52
 
@@ -1,3 +1,3 @@
1
1
  module FormtasticBootstrap
2
- VERSION = "3.0.0.rc.1"
2
+ VERSION = "3.0.0.rc.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc.1
4
+ version: 3.0.0.rc.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Bellantoni
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-25 00:00:00.000000000 Z
12
+ date: 2013-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: formtastic