action_interceptor 1.1.0 → 1.1.1

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: 9407178e3d4a8be9957a5eacd4df9ee9f0866dc6
4
- data.tar.gz: da347d252ab6462a8c29ffdc3c50ba9628fc672a
3
+ metadata.gz: 7d5e5cddbd8555f8052384fd6c1a24dbb2d5f983
4
+ data.tar.gz: ced72ebad0518896b03f40c9b25f761a214242ea
5
5
  SHA512:
6
- metadata.gz: 3eb6db687c0d53268e0abc9d7e4199291373297c51b70edbe10f54c9bfdab651749f6f3c672bd44a88cf73bc301f10349a5d8f5dcc3270c162e1cc80fb724a75
7
- data.tar.gz: d8058e0e5039eb228e1165cd7ada869fd0442673ab690a36e5d728e45633d110907a93ad31d25c4e4c1e8b93282e8d2fc9111cb2b8468cae7d7802bf7935b963
6
+ metadata.gz: f7d5e955d2633440c58967462106e42e1f0ea2f6acd0d767a59c259f37991e960beb4bf5debbe373d9d92de3586ed7f859af946ae24e57c47dd25ad6311ded6f
7
+ data.tar.gz: 8d264999fee024dd2449b5fc01c4c7b21bc5a9e7d676c18056a7c06f422ccc7e7c625fbc59c8ba192a033c60bef66c824858ce6dcb5de7114c38d2ea8ec32d46
@@ -1,3 +1,3 @@
1
1
  module ActionInterceptor
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -1,5 +1,5 @@
1
1
  # Set up gems listed in the Gemfile.
2
2
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
5
  $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1 +0,0 @@
1
- Redirected to
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  module ActionInterceptor
4
4
  describe Configuration do
5
5
 
6
- let!(:config) { Configuration.new }
6
+ let!(:config) { described_class.new }
7
7
 
8
8
  it 'stores configuration options' do
9
9
  expect(config.default_url).to be_nil
@@ -7,15 +7,15 @@ module ActionInterceptor
7
7
  let!(:controller) { ::ActionController::Base.new }
8
8
 
9
9
  it 'registers and instantiates storage strategies' do
10
- ActionInterceptor::Strategies.register(:dummy, ::Strategies::Dummy)
11
- strategy = ActionInterceptor::Strategies.find(controller, :dummy)
10
+ described_class.register(:dummy, ::Strategies::Dummy)
11
+ strategy = described_class.find(controller, :dummy)
12
12
  expect(strategy).to be_a ::Strategies::Dummy
13
13
  expect(strategy.controller).to eq controller
14
14
 
15
- strategies = ActionInterceptor::Strategies.find_all(controller, [:dummy])
16
- strategies.each do |strategy|
17
- expect(strategy).to be_a ::Strategies::Dummy
18
- expect(strategy.controller).to eq controller
15
+ strategies = described_class.find_all(controller, [:dummy])
16
+ strategies.each do |strat|
17
+ expect(strat).to be_a ::Strategies::Dummy
18
+ expect(strat.controller).to eq controller
19
19
  end
20
20
  end
21
21
 
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe ActionInterceptor do
4
4
  it 'must be configurable' do
5
- expect(ActionInterceptor.config.default_url).to eq('/dummy')
6
- expect(ActionInterceptor.config.default_key).to eq(:dummy_key)
5
+ expect(described_class.config.default_url).to eq('/dummy')
6
+ expect(described_class.config.default_key).to eq(:dummy_key)
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_interceptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: sqlite3
29
35
  requirement: !ruby/object:Gem::Requirement