middleman-foundation-navigation 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 148346ccc55739d0efe2487421dd7b4c24884b31
4
+ data.tar.gz: c07c8e0e646573d2f927de84d40725e97d92b3a9
5
+ SHA512:
6
+ metadata.gz: b062223e3498e259cf30e297d8bf8ff25aca163f1a7257af136ce3dbe37a25e770c5fd0e149c62dcbf28c61ba45fa9722a10dca7df24f04d43953ada8d35cc55
7
+ data.tar.gz: 149117d7d929db41aef9bfeb1d15f97851bd5c7275d26dc8f6f5d31ddf605bb18159ec45c65c0fa1b6ebc284b8cf89f1263d2be299661104b788e719cfc43b98
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
@@ -0,0 +1,3 @@
1
+ ## 0.0.1 (2013-09-02)
2
+
3
+ * Initial release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Sebastian de Castelberg
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # Middleman Foundation Navigation
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/middleman-foundation-navigation.png)](http://badge.fury.io/rb/middleman-foundation-navigation)
4
+ [![Build Status](https://secure.travis-ci.org/kpricorn/middleman-foundation-navigation.png)](http://travis-ci.org/kpricorn/middleman-foundation-navigation)
5
+ [![Dependency Status](https://gemnasium.com/kpricorn/middleman-foundation-navigation.png)](https://gemnasium.com/kpricorn/middleman-foundation-navigation)
6
+ [![Code Climate](https://codeclimate.com/github/kpricorn/middleman-foundation-navigation.png)](https://codeclimate.com/github/kpricorn/middleman-foundation-navigation)
7
+
8
+ Helpers to generate a Foundation 4 Navigation markup with
9
+ [foundation-navigation](https://github.com/kpricorn/foundation-navigation).
10
+
11
+ This plugin is inspired by
12
+ [middleman-bootstrap-navbar](https://github.com/krautcomputing/middleman-bootstrap-navbar).
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ gem 'middleman-foundation-navigation'
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install middleman-foundation-navigation
27
+
28
+ ## Usage
29
+
30
+ Activate the extensions in `config.rb` in your Middleman app:
31
+
32
+ ```ruby
33
+ activate :foundation_navigation
34
+ ```
35
+
36
+ The gem
37
+ [foundation-navigation](https://github.com/kpricorn/foundation-navigation)
38
+ is used to generate the HTML. Please refer to the
39
+ [README](https://github.com/kpricorn/foundation-navigation#usage) of
40
+ that gem for detailed instructions on how to generate the navbar.
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,2 @@
1
+ require "middleman-foundation-navigation/version"
2
+ require "middleman-foundation-navigation/extension"
@@ -0,0 +1,11 @@
1
+ require 'middleman-foundation-navigation/version'
2
+ require 'foundation-navigation/helpers'
3
+
4
+ class MiddlemanFoundationNavigation::Extension < Middleman::Extension
5
+ def initialize(app, options_hash={}, &block)
6
+ app.helpers ::FoundationNavigation::Helpers
7
+ super
8
+ end
9
+ end
10
+
11
+ ::Middleman::Extensions.register(:foundation_navigation, MiddlemanFoundationNavigation::Extension)
@@ -0,0 +1,3 @@
1
+ module MiddlemanFoundationNavigation
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'middleman-foundation-navigation/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "middleman-foundation-navigation"
8
+ spec.version = MiddlemanFoundationNavigation::VERSION
9
+ spec.authors = ["Sebastian de Castelberg"]
10
+ spec.email = ["sebu@kpricorn.org"]
11
+ spec.description = %q{Middleman extension for foundation-navigation}
12
+ spec.summary = %q{Middleman extension for foundation-navigation}
13
+ spec.homepage = "https://github.com/kpricorn/middleman-foundation-navigation"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+ spec.required_ruby_version = '>= 2.0.0'
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency 'rspec', '~> 2.14.1'
24
+ spec.add_development_dependency "rake"
25
+
26
+ spec.add_runtime_dependency "middleman-core", ">= 3.1.0"
27
+ spec.add_runtime_dependency "foundation-navigation"
28
+ end
@@ -0,0 +1,17 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ RSpec.configure do |config|
8
+ config.treat_symbols_as_metadata_keys_with_true_values = true
9
+ config.run_all_when_everything_filtered = true
10
+ config.filter_run :focus
11
+
12
+ # Run specs in random order to surface order dependencies. If you find an
13
+ # order dependency and want to debug it, you can fix the order by providing
14
+ # the seed, which is printed after each run.
15
+ # --seed 1234
16
+ config.order = 'random'
17
+ end
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: middleman-foundation-navigation
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sebastian de Castelberg
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.14.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '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.1.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: 3.1.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: foundation-navigation
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Middleman extension for foundation-navigation
84
+ email:
85
+ - sebu@kpricorn.org
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - .gitignore
91
+ - .rspec
92
+ - .travis.yml
93
+ - CHANGELOG.md
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - lib/middleman-foundation-navigation.rb
99
+ - lib/middleman-foundation-navigation/extension.rb
100
+ - lib/middleman-foundation-navigation/version.rb
101
+ - middleman-foundation-navigation.gemspec
102
+ - spec/spec_helper.rb
103
+ homepage: https://github.com/kpricorn/middleman-foundation-navigation
104
+ licenses:
105
+ - MIT
106
+ metadata: {}
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - '>='
114
+ - !ruby/object:Gem::Version
115
+ version: 2.0.0
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 2.0.5
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Middleman extension for foundation-navigation
127
+ test_files:
128
+ - spec/spec_helper.rb