capybara-chrome 0.1.23 → 0.1.24

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
- SHA1:
3
- metadata.gz: ce723ad2c2527db322a9a686e4ad825cf0014f63
4
- data.tar.gz: 488a93a848ecee15501114a57b509fea228624ed
2
+ SHA256:
3
+ metadata.gz: 320a6c5ab3bc5e7348c70b92f8cdd0f59c84aa8b975c9bc1f22b973cfd326f3e
4
+ data.tar.gz: d9b76f1d1043dadf3fb0bc79755a6a03f9f27b638c7b38cf5eeeee54804df70f
5
5
  SHA512:
6
- metadata.gz: 21d9b56997dc444197aa0f582c8da4b6bf8863c8a37f0b4bb8c38616af6d35cded9f142ea6907fbb155a1fc33aba0c2e9dba26ffbfec7475ffb07085c41758b2
7
- data.tar.gz: 869e7d15b90eaf13247bf3cabddf155cc31317156bfcae87b03445625b5b397602d0c3916e480e49d4db9bf04db12c0efa40e7ac618f28b30319cee6fd687553
6
+ metadata.gz: 27732a58f24581264402d935ad85ba32daf8fe06650c457b04d856bd664de92ae5d46d22e317694e477afc0b7f25ab9f3c2562720b06ffe294f94d0d7206e877
7
+ data.tar.gz: 3b62bb99955d2ec6f15dd80f1fd740f2a3e32a2d9db78b17f83dbd21b8616a57fda19bada51dcb4bfbee85493625aec1641222416eb67bcca461f91d9fe1e784
data/README.md CHANGED
@@ -118,7 +118,7 @@ A video showing capybara-chrome running against a netcat backend
118
118
 
119
119
  ## Contributing
120
120
 
121
- Bug reports and pull requests are welcome on GitHub at https://github.com/carezone/capybara-chrome.
121
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sandro/capybara-chrome.
122
122
 
123
123
  ## License
124
124
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Chrome driver for capybara using remote debugging protocol.}
13
13
  spec.description = %q{Chrome driver for capybara using remote debugging protocol.}
14
- spec.homepage = "https://github.com/carezone/capybara-chrome"
14
+ spec.homepage = "https://github.com/sandro/capybara-chrome"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
25
25
  spec.add_runtime_dependency("json")
26
26
  spec.add_runtime_dependency("websocket-driver")
27
27
 
28
- spec.add_development_dependency "bundler", "~> 1.16"
29
- spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "bundler", ">= 2.2.10"
29
+ spec.add_development_dependency "rake", ">= 12.3.3"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
31
  spec.add_development_dependency "puma"
32
32
  end
@@ -13,7 +13,7 @@ module Capybara::Chrome
13
13
  DEFAULT_TRAP_INTERRUPT = true
14
14
  DEFAULT_DEBUG = false
15
15
 
16
- attr_accessor :max_wait_time, :download_path, :chrome_port, :trap_interrupt, :debug
16
+ attr_accessor :max_wait_time, :download_path, :chrome_port, :trap_interrupt, :debug, :chrome_args
17
17
 
18
18
  def initialize
19
19
  @allowed_urls = DEFAULT_ALLOWED_URLS.dup
@@ -23,6 +23,7 @@ module Capybara::Chrome
23
23
  @chrome_port = DEFAULT_CHROME_PORT
24
24
  @trap_interrupt = DEFAULT_TRAP_INTERRUPT
25
25
  @debug = DEFAULT_DEBUG
26
+ @chrome_args = []
26
27
  end
27
28
 
28
29
  def block_unknown_urls
@@ -76,7 +76,9 @@ module Capybara::Chrome
76
76
  end
77
77
 
78
78
  def chrome_args
79
- CHROME_ARGS + ["--remote-debugging-port=#{@chrome_port}"]
79
+ custom_args = Capybara::Chrome.configuration.chrome_args
80
+ defaults = custom_args.any? ? custom_args : CHROME_ARGS
81
+ defaults + ["--remote-debugging-port=#{@chrome_port}"]
80
82
  end
81
83
 
82
84
  def os
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Chrome
3
- VERSION = "0.1.23"
3
+ VERSION = "0.1.24"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-chrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Turriate
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-14 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -56,30 +56,30 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.16'
61
+ version: 2.2.10
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.16'
68
+ version: 2.2.10
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: 12.3.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: 12.3.3
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -140,11 +140,11 @@ files:
140
140
  - lib/capybara/chrome/service.rb
141
141
  - lib/capybara/chrome/version.rb
142
142
  - lib/chrome_remote_helper.js
143
- homepage: https://github.com/carezone/capybara-chrome
143
+ homepage: https://github.com/sandro/capybara-chrome
144
144
  licenses:
145
145
  - MIT
146
146
  metadata: {}
147
- post_install_message:
147
+ post_install_message:
148
148
  rdoc_options: []
149
149
  require_paths:
150
150
  - lib
@@ -159,10 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.4.5
164
- signing_key:
162
+ rubygems_version: 3.0.3
163
+ signing_key:
165
164
  specification_version: 4
166
165
  summary: Chrome driver for capybara using remote debugging protocol.
167
166
  test_files: []
168
- has_rdoc: