rspeckled 1.3.1 → 1.4.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
  SHA256:
3
- metadata.gz: beb68fa5d9b158d21d9970216d83a0435726e9a243525f2edcac75936b3a5e76
4
- data.tar.gz: 5998dfa919ebaa420a2dd188bead8d2e423ac1ae4641bc6ec6633c1e09d37a21
3
+ metadata.gz: b69c97782152e63b5901760748e17d6c77ef9d4d65c1c2d0f6ba7e14a081d0c3
4
+ data.tar.gz: ef011710d66446c9011293e1b749c1360c38923bf49df6acd9ff11f33bc71611
5
5
  SHA512:
6
- metadata.gz: fd9ca3c1e7cd74ae578877f40a9698620e36bdd071f34ee7fe23425a077976c82093d3c9e554dde179fd79d129e5259691cf66c3cafc34b92bd65c1b167fa591
7
- data.tar.gz: 2619e9441e791b04a2ecb1fb77db8bf5ee59f5e91faab8152e4fe47ab0068b35aebebb736fa2fe20187911f7077d810c6c23ccce01c7e8ce6853ab04842467bd
6
+ metadata.gz: d988561d065da0754efcc0f89c5c80990864b18660c96326b1f26a9eb67969cfbd503f100b168c7a173ada02e4e1d350f5668c51721586b69482cf7211c54b63
7
+ data.tar.gz: 851ea16b0d5b2ac9c7275f165b8b7c00ba54ba941987dec20afdcd99ceace828869d6b800cd90bdfae8b359647c42117e425b6b888535fbfeb4d4a69c9ff889b
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -90,7 +90,7 @@ module Kernel
90
90
 
91
91
  message.rewind
92
92
 
93
- unless ascii.to_f / total.to_f > 0.33
93
+ unless ascii / total.to_f > 0.33
94
94
  print "\e[1;35m"
95
95
  print ' RAW STRING '.center(columns, '-')
96
96
  print "\e[0m\n"
@@ -13,16 +13,16 @@ class Chrome
13
13
  def driver(app)
14
14
  ::Capybara::Selenium::Driver.new(
15
15
  app,
16
- :browser => :chrome,
17
- :desired_capabilities => ::Selenium::WebDriver::Remote::Capabilities.chrome(options)
16
+ :browser => :chrome,
17
+ :options => options
18
18
  )
19
19
  end
20
20
 
21
21
  def headless(app)
22
22
  ::Capybara::Selenium::Driver.new(
23
23
  app,
24
- :browser => :chrome,
25
- :desired_capabilities => ::Selenium::WebDriver::Remote::Capabilities.chrome(headless_options)
24
+ :browser => :chrome,
25
+ :options => headless_options
26
26
  )
27
27
  end
28
28
 
@@ -35,23 +35,17 @@ class Chrome
35
35
  end
36
36
 
37
37
  def options
38
- {
39
- 'chromeOptions' => {
40
- 'prefs' => {
41
- 'profile.default_content_settings.popups' => 0,
42
- 'download.default_directory' => downloads_directory,
43
- },
44
- 'args' => %w{
45
- window-size=1920,1200
46
- },
47
- },
48
- }
38
+ browser_options = ::Selenium::WebDriver::Chrome::Options.new
39
+ browser_options.add_preference(:profile, :prompt_for_download => { :popups => 0 })
40
+ browser_options.add_preference(:download, :default_directory => downloads_directory)
41
+ browser_options.add_argument('--window-size=1920,1200')
42
+ browser_options
49
43
  end
50
44
 
51
45
  def headless_options
52
46
  options.dup.tap do |browser_options|
53
- browser_options['chromeOptions']['args'] << 'headless'
54
- browser_options['chromeOptions']['args'] << 'disable-gpu'
47
+ browser_options.add_argument('--headless')
48
+ browser_options.add_argument('--disable-gpu')
55
49
  end
56
50
  end
57
51
  end
@@ -41,7 +41,7 @@ class Firefox
41
41
 
42
42
  def headless_options
43
43
  options.dup.tap do |browser_options|
44
- browser_options.args << '--headless'
44
+ browser_options.add_argument('--headless')
45
45
  end
46
46
  end
47
47
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RSpec.configure do |config|
4
- config.before(:each, :stripe => true) do
4
+ config.around(:each, :stripe => true) do |example|
5
5
  config.rspeckled_logger.debug("Before Each - Start - #{__FILE__}")
6
6
 
7
7
  if defined?(::VCR)
@@ -14,6 +14,8 @@ RSpec.configure do |config|
14
14
  ::WebMock.allow_net_connect!
15
15
  end
16
16
 
17
+ ::StripeMock.start if defined?(::StripeMock)
18
+
17
19
  begin
18
20
  ::Stripe::Plan.all(:count => 100).each do |plan|
19
21
  plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i)
@@ -26,5 +28,13 @@ RSpec.configure do |config|
26
28
  end
27
29
 
28
30
  config.rspeckled_logger.debug("Before Each - End - #{__FILE__}")
31
+
32
+ example.run
33
+
34
+ config.rspeckled_logger.debug("After Each - Start - #{__FILE__}")
35
+
36
+ ::StripeMock.stop if defined?(::StripeMock)
37
+
38
+ config.rspeckled_logger.debug("After Each - End - #{__FILE__}")
29
39
  end
30
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rspeckled
4
- VERSION = '1.3.1'
4
+ VERSION = '1.4.0'
5
5
  end
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: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -10,32 +10,33 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEcjCCAtqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAxMS8wLQYDVQQDDCZydWJ5
14
- Z2Vtcy9EQz1saXZpbmdoaWdob250aGVibG9nL0RDPWNvbTAeFw0xODA4MDMyMTQ1
15
- MjBaFw0xOTA4MDMyMTQ1MjBaMDExLzAtBgNVBAMMJnJ1YnlnZW1zL0RDPWxpdmlu
16
- Z2hpZ2hvbnRoZWJsb2cvREM9Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIB
17
- igKCAYEAvFj8ecqDt5dzEJzd+kTn2uMKXRRgJdhnXZ78C2+IHyxW1SAkWJ3Z5IYG
18
- CDSisIdomG1GwJOuuXITMI11UIlEkCsjyMeUpEiO/PvuuealXsg3leTOHkLYCmvm
19
- 1yscVv5NpTX7Q0gLZUxGERDK3k62AjZB0eMwfbHAcL9ZOaru+pZriepqS+xAghX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QQtMCuBKWNhdGNoYWxsK3J1YnlnZW1zQGxpdmluZ2hpZ2hvbnRoZWJsb2cuY29t
28
+ MDQGA1UdEgQtMCuBKWNhdGNoYWxsK3J1YnlnZW1zQGxpdmluZ2hpZ2hvbnRoZWJs
29
+ b2cuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQCVsREtxqE5PeNLjCec4Ea/gXi3aeG6
30
+ Sh711FLc+nMkv3RG5ILO0JUOXxeyyPjrfxJIk52dA+ts74fXipoAELHqfrqbt9nl
31
+ O8Eq4plRU31sJI/V0Vhw4yZdVfmmzKf9Tr8rrHx/0kJmABXNtrtWuqjUzoqzH7ia
32
+ j8ftN3+ODiag9jrcApC4/xQDGnmsTsLlYgY2qXJqqy+DQKmzBc8LoSxYX0WFCvPg
33
+ PCy02L1z3ijd0nJo2OohnobwtbNvw+CsGqdDO/sh6Ju0XVt+Qh9UWfvgwxTqo8Xo
34
+ PvMez1fN9jaJVYm2AJHE3tUESRQncGrj5dkSUHh1CLmxLpEyJWBVOHAoyngdpCCr
35
+ QPT2vOpHMmAObSHhrm3COhII8nJPHVG9wx9QYYEEVmvEEC0Kx3qxZmVuYQ9jID5L
36
+ 6ZCHhOtYwlYSqOmGfPSsB7i1W4YABE86ZQaPEwhuPkkdvqSFUSryDLpcB8S/2fp4
37
+ bHTbBi7YQCFxKay21QDo3HPPRBq4YQ+Xy9w=
37
38
  -----END CERTIFICATE-----
38
- date: 2019-07-03 00:00:00.000000000 Z
39
+ date: 2019-08-16 00:00:00.000000000 Z
39
40
  dependencies:
40
41
  - !ruby/object:Gem::Dependency
41
42
  name: rspec
metadata.gz.sig CHANGED
Binary file