buoys 1.0.0 → 1.1.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: 9a95ccfad0d08b44c4e2611abad89dd6476995b3
4
- data.tar.gz: 89391dac164282f6a28d37d3d5820ab6cf3b81e4
3
+ metadata.gz: 36271005ba0ba04593d62e6d6f0d2c0cc0156c91
4
+ data.tar.gz: 62c723569c8a8ffb962b1204914209291efc0dca
5
5
  SHA512:
6
- metadata.gz: 09edff082e1bb2d36152a0a27c70b28394825cd4234599b53f9cb9270f0b36bc64393791cf1d215357564db9eed7a8798dd6ea5766cfe1b752cd3c6175cf7757
7
- data.tar.gz: 5a20e257c36f32656eddfcfb536a91f558a7619e719ee086897fe5b7da8ffdcb28453b105b962fb481bf846b4a5dfb4a018c4ebd3591e44496ac6f6312513fa7
6
+ metadata.gz: df714e7c87349f56c64a60a99b7f5d8c94c34e9f572ce28bc60d3f5bbedf696b248eb4f7ded73d0c4cc4aeb7135df4f029cadd9774811c7ae1b23b88957d13af
7
+ data.tar.gz: 4b1d8c37a805d8f23e4246caaebc788ff7e962cc71e74084023ef89c04467c607656ace7f5c29f9bf05ae90d13ce92a054e0b9b7227ba7e30d69e75ae5b3ba09
@@ -27,7 +27,7 @@ module Buoys
27
27
  alias breadcrumbs buoys
28
28
 
29
29
  def buoys_renderer
30
- @_buoys_renderer ||= Buoys::Renderer.new(self, nil)
30
+ @_buoys_renderer ||= Buoys::Renderer.new(self, nil) # rubocop:disable Naming/MemoizedInstanceVariableName
31
31
  end
32
32
  end
33
33
  end
@@ -32,7 +32,7 @@ module Buoys
32
32
  loaded_times.clear
33
33
 
34
34
  buoy_files.each do |file|
35
- instance_eval open(file).read, file
35
+ instance_eval File.open(file).read, file
36
36
  loaded_times << File.mtime(file)
37
37
  end
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Buoys
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.1.0'.freeze
5
5
  end
@@ -4,7 +4,7 @@ require 'rails/generators'
4
4
 
5
5
  module Buoys
6
6
  class InstallGenerator < Rails::Generators::Base
7
- source_root File.expand_path('../templates', __FILE__)
7
+ source_root File.expand_path('templates', __dir__)
8
8
 
9
9
  class_option :template
10
10
 
@@ -51,3 +51,4 @@ class BuoysGeneratorTest < Rails::Generators::TestCase
51
51
  assert_file File.expand_path('./config/locales/buoys.en.yml', dest_root)
52
52
  end
53
53
  end
54
+ # rubocop:enable Style/RegexpLiteral, Metrics/LineLength
@@ -3,8 +3,8 @@
3
3
  # Configure Rails Environment
4
4
  ENV['RAILS_ENV'] = 'test'
5
5
 
6
- require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
7
- ActiveRecord::Migrator.migrations_paths = [File.expand_path('../../test/dummy/db/migrate', __FILE__)]
6
+ require File.expand_path('../test/dummy/config/environment.rb', __dir__)
7
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path('../test/dummy/db/migrate', __dir__)]
8
8
  require 'rails/test_help'
9
9
 
10
10
  # Filter out Minitest backtrace while allowing backtrace from other libraries
@@ -18,7 +18,7 @@ end
18
18
 
19
19
  # Load fixtures from the engine
20
20
  if ActiveSupport::TestCase.respond_to?(:fixture_path=)
21
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
21
+ ActiveSupport::TestCase.fixture_path = File.expand_path('fixtures', __dir__)
22
22
  ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
23
23
  ActiveSupport::TestCase.fixtures :all
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buoys
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - muryoimpl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-13 00:00:00.000000000 Z
11
+ date: 2018-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,20 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.49'
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: 0.49.1
61
+ version: '0.54'
65
62
  type: :development
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - "~>"
70
67
  - !ruby/object:Gem::Version
71
- version: '0.49'
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: 0.49.1
68
+ version: '0.54'
75
69
  description: A Ruby on Rails breadcrumbs plugin.
76
70
  email:
77
71
  - muryoimpl@gmail.com
@@ -168,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
162
  version: '0'
169
163
  requirements: []
170
164
  rubyforge_project:
171
- rubygems_version: 2.5.1
165
+ rubygems_version: 2.6.13
172
166
  signing_key:
173
167
  specification_version: 4
174
168
  summary: A Ruby on Rails breadcrumbs plugin.