xamarin-automators-calabash 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 663abc983fb931256aeed2b1f7854c63fe3a70b9
4
+ data.tar.gz: 2fce91dd9a1a8292a051e3f5f88d232fb2b3796c
5
+ SHA512:
6
+ metadata.gz: 0eed0949f350b4d18422dfdfd972ccbd019690efe140d10ae4db368f2af186ecb83564ff8e447fbb62ca1bd056044d5d47509c4f4f369a8107b25550462b6cf4
7
+ data.tar.gz: 0019754fdc3fedfe260c5b11cc29a707fda07764b3181e52baca6f53916687404950c99d0a0f6722b13c20ad9d7af2ef9c2363d3a1514501df0172c14f31bc8c
@@ -0,0 +1,15 @@
1
+ def print_tree
2
+ print_tree_recurse("child * parent *", (query "* index:0").first, 0)
3
+ end
4
+
5
+ def print_tree_recurse(query, node, indent)
6
+ indent.times { print " " }
7
+ print "id: #{node["id"]} " unless node["id"].nil?
8
+ print "text: #{node["text"]}" unless node["text"].nil?
9
+ print "class: #{node["class"].split(/[$.]/).last}" if (node["id"].nil? and node["text"].nil?)
10
+ print "\n"
11
+ children = query "#{query} child *"
12
+ (children.size).times do |i|
13
+ print_tree_recurse("#{query} child * index:#{i}", children[i], indent+1)
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xamarin-automators-calabash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Austin Roos
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A collection of helper functions for calabash-android
14
+ email: austin.roos@xamarin.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/xamarin-automators-calabash.rb
20
+ homepage: http://rubygems.org/gems/xamarin-automators-calabash
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubyforge_project:
39
+ rubygems_version: 2.0.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: A collection of helper functions for calabash-android
43
+ test_files: []