rspeckled 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rspeckled/helpers/factories.rb +8 -2
- data/lib/rspeckled/helpers/filepaths.rb +30 -22
- data/lib/rspeckled/helpers/null_objects.rb +8 -2
- data/lib/rspeckled/helpers/patterns.rb +75 -41
- data/lib/rspeckled/helpers/responses.rb +8 -2
- data/lib/rspeckled/patches.rb +8 -6
- data/lib/rspeckled/plugins/configuration/capybara_screenshot.rb +5 -4
- data/lib/rspeckled/plugins/configuration/carrier_wave.rb +1 -1
- data/lib/rspeckled/plugins/configuration/devise.rb +4 -4
- data/lib/rspeckled/plugins/configuration/dox.rb +4 -4
- data/lib/rspeckled/plugins/configuration/email_spec.rb +3 -3
- data/lib/rspeckled/plugins/configuration/factory_bot.rb +2 -2
- data/lib/rspeckled/plugins/configuration/shoulda.rb +2 -2
- data/lib/rspeckled/plugins/configuration/vcr.rb +6 -4
- data/lib/rspeckled/plugins/configuration/warden.rb +3 -2
- data/lib/rspeckled/plugins/extensions/awesome_print.rb +20 -7
- data/lib/rspeckled/plugins/extensions/capybara.rb +16 -6
- data/lib/rspeckled/plugins/extensions/faraday/middleware/curl_logger.rb +10 -3
- data/lib/rspeckled/plugins/extensions/faraday.rb +2 -1
- data/lib/rspeckled/plugins/extensions/omniauth/mock_authentications/ebay.rb +1 -1
- data/lib/rspeckled/plugins/extensions/omniauth/mock_authentications/facebook.rb +1 -1
- data/lib/rspeckled/plugins/extensions/omniauth/mock_authentications/twitter.rb +1 -1
- data/lib/rspeckled/plugins/extensions/omniauth.rb +6 -3
- data/lib/rspeckled/plugins/extensions/ruby/deferred_garbage_collection.rb +3 -1
- data/lib/rspeckled/plugins/extensions/selenium/drivers/chrome.rb +6 -6
- data/lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb +14 -3
- data/lib/rspeckled/plugins/extensions/strong_parameters.rb +2 -1
- data/lib/rspeckled/plugins/extensions/vcr/matchers/uri_without_trailing_id.rb +3 -1
- data/lib/rspeckled/plugins/extensions/vcr.rb +8 -4
- data/lib/rspeckled/plugins/hooks/action_mailer.rb +2 -2
- data/lib/rspeckled/plugins/hooks/authentication.rb +87 -61
- data/lib/rspeckled/plugins/hooks/bullet.rb +3 -1
- data/lib/rspeckled/plugins/hooks/capybara.rb +2 -2
- data/lib/rspeckled/plugins/hooks/carrier_wave.rb +2 -2
- data/lib/rspeckled/plugins/hooks/database_cleaner.rb +2 -2
- data/lib/rspeckled/plugins/hooks/devise.rb +1 -1
- data/lib/rspeckled/plugins/hooks/dox.rb +1 -1
- data/lib/rspeckled/plugins/hooks/elasticsearch.rb +13 -9
- data/lib/rspeckled/plugins/hooks/factory_bot.rb +1 -1
- data/lib/rspeckled/plugins/hooks/foreign_keys.rb +21 -13
- data/lib/rspeckled/plugins/hooks/garbage_collection.rb +1 -1
- data/lib/rspeckled/plugins/hooks/rails.rb +5 -3
- data/lib/rspeckled/plugins/hooks/redis.rb +3 -3
- data/lib/rspeckled/plugins/hooks/referehencible.rb +2 -2
- data/lib/rspeckled/plugins/hooks/request.rb +1 -1
- data/lib/rspeckled/plugins/hooks/rspec_mocks.rb +8 -4
- data/lib/rspeckled/plugins/hooks/selenium_webdriver.rb +2 -2
- data/lib/rspeckled/plugins/hooks/sidekiq.rb +14 -12
- data/lib/rspeckled/plugins/hooks/singletons.rb +2 -2
- data/lib/rspeckled/plugins/hooks/stripe.rb +5 -3
- data/lib/rspeckled/plugins/hooks/timecop.rb +3 -3
- data/lib/rspeckled/plugins/hooks/vcr.rb +2 -2
- data/lib/rspeckled/plugins/hooks/warden.rb +3 -3
- data/lib/rspeckled/plugins/hooks/webmock.rb +3 -3
- data/lib/rspeckled/plugins.rb +22 -19
- data/lib/rspeckled/reporting/example.rb +10 -8
- data/lib/rspeckled/reporting/outputs/csv.rb +2 -0
- data/lib/rspeckled/reporting/outputs/text.rb +17 -15
- data/lib/rspeckled/reporting/runner.rb +26 -24
- data/lib/rspeckled/spec_helpers/active_record_connection_setup.rb +13 -9
- data/lib/rspeckled/spec_helpers/rails_engine.rb +2 -2
- data/lib/rspeckled/spec_helpers/rspeckled.rb +17 -1
- data/lib/rspeckled/support.rb +26 -24
- data/lib/rspeckled/tasks/documentation.rake +28 -8
- data/lib/rspeckled/version.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +29 -28
- metadata.gz.sig +0 -0
@@ -12,30 +12,50 @@ namespace :documentation do
|
|
12
12
|
|
13
13
|
RSpec::Core::RakeTask.new(:api_docs) do |t|
|
14
14
|
t.pattern = 'spec/controllers/**/v1/**/*_spec.rb'
|
15
|
-
t.rspec_opts =
|
15
|
+
t.rspec_opts = %w{
|
16
|
+
--format="Dox::Formatter"
|
17
|
+
--out="./docs/api/index.apib"
|
18
|
+
--order="defined"
|
19
|
+
--tag="dox"
|
20
|
+
}
|
21
|
+
.join(' ')
|
16
22
|
end
|
17
23
|
|
18
24
|
::Rake::Task['api_docs'].invoke
|
19
25
|
end
|
20
26
|
|
21
|
-
task :
|
27
|
+
task json: :blueprint do
|
22
28
|
`apib2swagger --input='./docs/api/index.apib' --output='./docs/api/index.json'`
|
23
29
|
end
|
24
30
|
|
25
|
-
task :
|
26
|
-
|
31
|
+
task yaml: :blueprint do
|
32
|
+
command = <<~HEREDOC.tr("\n", ' ')
|
33
|
+
apib2swagger
|
34
|
+
--yaml
|
35
|
+
--input='./docs/api/index.apib'
|
36
|
+
--output='./docs/api/index.yaml'
|
37
|
+
HEREDOC
|
38
|
+
|
39
|
+
`#{command}`
|
27
40
|
end
|
28
41
|
|
29
|
-
task :
|
42
|
+
task html: :json do
|
30
43
|
`redoc-cli bundle --output='./docs/api/index.html' './docs/api/index.json'`
|
31
44
|
end
|
32
45
|
|
33
|
-
task :
|
46
|
+
task preview: :html do
|
34
47
|
`open './docs/api/index.html'`
|
35
48
|
end
|
36
49
|
|
37
|
-
task :
|
38
|
-
|
50
|
+
task publish: :blueprint do
|
51
|
+
command = <<~HEREDOC.tr("\n", ' ')
|
52
|
+
apiary
|
53
|
+
publish
|
54
|
+
--path='./docs/api/apispec.apib'
|
55
|
+
--api-name='#{::Rails.application.name}'
|
56
|
+
HEREDOC
|
57
|
+
|
58
|
+
`#{command}`
|
39
59
|
end
|
40
60
|
end
|
41
61
|
end
|
data/lib/rspeckled/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspeckled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegranddesign
|
@@ -10,33 +10,34 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
/
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
13
|
+
MIIEyjCCAzKgAwIBAgIBATANBgkqhkiG9w0BAQsFADBVMSIwIAYDVQQDDBlsb2Nh
|
14
|
+
bGV1bmtub3duODEwX3J1YnlnZW1zMRowGAYKCZImiZPyLGQBGRYKcHJvdG9ubWFp
|
15
|
+
bDETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0yMjA3MDkwNTMxMjJaFw0yMzA3MDkw
|
16
|
+
NTMxMjJaMFUxIjAgBgNVBAMMGWxvY2FsZXVua25vd244MTBfcnVieWdlbXMxGjAY
|
17
|
+
BgoJkiaJk/IsZAEZFgpwcm90b25tYWlsMRMwEQYKCZImiZPyLGQBGRYDY29tMIIB
|
18
|
+
ojANBgkqhkiG9w0BAQEF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o0
|
33
|
+
jMQihPPJEqF1U6JBDMZYV5tX/dJYSGRl9L3s1k2tjoN98q+beNaZQDn21Amml4eK
|
34
|
+
KEkMeTTJ2E4GVzR9eKEETLq2LygdUWWZ5NdWOYTxJMdg1GZp3b6X8hJrwfOiizqt
|
35
|
+
/ANlIEh11/pOnWa6WPUVpGIMpYdquvmJXnF2LX6zxkKK1hbrebt+vAEAGczgw1Ri
|
36
|
+
rkLM6y+BHQdkOTj3VG4MjIU8D4h1Z73Exzxds/VbVKMEz+8JrFjGJ/tYa0PZ8U5p
|
37
|
+
3yXL4G6eW3rdBW/OiLF7GgG2o26d02OMzf4+ubUVS5LQDOcd4vgNPLWzJSBt1YIh
|
38
|
+
TgBsED7Me5YdMVXxtTWYsF1VMzaL9hReD3UXGcxe
|
38
39
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
40
|
+
date: 2022-07-17 00:00:00.000000000 Z
|
40
41
|
dependencies:
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: rspec
|
@@ -216,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
217
|
- !ruby/object:Gem::Version
|
217
218
|
version: '0'
|
218
219
|
requirements: []
|
219
|
-
rubygems_version: 3.
|
220
|
+
rubygems_version: 3.1.6
|
220
221
|
signing_key:
|
221
222
|
specification_version: 4
|
222
223
|
summary: Stop Copying and Pasting Your RSpec Configuration
|
metadata.gz.sig
CHANGED
Binary file
|