breadcrumble 4.3.1 → 5.0.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: dede31bbea45b15134ee81942b43c0cf897ff9e9
4
- data.tar.gz: 81ffa9595a34b5b073803723bfbf48d462436a31
3
+ metadata.gz: 61f2559a9ed5695631b006486c210b6552709bb7
4
+ data.tar.gz: f411e0f0b8bcdd530387fe78d49a9fb3e5d559dd
5
5
  SHA512:
6
- metadata.gz: bbd85cb49af4fe343311359338d433cd468fd8b98efbc26278cef93294abecc80d617006be97a12ae5c865ae72c8dc4cb7a0f84e63cfd99fe4e3f6f668fe558b
7
- data.tar.gz: ceef6e837ec691cd2de6adceb02a48ff4e83a9d2041556a80b6c9e3fd33de05e7805e664b6a6c0b43a6476622e29b89c5d42a4d21e8652d2755594103517c51d
6
+ metadata.gz: 3e4b6bf3e26dbd29f697e35f6b804299a42fa494bd05c7ecc46996dfe06f15ddb767ba623e7bbbc93c5ac9d1751b0142fb78aa0c4d5568e406a0e7505ea73277
7
+ data.tar.gz: 6539289002395252b775aa8fc7614f900acb661239d0dad97c2b500d34f0b46a5b4a243f1cfa865ece120abb14d936f4d94cac19a71a7668b5bf5315fa4d10d0
@@ -3,9 +3,16 @@ sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
5
  - 2.0.0
6
- - 2.1.0
7
- - 2.2.0
6
+ - 2.1.10
7
+ - 2.2.5
8
8
  gemfile:
9
9
  - gemfiles/4.0.gemfile
10
10
  - gemfiles/4.1.gemfile
11
11
  - gemfiles/4.2.gemfile
12
+ - gemfiles/5.0.gemfile
13
+ matrix:
14
+ exclude:
15
+ - rvm: 2.0.0
16
+ gemfile: gemfiles/5.0.gemfile
17
+ - rvm: 2.1.10
18
+ gemfile: gemfiles/5.0.gemfile
data/README.md CHANGED
@@ -115,6 +115,17 @@ And then calling `render_breadcrumbs` or `render_breadcrumb_trails` method with
115
115
 
116
116
  <http://breadcrumble.herokuapp.com/>
117
117
 
118
+ ## Development
119
+
120
+ ### test with specified Rails version
121
+
122
+ like the following:
123
+
124
+ ```bash
125
+ $ bundle install --gemfile=gemfiles/4.1.gemfile --path vendor/bundle
126
+ $ BUNDLE_GEMFILE=gemfiles/4.1.gemfile bundle exec rake
127
+ ```
128
+
118
129
  ## Contributing
119
130
 
120
131
  ### Easy way
@@ -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 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."
7
+ gem.description = "A breadcrumbs plugin for Ruby on Rails 4.x and 5.0."
8
+ gem.summary = "Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.x and 5.0."
9
9
  gem.homepage = "https://github.com/ma2gedev/breadcrumble"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
@@ -18,6 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.add_dependency "rails", ['>= 4.0.0']
19
19
  gem.add_development_dependency "sqlite3"
20
20
  gem.add_development_dependency "rspec-rails", '~> 3.0'
21
- gem.add_development_dependency "rr"
22
21
  gem.add_development_dependency "coveralls"
23
22
  end
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rails', '~> 5.0.0'
4
+ gem 'rails-controller-testing'
5
+
6
+ gemspec path: '../'
@@ -3,7 +3,9 @@ module Breadcrumble
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- helper_method :add_breadcrumb, :breadcrumbs, :breadcrumb_trails
6
+ if respond_to?(:helper_method)
7
+ helper_method :add_breadcrumb, :breadcrumbs, :breadcrumb_trails
8
+ end
7
9
  end
8
10
 
9
11
  module ClassMethods
@@ -1,3 +1,3 @@
1
1
  module Breadcrumble
2
- VERSION = '4.3.1'
2
+ VERSION = '5.0.0'
3
3
  end
@@ -3,10 +3,10 @@ require 'spec_helper'
3
3
  describe 'Breadcrumble::ActionView' do
4
4
  context '#render_breadcrumbs' do
5
5
  before do
6
- stub(helper).breadcrumbs {[
6
+ allow(helper).to receive(:breadcrumbs).and_return([
7
7
  { name: 'root_name', url: '/root_url' },
8
8
  { name: 'test_name', url: '/test_url' }
9
- ]}
9
+ ])
10
10
  end
11
11
  context 'schema.org' do
12
12
  subject { helper.render_breadcrumbs }
@@ -27,7 +27,7 @@ describe 'Breadcrumble::ActionView' do
27
27
  end
28
28
  context '#render_breadcrumb_trails' do
29
29
  before do
30
- stub(helper).breadcrumb_trails {[
30
+ allow(helper).to receive(:breadcrumb_trails).and_return([
31
31
  [
32
32
  { name: 'trail1_level1', url: '/trail1_level1_url' },
33
33
  { name: 'trail1_level2', url: '/trail1_level2_url' }
@@ -36,7 +36,7 @@ describe 'Breadcrumble::ActionView' do
36
36
  { name: 'trail2_level1', url: '/trail2_level1_url' },
37
37
  { name: 'trail2_level2', url: '/trail2_level2_url' }
38
38
  ]
39
- ]}
39
+ ])
40
40
  end
41
41
  context 'schema.org' do
42
42
  subject { helper.render_breadcrumb_trails }
@@ -66,10 +66,10 @@ describe 'Breadcrumble::ActionView' do
66
66
  end
67
67
  context '#render_breadcrumbs with theme' do
68
68
  before do
69
- stub(helper).breadcrumbs {[
69
+ allow(helper).to receive(:breadcrumbs).and_return([
70
70
  { name: 'root_name', url: '/root_url' },
71
71
  { name: 'test_name', url: '/test_url' }
72
- ]}
72
+ ])
73
73
  end
74
74
  subject { helper.render_breadcrumbs(theme: 'test') }
75
75
  it { is_expected.to match('test breadcrumb theme') }
@@ -77,7 +77,7 @@ describe 'Breadcrumble::ActionView' do
77
77
  end
78
78
  context '#render_breadcrumb_trails with theme' do
79
79
  before do
80
- stub(helper).breadcrumb_trails {[
80
+ allow(helper).to receive(:breadcrumb_trails).and_return([
81
81
  [
82
82
  { name: 'trail1_level1', url: '/trail1_level1_url' },
83
83
  { name: 'trail1_level2', url: '/trail1_level2_url' }
@@ -86,7 +86,7 @@ describe 'Breadcrumble::ActionView' do
86
86
  { name: 'trail2_level1', url: '/trail2_level1_url' },
87
87
  { name: 'trail2_level2', url: '/trail2_level2_url' }
88
88
  ]
89
- ]}
89
+ ])
90
90
  end
91
91
  subject { helper.render_breadcrumb_trails(theme: 'test') }
92
92
  it { is_expected.to match('test breadcrumb_trails theme') }
@@ -20,5 +20,4 @@ RSpec.configure do |config|
20
20
  # # Equivalent to being in spec/controllers
21
21
  # end
22
22
  config.infer_spec_type_from_file_location!
23
- config.mock_with :rr
24
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breadcrumble
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ma2ge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rr
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: coveralls
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +66,7 @@ dependencies:
80
66
  - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
- description: A breadcrumbs plugin for Ruby on Rails 4.0, 4.1 and 4.2.
69
+ description: A breadcrumbs plugin for Ruby on Rails 4.x and 5.0.
84
70
  email:
85
71
  - takayuki.1229@gmail.com
86
72
  executables: []
@@ -104,6 +90,7 @@ files:
104
90
  - gemfiles/4.0.gemfile
105
91
  - gemfiles/4.1.gemfile
106
92
  - gemfiles/4.2.gemfile
93
+ - gemfiles/5.0.gemfile
107
94
  - gemfiles/edge.gemfile
108
95
  - lib/breadcrumble.rb
109
96
  - lib/breadcrumble/action_controller.rb
@@ -168,8 +155,8 @@ rubyforge_project:
168
155
  rubygems_version: 2.2.2
169
156
  signing_key:
170
157
  specification_version: 4
171
- summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.0,
172
- 4.1 and 4.2.
158
+ summary: Breadcrumble is a simple breadcrumb navigation plugin for Ruby on Rails 4.x
159
+ and 5.0.
173
160
  test_files:
174
161
  - spec/controllers/application_controller_spec.rb
175
162
  - spec/controllers/examples_controller_spec.rb