booter 0.3.0 → 0.3.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.
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## Booter 0.3.1 (April 5, 2012)
4
+
5
+ * Custom classes for html inputs
6
+
3
7
  ## Booter 0.3.0 (April 1, 2012)
4
8
 
5
9
  * Use large input elementes
@@ -25,11 +25,15 @@ class BootstrapFormBuilder < ActionView::Helpers::FormBuilder
25
25
  define_method method_name do |*args|
26
26
  options = args.extract_options!
27
27
  name = args.first
28
- wrapper name, options do
28
+
29
+ wrapper name, options.slice(:hint) do
30
+ options = options.except(:hint)
31
+ options[:class] = [options[:class], 'input-xxlarge'].compact
32
+
29
33
  if method_name == 'text_area'
30
- super(name, rows: 7, class: 'input-xxlarge')
34
+ super(name, options.merge(rows: 7))
31
35
  else
32
- super(name, class: 'input-xxlarge')
36
+ super(name, options)
33
37
  end
34
38
  end
35
39
  end
@@ -1,3 +1,3 @@
1
1
  module Booter
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000 Z
12
+ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &77315400 !ruby/object:Gem::Requirement
16
+ requirement: &72844240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *77315400
24
+ version_requirements: *72844240
25
25
  description: Twitter bootstrap for Rails
26
26
  email:
27
27
  - vakhov@gmail.com
@@ -61,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  segments:
63
63
  - 0
64
- hash: -884449395
64
+ hash: 970694609
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  none: false
67
67
  requirements:
@@ -70,10 +70,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  segments:
72
72
  - 0
73
- hash: -884449395
73
+ hash: 970694609
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 1.8.17
76
+ rubygems_version: 1.8.11
77
77
  signing_key:
78
78
  specification_version: 3
79
79
  summary: Twitter bootstrap framework wrapper for Ruby on Rails with nice form rendering