rails_bootstrap_navbar 1.0.0.pre → 1.0.1.pre1

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: e9ba699cbaf09b6e5fc097761e76581b791872a5
4
- data.tar.gz: fd8e2709d198f73d32183458516723409b13deea
3
+ metadata.gz: f38d283cc78060e7c4bf0957aadb02ebe13afa07
4
+ data.tar.gz: e64e0b869ce0b868b2358641b095ee0c2a7def18
5
5
  SHA512:
6
- metadata.gz: bb7ddceaa0989e7af9ce9bd9f7d4e9a6556a0dd7e67742bda2c8589c37d2d737adbf7dfb75a2cd0f629ace08ea8755e8168bfef010c45cc5356e2dd11f3dc184
7
- data.tar.gz: c0ef08d3fd4b4e3763e97cdaf1c8e305759dccbeb71527ff0b17a24c08e7b10e3210411ca9739833fa1110629b45f9014f4acc3055e3d9e3c9f42bae568beaab
6
+ metadata.gz: 040765519dfb6a56e8ba78fccdbfda7ed89616b9691beb7e48d8973d185ffce1469eaea8f85f9839e5256628ad00780027a14de532ba12ac565faeb042678af8
7
+ data.tar.gz: f4230e2ca5c9e6127f75492ccdd6e292f8946d7af765545d754fe55d56971050f8e826add456c4f289337b719e4cccdad088bfd39fae0359829419fa1f1034e7
@@ -1,20 +1,5 @@
1
1
  require 'bootstrap-navbar'
2
2
 
3
- BootstrapNavbar.configure do |config|
4
- config.current_url_method = if Rails.version >= '3.2'
5
- 'request.original_url'
6
- else
7
- '[request.protocol, request.host_with_port, request.fullpath].join'
8
- end
9
-
10
- if Gem.loaded_specs.keys.include?('bootstrap-sass')
11
- require 'bootstrap-sass/version'
12
- bootstrap_sass_version = Bootstrap::VERSION
13
- bootstrap_version = bootstrap_sass_version[0..4]
14
- config.bootstrap_version = bootstrap_version
15
- end
16
- end
17
-
18
3
  module BootstrapNavbar::Helpers
19
4
  def prepare_html(html)
20
5
  html.html_safe
@@ -23,7 +8,21 @@ end
23
8
 
24
9
  module RailsBootstrapNavbar
25
10
  class Railtie < Rails::Railtie
26
- initializer 'rails_bootstrap_navbar.view_helpers' do
11
+ config.after_initialize do
12
+ BootstrapNavbar.configure do |config|
13
+ config.current_url_method = if Rails.version >= '3.2'
14
+ 'request.original_url'
15
+ else
16
+ '[request.protocol, request.host_with_port, request.fullpath].join'
17
+ end
18
+
19
+ if Gem.loaded_specs.keys.include?('bootstrap-sass')
20
+ bootstrap_sass_version = Gem.loaded_specs['bootstrap-sass'].version
21
+ bootstrap_version = bootstrap_sass_version.to_s[0..4]
22
+ config.bootstrap_version = bootstrap_version
23
+ end
24
+ end
25
+
27
26
  ActionView::Base.send :include, BootstrapNavbar::Helpers
28
27
  end
29
28
  end
@@ -1,3 +1,3 @@
1
1
  module RailsBootstrapNavbar
2
- VERSION = "1.0.0.pre"
2
+ VERSION = "1.0.1.pre1"
3
3
  end
@@ -21,6 +21,6 @@ Gem::Specification.new do |gem|
21
21
  gem.add_development_dependency 'guard-rspec', '~> 3.0'
22
22
  gem.add_development_dependency 'rails', '>= 3.0.0'
23
23
 
24
- gem.add_runtime_dependency 'bootstrap-navbar', '~> 1.0.0.pre4'
24
+ gem.add_runtime_dependency 'bootstrap-navbar', '~> 1.0.0.pre6'
25
25
  gem.add_runtime_dependency 'rails', '>= 3.0.0'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_bootstrap_navbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.1.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jules Copeland
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 1.0.0.pre4
75
+ version: 1.0.0.pre6
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 1.0.0.pre4
82
+ version: 1.0.0.pre6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rails
85
85
  requirement: !ruby/object:Gem::Requirement