breadcrumb_trail 0.1.0 → 0.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: 6d8214c00eb8560928ec5a0e2b977abb28a21a13
4
- data.tar.gz: 4484fad9e6f341e0779cc8abdf334a9554fb1e9f
3
+ metadata.gz: f3eead2835ff79cb282a9394183c7605923f6d74
4
+ data.tar.gz: 24f57b3ffe1fb1dd1cce614c174018551562763e
5
5
  SHA512:
6
- metadata.gz: 5c2caf6f7ccabf9ad5d60ca820044f20f948e8a7a9eda77fbff66c25a3af49dfa751d6cffe62dee52125afbeacfa1d56bddbbbbd7829566e59b47ff21f010e2c
7
- data.tar.gz: faa2216d0e9f9aeda187e95912222fe9de9610e5967cc7854d3ebf36e4c9dd86de2d3bd434b22335c13b17b2c321fa8feb60ba6460ada3c8f048838ced21fc60
6
+ metadata.gz: f8f708a07412c375e3e3b3480e2c22b2ae3a96783b36c067f4c9542c47e79c926689f6bd5abb903c626434158854496240933b64d25f3a459d33d7d14faf0cdd
7
+ data.tar.gz: 292a46246e9c7109f9d54519452daffd1adf6b95e7397e75d87a3a193ba40d2612506df6d8546b8682ffe3b71df12d612e89f37e7afe89b73ffe152e105e1e25
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- breadcrumb_trail (0.1.0)
4
+ breadcrumb_trail (0.2.0)
5
5
  rails (>= 3.0, < 5)
6
6
 
7
7
  GEM
@@ -140,3 +140,6 @@ DEPENDENCIES
140
140
  rake (~> 10.0)
141
141
  rspec-rails (~> 3.0)
142
142
  yard
143
+
144
+ BUNDLED WITH
145
+ 1.10.2
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![Code Climate](https://codeclimate.com/github/medcat/breadcrumb_trail/badges/gpa.svg)](https://codeclimate.com/github/medcat/breadcrumb_trail) [![Build Status](https://travis-ci.org/medcat/breadcrumb_trail.svg)](https://travis-ci.org/medcat/breadcrumb_trail) [![Test Coverage](https://codeclimate.com/github/medcat/breadcrumb_trail/badges/coverage.svg)](https://codeclimate.com/github/medcat/breadcrumb_trail)
3
3
 
4
4
  Helps you create a breadcrumb system for your Rails application.
5
- Better than any other library, guarenteed<sup>*</sup>.
5
+ Better than any other library, guaranteed<sup>*</sup>.
6
6
 
7
7
  ## Installation
8
8
 
@@ -133,4 +133,4 @@ builder's `#initialize` via the last argument.
133
133
  4. Push to the branch (`git push origin my-new-feature`)
134
134
  5. Create a new Pull Request
135
135
 
136
- <sup>*</sup>: Not guarenteed.
136
+ <sup>*</sup>: Not guaranteed.
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'breadcrumb_trail/version'
4
+ require "breadcrumb_trail/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "breadcrumb_trail"
@@ -79,7 +79,7 @@ module BreadcrumbTrail
79
79
  when String
80
80
  @name
81
81
  when Symbol
82
- context.public_send(@name) # todo
82
+ I18n.translate(@name)
83
83
  when Proc
84
84
  context.instance_exec(&@name)
85
85
  when nil
@@ -1,5 +1,5 @@
1
1
  module BreadcrumbTrail
2
2
 
3
3
  # The current version of BreadcrumbTrail.
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -27,7 +27,7 @@ RSpec.describe BreadcrumbTrail::Breadcrumb do
27
27
  let(:actual_path) { "/" }
28
28
 
29
29
  it "returns the called name" do
30
- expect(context).to receive(:some_name).once.and_return(actual_name)
30
+ expect(I18n).to receive(:translate).with(:some_name).and_return(actual_name)
31
31
  expect(subject.computed_name(context)).to be actual_name
32
32
  end
33
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breadcrumb_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,7 +122,6 @@ files:
122
122
  - lib/breadcrumb_trail/builder.rb
123
123
  - lib/breadcrumb_trail/railtie.rb
124
124
  - lib/breadcrumb_trail/version.rb
125
- - lib/tasks/breadcrumb_trail_tasks.rake
126
125
  - spec/block_builder_spec.rb
127
126
  - spec/breadcrumb_spec.rb
128
127
  - spec/builder_spec.rb
@@ -185,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
184
  version: '0'
186
185
  requirements: []
187
186
  rubyforge_project:
188
- rubygems_version: 2.2.2
187
+ rubygems_version: 2.4.5
189
188
  signing_key:
190
189
  specification_version: 4
191
190
  summary: A basic breadcrumb trail plugin.
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :breadcrumb_trail do
3
- # # Task goes here
4
- # end