skeleton-ui 0.1.17 → 0.1.18

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: e8c1f3cfdf02e9b88c60ef6cad9a9fa5794c22c4f6ff8a7d5b58cb65581e7c11
4
- data.tar.gz: 229a68d3f2113eb88fc07643a3e3bfcf7feb82862a729772ecd2ecd862f24bb5
3
+ metadata.gz: fe0e2f42ad44e27121b0b88151cddd2ffadeee66a1beb711662d8f3f732861f5
4
+ data.tar.gz: 022f1b9fb7d6a52f7e3684a1b8bae569607b7c6c2582bd7004a511fc3f824d54
5
5
  SHA512:
6
- metadata.gz: a2f66653662dfc7ddc1291d6316f3ee4c207aad6b05203dea953d64d83e9da25d19a2a6032bd548640c4cee10a6b95ebe07aec8f491645ebea590037a88ccf2f
7
- data.tar.gz: 14dc8240f29b61625cd4c9493dd31578366903fd7ec81a81985fd00bd1af820fcb95312a341f23b37b4156e40098c6a01272e637054b3907e1764b32973f0242
6
+ metadata.gz: ea9858213d8a53fa79bfed6416fa1d7207f42a465bb5a8d6d37430128b30639feade4b8caf5bb588a1cbff0ed3aa952fe3e51bab8e47d774ec103f52a883b95a
7
+ data.tar.gz: 9e917a4544d9b5b0e31abb41e91ad3951e23760dfd35aee55c52f0317e890a0f48942afcd8109ad9c1c07cdb8582e860f906b0f03b44c5a0ee0238d71338e71c
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # skeleton
2
- Tool for fast generating multi language page objects from iOS and Android screens.
2
+ Tool for fast generating multi language page objects from iOS (device/simulator) and Android (devices/emulator) screens.
3
3
 
4
4
 
5
5
  Prerequisites:
@@ -21,81 +21,32 @@ Prerequisites:
21
21
  Installation:
22
22
  ------
23
23
  $ gem install skeleton-ui
24
-
25
- Precondition:
26
- ------
27
- $ skeleton server
28
24
 
29
25
  Usage:
30
26
  ------
31
- $ skeleton --help
32
-
33
- DESCRIPTION:
34
-
35
- Tool for fast generating multi language page objects from iOS and Android screens.
36
-
37
- COMMANDS:
38
-
39
- server Run skeleton web-server
40
- clear Clear user cache
41
- scan Make screen objects
42
-
43
- GLOBAL OPTIONS:
44
-
45
- -h, --help
46
- Display help documentation
47
-
48
- -v, --version
49
- Display version information
50
-
51
- -t, --trace
52
- Display backtrace when an error occurs
53
-
54
- $ skeleton scan --help
55
-
56
- EXAMPLES:
57
-
58
- skeleton scan -p (ios or android) -u 749575366595763538563 -b com.my.bundle
59
-
60
- OPTIONS:
61
-
62
- -p, --platform PLATFORM
63
- Set device platform: android or ios
64
-
65
- -u, --udid UDID
66
- Set device UDID
67
-
68
- -b, --bundle BUNDLE
69
- Set Bundle ID for your app [required for iOS]
70
-
71
- --[no-]browser
72
- Not open the browser at the end of skeleton's work
27
+ 1. Start skeleton server:
28
+ $ skeleton server
29
+ 2. Open device screen
30
+ 3. Scan device screen via skeleton:
31
+ $ skeleton scan -p android
32
+ $ skeleton scan -p ios -b "your_app_bundle_id"
33
+ 4. Open page with the generated screen objects on your favorite language
34
+
35
+ For more info use:
36
+ $ skeleton -h
37
+ $ skeleton scan -h
73
38
 
74
- $ skeleton clear --help
75
-
76
- EXAMPLES:
77
-
78
- skeleton clear
79
-
80
- $ skeleton server --help
81
-
82
- EXAMPLES:
83
-
84
- skeleton server
85
-
86
- OPTIONS:
87
-
88
- -p, --port PORT
89
- Set web-server port
39
+ Demo:
40
+ ------
41
+
42
+ ![Skeleton example](docs/skeleton_example.png)
90
43
 
91
44
  Docs:
92
45
  ------
93
46
 
94
- - [Setting up Skeleton for working with iOS real devices](https://github.com/forqa/skeleton/blob/master/docs/real-ios-device-config.md)
47
+ - [Setting up Skeleton for working with iOS real devices](https://github.com/alter-al/skeleton/blob/master/docs/real-ios-device-config.md)
95
48
  - [Setting up RVM for deciding permissions problems](https://github.com/alter-al/skeleton/blob/master/docs/permissions_error.md)
96
49
 
97
50
  ## License
98
51
 
99
52
  A tool is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
100
-
101
-
@@ -38,11 +38,15 @@ module Skeleton
38
38
 
39
39
  def fill_html
40
40
  languages = ios? ? Language.all : Language.all - ['swift']
41
- languages.each do |lang|
41
+ languages.each_with_index do |lang, index|
42
42
  attach_image
43
43
  type = Language.domain(lang)
44
44
  folder = Base::PAGE_OBJECTS_FOLDER
45
- @screen_objects = File.read(Dir["#{folder}/*.#{type}"].first)
45
+ begin
46
+ @screen_objects = File.read(Dir["#{folder}/*.#{type}"].first)
47
+ rescue TypeError
48
+ Log.warn('Failed to find any screen objects 💩') if index.zero?
49
+ end
46
50
  @elements_tree = File.read(Dir["#{folder}/*.xml"].first)
47
51
  @build_version = "v#{VERSION}"
48
52
  if @driver.class == Android
@@ -70,7 +74,7 @@ module Skeleton
70
74
  port = File.read("#{Base::ROOT_DIR}/server/port")
71
75
  url = "http://localhost:#{port}/skeleton"
72
76
  `open #{url}` if @browser
73
- Log.info("Look at your pretty page objects: \n#{url} 😍")
77
+ Log.info("Take a peek on #{url} 😍")
74
78
  rescue Errno::ENOENT
75
79
  Log.warn('Something went wrong with skeleton server 💩' \
76
80
  "\nTry to rerun it (:")
@@ -1,4 +1,4 @@
1
1
  module Skeleton
2
- VERSION ||= '0.1.17'.freeze
2
+ VERSION ||= '0.1.18'.freeze
3
3
  GEM_NAME ||= 'skeleton-ui'.freeze
4
4
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["a.alterpesotskiy"]
10
10
  spec.email = ["33gri@bk.ru"]
11
11
 
12
- spec.summary = %q{CLI for fast generating multi language page objects from iOS and Android screens.}
12
+ spec.summary = %q{Tool for fast generating multi language page objects from iOS (device/simulator) and Android (devices/emulator) screens.}
13
13
  spec.homepage = "https://github.com/forqa/skeleton"
14
14
  spec.license = "MIT"
15
15
 
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.17
4
+ version: 0.1.18
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-08 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -160,6 +160,7 @@ files:
160
160
  - docs/permissions_error.md
161
161
  - docs/real-ios-device-config.md
162
162
  - docs/sign_xcproj.png
163
+ - docs/skeleton_example.png
163
164
  - docs/untrusted-dev.png
164
165
  - lib/skeleton.rb
165
166
  - lib/skeleton/android.rb
@@ -209,6 +210,6 @@ rubyforge_project:
209
210
  rubygems_version: 2.7.3
210
211
  signing_key:
211
212
  specification_version: 4
212
- summary: CLI for fast generating multi language page objects from iOS and Android
213
- screens.
213
+ summary: Tool for fast generating multi language page objects from iOS (device/simulator)
214
+ and Android (devices/emulator) screens.
214
215
  test_files: []