user_docs 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/user_docs/capybara_extension.rb +5 -3
- data/lib/user_docs/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: 64df02f91cb36adad712ca2f19b58e4d71eea217de85d85d4bfe4fa57b3ac1dd
|
4
|
+
data.tar.gz: 4baa6edafb2e67d7712468ec529dc919659b707a196e01e8508a64431f0a9da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7cfe269de8a69090bbfdd3837c6dc6053a8a954358e1860e6f591d542e860a058110989fb43abd6eb8817463952b9f57a9f0dd9773972a813f271de2cd1443d
|
7
|
+
data.tar.gz: 5058a48858055378b230d543a9ada63fe0b907d117ca56d9111e04499f0b81604e5bc5be58c41322e80ac0b8118d5036d4527e06ec6ffe876a982647624b3708
|
@@ -98,10 +98,12 @@ module UserDocs
|
|
98
98
|
@json[:steps] << "Click **OK**."
|
99
99
|
end
|
100
100
|
|
101
|
-
def save_screenshot(image)
|
101
|
+
def save_screenshot(image = Time.now.to_i.to_s)
|
102
|
+
image += ".png"
|
102
103
|
super
|
103
|
-
|
104
|
-
|
104
|
+
|
105
|
+
path = "/docs/assets/#{@class_name}/#{@method}/#{image}"
|
106
|
+
@json[:steps] << "<img src='#{path}' class='img-fluid'>"
|
105
107
|
end
|
106
108
|
|
107
109
|
def comment(string)
|
data/lib/user_docs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jtopgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|