bootstrap-rails-engine 1.2.1 → 1.2.2

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.
data/README.md CHANGED
@@ -31,6 +31,16 @@ and
31
31
 
32
32
  then remove corresponding lines in application.js and application.css.
33
33
 
34
+ ## Options
35
+
36
+ Set :compressed to use minimized library locally like this:
37
+
38
+ = bootstrap_javascript_include_tag :default, :compressed => true
39
+
40
+ Remember to change the assets name in confign/environments/production.rb:
41
+
42
+ config.assets.precompile += %w( bootstrap/bootstrap.min.js)
43
+
34
44
  ## License
35
45
 
36
46
  Copyright (c) 2012 Yen-Ju Chen
@@ -1,6 +1,6 @@
1
1
  module BootstrapRailsEngine
2
2
  module Rails
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  TWITTER_BOOTSTRAP = "2.2.2"
5
5
  end
6
6
  end
@@ -21,8 +21,11 @@ module BootstrapRailsEngine
21
21
 
22
22
  # to be used with bootstrap-rails-engine gem
23
23
  def bootstrap_javascript_include_tag(name, options = {})
24
+ bootstrap_j = 'bootstrap/bootstrap'
25
+ bootstrap_j = bootstrap_j + '.min' if options[:compressed]
26
+
24
27
  if OFFLINE and !options[:force]
25
- return javascript_include_tag('bootstrap/bootstrap')
28
+ return javascript_include_tag(bootstrap_j)
26
29
  else
27
30
  # Bootstrap do not offer way to check existing
28
31
  [ javascript_include_tag(bootstrap_javascript_url(name, options)),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-rails-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2012-12-13 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties