isomorfeus-puppetmaster 0.6.14 → 0.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 602d8e8f04c6eb2290b4f0bda9bf2c2db5903dfbd86bd0cae7bed3489846378b
4
- data.tar.gz: ca32e34cf20340a0c2039a1b625cffa6d5261313b699dd2a2b536e9b994d2f96
3
+ metadata.gz: 269dd1f6465a3861c8590f471d3db376b11a0570fa4bf97bd44b9dfb5d9c1e42
4
+ data.tar.gz: 0315a46480c8e60a185b5ad3e8fd5649eecb937cb9c606ac6e3ab2e70e57a454
5
5
  SHA512:
6
- metadata.gz: 1bfc337ba3188881e904feac1ef265a72aad83dee7add3731820cdfb81a940c1b5351963a524df2164f734019ce9e7fb0dfcc6fd1c4c9a85c388add303a419bf
7
- data.tar.gz: 13c2c4858f01844b7cf8bd05ba4d20a04ff25b3d9f3695d2cd8cf178b25501da42e30533df162f6cad778635692058dafc5fd4d221d6bfd32e462a54c072d821
6
+ metadata.gz: d52eb1625c95027d9ef3d7b3f57c7742d07307bf650f7b7545ef222bb6b4135500229670bf95dfc5e2081a41f623536d005cf5fcf392c887c03e7b4c7c75c263
7
+ data.tar.gz: c1af261f57a1f1ad3cce47a7cb2b10ad8c3b539300d98e925918db666231de4f72d8c5b606de64089af02cf79f3296596efbcce60a909702dc2a63808a77e8b1
data/README.md CHANGED
@@ -3,9 +3,10 @@
3
3
  <br/>
4
4
  Isomorfeus Puppetmaster<br/>
5
5
  </h1>
6
+
6
7
  A framework for acceptance tests or simply running tests in a headless browser.
7
8
  Allows for writing javascript browser tests in pure ruby.
8
- It is tailored for Isomorfeus and using [puppeteer-ruby](https://github.com/YusukeIwaki/puppeteer-ruby).
9
+ It is tailored for Isomorfeus and using [puppeteer-ruby](https://github.com/YusukeIwaki/puppeteer-ruby)
9
10
 
10
11
  ### Community and Support
11
12
  At the [Isomorfeus Framework Project](https://isomorfeus.com)
@@ -88,7 +89,7 @@ page2.goto('/location')
88
89
 
89
90
  For debugging:
90
91
  ```ruby
91
- page.visit('/', headless: false, devtools: true)
92
+ page = visit('/', headless: false, devtools: true)
92
93
  ```
93
94
  This will close the current browser if the options for headless and devtools dont match, and open a new one with the supplied headless and devtools options.
94
95
 
@@ -18,6 +18,7 @@ module Isomorfeus
18
18
  unless request.body.nil?
19
19
  request_hash = Oj.load(request.body.read, mode: :strict)
20
20
  if request_hash['key'] != @@request_key
21
+ STDERR.puts "wrong key"
21
22
  response = Rack::Response.new(Oj.dump({ 'error' => 'wrong key given, execution denied' }),
22
23
  401,
23
24
  'Content-Type' => 'application/json')
@@ -32,7 +33,7 @@ module Isomorfeus
32
33
  200,
33
34
  'Content-Type' => 'application/json')
34
35
  rescue Exception => e
35
- response = Rack::Response.new(Oj.dump({ 'error' => "#{e.class}: #{e.message}", 'backtrace' => e.backtrace.join("\n") }),
36
+ response = Rack::Response.new(Oj.dump({ 'error' => "#{e.class}: #{e.message}", 'backtrace' => e.backtrace&.join("\n") }),
36
37
  200,
37
38
  'Content-Type' => 'application/json')
38
39
  end
@@ -1,3 +1,3 @@
1
1
  module Isomorfeus
2
- PUPPETMASTER_VERSION = '0.6.14'
2
+ PUPPETMASTER_VERSION = '0.6.15'
3
3
  end
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.6.14
4
+ version: 0.6.15
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-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport