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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4935a454170bcd2e7b1fbf7eb3934d0d1d1f38c20fa18b25cebaf94a1cf03d7
4
- data.tar.gz: aa2f9d340850464df354c2d50e7ef85ddcb4e9443088a408adfd1b5efd397b4d
3
+ metadata.gz: 64df02f91cb36adad712ca2f19b58e4d71eea217de85d85d4bfe4fa57b3ac1dd
4
+ data.tar.gz: 4baa6edafb2e67d7712468ec529dc919659b707a196e01e8508a64431f0a9da7
5
5
  SHA512:
6
- metadata.gz: c36aaf5904e572dd6b5c6bb6a5a1b4a846405caac6c314810e9ef45553e4c718da4da4157990c102fa60d42185fc1c19c67fe17ad45f8297cc70a3534805f9fb
7
- data.tar.gz: 1ac4f13c5d3935a4e570d553329a31bede2a6c911b4f4a3815b2b4215ba0c7ae4132b84d6c7afc09a25cbef7fa8e93db70ded6007610934172492051d9dc8e13
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
- @json[:steps] <<
104
- "<img src='assets/#{@class_name}/#{@method}/#{image}' class='img-fluid'>"
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UserDocs
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
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.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-20 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara