rails_bootstrap_navbar 0.2.1 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/rails_bootstrap_navbar.rb +2 -2
- data/lib/rails_bootstrap_navbar/railtie.rb +13 -4
- data/lib/rails_bootstrap_navbar/version.rb +1 -1
- data/rails_bootstrap_navbar.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9ba699cbaf09b6e5fc097761e76581b791872a5
|
4
|
+
data.tar.gz: fd8e2709d198f73d32183458516723409b13deea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb7ddceaa0989e7af9ce9bd9f7d4e9a6556a0dd7e67742bda2c8589c37d2d737adbf7dfb75a2cd0f629ace08ea8755e8168bfef010c45cc5356e2dd11f3dc184
|
7
|
+
data.tar.gz: c0ef08d3fd4b4e3763e97cdaf1c8e305759dccbeb71527ff0b17a24c08e7b10e3210411ca9739833fa1110629b45f9014f4acc3055e3d9e3c9f42bae568beaab
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## v0.2.1
|
2
|
+
|
3
|
+
* Gem 'bootstrap_navbar' was renamed to 'bootstrap-navbar'
|
4
|
+
|
1
5
|
## v0.2.0
|
2
6
|
|
3
7
|
* Use gem 'bootstrap_navbar' for HTML rendering
|
@@ -30,4 +34,4 @@ These allow you to add dividers and headers into your dropdowns. Surprisingly en
|
|
30
34
|
## v0.1.5.beta
|
31
35
|
|
32
36
|
* Minor fix - make menu_item link default to "#"
|
33
|
-
* Readme updates
|
37
|
+
* Readme updates
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative 'rails_bootstrap_navbar/version'
|
2
|
+
require_relative 'rails_bootstrap_navbar/railtie'
|
@@ -1,9 +1,18 @@
|
|
1
1
|
require 'bootstrap-navbar'
|
2
2
|
|
3
|
-
BootstrapNavbar.
|
4
|
-
'
|
5
|
-
|
6
|
-
|
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
|
7
16
|
end
|
8
17
|
|
9
18
|
module BootstrapNavbar::Helpers
|
@@ -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', '~> 0.0.
|
24
|
+
gem.add_runtime_dependency 'bootstrap-navbar', '~> 1.0.0.pre4'
|
25
25
|
gem.add_runtime_dependency 'rails', '>= 3.0.0'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_bootstrap_navbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jules Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.0.
|
75
|
+
version: 1.0.0.pre4
|
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: 0.0.
|
82
|
+
version: 1.0.0.pre4
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,12 +132,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- - '
|
135
|
+
- - '>'
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: 1.3.1
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.1.5
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Generate Bootstrap Navbars in Rails views
|