rspectacular 0.62.0 → 0.62.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/deploy +109 -0
- data/bin/rspectacular_test_bootstrap +3 -5
- data/lib/rspectacular/mock_authentications/omniauth/ebay.rb +9 -9
- data/lib/rspectacular/mock_authentications/omniauth/facebook.rb +6 -6
- data/lib/rspectacular/mock_authentications/omniauth/twitter.rb +6 -6
- data/lib/rspectacular/plugins.rb +1 -1
- data/lib/rspectacular/plugins/authentication.rb +3 -5
- data/lib/rspectacular/plugins/carrier_wave.rb +2 -2
- data/lib/rspectacular/plugins/code_climate.rb +1 -1
- data/lib/rspectacular/plugins/database_cleaner.rb +1 -1
- data/lib/rspectacular/plugins/devise.rb +4 -4
- data/lib/rspectacular/plugins/email.rb +3 -3
- data/lib/rspectacular/plugins/features.rb +8 -8
- data/lib/rspectacular/plugins/omniauth.rb +2 -2
- data/lib/rspectacular/plugins/rails/strong_parameters.rb +1 -1
- data/lib/rspectacular/plugins/referehencible.rb +1 -1
- data/lib/rspectacular/plugins/simple_cov.rb +1 -1
- data/lib/rspectacular/plugins/singleton.rb +1 -1
- data/lib/rspectacular/plugins/stripe.rb +3 -5
- data/lib/rspectacular/plugins/timecop.rb +2 -2
- data/lib/rspectacular/plugins/webmock.rb +2 -2
- data/lib/rspectacular/spec_helpers/rails_engine.rb +1 -1
- data/lib/rspectacular/support/focused.rb +2 -2
- data/lib/rspectacular/support/garbage_collection.rb +3 -5
- data/lib/rspectacular/support/pending.rb +1 -1
- data/lib/rspectacular/support/rails.rb +1 -1
- data/lib/rspectacular/support/selenium.rb +1 -1
- data/lib/rspectacular/vcr_matchers/uri_without_trailing_id.rb +1 -1
- data/lib/rspectacular/version.rb +1 -1
- metadata +6 -7
- data/spec/spec_helper.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 003ceca5c4704416e8487c8e5fd5398f615eb3c2
|
4
|
+
data.tar.gz: 83ee296a5c39086425de909198415c6aea84f2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2131467600d9276c6e2fac523d8b9baeabb4128163e436e777e1bf6d5096d2a234658ebac1e973cf9ae2fdbb384fc40fdb7ec2daacc678780648035dcac607c9
|
7
|
+
data.tar.gz: 48ff948a1cd472ecd714cc3aeb99c595ac49d44fd19dd2ac732341f1099198bda1cf7c73ce13a624267734fc9a2a452567f7b271e0a750005c8e195267b1d302
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
data/bin/deploy
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
gem_name="rspectacular"
|
4
|
+
current_sha="$(git rev-parse HEAD)"
|
5
|
+
|
6
|
+
function chamber_env_var {
|
7
|
+
local var_key="$1"
|
8
|
+
|
9
|
+
bundle exec chamber show --as-env |
|
10
|
+
grep $var_key |
|
11
|
+
sed -r -n 's/.*=\"(.*)\"/\1/p'
|
12
|
+
}
|
13
|
+
|
14
|
+
export RUBYGEMS_API_KEY="$(chamber_env_var RUBYGEMS_API_KEY)"
|
15
|
+
|
16
|
+
if [ -n "$CIRCLECI" ]; then
|
17
|
+
echo ""
|
18
|
+
echo "Adding Rubygems Credentials to $HOME/.netrc"
|
19
|
+
echo "--------------------------------------------------------------------------------"
|
20
|
+
echo ""
|
21
|
+
|
22
|
+
echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" > $HOME/.gem/credentials
|
23
|
+
chmod 0600 $HOME/.gem/credentials
|
24
|
+
|
25
|
+
echo "Done."
|
26
|
+
fi
|
27
|
+
|
28
|
+
echo ""
|
29
|
+
echo "Detecting the Version to Release"
|
30
|
+
echo "--------------------------------------------------------------------------------"
|
31
|
+
latest_release_tag="$(git tag | grep -E 'releases' | sort --version-sort | tail -n 1)"
|
32
|
+
|
33
|
+
if [ -n "$latest_release_tag" ]; then
|
34
|
+
echo "The latest release detected was '${latest_release_tag}'."
|
35
|
+
echo ""
|
36
|
+
else
|
37
|
+
echo "No release tag found."
|
38
|
+
echo "Skipping deploy."
|
39
|
+
echo ""
|
40
|
+
|
41
|
+
exit
|
42
|
+
fi
|
43
|
+
|
44
|
+
echo ""
|
45
|
+
echo "Current Version Information"
|
46
|
+
echo "--------------------------------------------------------------------------------"
|
47
|
+
echo ""
|
48
|
+
echo "Current SHA: $(git rev-parse HEAD)"
|
49
|
+
echo "Current Tag: $(git describe --exact-match HEAD 2> /dev/null)"
|
50
|
+
echo ""
|
51
|
+
|
52
|
+
if [ -n "$(git describe --exact-match HEAD 2> /dev/null | grep $latest_release_tag)" ]; then
|
53
|
+
echo "The commit being built contains the release tag. Releasing now."
|
54
|
+
else
|
55
|
+
echo "The commit does not contain the latest release tag."
|
56
|
+
echo "Skipping deploy."
|
57
|
+
echo ""
|
58
|
+
|
59
|
+
exit
|
60
|
+
fi
|
61
|
+
|
62
|
+
echo ""
|
63
|
+
echo "Pushing to Rubygems"
|
64
|
+
echo "--------------------------------------------------------------------------------"
|
65
|
+
deploy_successful=false
|
66
|
+
|
67
|
+
gem build *.gemspec | tee push.log
|
68
|
+
|
69
|
+
gem_file="$(cat push.log | grep -o ' File: .*' | sed -e 's- File: \(.*\)-\1-')"
|
70
|
+
|
71
|
+
if gem push $gem_file | tee push.log; then
|
72
|
+
deploy_successful=true
|
73
|
+
fi
|
74
|
+
|
75
|
+
if [[ "$deploy_successful" == "false" ]]; then
|
76
|
+
echo "There was a problem pushing your gem to Rubygems."
|
77
|
+
echo ""
|
78
|
+
echo "Aborting deploy"
|
79
|
+
echo ""
|
80
|
+
fi
|
81
|
+
|
82
|
+
echo ""
|
83
|
+
echo "Sending notification to Slack"
|
84
|
+
echo "--------------------------------------------------------------------------------"
|
85
|
+
|
86
|
+
release_message=""
|
87
|
+
color=""
|
88
|
+
|
89
|
+
if [ -n "$(cat push.log | grep 'Successfully registered gem')" ]; then
|
90
|
+
release_message="${gem_name} ${latest_release_tag} has been successfully released to Rubygems"
|
91
|
+
color="success"
|
92
|
+
elif [ -n "$(cat push.log | grep 'Repushing of gem versions is not allowed')" ]; then
|
93
|
+
release_message="${gem_name} ${latest_release_tag} has already been pushed to Rubygems"
|
94
|
+
color="warning"
|
95
|
+
else
|
96
|
+
release_message="There was a problem pushing ${gem_name} ${latest_release_tag} to Rubygems"
|
97
|
+
color="danger"
|
98
|
+
fi
|
99
|
+
|
100
|
+
curl -X POST --data-urlencode "payload={\"username\": \"rubygems\", \"text\": \"${release_message}\", \"icon_url\": \"https://pbs.twimg.com/profile_images/535452674729078784/5jL6-BA5_400x400.jpeg\"}" https://hooks.slack.com/services/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
|
101
|
+
|
102
|
+
if ! $deploy_successful; then
|
103
|
+
exit 1;
|
104
|
+
fi
|
105
|
+
|
106
|
+
echo ""
|
107
|
+
echo ""
|
108
|
+
echo "Deploy completed"
|
109
|
+
echo ""
|
@@ -9,14 +9,12 @@ trap 2 do
|
|
9
9
|
exit
|
10
10
|
end
|
11
11
|
|
12
|
-
Dir.mkdir(fifo_dir) unless Dir.
|
12
|
+
Dir.mkdir(fifo_dir) unless Dir.exist?(fifo_dir)
|
13
13
|
|
14
|
-
unless File.
|
15
|
-
%x{mkfifo #{fifo_path}}
|
16
|
-
end
|
14
|
+
`mkfifo #{fifo_path}` unless File.exist?(fifo_path)
|
17
15
|
|
18
16
|
input = open(fifo_path, 'r+')
|
19
17
|
|
20
|
-
|
18
|
+
loop do
|
21
19
|
system input.gets
|
22
20
|
end
|
@@ -6,17 +6,17 @@ module Ebay
|
|
6
6
|
'provider' => 'ebay',
|
7
7
|
'uid' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
8
8
|
'info' =>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
{
|
10
|
+
'ebay_id' => 'my_username',
|
11
|
+
'ebay_token' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
12
|
+
'email' => 'username@example.com',
|
13
|
+
'full_name' => 'Gorby Thunderhorse',
|
14
|
+
'country' => 'US',
|
15
|
+
},
|
16
16
|
'credentials' => {},
|
17
17
|
'extra' => {
|
18
|
-
'internal_return_to' => nil
|
19
|
-
}
|
18
|
+
'internal_return_to' => nil,
|
19
|
+
},
|
20
20
|
)
|
21
21
|
end
|
22
22
|
end
|
@@ -6,7 +6,7 @@ module Facebook
|
|
6
6
|
'provider' => 'facebook',
|
7
7
|
'uid' => '100002971692646',
|
8
8
|
'credentials' => {
|
9
|
-
'token' => 'my_facebook_token'
|
9
|
+
'token' => 'my_facebook_token',
|
10
10
|
},
|
11
11
|
'info' => {
|
12
12
|
'name' => 'Sharon Letuchysky',
|
@@ -20,8 +20,8 @@ module Facebook
|
|
20
20
|
'phone' => nil,
|
21
21
|
'urls' => {
|
22
22
|
'Facebook' => 'http://www.facebook.com/profile.php?id=100002971692646',
|
23
|
-
'Website' => nil
|
24
|
-
}
|
23
|
+
'Website' => nil,
|
24
|
+
},
|
25
25
|
},
|
26
26
|
'extra' => {
|
27
27
|
'user_hash' => {
|
@@ -33,9 +33,9 @@ module Facebook
|
|
33
33
|
'link' => 'http://www.facebook.com/profile.php?id=100002971692646',
|
34
34
|
'gender' => 'female',
|
35
35
|
'locale' => 'en_US',
|
36
|
-
'updated_time' => '2011-09-11T17:00:51+0000'
|
37
|
-
}
|
38
|
-
}
|
36
|
+
'updated_time' => '2011-09-11T17:00:51+0000',
|
37
|
+
},
|
38
|
+
},
|
39
39
|
)
|
40
40
|
end
|
41
41
|
end
|
@@ -6,7 +6,7 @@ module Twitter
|
|
6
6
|
'provider' => 'twitter',
|
7
7
|
'uid' => '100002971692646',
|
8
8
|
'credentials' => {
|
9
|
-
'token' => 'my_twitter_token'
|
9
|
+
'token' => 'my_twitter_token',
|
10
10
|
},
|
11
11
|
'info' => {
|
12
12
|
'name' => 'Sharon Letuchysky',
|
@@ -20,8 +20,8 @@ module Twitter
|
|
20
20
|
'phone' => nil,
|
21
21
|
'urls' => {
|
22
22
|
'Facebook' => 'http://www.facebook.com/profile.php?id=100002971692646',
|
23
|
-
'Website' => nil
|
24
|
-
}
|
23
|
+
'Website' => nil,
|
24
|
+
},
|
25
25
|
},
|
26
26
|
'extra' => {
|
27
27
|
'user_hash' => {
|
@@ -33,9 +33,9 @@ module Twitter
|
|
33
33
|
'link' => 'http://www.facebook.com/profile.php?id=100002971692646',
|
34
34
|
'gender' => 'female',
|
35
35
|
'locale' => 'en_US',
|
36
|
-
'updated_time' => '2011-09-11T17:00:51+0000'
|
37
|
-
}
|
38
|
-
}
|
36
|
+
'updated_time' => '2011-09-11T17:00:51+0000',
|
37
|
+
},
|
38
|
+
},
|
39
39
|
)
|
40
40
|
end
|
41
41
|
end
|
data/lib/rspectacular/plugins.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
RSpec.configure do |config|
|
2
|
-
config.around(:each, mock_auth:
|
2
|
+
config.around(:each, mock_auth: ->(v) { !!v }) do |example|
|
3
3
|
options = example.metadata[:mock_auth]
|
4
4
|
|
5
5
|
klass = case options
|
@@ -48,7 +48,7 @@ RSpec.configure do |config|
|
|
48
48
|
:authenticate
|
49
49
|
end
|
50
50
|
|
51
|
-
authentication_successful = if options.is_a?(Hash) && options.
|
51
|
+
authentication_successful = if options.is_a?(Hash) && options.key?(:status)
|
52
52
|
options[:status] == :authorized
|
53
53
|
else
|
54
54
|
true
|
@@ -65,8 +65,6 @@ RSpec.configure do |config|
|
|
65
65
|
|
66
66
|
authentication_controller_class.send(:remove_method, current_class_method)
|
67
67
|
|
68
|
-
unless options.is_a?(Hash) && options[:strategy] == :instance
|
69
|
-
instance.delete
|
70
|
-
end
|
68
|
+
instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
|
71
69
|
end
|
72
70
|
end
|
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
require 'carrierwave/test/matchers'
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
-
config.include CarrierWave::Test::Matchers, :
|
10
|
+
config.include CarrierWave::Test::Matchers, file_attachment: true
|
11
11
|
end
|
12
12
|
|
13
13
|
CarrierWave.configure do |config|
|
@@ -17,7 +17,7 @@ begin
|
|
17
17
|
end
|
18
18
|
|
19
19
|
RSpec.configure do |config|
|
20
|
-
config.around(:each, :
|
20
|
+
config.around(:each, file_attachment: true) do |example|
|
21
21
|
previous_carrierwave_processing_mode = subject.class.enable_processing
|
22
22
|
previous_carrierwave_storage_mode = subject.class.storage
|
23
23
|
|
@@ -8,14 +8,14 @@ begin
|
|
8
8
|
Devise.stretches = 1
|
9
9
|
|
10
10
|
RSpec.configure do |config|
|
11
|
-
config.include Devise::TestHelpers, :
|
12
|
-
config.include Warden::Test::Helpers, :
|
11
|
+
config.include Devise::TestHelpers, type: :controller
|
12
|
+
config.include Warden::Test::Helpers, type: :feature
|
13
13
|
|
14
|
-
config.before(:all, :
|
14
|
+
config.before(:all, type: :feature) do |_example|
|
15
15
|
Warden.test_mode!
|
16
16
|
end
|
17
17
|
|
18
|
-
config.before(:each, :
|
18
|
+
config.before(:each, type: :controller) do |_example|
|
19
19
|
@request.env['devise.mapping'] = Devise.mappings[:user]
|
20
20
|
end
|
21
21
|
end
|
@@ -12,15 +12,15 @@ begin
|
|
12
12
|
require 'email_spec'
|
13
13
|
|
14
14
|
RSpec.configure do |config|
|
15
|
-
config.include EmailSpec::Helpers, :
|
16
|
-
config.include EmailSpec::Matchers, :
|
15
|
+
config.include EmailSpec::Helpers, email: true
|
16
|
+
config.include EmailSpec::Matchers, email: true
|
17
17
|
end
|
18
18
|
rescue LoadError
|
19
19
|
end
|
20
20
|
|
21
21
|
if defined? ActionMailer
|
22
22
|
RSpec.configure do |config|
|
23
|
-
config.after(:each, :
|
23
|
+
config.after(:each, email: true) do
|
24
24
|
ActionMailer::Base.deliveries.clear
|
25
25
|
end
|
26
26
|
end
|
@@ -14,19 +14,19 @@ module Capybara
|
|
14
14
|
module Features
|
15
15
|
def self.included(base)
|
16
16
|
base.instance_eval do
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
alias_method :background, :before
|
18
|
+
alias_method :scenario, :it
|
19
|
+
alias_method :xscenario, :xit
|
20
|
+
alias_method :given, :let
|
21
|
+
alias_method :given!, :let!
|
22
|
+
alias_method :feature, :describe
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.feature(*args, &block)
|
29
|
-
options =
|
29
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
30
30
|
options[:capybara_feature] = true
|
31
31
|
options[:type] = :feature
|
32
32
|
options[:caller] ||= caller
|
@@ -35,4 +35,4 @@ def self.feature(*args, &block)
|
|
35
35
|
describe(*args, &block)
|
36
36
|
end
|
37
37
|
|
38
|
-
RSpec.configuration.include Capybara::Features, :
|
38
|
+
RSpec.configuration.include Capybara::Features, capybara_feature: true
|
@@ -20,7 +20,7 @@ begin
|
|
20
20
|
# Except we don't want OmniAuth to fake anything when doing live tests
|
21
21
|
#
|
22
22
|
RSpec.configure do |config|
|
23
|
-
config.around(:each, :
|
23
|
+
config.around(:each, js: true) do |example|
|
24
24
|
previous_omniauth_test_mode = OmniAuth.config.test_mode
|
25
25
|
OmniAuth.config.test_mode = false
|
26
26
|
|
@@ -33,7 +33,7 @@ begin
|
|
33
33
|
OmniAuth.config.test_mode = previous_omniauth_test_mode
|
34
34
|
end
|
35
35
|
|
36
|
-
config.before(:each, type: :controller, mock_oauth:
|
36
|
+
config.before(:each, type: :controller, mock_oauth: ->(v) { !!v }) do |example|
|
37
37
|
if example.metadata[:mock_oauth].is_a? Symbol
|
38
38
|
request.env['omniauth.auth'] = OmniAuth.config.mock_auth[example.metadata[:mock_oauth]]
|
39
39
|
else
|
@@ -1,5 +1,5 @@
|
|
1
1
|
if Object.const_defined?('ActionController::Parameters')
|
2
|
-
always_permitted_parameters = %w
|
2
|
+
always_permitted_parameters = %w{id}
|
3
3
|
|
4
4
|
if ActionController::Parameters.respond_to?(:always_permitted_parameters)
|
5
5
|
ActionController::Parameters.always_permitted_parameters += always_permitted_parameters
|
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
require 'referehencible'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.before(:each, :
|
9
|
+
config.before(:each, mock_refs: ->(v) { !!v }) do |example|
|
10
10
|
reference = if example.metadata[:mock_refs].is_a? TrueClass
|
11
11
|
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
12
12
|
else
|
@@ -3,7 +3,7 @@
|
|
3
3
|
##############################################################################
|
4
4
|
|
5
5
|
RSpec.configure do |config|
|
6
|
-
config.around(:each, :
|
6
|
+
config.around(:each, singletons: ->(v) { !!v }) do |example|
|
7
7
|
require 'singleton'
|
8
8
|
|
9
9
|
options = example.metadata[:singletons]
|
@@ -18,13 +18,11 @@ begin
|
|
18
18
|
end
|
19
19
|
|
20
20
|
begin
|
21
|
-
Stripe::Plan.all(:
|
22
|
-
if plan.id.match(/test/i) || plan.name.match(/test/i)
|
23
|
-
plan.delete
|
24
|
-
end
|
21
|
+
Stripe::Plan.all(count: 100).each do |plan|
|
22
|
+
plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i)
|
25
23
|
end
|
26
24
|
|
27
|
-
Stripe::Customer.all(:
|
25
|
+
Stripe::Customer.all(count: 100).each(&:delete)
|
28
26
|
ensure
|
29
27
|
VCR.turn_on! if defined?(VCR) && vcr_turned_on
|
30
28
|
WebMock.allow_net_connect! if defined?(WebMock) && webmock_net_connect
|
@@ -6,11 +6,11 @@ begin
|
|
6
6
|
require 'timecop'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.around(:each, :
|
9
|
+
config.around(:each, time_mock: ->(v) { !!v }) do |example|
|
10
10
|
options = example.metadata[:time_mock]
|
11
11
|
options = case options
|
12
12
|
when Time
|
13
|
-
{ :
|
13
|
+
{ time: options }
|
14
14
|
when FalseClass
|
15
15
|
false
|
16
16
|
when TrueClass
|
@@ -6,11 +6,11 @@ begin
|
|
6
6
|
require 'webmock/rspec'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.around(:each, :
|
9
|
+
config.around(:each, web_mock: ->(v) { !!v }) do |example|
|
10
10
|
options = example.metadata[:web_mock]
|
11
11
|
options = case options
|
12
12
|
when TrueClass
|
13
|
-
{ :
|
13
|
+
{ allow_localhost: true }
|
14
14
|
end
|
15
15
|
|
16
16
|
WebMock.disable_net_connect!(options)
|
@@ -14,12 +14,10 @@ module Rspectacular
|
|
14
14
|
if enabled? && over_deferrment_threshold?
|
15
15
|
cycle_garbage_collector
|
16
16
|
|
17
|
-
garbage_last_collected_at = Time.now
|
17
|
+
self.garbage_last_collected_at = Time.now
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
private
|
22
|
-
|
23
21
|
def self.cycle_garbage_collector
|
24
22
|
GC.enable
|
25
23
|
GC.start
|
@@ -42,8 +40,8 @@ module Rspectacular
|
|
42
40
|
@garbage_last_collected_at || Time.now
|
43
41
|
end
|
44
42
|
|
45
|
-
|
46
|
-
|
43
|
+
class << self
|
44
|
+
attr_writer :garbage_last_collected_at
|
47
45
|
end
|
48
46
|
end
|
49
47
|
end
|
@@ -7,7 +7,7 @@ if defined? RSpec::Rails
|
|
7
7
|
config.infer_spec_type_from_file_location! if config.respond_to?(:infer_spec_type_from_file_location!)
|
8
8
|
|
9
9
|
if Pathname.pwd.join('spec', 'dummy', 'config', 'environment.rb').exist?
|
10
|
-
config.include Rspectacular::NamespacedEngineControllerRouteFix, :
|
10
|
+
config.include Rspectacular::NamespacedEngineControllerRouteFix, type: :controller
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -32,6 +32,6 @@ VCR.configure do |config|
|
|
32
32
|
end
|
33
33
|
|
34
34
|
config.register_request_matcher :uri_without_trailing_id do |request, vcr_cassette_request|
|
35
|
-
Rspectacular::VcrMatchers::UriWithoutTrailingId.new(%r
|
35
|
+
Rspectacular::VcrMatchers::UriWithoutTrailingId.new(%r{/\d+/?\z}).call(request, vcr_cassette_request)
|
36
36
|
end
|
37
37
|
end
|
data/lib/rspectacular/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspectacular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.62.
|
4
|
+
version: 0.62.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -42,6 +42,7 @@ description: We rock some RSpec configurations and matchers like it ain't nobody
|
|
42
42
|
bidnezz.
|
43
43
|
email: accounts+git@thekompanee.com
|
44
44
|
executables:
|
45
|
+
- deploy
|
45
46
|
- rspectacular_test_bootstrap
|
46
47
|
extensions: []
|
47
48
|
extra_rdoc_files:
|
@@ -49,6 +50,7 @@ extra_rdoc_files:
|
|
49
50
|
files:
|
50
51
|
- README.md
|
51
52
|
- Rakefile
|
53
|
+
- bin/deploy
|
52
54
|
- bin/rspectacular_test_bootstrap
|
53
55
|
- lib/rspectacular.rb
|
54
56
|
- lib/rspectacular/helpers.rb
|
@@ -101,7 +103,6 @@ files:
|
|
101
103
|
- lib/rspectacular/support/selenium.rb
|
102
104
|
- lib/rspectacular/vcr_matchers/uri_without_trailing_id.rb
|
103
105
|
- lib/rspectacular/version.rb
|
104
|
-
- spec/spec_helper.rb
|
105
106
|
homepage: https://github.com/jfelchner/rspectacular
|
106
107
|
licenses: []
|
107
108
|
metadata: {}
|
@@ -122,10 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
123
|
version: '0'
|
123
124
|
requirements: []
|
124
125
|
rubyforge_project: rspectacular
|
125
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.4.6
|
126
127
|
signing_key:
|
127
128
|
specification_version: 4
|
128
129
|
summary: RSpec Support And Matchers
|
129
|
-
test_files:
|
130
|
-
- spec/spec_helper.rb
|
131
|
-
has_rdoc:
|
130
|
+
test_files: []
|