breadcrumble 4.1.0 → 4.2.0

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: 36689c78fce3a799926d7a385111ce842d3b548c
4
- data.tar.gz: 4b1e2e2b5f50b026ab9e74f968fe2e61f804a9cf
3
+ metadata.gz: a04fe576a816ff5cc81b197818ea9438a973713f
4
+ data.tar.gz: 12bf7abb6f7ff2e781d217ff14d5ebd93671671d
5
5
  SHA512:
6
- metadata.gz: 20f6d52ae76ae12bb16bed3130baac2b5e75337dc49b20538f489943f17cfe0989e2d87fc11faaaa397919f793314e0e5748796b5cb1a58803c68a249433ddc0
7
- data.tar.gz: b13fb67c602db5cb528bf79877ae487dfaf6deccfa3b5d83524e5375f5fbd7b127ece091dc8e534ad4a0a2a258a439b72ff51aea7c8c5e161898523e9133ebcc
6
+ metadata.gz: a690a5223bf04435d8eef351ef2995949b61eb0f96bf34a3fe567b9eb1fe1e24a79caef73a6a6592f19cc42f6f28196338bb3a1400f1db29b78aae3c31c5ff3b
7
+ data.tar.gz: 7da3ca9f1a79d2b89fd6b7b2db821a72e746fba3e99a63cc60a827ba9e4aecd0411dcf944f0a7b80d7a84f517816f521f70103fdee020bc5a83d789b6b56ddb5
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  Gemfile.lock
7
+ gemfiles/*.lock
7
8
  InstalledFiles
8
9
  _yardoc
9
10
  coverage
data/.travis.yml CHANGED
@@ -1,5 +1,10 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 1.9.3
5
4
  - 2.0.0
5
+ - 2.1.0
6
+ - 2.2.0
7
+ gemfile:
8
+ - gemfiles/4.0.gemfile
9
+ - gemfiles/4.1.gemfile
10
+ - gemfiles/4.2.gemfile
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2013 ma2ge
1
+ Copyright (c) 2012-2015 Takayuki Matsubara
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  ![Breadcrumble Logo](http://ma2gedev.github.io/breadcrumble/images/logo_s.png)
10
10
  logo designed by [@524shoutz_nika](https://twitter.com/524shoutz_nika)
11
11
 
12
- Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 3, 4.0 and 4.1.
12
+ Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0, 4.1 and 4.2.
13
13
 
14
14
  Support rich snippets mark up using microdata format as default.
15
15
 
@@ -31,6 +31,8 @@ Or install it yourself as:
31
31
 
32
32
  $ gem install breadcrumble
33
33
 
34
+ Specify breadcrumble version 3.0.6 with Rails version 3.2.x.
35
+
34
36
  ## Usage
35
37
 
36
38
  ### Controller
data/breadcrumble.gemspec CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/breadcrumble/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["ma2ge"]
6
6
  gem.email = ["takayuki.1229@gmail.com"]
7
- gem.description = "A breadcrumbs plugin for Ruby on Rails 3, Rails 4.0 and 4.1."
8
- gem.summary = "Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 3, Rails 4.0 and 4.1."
7
+ gem.description = "A breadcrumbs plugin for Ruby on Rails 4.0, 4.1 and 4.2."
8
+ gem.summary = "Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0, 4.1 and 4.2."
9
9
  gem.homepage = "https://github.com/ma2gedev/breadcrumble"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', '~> 4.0.0'
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', '~> 4.1.0'
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', '~> 4.2.0'
4
+
5
+ gemspec path: '../'
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', github: 'rails/rails'
4
+ gem 'arel', github: 'rails/arel'
5
+
6
+ gemspec path: '../'
@@ -8,29 +8,29 @@ module Breadcrumble
8
8
 
9
9
  module ClassMethods
10
10
  # Add a breadcrumb.
11
- # @param filter_options filter_options passed before_filter method
11
+ # @param filter_options filter_options passed before_action method
12
12
  # @example
13
13
  # add_breadcrumb("home", home_url)
14
14
  # add_breadcrumb(-> context { context.title }, -> context { context.sample_path })
15
15
  def add_breadcrumb(name, url = nil, filter_options = {})
16
- before_filter(filter_options) do |controller|
16
+ before_action(filter_options) do |controller|
17
17
  controller.send(:add_breadcrumb, name, url)
18
18
  end
19
19
  end
20
20
 
21
21
  # Add a breadcrumb to breadcrumb trail.
22
22
  # @param trail_index index of breadcrumb trail
23
- # @param filter_options filter_options passed before_filter method
23
+ # @param filter_options filter_options passed before_action method
24
24
  # @example
25
25
  # add_breadcrumb_to("level 1", "level 1 url", 0, only: :show)
26
26
  def add_breadcrumb_to(name, url, trail_index, filter_options = {})
27
- before_filter(filter_options) do |controller|
27
+ before_action(filter_options) do |controller|
28
28
  controller.send(:add_breadcrumb_to, name, url, trail_index)
29
29
  end
30
30
  end
31
31
 
32
32
  def add_breadcrumbs(*args)
33
- before_filter do |controller|
33
+ before_action do |controller|
34
34
  args.each do |arg|
35
35
  controller.send(:add_breadcrumb, arg[0], arg[1])
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Breadcrumble
2
- VERSION = '4.1.0'
2
+ VERSION = '4.2.0'
3
3
  end
metadata CHANGED
@@ -1,81 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breadcrumble
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ma2ge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-06 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: A breadcrumbs plugin for Ruby on Rails 3, Rails 4.0 and 4.1.
69
+ description: A breadcrumbs plugin for Ruby on Rails 4.0, 4.1 and 4.2.
70
70
  email:
71
71
  - takayuki.1229@gmail.com
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .rubocop.yml
78
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rubocop.yml"
78
+ - ".travis.yml"
79
79
  - Gemfile
80
80
  - LICENSE
81
81
  - README.md
@@ -84,6 +84,10 @@ files:
84
84
  - app/views/breadcrumble/_breadcrumb_trail.html.erb
85
85
  - app/views/breadcrumble/_breadcrumb_trails.html.erb
86
86
  - breadcrumble.gemspec
87
+ - gemfiles/4.0.gemfile
88
+ - gemfiles/4.1.gemfile
89
+ - gemfiles/4.2.gemfile
90
+ - gemfiles/edge.gemfile
87
91
  - lib/breadcrumble.rb
88
92
  - lib/breadcrumble/action_controller.rb
89
93
  - lib/breadcrumble/action_view.rb
@@ -134,21 +138,21 @@ require_paths:
134
138
  - lib
135
139
  required_ruby_version: !ruby/object:Gem::Requirement
136
140
  requirements:
137
- - - '>='
141
+ - - ">="
138
142
  - !ruby/object:Gem::Version
139
143
  version: '0'
140
144
  required_rubygems_version: !ruby/object:Gem::Requirement
141
145
  requirements:
142
- - - '>='
146
+ - - ">="
143
147
  - !ruby/object:Gem::Version
144
148
  version: '0'
145
149
  requirements: []
146
150
  rubyforge_project:
147
- rubygems_version: 2.0.3
151
+ rubygems_version: 2.2.2
148
152
  signing_key:
149
153
  specification_version: 4
150
- summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 3,
151
- Rails 4.0 and 4.1.
154
+ summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0,
155
+ 4.1 and 4.2.
152
156
  test_files:
153
157
  - spec/controllers/application_controller_spec.rb
154
158
  - spec/controllers/examples_controller_spec.rb