xamarin-automators-calabash 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: 1accb8013d09ab8b53a162324ac84f7f76bef978
4
- data.tar.gz: 955d87a989be498fc0e861f0ac93cb1625640c55
3
+ metadata.gz: ea85b7f08fecb201a92e569fcea0c37f25d02414
4
+ data.tar.gz: 3bb42a67e5be62b6541130487c335f0fd0cc88e5
5
5
  SHA512:
6
- metadata.gz: a4a1d4dba12f0f84b2b58ac8c6fe5ee9d52f9ca6d6da3a456a63430d1cc94204b310f0b3607a6cc4c6efc36247f7eb67add37517e7570ef7af2c69b089550e50
7
- data.tar.gz: d1929e305e10009412351127efa9166ba9a70c763156f5fa59cff4ab1164d771e082a74639727e7a0ea44ffe879bf56ea95a2849e3796eb9fc0ef6efac78ad37
6
+ metadata.gz: cb68626383d9a401cb6f1d89c35dee5a6f3fb079e89dbb68c8a832738007192ecf3af8cbed81991ecc57cd23a98d1ecaf39338e17eb710e1149d7c5bac37a3c9
7
+ data.tar.gz: 9243ec6168df20fddd94dc169c2c31de345cf1126336a9e4308c5f317aa41f774cfab556140cf5f27cf18ea3b67bda0aeade7e2c50376ec6a3629618afc008dc
@@ -1,7 +1,9 @@
1
1
  require 'awesome_print'
2
2
 
3
3
  def print_tree(show_class=false)
4
+ @count = 1
4
5
  print_tree_recurse("child * parent * index:0", (query "* index:0").first, 0, show_class)
6
+ return @count
5
7
  end
6
8
 
7
9
  def print_tree_recurse(query, node, indent, show_class)
@@ -16,10 +18,15 @@ def print_tree_recurse(query, node, indent, show_class)
16
18
  print "\n"
17
19
  children = query "#{query} child *"
18
20
  (children.size).times do |i|
21
+ @count += 1
19
22
  print_tree_recurse("#{query} child * index:#{i}", children[i], indent+1, show_class)
20
23
  end
21
24
  end
22
25
 
26
+ def print_tree_partial(query, show_class=false)
27
+ print_tree_recurse("#{query} index:0", (query "#{query} index:0").first, 0, show_class)
28
+ end
29
+
23
30
  def colorize(text, color_code)
24
31
  "\e[#{color_code}m#{text}\e[0m"
25
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamarin-automators-calabash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Roos