crumpet 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/crumpet.gemspec +28 -0
- data/lib/crumpet/configuration.rb +33 -0
- data/lib/crumpet/controller_additions.rb +29 -0
- data/lib/crumpet/crumb.rb +49 -0
- data/lib/crumpet/railtie.rb +21 -0
- data/lib/crumpet/renderer.rb +119 -0
- data/lib/crumpet/repository.rb +12 -0
- data/lib/crumpet/version.rb +3 -0
- data/lib/crumpet/view_helpers.rb +11 -0
- data/lib/crumpet.rb +26 -0
- metadata +120 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ff07876004a5baf64ff855d2dafaed1513da8c3a
|
4
|
+
data.tar.gz: 01ac5cf988059efd166e1ad67724ad0ac0009415
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45bae82065598dcd96b5cd52ddc5794a9cc9cf39b991fe5fa122ab2217e86975e4be12a2f74dbb7fa5c1746aa3ec37405873cc5b83381b727007937a740e3541
|
7
|
+
data.tar.gz: 56891cdef1da17ae37e68a80657a6b6202e2b3b97133c75f411b05e31c62df9145071f848ec030c46fd8793118df47bc9d740f187bf7da092c9eda4b9d913373
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at blaknite@thelanbox.com.au. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Grant Colegate
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Crumpet
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/blaknite/crumpet.svg?branch=master)](https://travis-ci.org/blaknite/crumpet)
|
4
|
+
|
5
|
+
Simple breadcrumbs for Rails.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'crumpet'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Basic usage:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
class ApplicationController
|
25
|
+
crumbs do
|
26
|
+
add_crumb "Home", root_path
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
class WidgetsController < ApplicationController
|
31
|
+
crumbs do
|
32
|
+
add_crumb @widget.parent_widget.name, widget_path(@widget.parent_widget)
|
33
|
+
add_crumb @widget.name, widget_path(@widget)
|
34
|
+
end
|
35
|
+
|
36
|
+
crumbs_for :edit do
|
37
|
+
add_crumb 'Edit'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/blaknite/crumpet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
49
|
+
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "crumpet"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/crumpet.gemspec
ADDED
@@ -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 'crumpet/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "crumpet"
|
8
|
+
spec.version = Crumpet::VERSION
|
9
|
+
spec.authors = ["Grant Colegate"]
|
10
|
+
spec.email = ["blaknite@thelanbox.com.au"]
|
11
|
+
|
12
|
+
spec.summary = "Simple breadcrumbs for Rails"
|
13
|
+
spec.homepage = "http://example.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_dependency "rails", ">= 3"
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Crumpet
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :format
|
4
|
+
attr_accessor :link
|
5
|
+
attr_accessor :separator
|
6
|
+
attr_accessor :default_crumb_class
|
7
|
+
attr_accessor :first_crumb_class
|
8
|
+
attr_accessor :last_crumb_class
|
9
|
+
attr_accessor :link_last_crumb
|
10
|
+
attr_accessor :truncate
|
11
|
+
attr_accessor :escape
|
12
|
+
attr_accessor :wrapper
|
13
|
+
attr_accessor :default_wrapper_class
|
14
|
+
attr_accessor :container
|
15
|
+
attr_accessor :default_container_class
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@format = :html
|
19
|
+
@link = true
|
20
|
+
@separator = " » ".html_safe
|
21
|
+
@default_crumb_class = nil
|
22
|
+
@first_crumb_class = nil
|
23
|
+
@last_crumb_class = nil
|
24
|
+
@link_last_crumb = true
|
25
|
+
@truncate = nil
|
26
|
+
@escape = true
|
27
|
+
@wrapper = nil
|
28
|
+
@default_wrapper_class = nil
|
29
|
+
@container = nil
|
30
|
+
@default_container_class = nil
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Crumpet
|
2
|
+
module ControllerAdditions
|
3
|
+
def self.included(base)
|
4
|
+
base.extend ClassMethods
|
5
|
+
end
|
6
|
+
|
7
|
+
def add_crumb(name = nil, url = nil, options = {})
|
8
|
+
Crumpet.repository.add_crumb(name, url, options)
|
9
|
+
end
|
10
|
+
|
11
|
+
def clear_crumbs
|
12
|
+
Crumpet.repository.clear
|
13
|
+
end
|
14
|
+
|
15
|
+
module ClassMethods
|
16
|
+
def crumbs(&block)
|
17
|
+
crumbs_for(&block)
|
18
|
+
end
|
19
|
+
|
20
|
+
def crumbs_for(*args, &block)
|
21
|
+
options = {}
|
22
|
+
options[:only] = args if args.present?
|
23
|
+
before_action(options) do |instance|
|
24
|
+
instance.instance_exec(&block) if block_given?
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Crumpet
|
2
|
+
class Crumb
|
3
|
+
attr_reader :name, :url, :options
|
4
|
+
|
5
|
+
def initialize(name, url = nil, options = {})
|
6
|
+
@name = name
|
7
|
+
@url = url
|
8
|
+
@options = options
|
9
|
+
end
|
10
|
+
|
11
|
+
def link?
|
12
|
+
url.present? && option_or_default(:link).present?
|
13
|
+
end
|
14
|
+
|
15
|
+
def escape?
|
16
|
+
option_or_default(:escape)
|
17
|
+
end
|
18
|
+
|
19
|
+
def truncate?
|
20
|
+
truncate.present?
|
21
|
+
end
|
22
|
+
|
23
|
+
def truncate
|
24
|
+
option_or_default(:truncate)
|
25
|
+
end
|
26
|
+
|
27
|
+
def wrap?
|
28
|
+
wrapper.present?
|
29
|
+
end
|
30
|
+
|
31
|
+
def wrapper
|
32
|
+
option_or_default(:wrapper)
|
33
|
+
end
|
34
|
+
|
35
|
+
def item_options
|
36
|
+
options.fetch(:item_options, {})
|
37
|
+
end
|
38
|
+
|
39
|
+
def wrapper_options
|
40
|
+
options.fetch(:wrapper_options, {})
|
41
|
+
end
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
def option_or_default(option)
|
46
|
+
options.fetch(option, Crumpet.config.send(option.to_sym).clone)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Crumpet
|
2
|
+
class Railtie < Rails::Railtie
|
3
|
+
initializer 'crumpet.setup_action_controller' do |app|
|
4
|
+
ActiveSupport.on_load :action_controller do
|
5
|
+
self.class_eval do
|
6
|
+
include Crumpet::ControllerAdditions
|
7
|
+
|
8
|
+
before_action :clear_crumbs
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
initializer 'crumpet.setup_action_view' do |app|
|
14
|
+
ActiveSupport.on_load :action_view do
|
15
|
+
self.class_eval do
|
16
|
+
include Crumpet::ViewHelpers
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
module Crumpet
|
2
|
+
class Renderer
|
3
|
+
include ActionView::Helpers::UrlHelper
|
4
|
+
include ERB::Util
|
5
|
+
|
6
|
+
attr_reader :options
|
7
|
+
|
8
|
+
def initialize(options = {})
|
9
|
+
@options = options
|
10
|
+
end
|
11
|
+
|
12
|
+
def render
|
13
|
+
case option_or_default(:format)
|
14
|
+
when :html
|
15
|
+
output = repository.map{ |crumb| render_html(crumb) }.join(option_or_default(:separator)).html_safe
|
16
|
+
output = content_tag(option_or_default(:container).to_sym, output, build_container_options) if option_or_default(:container).present?
|
17
|
+
output
|
18
|
+
when :xml
|
19
|
+
output = repository.map{ |crumb| render_xml(crumb) }.join
|
20
|
+
output = content_tag(:crumbs, output)
|
21
|
+
output
|
22
|
+
when :json
|
23
|
+
repository.map{ |crumb| render_json(crumb) }.to_json
|
24
|
+
else
|
25
|
+
raise NotImplementedError, "unsupported format: #{option_or_default(:format)}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def repository
|
32
|
+
Crumpet.repository
|
33
|
+
end
|
34
|
+
|
35
|
+
def render_html(crumb)
|
36
|
+
name = render_name(crumb)
|
37
|
+
item_options = build_html_options(crumb)
|
38
|
+
wrapper_options = build_wrapper_options(crumb)
|
39
|
+
|
40
|
+
output = link?(crumb) ? link_to(name, crumb.url, item_options) : content_tag(:span, name, item_options)
|
41
|
+
output = content_tag(crumb.wrapper, output, wrapper_options) if crumb.wrap?
|
42
|
+
output
|
43
|
+
end
|
44
|
+
|
45
|
+
def render_xml(crumb)
|
46
|
+
item_options = build_item_options(crumb)
|
47
|
+
item_options = item_options.merge(href: crumb.url) if link?(crumb)
|
48
|
+
|
49
|
+
content_tag(:crumb, render_name(crumb), item_options)
|
50
|
+
end
|
51
|
+
|
52
|
+
def render_json(crumb)
|
53
|
+
output = build_item_options(crumb).merge(name: render_name(crumb))
|
54
|
+
output = output.merge(href: crumb.url) if link?(crumb)
|
55
|
+
output
|
56
|
+
end
|
57
|
+
|
58
|
+
def render_name(crumb)
|
59
|
+
name = crumb.name
|
60
|
+
name = name.truncate(crumb.truncate) if crumb.truncate?
|
61
|
+
name = h(name) if crumb.escape?
|
62
|
+
name.html_safe
|
63
|
+
end
|
64
|
+
|
65
|
+
def render_container(content)
|
66
|
+
content_tag(option_or_default(:container).to_sym, content, build_container_options)
|
67
|
+
end
|
68
|
+
|
69
|
+
def build_html_options(crumb)
|
70
|
+
item_options = options.fetch(:item_options, {}).merge(crumb.item_options)
|
71
|
+
|
72
|
+
item_options[:class] = Array(item_options.fetch(:class, []))
|
73
|
+
item_options[:class] << option_or_default(:default_crumb_class).presence
|
74
|
+
item_options[:class] << option_or_default(:first_crumb_class).presence if crumb == repository.first
|
75
|
+
item_options[:class] << option_or_default(:last_crumb_class).presence if crumb == repository.last
|
76
|
+
item_options[:class].compact!
|
77
|
+
item_options[:class].uniq!
|
78
|
+
item_options.delete(:class) if item_options[:class].blank?
|
79
|
+
|
80
|
+
item_options
|
81
|
+
end
|
82
|
+
|
83
|
+
def build_item_options(crumb)
|
84
|
+
options.fetch(:item_options, {}).merge(crumb.item_options)
|
85
|
+
end
|
86
|
+
|
87
|
+
def build_wrapper_options(crumb)
|
88
|
+
wrapper_options = options.fetch(:wrapper_options, {}).merge(crumb.wrapper_options)
|
89
|
+
|
90
|
+
wrapper_options[:class] = Array(wrapper_options.fetch(:class, []))
|
91
|
+
wrapper_options[:class] << option_or_default(:default_wrapper_class).presence
|
92
|
+
wrapper_options[:class].compact!
|
93
|
+
wrapper_options[:class].uniq!
|
94
|
+
wrapper_options.delete(:class) if wrapper_options[:class].blank?
|
95
|
+
|
96
|
+
wrapper_options
|
97
|
+
end
|
98
|
+
|
99
|
+
def build_container_options
|
100
|
+
container_options = options.fetch(:container_options, {})
|
101
|
+
|
102
|
+
container_options[:class] = Array(container_options.fetch(:class, []))
|
103
|
+
container_options[:class] << option_or_default(:default_container_class).presence
|
104
|
+
container_options[:class].compact!
|
105
|
+
container_options[:class].uniq!
|
106
|
+
container_options.delete(:class) if container_options[:class].blank?
|
107
|
+
|
108
|
+
container_options
|
109
|
+
end
|
110
|
+
|
111
|
+
def link?(crumb)
|
112
|
+
option_or_default(:link) && crumb.link? && ( option_or_default(:link_last_crumb) || crumb != repository.last )
|
113
|
+
end
|
114
|
+
|
115
|
+
def option_or_default(option)
|
116
|
+
options.fetch(option, Crumpet.config.send(option.to_sym)).clone
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Crumpet
|
2
|
+
class Repository < Array
|
3
|
+
def add_crumb(name = nil, url = nil, options = {})
|
4
|
+
self << Crumpet::Crumb.new(name, url, options)
|
5
|
+
end
|
6
|
+
|
7
|
+
def <<(crumb)
|
8
|
+
fail ArgumentError, 'crumb must be a Crumpet::Crumb' unless crumb.is_a? Crumpet::Crumb
|
9
|
+
super
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/crumpet.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'crumpet/configuration'
|
2
|
+
require 'crumpet/crumb'
|
3
|
+
require 'crumpet/controller_additions'
|
4
|
+
require 'crumpet/railtie'
|
5
|
+
require 'crumpet/renderer'
|
6
|
+
require 'crumpet/repository'
|
7
|
+
require 'crumpet/version'
|
8
|
+
require 'crumpet/view_helpers'
|
9
|
+
|
10
|
+
module Crumpet
|
11
|
+
module_function def config
|
12
|
+
@config ||= Crumpet::Configuration.new
|
13
|
+
end
|
14
|
+
|
15
|
+
module_function def repository
|
16
|
+
@repository ||= Crumpet::Repository.new
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.render(options = {})
|
20
|
+
Crumpet::Renderer.new(options).render
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.configure
|
24
|
+
yield config
|
25
|
+
end
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: crumpet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grant Colegate
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.14'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.14'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
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'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- blaknite@thelanbox.com.au
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- crumpet.gemspec
|
87
|
+
- lib/crumpet.rb
|
88
|
+
- lib/crumpet/configuration.rb
|
89
|
+
- lib/crumpet/controller_additions.rb
|
90
|
+
- lib/crumpet/crumb.rb
|
91
|
+
- lib/crumpet/railtie.rb
|
92
|
+
- lib/crumpet/renderer.rb
|
93
|
+
- lib/crumpet/repository.rb
|
94
|
+
- lib/crumpet/version.rb
|
95
|
+
- lib/crumpet/view_helpers.rb
|
96
|
+
homepage: http://example.com
|
97
|
+
licenses:
|
98
|
+
- MIT
|
99
|
+
metadata: {}
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
requirements: []
|
115
|
+
rubyforge_project:
|
116
|
+
rubygems_version: 2.6.11
|
117
|
+
signing_key:
|
118
|
+
specification_version: 4
|
119
|
+
summary: Simple breadcrumbs for Rails
|
120
|
+
test_files: []
|