mushy 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mushy/fluxs/browser.rb +3 -3
- data/lib/mushy/fluxs/screenshot.rb +9 -5
- data/mushy.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dffff192ce9f7784515f5b4c73a1ac15720cc2e8cb5a6a5836b34dd5049eb52
|
4
|
+
data.tar.gz: 247eeecec22765e28eb98e850982e8ef06ec3e969257da56e0923baadc237b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a85f196c4c86ad29b3a96d90356cd74264a443cdfaf58a4662a407f4ef01bb2cb7cbd1098f3a20c57a2d3f901160b5ddbf309f6c6d03fcc8d1c691ba08ed9d7
|
7
|
+
data.tar.gz: 386d48b9ba0aaa610dca7675f780ab186aedf15ae14b3a31e41c119d5e427b0bcd1f58b7f17d6395b6e6625cbdcd328861512507b14bbc3b5681648f1382ac4a
|
data/lib/mushy/fluxs/browser.rb
CHANGED
@@ -105,15 +105,15 @@ module Mushy
|
|
105
105
|
body: browser.body
|
106
106
|
}
|
107
107
|
|
108
|
-
result =
|
108
|
+
result = adjust( { browser: browser, result: result, config: config } )
|
109
109
|
|
110
110
|
browser.quit
|
111
111
|
|
112
112
|
result
|
113
113
|
end
|
114
114
|
|
115
|
-
def
|
116
|
-
result
|
115
|
+
def adjust input
|
116
|
+
input[:result]
|
117
117
|
end
|
118
118
|
|
119
119
|
def get_the_cookies_from event, config
|
@@ -27,15 +27,19 @@ module Mushy
|
|
27
27
|
details
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def adjust input
|
31
|
+
|
32
|
+
the_browser = input[:browser]
|
33
|
+
the_result = input[:result]
|
34
|
+
the_config = input[:config]
|
31
35
|
|
32
36
|
options = {
|
33
|
-
path:
|
34
|
-
full: ['true', ''].include?(
|
35
|
-
quality: (
|
37
|
+
path: the_config[:path],
|
38
|
+
full: ['true', ''].include?(the_config[:full].to_s),
|
39
|
+
quality: (the_config[:quality].to_s == '' ? '100' : the_config[:quality]).to_i
|
36
40
|
}
|
37
41
|
|
38
|
-
|
42
|
+
the_browser.screenshot options
|
39
43
|
|
40
44
|
options
|
41
45
|
|
data/mushy.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'mushy/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'mushy'
|
7
|
-
s.version = '0.2.
|
7
|
+
s.version = '0.2.4'
|
8
8
|
s.date = '2020-11-23'
|
9
9
|
s.summary = 'Process streams of work using common modules.'
|
10
10
|
s.description = 'This tool assists in the creation and processing of workflows.'
|