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 +4 -4
- data/lib/rails_bootstrap_navbar/railtie.rb +15 -16
- data/lib/rails_bootstrap_navbar/version.rb +1 -1
- data/rails_bootstrap_navbar.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f38d283cc78060e7c4bf0957aadb02ebe13afa07
|
4
|
+
data.tar.gz: e64e0b869ce0b868b2358641b095ee0c2a7def18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
@@ -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.
|
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.
|
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.
|
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.
|
82
|
+
version: 1.0.0.pre6
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|