glyptic-strips 0.0.3 → 0.0.4
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/lib/glyptic_strips.rb +9 -5
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5008fe212054278f46a075f107500f2e126c502e
|
4
|
+
data.tar.gz: 3d1cbfb1a1a341c96ef36bfceb799921002afeef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d999b3fdaf7e200653780206eb6fb25406f8f02d82f09a229229583d5a104de3d7df2b6dde4ee372052f1d63c90150281e4ab8bc3a94d951b07780b5fecce344
|
7
|
+
data.tar.gz: 57e5ba0baa369c77aaddc0be3a276470e789550b0206de5a204f7847977284db0a76f70509228fe2b38a1f18e5288eb8dd09d90877034249079abb84afcc9831
|
data/lib/glyptic_strips.rb
CHANGED
@@ -4,8 +4,8 @@ require 'cucumber'
|
|
4
4
|
# Main class of Glyptic Strips
|
5
5
|
#
|
6
6
|
|
7
|
-
# = Setting up your project
|
8
|
-
#
|
7
|
+
# = Setting up your project
|
8
|
+
#
|
9
9
|
# = Example
|
10
10
|
#
|
11
11
|
# create_gif(sceanrio, './myproj/test_reports/screenshots', @browser, :watir, 6)
|
@@ -23,6 +23,10 @@ class GlypticStrips
|
|
23
23
|
#
|
24
24
|
|
25
25
|
def create_strip(scenario, png_folder, driver, driver_type, number_in_row)
|
26
|
+
create_strip(scenario, png_folder, png_folder, driver, driver_type, number_in_row)
|
27
|
+
end
|
28
|
+
|
29
|
+
def create_strip(scenario, png_folder, html_location, driver, driver_type, number_in_row)
|
26
30
|
@@scenario_index = 0
|
27
31
|
final_strip = ''
|
28
32
|
take_strip_frame(driver, driver_type, png_folder) if(scenario.failed?)
|
@@ -44,9 +48,9 @@ class GlypticStrips
|
|
44
48
|
end
|
45
49
|
step_name = scenario_array[img_index].name.to_s
|
46
50
|
if (scenario.failed? && (num_of_images - 1 == img_index))
|
47
|
-
image_html = get_image_html("#{
|
51
|
+
image_html = get_image_html("#{html_location}/#{file_name}", "#{img_index+1}: #{step_name}", @@red, number_in_row)
|
48
52
|
else
|
49
|
-
image_html = get_image_html("#{
|
53
|
+
image_html = get_image_html("#{html_location}/#{file_name}", "#{img_index+1}: #{step_name}", @@green, number_in_row)
|
50
54
|
end
|
51
55
|
puts
|
52
56
|
final_strip = final_strip+image_html
|
@@ -105,4 +109,4 @@ class GlypticStrips
|
|
105
109
|
image_percent = 90/number_in_row
|
106
110
|
"<a href='#{image_location}' title='#{text}'><img style='border:4px solid #{color}' width='#{image_percent}%' src='#{image_location}'/></a>"
|
107
111
|
end
|
108
|
-
end
|
112
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glyptic-strips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Sheffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mini_magick
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.6.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.6.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: cucumber
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -30,9 +44,9 @@ dependencies:
|
|
30
44
|
- - ">="
|
31
45
|
- !ruby/object:Gem::Version
|
32
46
|
version: 2.0.0
|
33
|
-
description: Glyptic
|
34
|
-
|
35
|
-
email:
|
47
|
+
description: "Glyptic Gifs - A gem which assists in the creation of gifs for cucumber
|
48
|
+
projects\n "
|
49
|
+
email: magus.chef@gmail.com
|
36
50
|
executables: []
|
37
51
|
extensions: []
|
38
52
|
extra_rdoc_files: []
|
@@ -58,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
72
|
version: '0'
|
59
73
|
requirements: []
|
60
74
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.4.5
|
75
|
+
rubygems_version: 2.4.5
|
62
76
|
signing_key:
|
63
77
|
specification_version: 4
|
64
|
-
summary:
|
78
|
+
summary: Gif Creating Library
|
65
79
|
test_files: []
|