middleman-bootstrap-navbar 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1111e780dfdd390a6bcaec5038421a4ae7a437d5
4
- data.tar.gz: 8a21f99a433a44bd8be46dc65bd182e32a70e4e2
3
+ metadata.gz: ad5bea6fb3d391c473d7262388132f2c266db15f
4
+ data.tar.gz: 378fd5e84d00066631dce269e7b1bc0a41d0025a
5
5
  SHA512:
6
- metadata.gz: 4ce82d7fbe4c4276f70e9736c7f0fee69e917b7e92fb242cc77022bed035196ca1125ef20a7384efd9ea8ba921ab2b309fdf066fdceb028c9522eb3550a41854
7
- data.tar.gz: 77a4b393d9093d469f4a5b1be2e9d391237e19a2870414417f9660a55c8addc03e43876c7fc4230f6f9f8345b8b09bb4aa5028a8921b3c6f5db4f99d8a1a0c0a
6
+ metadata.gz: 7b350ce8e4cf2e8ac69ae022478987c2fde0f5b35ce4dda24a2dc97b5cc2c0c40dcf97ecbe44a594b5ad6796581e5fdff2da70670ad6a52f90e4f24aa231bb6a
7
+ data.tar.gz: 9c80f863487fc8689185a1a56521d5d91d7dd4c1184d40b68cf6d56e7da033e153311179bbbfd501f77ca991f05cf169b9ce6d2c8f38f96c4c043e2fb194db43
data/README.md CHANGED
@@ -29,13 +29,35 @@ At least the CSS files for the navbar are required, and the JS files for dropdow
29
29
 
30
30
  ## Usage
31
31
 
32
+ ### Activate extension
33
+
32
34
  Activate the extensions in `config.rb` in your Middleman app:
33
35
 
34
36
  ```ruby
35
37
  activate :bootstrap_navbar
36
38
  ```
37
39
 
38
- The gem [bootstrap_navbar](https://github.com/krautcomputing/bootstrap_navbar) is used to generate the HTML. Please refer to the [README](https://github.com/krautcomputing/bootstrap_navbar#usage) of that gem for detailed instructions on how to generate the navbar.
40
+ ### Set Bootstrap version
41
+
42
+ This extension needs to know which Bootstrap version you are using, because the navbar HTML looks different in different Bootstrap versions.
43
+
44
+ If you're using [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass), you're all set because the Boostrap version will be sniffed from the bootstrap-sass version.
45
+
46
+ Otherwise set the Bootstrap version when activating the extension:
47
+
48
+ ```ruby
49
+ activate :bootstrap_navbar do |bootstrap_navbar|
50
+ bootstrap_navbar.bootstrap_version = '3.0.3'
51
+ end
52
+ ```
53
+
54
+ ### Output HTML
55
+
56
+ The gem [bootstrap-navbar](https://github.com/krautcomputing/bootstrap-navbar) is used to generate the HTML. Please refer to the gem's [README](https://github.com/krautcomputing/bootstrap-navbar/blob/master/README.md) and the following Wiki entries for detailed instructions on how to generate the navbar:
57
+
58
+ [Usage with Bootstrap 2.x](https://github.com/krautcomputing/bootstrap-navbar/wiki/Usage-with-Bootstrap-2.x)
59
+
60
+ [Usage with Bootstrap 3.x](https://github.com/krautcomputing/bootstrap-navbar/wiki/Usage-with-Bootstrap-3.x)
39
61
 
40
62
  ## Contributing
41
63
 
@@ -8,7 +8,8 @@ end
8
8
  module Middleman
9
9
  module BootstrapNavbar
10
10
  class << self
11
- def registered(app)
11
+ def registered(app, options = {}, &block)
12
+ ::BootstrapNavbar.configure(&block) if block_given?
12
13
  app.helpers ::BootstrapNavbar::Helpers
13
14
  end
14
15
  alias :included :registered
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module BootstrapNavbar
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -24,6 +24,7 @@ Gem::Specification.new do |gem|
24
24
  gem.add_development_dependency 'rake', '>= 10.0.0'
25
25
  gem.add_development_dependency 'rspec', '~> 2.13'
26
26
  gem.add_development_dependency 'guard-rspec', '~> 3.0'
27
+ gem.add_development_dependency 'middleman-core', '>= 3.0'
27
28
 
28
29
  gem.add_runtime_dependency 'bootstrap-navbar', '~> 1.0.0'
29
30
  gem.add_runtime_dependency 'middleman-core', '>= 3.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-bootstrap-navbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2013-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: middleman-core
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bootstrap-navbar
57
71
  requirement: !ruby/object:Gem::Requirement