skeleton-ui 0.1.12 → 0.1.13

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: 070fce0dd13ee0154db462655d7f86b119ed77e75c0f0810de14ca407802643d
4
- data.tar.gz: 937d99a22bed5cca8fcda3346f06cdd93dfcf0b81c10f32666a9f54f32ae960d
3
+ metadata.gz: 5ecd2fc602369fc1dd82ecad35404fe4cc992f25efba9008a184db544fc96664
4
+ data.tar.gz: 17e4076b65d2cd7bc68ecad9aaacd78443c59aa9d8172787c9c788254d862eb1
5
5
  SHA512:
6
- metadata.gz: 48a760cd677ff3c90110d490a9984f67f10c2bca83c2b8860384c4c9a33c300ad7c500ac8e45bae6e569eaaf814bca06f4c960c88f7e0fa43fa1ebc157233459
7
- data.tar.gz: 0dcf69c1ee743eea168c6223537304823ea2f9502d6e30f6e9c20be851edbd9c042ab15a081c1c1bdbce8f00f67de54f08b75d1e53cc2ed33ad4ec7c26d100bf
6
+ metadata.gz: c11cfcc4a4c6ac27cb0c53e4d90b38fb488ca42e7444f8675f795e8ba9e4fd66e32148672fb1feff8f6b4298d17d94974d4d8f892d8eebff5cb57dfacfc1527c
7
+ data.tar.gz: 8f79bc62490a48db001e6886f710bcb968f2e48ccc3916dbcfc3e89da3ace088fdba4f27920863e524ec22fe58b471100e30bb0fb0abdaf18d01b3b9f969f1e3
data/lib/skeleton.rb CHANGED
@@ -30,7 +30,6 @@ module Skeleton
30
30
  end
31
31
 
32
32
  def run
33
- @driver.clear
34
33
  @driver.precondition
35
34
  @driver.skeletoner
36
35
  fill_html
@@ -38,12 +37,10 @@ module Skeleton
38
37
  end
39
38
 
40
39
  def fill_html
41
- language = Language.new
42
- languages = %w[ruby java python javascript]
43
- languages += %w[swift] if ios?
40
+ languages = ios? ? Language.all : Language.all - ['swift']
44
41
  languages.each do |lang|
45
42
  attach_image
46
- type = language.type(lang)
43
+ type = Language.domain(lang)
47
44
  folder = Base::PAGE_OBJECTS_FOLDER
48
45
  @screen_objects = File.read(Dir["#{folder}/*.#{type}"].first)
49
46
  @elements_tree = File.read(Dir["#{folder}/*.xml"].first)
@@ -49,7 +49,7 @@ class Language
49
49
  end
50
50
  end
51
51
 
52
- def type(format)
52
+ def self.domain(format)
53
53
  case format
54
54
  when 'ruby', 'rb'
55
55
  RUBY
@@ -65,6 +65,10 @@ class Language
65
65
  "I haven't this language format"
66
66
  end
67
67
  end
68
+
69
+ def self.all
70
+ %w[ruby java python javascript swift]
71
+ end
68
72
  end
69
73
 
70
74
  class XCUIElement
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION ||= '0.1.12'.freeze
2
+ VERSION ||= '0.1.13'.freeze
3
3
  GEM_NAME ||= 'skeleton-ui'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeleton-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - a.alterpesotskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-05 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler