xc_html_generator 0.0.4 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xc_html_generator.rb +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4e7caa6a9d827e0d76fb13ef06dba182485aeae151dd2b6c3bc5850458c2ad1
4
- data.tar.gz: 6a03f991abe14362d6bbc87baf1742ed17b5f03841c3ea3365afb6349b4dcc27
3
+ metadata.gz: 3a3e1ba4ecf36b4d707942d542eccbf58baee97f09f853668cb9001c5318ff46
4
+ data.tar.gz: 6c0def6a5119bc12f86f366c9d146eed5a0a5d5f6969a250270e0cc459a41f01
5
5
  SHA512:
6
- metadata.gz: 88f47680fd1c265129c79c5bbe1f51dbec8361e0ccaa066c8cbee843454348d1f2fa698bb9e4031f07afb50feb198e3dcaeb293a8a1c3d1155e42d29e398964f
7
- data.tar.gz: c1846999e99a7a4c2393855fc5066651565128a2e90fe16bae0640da5fc25bc8e3708c744af35a4cc48b67d04bcbce26559d1c66c65c3fe4cd84da75501efd7d
6
+ metadata.gz: a9fb89c18ed7221a0a7cc22b4f5cd4055c343bcca6b25922cc63ec61becab3395d532e866b35bdd8544452a578aaef2eab1a31c51e9b0553809b8bd276ab3397
7
+ data.tar.gz: 6de17c0dc313d91861065d56b21a9de5a0a74551523d49ac0bd34cde171f79649cdcf8b25140bae495a4ff8167c9554b5dc052c3069bf4e538d386adac54de58
@@ -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(ROOT, "lib", "snapshot/page.html.erb")
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 = screenshot
52
+ resulting_path = device_name + '/' + language + '/' + file_name
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
4
+ version: 0.0.9
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-18 00:00:00.000000000 Z
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