facades 1.0.3 → 1.0.4

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.
@@ -19,7 +19,7 @@ module Facades
19
19
  initializer 'configure simple_form' do |app|
20
20
  begin
21
21
  require 'simple_form'
22
- require 'facades/support/simple_form'
22
+ ActiveSupport::Deprecation.warn("If you are upgrading Facades > 1.0.3, and rely on the simple form wrappers, please require facades/support/simple_form in an initializer.")
23
23
  rescue Exception => e
24
24
  end
25
25
  end
@@ -8,7 +8,7 @@ if SimpleForm::VERSION.to_i >= 2
8
8
  config.country_priority = 'United States'
9
9
  config.default_input_size = 30
10
10
 
11
- config.wrappers tag: :li, class: 'field', error_class: 'invalid-field' do |b|
11
+ config.wrappers :facades, tag: :li, class: 'field', error_class: 'invalid-field' do |b|
12
12
  b.use :html5
13
13
  b.use :placeholder
14
14
 
@@ -21,12 +21,13 @@ if SimpleForm::VERSION.to_i >= 2
21
21
  b.use :hint, wrap_with: { tag: :span, class: :hint }
22
22
  b.use :error, wrap_with: { tag: :span, class: :error }
23
23
  end
24
- end
25
-
26
- SimpleForm.html5 = true
27
- SimpleForm.error_method = :first
28
- SimpleForm.error_notification_id = nil
29
- SimpleForm.browser_validations = false
30
- SimpleForm.collection_wrapper_tag = nil
24
+
25
+ config.html5 = true
26
+ config.error_method = :first
27
+ config.error_notification_id = nil
28
+ config.browser_validations = false
29
+ config.collection_wrapper_tag = nil
30
+
31
+ end
31
32
  end
32
33
 
@@ -1,3 +1,3 @@
1
1
  module Facades
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facades
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -236,18 +236,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
236
  - - ! '>='
237
237
  - !ruby/object:Gem::Version
238
238
  version: '0'
239
- segments:
240
- - 0
241
- hash: -1237208342485112586
242
239
  required_rubygems_version: !ruby/object:Gem::Requirement
243
240
  none: false
244
241
  requirements:
245
242
  - - ! '>='
246
243
  - !ruby/object:Gem::Version
247
244
  version: '0'
248
- segments:
249
- - 0
250
- hash: -1237208342485112586
251
245
  requirements: []
252
246
  rubyforge_project: facades
253
247
  rubygems_version: 1.8.23