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 +4 -4
- data/lib/skeleton.rb +2 -5
- data/lib/skeleton/languages.rb +5 -1
- data/lib/skeleton/version.rb +1 -1
- 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: 5ecd2fc602369fc1dd82ecad35404fe4cc992f25efba9008a184db544fc96664
|
4
|
+
data.tar.gz: 17e4076b65d2cd7bc68ecad9aaacd78443c59aa9d8172787c9c788254d862eb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =
|
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)
|
data/lib/skeleton/languages.rb
CHANGED
@@ -49,7 +49,7 @@ class Language
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
def
|
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
|
data/lib/skeleton/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|