regressy_common 0.4.0 → 1.0.0
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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/regressy_common/snap_shot.rb +5 -1
- data/lib/regressy_common/snap_storage.rb +5 -2
- data/lib/regressy_common/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68e9cb13e8f08d4b60d2237f324d697df2dc6d614e9dbe4ec239f317247ef08b
|
|
4
|
+
data.tar.gz: 0c51111b1c1c8f7e317fc000a453b79c4bc1becf462e1c41434d0a5174ac3a87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61c37f1a50bac351f2f73f88e533ac163084af8b34b6a03284ace81a44cf19e12a7131f66c17315958ed191653014872fe58dec32430abc945c1645a25ea97ca
|
|
7
|
+
data.tar.gz: 2a9bbee3ca787fba46c33978fd79dcc3b39dc3008967800e9a94d7b079d9ee4bb113f26e89e0d92cbf509c17f62089410b513368069340a07e638ed6b3cfd251
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
regressy_common (
|
|
4
|
+
regressy_common (1.0.0)
|
|
5
|
+
httpclient (~> 2.8)
|
|
5
6
|
|
|
6
7
|
GEM
|
|
7
8
|
remote: https://rubygems.org/
|
|
@@ -54,8 +55,7 @@ PLATFORMS
|
|
|
54
55
|
|
|
55
56
|
DEPENDENCIES
|
|
56
57
|
bundler (~> 1.17)
|
|
57
|
-
|
|
58
|
-
pry-byebug
|
|
58
|
+
pry-byebug (~> 3.7)
|
|
59
59
|
rake (~> 10.0)
|
|
60
60
|
regressy_common!
|
|
61
61
|
rspec (~> 3.0)
|
|
@@ -14,7 +14,11 @@ module RegressyCommon
|
|
|
14
14
|
private
|
|
15
15
|
|
|
16
16
|
def snap_file
|
|
17
|
-
@snap_file ||= Tempfile.create([
|
|
17
|
+
@snap_file ||= Tempfile.create([snap_file_prefix, '.png'])
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def snap_file_prefix
|
|
21
|
+
(@tag.empty?)? "snap_" : %(snap_#{@tag}_)
|
|
18
22
|
end
|
|
19
23
|
|
|
20
24
|
def save_screenshot
|
|
@@ -3,8 +3,11 @@ require 'httpclient'
|
|
|
3
3
|
module RegressyCommon
|
|
4
4
|
class SnapStorage
|
|
5
5
|
def store_file(file, tag)
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
# if not define api_base, skip post and unlink for development
|
|
7
|
+
if api_base
|
|
8
|
+
post_file(file, tag) if api_base
|
|
9
|
+
File.unlink(file.path)
|
|
10
|
+
end
|
|
8
11
|
end
|
|
9
12
|
|
|
10
13
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: regressy_common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- info@fluxware.co.jp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|