isomorfeus-puppetmaster 0.8.0 → 0.8.2

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: 5d1d09c368b0fd5873b019ae1c4ab872b4b72c474c1bb800afc4567b6681f793
4
- data.tar.gz: fa8dc5556af45cf98155abda40c48e1443435e41692d52afafed5b4ab62b606e
3
+ metadata.gz: acad98e29c086d0407d168f18e9f216c63a8f15d5f65f909fe9bb7a6c0000003
4
+ data.tar.gz: bb293b7e5b9292ab56f71193bfcdc8a17c3cbcd75d9e39b270f0c080f8221668
5
5
  SHA512:
6
- metadata.gz: 7fbfab536983319395f69630207e9f877fe326eb536c1564c20a0905455b415f463b980db05eb181c9f0159e46935ac74b8b5c18d0b7a4f7d8f579b10c0e830c
7
- data.tar.gz: 462cbf65cd4861e0378f78ac4d69badb3fbe19a874a2df498b832f18fce588a2e7a849d2fcfa00c0a2d38401d6cf6aa983ffd1c69edba7508acfeecc846e9fb3
6
+ metadata.gz: 0f164a0c6d258bb687a82d1b67ef708aa647521d524cbc7d29ef04385d4096aa44a2a015428237700df627a1defb297545fccaee8979855bb9e704e50436f9c6
7
+ data.tar.gz: 65dab401998e6c04378dd5bdb3d6b10f4ea620085d26871ce3050f27f8841f5db504d9441f87ab363f87be24947edbd9ca298d28a82a7af3e3453163a0b88e39
@@ -1,16 +1,14 @@
1
1
  module Isomorfeus
2
2
  module Puppetmaster
3
3
  module DSL
4
- @@launch_options = nil
5
-
6
- def set_launch_options(app: nil, args: nil, channel: nil, default_viewport: nil, devtools: false, dumpio: nil,
4
+ def self.set_launch_options(app: nil, args: nil, channel: nil, default_viewport: nil, devtools: false, dumpio: nil,
7
5
  env: nil, executable_path: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil,
8
6
  headless: true, ignore_default_args: nil, ignore_https_errors: nil, pipe: nil,
9
7
  product: :chrome, slow_mo: nil, timeout: nil, user_data_dir: nil)
10
- @@launch_options = {
8
+ Isomorfeus::Puppetmaster.launch_options = {
11
9
  app: app,
12
10
  args: args,
13
- channel: channel&.to_s,
11
+ channel: channel,
14
12
  devtools: devtools,
15
13
  default_viewport: default_viewport,
16
14
  dumpio: dumpio,
@@ -23,13 +21,17 @@ module Isomorfeus
23
21
  ignore_default_args: ignore_default_args,
24
22
  ignore_https_errors: ignore_https_errors,
25
23
  pipe: pipe,
26
- product: product.to_s,
24
+ product: product,
27
25
  slow_mo: slow_mo,
28
26
  timeout: timeout ? timeout : Isomorfeus::Puppetmaster::Session::TIMEOUT,
29
27
  user_data_dir: user_data_dir,
30
28
  }
31
29
  end
32
30
 
31
+ def set_launch_options(**args)
32
+ DSL.set_launch_options(**args)
33
+ end
34
+
33
35
  def default_page
34
36
  session.default_page
35
37
  end
@@ -56,28 +58,29 @@ module Isomorfeus
56
58
  Isomorfeus::Puppetmaster.served_app.on_server(ruby_source, &block)
57
59
  end
58
60
 
59
- def new_session(app: nil, args: nil, channel: nil, default_viewport: nil, devtools: false, dumpio: nil,
61
+ def new_session(app: nil, args: nil, channel: nil, default_viewport: nil, devtools: nil, dumpio: nil,
60
62
  env: nil, executable_path: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil,
61
- headless: true, ignore_default_args: nil, ignore_https_errors: nil, pipe: nil,
62
- product: :chrome, slow_mo: nil, timeout: nil, user_data_dir: nil)
63
- unless @@launch_options.nil?
64
- app = app || @@launch_options[:app]
65
- channel = channel || @@launch_options[:channel]
66
- devtools = @@launch_options[:devtools].nil? ? devtools : @@launch_options[:devtools]
67
- default_viewport = default_viewport || @@launch_options[:viewport]
68
- dumpio = dumpio || @@launch_options[:dumpio]
69
- env = env || @@launch_options[:env]
70
- executable_path = executable_path || @@launch_options[:executable_path]
71
- handle_SIGINT = handle_SIGINT || @@launch_options[:handle_SIGINT]
72
- handle_SIGTERM = handle_SIGTERM || @@launch_options[:handle_SIGTERM]
73
- handle_SIGHUP = handle_SIGHUP || @@launch_options[:handle_SIGHUP]
74
- headless = @@launch_options[:headless].nil? ? headless : @@launch_options[:headless].nil?
75
- ignore_https_errors = @@launch_options[:ignore_https_errors].nil? ? ignore_https_errors : @@launch_options[:ignore_https_errors]
76
- pipe = @@launch_options[:pipe].nil? ? pipe : @@launch_options[:pipe]
77
- product = product || @@launch_options[:product]
78
- slow_mo = slow_mo || @@launch_options[:slow_mo]
79
- timeout = timeout || @@launch_options[:timeout]
80
- user_data_dir = user_data_dir || @@launch_options[:user_data_dir]
63
+ headless: nil, ignore_default_args: nil, ignore_https_errors: nil, pipe: nil,
64
+ product: nil, slow_mo: nil, timeout: nil, user_data_dir: nil)
65
+ if Isomorfeus::Puppetmaster.launch_options
66
+ opts = Isomorfeus::Puppetmaster.launch_options
67
+ app = app || opts[:app]
68
+ channel = channel || opts[:channel]
69
+ devtools = devtools || opts[:devtools]
70
+ default_viewport = default_viewport || opts[:viewport]
71
+ dumpio = dumpio || opts[:dumpio]
72
+ env = env || opts[:env]
73
+ executable_path = executable_path || opts[:executable_path]
74
+ handle_SIGINT = handle_SIGINT || opts[:handle_SIGINT]
75
+ handle_SIGTERM = handle_SIGTERM || opts[:handle_SIGTERM]
76
+ handle_SIGHUP = handle_SIGHUP || opts[:handle_SIGHUP]
77
+ headless = headless || opts[:headless]
78
+ ignore_https_errors = ignore_https_errors || opts[:ignore_https_errors]
79
+ pipe = pipe || opts[:pipe]
80
+ product = product || opts[:product]
81
+ slow_mo = slow_mo || opts[:slow_mo]
82
+ timeout = timeout || opts[:timeout]
83
+ user_data_dir = user_data_dir || opts[:user_data_dir]
81
84
  end
82
85
  Isomorfeus::Puppetmaster::Session.new(app: (app ? app : Isomorfeus::Puppetmaster.served_app),
83
86
  args: args, channel: channel&.to_s, devtools: devtools, default_viewport: default_viewport,
@@ -16,7 +16,7 @@ module Isomorfeus
16
16
  @app = @parameters.delete(:app)
17
17
  @headless = headless
18
18
  @devtools = devtools
19
- @channel = channel
19
+ @channel = channel.to_s
20
20
  default_viewport
21
21
  product = product.to_s
22
22
  @parameters[:product] = %w[chrome firefox].include?(product) ? product : 'chrome'
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- PUPPETMASTER_VERSION = '0.8.0'
2
+ PUPPETMASTER_VERSION = '0.8.2'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  module Isomorfeus
2
2
  module Puppetmaster
3
3
  class << self
4
- attr_accessor :app, :download_path, :server_port, :session
4
+ attr_accessor :app, :download_path, :launch_options, :server_port, :session
5
5
  attr_writer :server_host, :server_scheme
6
6
 
7
7
  def boot_app
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-puppetmaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-21 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.7.50
33
+ version: 0.8.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.7.50
40
+ version: 0.8.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: method_source
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,32 +58,26 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.13.21
61
+ version: 3.13.23
62
62
  type: :runtime
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: 3.13.21
68
+ version: 3.13.23
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: opal
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 1.4.0
76
- - - "<"
73
+ - - "~>"
77
74
  - !ruby/object:Gem::Version
78
75
  version: 1.6.0
79
76
  type: :runtime
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- version: 1.4.0
86
- - - "<"
80
+ - - "~>"
87
81
  - !ruby/object:Gem::Version
88
82
  version: 1.6.0
89
83
  - !ruby/object:Gem::Dependency
@@ -106,42 +100,42 @@ dependencies:
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: 0.44.0
103
+ version: 0.44.2
110
104
  type: :runtime
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: 0.44.0
110
+ version: 0.44.2
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: rack
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: 3.0.0
117
+ version: 3.0.1
124
118
  type: :runtime
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: 3.0.0
124
+ version: 3.0.1
131
125
  - !ruby/object:Gem::Dependency
132
126
  name: rackup
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: 0.2.2
131
+ version: 0.2.3
138
132
  type: :runtime
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
136
  - - "~>"
143
137
  - !ruby/object:Gem::Version
144
- version: 0.2.2
138
+ version: 0.2.3
145
139
  - !ruby/object:Gem::Dependency
146
140
  name: unparser
147
141
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +184,14 @@ dependencies:
190
184
  requirements:
191
185
  - - "~>"
192
186
  - !ruby/object:Gem::Version
193
- version: 1.13.8
187
+ version: 1.13.9
194
188
  type: :development
195
189
  prerelease: false
196
190
  version_requirements: !ruby/object:Gem::Requirement
197
191
  requirements:
198
192
  - - "~>"
199
193
  - !ruby/object:Gem::Version
200
- version: 1.13.8
194
+ version: 1.13.9
201
195
  - !ruby/object:Gem::Dependency
202
196
  name: opal-browser
203
197
  requirement: !ruby/object:Gem::Requirement
@@ -260,14 +254,14 @@ dependencies:
260
254
  requirements:
261
255
  - - "~>"
262
256
  - !ruby/object:Gem::Version
263
- version: 3.60.0
257
+ version: 3.62.0
264
258
  type: :development
265
259
  prerelease: false
266
260
  version_requirements: !ruby/object:Gem::Requirement
267
261
  requirements:
268
262
  - - "~>"
269
263
  - !ruby/object:Gem::Version
270
- version: 3.60.0
264
+ version: 3.62.0
271
265
  - !ruby/object:Gem::Dependency
272
266
  name: tilt
273
267
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
320
  - !ruby/object:Gem::Version
327
321
  version: '0'
328
322
  requirements: []
329
- rubygems_version: 3.3.7
323
+ rubygems_version: 3.4.0.dev
330
324
  signing_key:
331
325
  specification_version: 4
332
326
  summary: Acceptance testing for isomorfeus.