xc_html_generator 0.0.3 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xc_html_generator.rb +6 -2
- 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: bdd43d9892fe6b21f472d99af98d34fc65f6dad5c2b0fe5966a0582e49d20b49
|
4
|
+
data.tar.gz: 59a008f1dad1d5a268ac714027db7ce381dd6b2cd09e18fb9ccf71383163fcdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84cbf8695b42f3a96dc0b4dc15ec5ef215d020a8bb7bfedad3eca908f700195fc5c35ebe102eb24df1048d3cfde1ddd1e906e0eca800ffb94e48ae42e74c0c1e
|
7
|
+
data.tar.gz: cf8f4723755ba742a1e687bfc0087ceda64f63d4e89c76ec068cfe3131f92a703f81eddf049825c18ddc7ae4002e370aaa8a0a84cdac72abea42bee469a3c330
|
data/lib/xc_html_generator.rb
CHANGED
@@ -5,6 +5,10 @@ class XCHtmlGenerator
|
|
5
5
|
|
6
6
|
attr_accessor :screenshots_path
|
7
7
|
|
8
|
+
def root
|
9
|
+
File.dirname __dir__
|
10
|
+
end
|
11
|
+
|
8
12
|
def initialize(params = {})
|
9
13
|
@screenshots_path = params.fetch(:screenshots_path, path)
|
10
14
|
end
|
@@ -14,7 +18,7 @@ class XCHtmlGenerator
|
|
14
18
|
end
|
15
19
|
|
16
20
|
def html_path
|
17
|
-
File.join(
|
21
|
+
File.join(root, "lib", "html", "page.html.erb")
|
18
22
|
end
|
19
23
|
|
20
24
|
def result_path
|
@@ -45,7 +49,7 @@ class XCHtmlGenerator
|
|
45
49
|
@data_by_screen[screen_name] ||= {}
|
46
50
|
@data_by_screen[screen_name][output_name] ||= {}
|
47
51
|
|
48
|
-
resulting_path =
|
52
|
+
resulting_path = device_name + '/' + language + '/' + file_name + '.png'
|
49
53
|
@data_by_language[language][output_name] << resulting_path
|
50
54
|
@data_by_screen[screen_name][output_name][language] = resulting_path
|
51
55
|
break # to not include iPhone 6 and 6 Plus (name is contained in the other name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xc_html_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kostyantin Ishchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple gem that genarate html from xcparse result
|
14
14
|
email: ko7tyantin@gmail.com
|