bootstrap_builder 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -156,6 +156,28 @@ This will allow you to prevent double clicking by replacing the submit button wi
156
156
  = f.submit 'Log In', :change_to_text => 'Saving ...'
157
157
  ```
158
158
 
159
+ ### So your Glyphicons aren't working?
160
+
161
+ The problem is that `bootstrap.css` is referencing the glyphicon images in a folder that doesn't exist in Rails .
162
+
163
+ ```css
164
+ background-image: url("../img/glyphicons-halflings.png");
165
+ ```
166
+
167
+ To fix this just override the original CSS in a new file and point it to the right folder.
168
+
169
+ If you use [SASS](http://sass-lang.com) you'll get the added benefit of making proper use of the asset pipeline with the `image-url` method. Here's an example of how a `bootstrap_overides.scss` file might look like:
170
+
171
+ ```css
172
+ [class^="icon-"],
173
+ [class*=" icon-"] {
174
+ background-image: image-url("glyphicons-halflings.png");
175
+ }
176
+ .icon-white {
177
+ background-image: image-url("glyphicons-halflings-white.png");
178
+ }
179
+ ```
180
+
159
181
 
160
182
  ---
161
183
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "bootstrap_builder"
8
- s.version = "0.3.1"
7
+ s.name = %q{bootstrap_builder}
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Neto", "The Working Group Inc."]
12
- s.date = "2012-07-03"
13
- s.description = ""
14
- s.email = "jack@twg.ca"
12
+ s.date = %q{2012-07-04}
13
+ s.description = %q{}
14
+ s.email = %q{jack@twg.ca}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.md"
@@ -39,16 +39,17 @@ Gem::Specification.new do |s|
39
39
  "lib/bootstrap_builder/helper.rb",
40
40
  "lib/bootstrap_builder/railtie.rb"
41
41
  ]
42
- s.homepage = "http://github.com/twg/bootstrap_builder"
42
+ s.homepage = %q{http://github.com/twg/bootstrap_builder}
43
43
  s.licenses = ["MIT"]
44
44
  s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.15"
46
- s.summary = "A Rails form builder that generates Twitter Bootstrap markup and helps keep your code clean"
45
+ s.rubygems_version = %q{1.3.6}
46
+ s.summary = %q{A Rails form builder that generates Twitter Bootstrap markup and helps keep your code clean}
47
47
 
48
48
  if s.respond_to? :specification_version then
49
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
50
  s.specification_version = 3
50
51
 
51
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
53
  else
53
54
  end
54
55
  else
@@ -199,7 +199,7 @@ module BootstrapBuilder
199
199
  :help_block,
200
200
  :required
201
201
  ].inject({}) do |h, attribute|
202
- h[attribute] = @template.raw(options.delete(attribute))
202
+ h[attribute] = @template.raw(options.delete(attribute)) if options[attribute]
203
203
  h
204
204
  end
205
205
  end
metadata CHANGED
@@ -1,25 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builder
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 2
9
+ version: 0.3.2
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Jack Neto
9
13
  - The Working Group Inc.
10
14
  autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2012-07-03 00:00:00.000000000 Z
17
+
18
+ date: 2012-07-04 00:00:00 -04:00
19
+ default_executable:
14
20
  dependencies: []
15
- description: ''
21
+
22
+ description: ""
16
23
  email: jack@twg.ca
17
24
  executables: []
25
+
18
26
  extensions: []
19
- extra_rdoc_files:
27
+
28
+ extra_rdoc_files:
20
29
  - LICENSE.txt
21
30
  - README.md
22
- files:
31
+ files:
23
32
  - LICENSE.txt
24
33
  - README.md
25
34
  - Rakefile
@@ -41,30 +50,35 @@ files:
41
50
  - lib/bootstrap_builder/engine.rb
42
51
  - lib/bootstrap_builder/helper.rb
43
52
  - lib/bootstrap_builder/railtie.rb
53
+ has_rdoc: true
44
54
  homepage: http://github.com/twg/bootstrap_builder
45
- licenses:
55
+ licenses:
46
56
  - MIT
47
57
  post_install_message:
48
58
  rdoc_options: []
49
- require_paths:
59
+
60
+ require_paths:
50
61
  - lib
51
- required_ruby_version: !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ! '>='
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- required_rubygems_version: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ segments:
67
+ - 0
68
+ version: "0"
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ segments:
74
+ - 0
75
+ version: "0"
63
76
  requirements: []
77
+
64
78
  rubyforge_project:
65
- rubygems_version: 1.8.15
79
+ rubygems_version: 1.3.6
66
80
  signing_key:
67
81
  specification_version: 3
68
- summary: A Rails form builder that generates Twitter Bootstrap markup and helps keep
69
- your code clean
82
+ summary: A Rails form builder that generates Twitter Bootstrap markup and helps keep your code clean
70
83
  test_files: []
84
+