skeleton-ui 0.1.6 → 0.1.7

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: 8418b975757fca5b7c940051ff2d5577f3e65daa691bb58890b48c2730bdb542
4
- data.tar.gz: e291af0a193239deee80a3983f375b2a7301fafdf0a4f3a551d09df9ab884d0c
3
+ metadata.gz: 1792edd1a691490e9b77e271603e55739f514464083da6c47fcc7952c4ee1ab5
4
+ data.tar.gz: 288c98565edd731ecf09357b58d790fec90113b1335a13c0b0d03e5bf2dabbef
5
5
  SHA512:
6
- metadata.gz: 7d52e6993e5d2ac528c43a9e0525f66f548d4a55e0d80a737c544186e0fe66e35ab20e5b6d88e966b5ca801285b2dcb55cce1e37e369d5360ec2024745e7686a
7
- data.tar.gz: 67ca713d562701c9fffe0d11e8a2f860a0733f80be334b19a2a02d899933ba08328ed9f5ae582c8175c5f50077d7ba11ef511af887520b3a0eadddda13fa0f63
6
+ metadata.gz: 6cc2e196e35900bdc5ca681e2f288a6aa25e1cef28e2a4c931a5d8ed4e07f053cfd32f218b5e4519a7ab7cb4dacd6c58dd0e82ee934c3a00f8e074add9d43706
7
+ data.tar.gz: 73115b5d46a5b77a97def3506e3304955020cf3397a9db90d6f11f0b66b0f9729b87bf237a62b8f7d76f4688f9ac9178ffef33300394a064577657569143b1aa
@@ -14,13 +14,13 @@
14
14
  </div>
15
15
  <div class="row" style="min-height: 666px;">
16
16
  <div class="col-md-4 mb-4">
17
- <div class="aside" style="max-height: 666px;">
18
- <div class="aside__img" style="background-image: url(screenshot.png);"></div>
17
+ <div class="aside" style="max-height: 670px;">
18
+ <div class="aside__img" style="background-image: url(screenshot.png); outline: 1px solid gray;"></div>
19
19
  </div>
20
20
  </div>
21
21
  <div class="col-md-8">
22
22
  <h4 class="mb-3">Page Objects:</h4>
23
- <div class="content" id="content">
23
+ <div class="content" id="content" style="max-height: 670px; overflow-y: auto;">
24
24
  <pre><code><%= @pageobject %></code></pre>
25
25
  </div>
26
26
  </div>
@@ -31,10 +31,10 @@
31
31
  </div>
32
32
  </div>
33
33
  </div>
34
- <footer class="my-5 pt-5 text-muted text-center text-small">
35
- <p class="mb-1">© 2018 <a href="https://github.com/forqa">forqa</a></p>
36
- <p class="mb-1"><a href="https://github.com/alter-al">alter-al</a></p>
37
- <ul class="list-inline"></ul>
34
+ <footer class="my-2 pt-5 text-muted text-small">
35
+ <p class="mb-1 text-center">© 2018 <a href="https://github.com/forqa">forqa</a></p>
36
+ <p class="mb-1 text-center"><a href="https://github.com/alter-al">alter-al</a></p>
37
+ <p class="mb-1 text-right"><a href="https://github.com/forqa/skeleton/releases/tag/<%= @build_version %>"><%= @build_version %></a></p>
38
38
  </footer>
39
39
  </div>
40
40
  </body>
data/lib/skeleton.rb CHANGED
@@ -56,6 +56,7 @@ module Skeleton
56
56
  folder = Base::PAGE_OBJECTS_FOLDER
57
57
  @pageobject = File.read(Dir["#{folder}/*.#{type}"].first)
58
58
  @elements_tree = File.read(Dir["#{folder}/*.xml"].first)
59
+ @build_version = "v#{VERSION}"
59
60
  if @driver.class == Android
60
61
  @elements_tree = Nokogiri::XML(@elements_tree).to_s
61
62
  @elements_tree.gsub!('<', '&lt;')
data/lib/skeleton/ios.rb CHANGED
@@ -58,7 +58,7 @@ class IOS < Base
58
58
 
59
59
  def create_locator_by_label(text, type)
60
60
  method_name = "#{type}#{increment_locator_id}"
61
- locator = "#{LABEL} like '#{text}'"
61
+ locator = "#{LABEL} LIKE '#{text}'"
62
62
  code_generation(method_name: method_name,
63
63
  locator_type: NSPREDICATE,
64
64
  locator_value: locator)
@@ -6,35 +6,28 @@ class Language
6
6
 
7
7
  def java(camel_method_name:, locator_type:, locator_value:)
8
8
  <<~JAVA
9
- By #{camel_method_name}() {
10
- return MobileBy.#{locator_type[:java]}("#{locator_value}");
11
- }
9
+ By #{camel_method_name} = MobileBy.#{locator_type[:java]}("#{locator_value}");
12
10
 
13
11
  JAVA
14
12
  end
15
13
 
16
14
  def ruby(snake_method_name:, locator_type:, locator_value:)
17
15
  <<~RUBY
18
- def #{snake_method_name}
19
- return :#{locator_type[:ruby]}, "#{locator_value}"
20
- end
16
+ #{snake_method_name} = :#{locator_type[:ruby]}, "#{locator_value}"
21
17
 
22
18
  RUBY
23
19
  end
24
20
 
25
21
  def python(snake_method_name:, locator_type:, locator_value:)
26
22
  <<~PYTHON
27
- def #{snake_method_name}(self):
28
- return self.driver.#{locator_type[:python]}("#{locator_value})"
23
+ #{snake_method_name} = driver.#{locator_type[:python]}("#{locator_value})"
29
24
 
30
25
  PYTHON
31
26
  end
32
27
 
33
28
  def js(camel_method_name:, locator_type:, locator_value:)
34
29
  <<~JS
35
- function #{camel_method_name}() {
36
- return driver.elements("#{locator_type[:javascript]}", "#{locator_value}");
37
- }
30
+ #{camel_method_name} = driver.elements("#{locator_type[:javascript]}", "#{locator_value}");
38
31
 
39
32
  JS
40
33
  end
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  GEM_NAME = 'skeleton-ui'
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.6
4
+ version: 0.1.7
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-07-16 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler