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 +4 -4
- data/lib/skeleton/base.rb +1 -1
- data/lib/skeleton/ios.rb +4 -3
- data/lib/skeleton/version.rb +1 -1
- data/{Skeleton → xcodeproj/Skeleton}/AppDelegate.swift +0 -0
- data/{Skeleton → xcodeproj/Skeleton}/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/{Skeleton → xcodeproj/Skeleton}/Base.lproj/LaunchScreen.storyboard +0 -0
- data/{Skeleton → xcodeproj/Skeleton}/Base.lproj/Main.storyboard +0 -0
- data/{Skeleton → xcodeproj/Skeleton}/Info.plist +0 -0
- data/{Skeleton → xcodeproj/Skeleton}/ViewController.swift +0 -0
- data/{SkeletonUITests → xcodeproj/SkeletonUITests}/Info.plist +0 -0
- data/{SkeletonUITests → xcodeproj/SkeletonUITests}/SkeletonUITests.swift +0 -0
- metadata +9 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a9cf54a7dcee9b00099825869ed76e3787cb0b210d5c522f2f4d9662f381ab
|
4
|
+
data.tar.gz: 133005542f3c1021403b2c2e3da000086f4df5c4f088352c5e55153014ae6ae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
51
|
+
def create_locator_by_label(text, type)
|
51
52
|
method_name = "#{type}#{increment_locator_id}"
|
52
|
-
locator = "#{LABEL} like '#{
|
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 #{
|
96
|
+
-project #{XCODEPROJ_FOLDER}/Skeleton.xcodeproj \
|
96
97
|
-scheme Skeleton \
|
97
98
|
-destination 'platform=#{ios_arch},id=#{@udid}' \
|
98
99
|
-resultBundlePath #{XCRESULTS_FOLDER} \
|
data/lib/skeleton/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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
|
+
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
|