xamarin-automators-calabash 0.0.6 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xamarin-automators-calabash.rb +22 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9467f728b97e0f6195c9ba54ba2c67005d8ccbf
|
4
|
+
data.tar.gz: e6cbb01f4fe393e7b7e0f24e4ed94ed316b814d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be0d7d261466393851b267b60e36eefbba01e86e501abacf7f1e2d2a13c5b041e28b6b8f58157613335dc7a8d5ca7768cdce2401f861c00fb32e6f35ca450142
|
7
|
+
data.tar.gz: 94693699453690cf4c4c07fc74de8f9c392ce9b175065e553f7371672dd087d10299027f2c3d6d1d6044bb6b8ea05b04aa75d78672876b284331eebd70bd9ff7
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'awesome_print'
|
2
|
+
|
1
3
|
def print_tree(options={})
|
2
4
|
print_tree_recurse("child * parent * index:0", (query "* index:0").first, 0)
|
3
5
|
end
|
@@ -22,6 +24,18 @@ def colorize(text, color_code)
|
|
22
24
|
"\e[#{color_code}m#{text}\e[0m"
|
23
25
|
end
|
24
26
|
|
27
|
+
def yellow(text)
|
28
|
+
colorize(text, 33)
|
29
|
+
end
|
30
|
+
|
31
|
+
def blue(text)
|
32
|
+
colorize(text, 34)
|
33
|
+
end
|
34
|
+
|
35
|
+
def magenta(text)
|
36
|
+
colorize(text, 35)
|
37
|
+
end
|
38
|
+
|
25
39
|
def cyan(text)
|
26
40
|
colorize(text, 36)
|
27
41
|
end
|
@@ -32,4 +46,12 @@ end
|
|
32
46
|
|
33
47
|
def red(text)
|
34
48
|
colorize(text, 31)
|
49
|
+
end
|
50
|
+
|
51
|
+
def diff(query, action)
|
52
|
+
items1 = query[]
|
53
|
+
action[]
|
54
|
+
items2 = query[]
|
55
|
+
added = items2 - items1
|
56
|
+
removed = items1 - items2
|
35
57
|
end
|