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 +4 -4
- data/lib/action_interceptor/version.rb +1 -1
- data/spec/dummy/config/boot.rb +1 -1
- data/spec/dummy/log/test.log +0 -1
- data/spec/lib/action_interceptor/configuration_spec.rb +1 -1
- data/spec/lib/action_interceptor/strategies_spec.rb +6 -6
- data/spec/lib/action_interceptor_spec.rb +2 -2
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d5e5cddbd8555f8052384fd6c1a24dbb2d5f983
|
4
|
+
data.tar.gz: ced72ebad0518896b03f40c9b25f761a214242ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d5e955d2633440c58967462106e42e1f0ea2f6acd0d767a59c259f37991e960beb4bf5debbe373d9d92de3586ed7f859af946ae24e57c47dd25ad6311ded6f
|
7
|
+
data.tar.gz: 8d264999fee024dd2449b5fc01c4c7b21bc5a9e7d676c18056a7c06f422ccc7e7c625fbc59c8ba192a033c60bef66c824858ce6dcb5de7114c38d2ea8ec32d46
|
data/spec/dummy/config/boot.rb
CHANGED
@@ -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.
|
4
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
5
5
|
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
data/spec/dummy/log/test.log
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
Redirected to
|
@@ -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
|
-
|
11
|
-
strategy =
|
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 =
|
16
|
-
strategies.each do |
|
17
|
-
expect(
|
18
|
-
expect(
|
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(
|
6
|
-
expect(
|
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.
|
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
|