middleman-bootstrap-navbar 0.0.4 → 0.0.5

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: aeec9fcceeb262b91949e635a1216241e3530cb2
4
- data.tar.gz: 2fbb33bfd63bfcb8d31fefcf85f20978972ce145
3
+ metadata.gz: b9c8b34cb56441b7ea0a6afa63269347941d3643
4
+ data.tar.gz: 8c2497023331661de8d307c5d184200cfba60a1b
5
5
  SHA512:
6
- metadata.gz: 2df6d5384fef5d9aebb5f22a4ac104c008d8f790e7eb9439e71246ef0910d265b92acd19193a92645532b2750cccc6d63fca03dbc429830ab7b52d588bb7000d
7
- data.tar.gz: 40301735855e89eb8daa4a189bc6c4ac825fb68081371033d4c0eb4befda5dd1a9fd7adec39900fc6e6c474a6a18806789f2432e4e6e0b538139a83d503c7b8b
6
+ metadata.gz: ccb9bbb88fad9b14a6e1417d65d9a992c59aca31a0a3cb13a538466e9dc0c119ec7370e748a4ca9db92a6e0bd93d860901ce94f708f5b2c015d6a50326785366
7
+ data.tar.gz: e8a9ee0879c31b4a5f9a69b33bf6a105fac89ea3980c1af92fc4102781fe7b1b6e7cd66c68a8d272e8c2f6c53b55e798180f4707fac920776c25e3b089871d0a
data/README.md CHANGED
@@ -23,47 +23,19 @@ Or install it yourself as:
23
23
 
24
24
  ## Requirements
25
25
 
26
- Bootstrap >= 2.0 should be available in your app, at least the CSS. Include at least the dropdown and responsive JS files if you want those features.
26
+ The necessary files from Bootstrap >= 2.0 have to be included separately, they are not part of this gem.
27
+
28
+ At least the CSS files for the navbar are required, and the JS files for dropdowns and responsive features, if you want to use those in the navbar.
27
29
 
28
30
  ## Usage
29
31
 
30
- Activate in `config.rb` in your Middleman app:
32
+ Activate the extensions in `config.rb` in your Middleman app:
31
33
 
32
34
  ```ruby
33
35
  activate :bootstrap_navbar
34
36
  ```
35
37
 
36
- Then generate your navbar:
37
-
38
- ```ruby
39
- = nav_bar fixed: :top, brand: "My great app", responsive: true do
40
- = menu_group do
41
- = menu_item "Home", root_path
42
- = menu_divider
43
- = drop_down "Stuff" do
44
- = menu_item "One", one_path
45
- = menu_item "Two", two_path
46
- = menu_item "Three", three_path
47
- - if current_user.admin?
48
- = menu_item "Admin", admin_path
49
- = menu_item "About Us", about_us_path
50
- = menu_item "Contact", contact_path
51
- = menu_group pull: :right do
52
- - if current_user
53
- = menu_item "Log Out", log_out_path
54
- - else
55
- = menu_item "Log In", log_in_path
56
- ```
57
-
58
- Check out the [Twitter Bootstrap Docs](http://twitter.github.io/bootstrap/components.html#navbar) for more info. All components mentioned there should be supported, so you don't need to write any HTML by hand. If there is something missing or wrong HTML is generated, please [open an issue](https://github.com/krautcomputing/middleman-bootstrap-navbar/issues).
59
-
60
- To see all supported options, please have a look at the [source file](https://github.com/krautcomputing/middleman-bootstrap-navbar/blob/master/lib/middleman-bootstrap-navbar/helpers.rb), it should be quite readable.
61
-
62
- Otherwise: just trust your instincts. Want a nav bar that's fixed to the bottom? Try `nav_bar fixed: :bottom`. Want a nav bar that is static? Try `nav_bar static: :top` or `nav_bar static: :bottom`.
63
-
64
- ## Inspiration
65
-
66
- https://github.com/julescopeland/Rails-Bootstrap-Navbar
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.
67
39
 
68
40
  ## Contributing
69
41
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module BootstrapNavbar
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
@@ -25,6 +25,6 @@ Gem::Specification.new do |gem|
25
25
  gem.add_development_dependency 'rspec', '~> 2.13'
26
26
  gem.add_development_dependency 'guard-rspec', '~> 3.0'
27
27
 
28
- gem.add_runtime_dependency 'bootstrap_navbar', '~> 0.0.5'
28
+ gem.add_runtime_dependency 'bootstrap_navbar', '~> 0.0.6'
29
29
  gem.add_runtime_dependency 'middleman-core', '>= 3.0'
30
30
  end
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: 0.0.4
4
+ version: 0.0.5
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-07-19 00:00:00.000000000 Z
11
+ date: 2013-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.5
61
+ version: 0.0.6
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.0.5
68
+ version: 0.0.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: middleman-core
71
71
  requirement: !ruby/object:Gem::Requirement