skeleton-ui 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1b6b686064be02b7c71259fe6a6c027c67d22ef4ac3aa3e7cda5c87afc09943
4
- data.tar.gz: a3b5cb8fdc94d7631dcf0c66a4ceff2607bf4ad753ede0492c98d8d41fe4a9c0
3
+ metadata.gz: f0a9cf54a7dcee9b00099825869ed76e3787cb0b210d5c522f2f4d9662f381ab
4
+ data.tar.gz: 133005542f3c1021403b2c2e3da000086f4df5c4f088352c5e55153014ae6ae7
5
5
  SHA512:
6
- metadata.gz: ddc95d6c494fcbb9237bcdd70725f6340a2b31dc01baf5356ed2e232c7612f0553bd65695e90d70d11269f56d23233b93bb05858503945f0a3d15e4423357944
7
- data.tar.gz: 872b9f5c315da8e087b632a835b55df717cf38db55251f3c04a9f435b7ae2f00e6479da4d94838af82a3189abb728d08f746d2e1a895e54944df6052b666b8b8
6
+ metadata.gz: 32424add5863b1a75b76398ca19cda206a27d0521d5104fa5d746dba0a781b271e8ed4feacfaebb78980a784854d53ae251b326dca24abaaf55eed9983271319
7
+ data.tar.gz: fdab55fd50ada4473530b87395955cdf73cf5588ba769d53283b24184d807c18e9ff057d015a9e899df7e8c74ea8336d68334de077a478aa6c62b5d4cb4d8e66
data/lib/skeleton/base.rb CHANGED
@@ -3,7 +3,7 @@ require_relative 'languages.rb'
3
3
  class Base
4
4
  include Language
5
5
 
6
- # ROOT_DIR_FOR_DEBUG = File.expand_path('..', Dir.pwd)
6
+ # ROOT_DIR_FOR_DEBUG = File.expand_path('..', Dir.pwd)
7
7
  ROOT_DIR = "#{`gem environment gemdir`.strip}" \
8
8
  "/gems/skeleton-ui-#{Skeleton::VERSION}"
9
9
  PAGE_OBJECTS_FOLDER = "#{ROOT_DIR}/PageObjects"
data/lib/skeleton/ios.rb CHANGED
@@ -10,6 +10,7 @@ class IOS < Base
10
10
  IDENTIFIER = 'identifier'
11
11
  LABEL = 'label'
12
12
  XCRESULTS_FOLDER = "#{ROOT_DIR}/XCResults"
13
+ XCODEPROJ_FOLDER = "#{ROOT_DIR}/xcodeproj"
13
14
 
14
15
  attr_accessor :platform, :udid, :bundle_id
15
16
 
@@ -47,9 +48,9 @@ class IOS < Base
47
48
  code_generation(method_name, ACC_ID, locator)
48
49
  end
49
50
 
50
- def create_locator_by_label(locator, type)
51
+ def create_locator_by_label(text, type)
51
52
  method_name = "#{type}#{increment_locator_id}"
52
- locator = "#{LABEL} like '#{locator}'"
53
+ locator = "#{LABEL} like '#{text}'"
53
54
  code_generation(method_name, NSPREDICATE, locator)
54
55
  end
55
56
 
@@ -92,7 +93,7 @@ class IOS < Base
92
93
  start_grep, end_grep = 'start_grep_tag', 'end_grep_tag'
93
94
  ios_arch = @simulator ? 'iOS Simulator' : 'iOS'
94
95
  @page_source = `xcodebuild test \
95
- -project #{ROOT_DIR}/Skeleton.xcodeproj \
96
+ -project #{XCODEPROJ_FOLDER}/Skeleton.xcodeproj \
96
97
  -scheme Skeleton \
97
98
  -destination 'platform=#{ios_arch},id=#{@udid}' \
98
99
  -resultBundlePath #{XCRESULTS_FOLDER} \
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  GEM_NAME = 'skeleton-ui'
4
4
  end
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeleton-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - a.alterpesotskiy
@@ -95,18 +95,6 @@ files:
95
95
  - LICENSE.txt
96
96
  - README.md
97
97
  - Rakefile
98
- - Skeleton.xcodeproj/project.pbxproj
99
- - Skeleton.xcodeproj/project.xcworkspace/contents.xcworkspacedata
100
- - Skeleton.xcodeproj/project.xcworkspace/xcuserdata/a.alterpesotskiy.xcuserdatad/UserInterfaceState.xcuserstate
101
- - Skeleton.xcodeproj/xcshareddata/xcschemes/Skeleton.xcscheme
102
- - Skeleton/AppDelegate.swift
103
- - Skeleton/Assets.xcassets/AppIcon.appiconset/Contents.json
104
- - Skeleton/Base.lproj/LaunchScreen.storyboard
105
- - Skeleton/Base.lproj/Main.storyboard
106
- - Skeleton/Info.plist
107
- - Skeleton/ViewController.swift
108
- - SkeletonUITests/Info.plist
109
- - SkeletonUITests/SkeletonUITests.swift
110
98
  - bin/console
111
99
  - bin/setup
112
100
  - bin/skeleton
@@ -117,6 +105,14 @@ files:
117
105
  - lib/skeleton/languages.rb
118
106
  - lib/skeleton/version.rb
119
107
  - skeleton.gemspec
108
+ - xcodeproj/Skeleton/AppDelegate.swift
109
+ - xcodeproj/Skeleton/Assets.xcassets/AppIcon.appiconset/Contents.json
110
+ - xcodeproj/Skeleton/Base.lproj/LaunchScreen.storyboard
111
+ - xcodeproj/Skeleton/Base.lproj/Main.storyboard
112
+ - xcodeproj/Skeleton/Info.plist
113
+ - xcodeproj/Skeleton/ViewController.swift
114
+ - xcodeproj/SkeletonUITests/Info.plist
115
+ - xcodeproj/SkeletonUITests/SkeletonUITests.swift
120
116
  homepage: https://github.com/forqa/skeleton
121
117
  licenses:
122
118
  - MIT