briar 0.1.3.rc1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -0
- data/bin/briar +90 -121
- data/bin/briar_console.rb +126 -0
- data/bin/briar_dot_xamarin.rb +74 -0
- data/bin/briar_env.rb +51 -0
- data/bin/briar_help.rb +383 -0
- data/bin/briar_ideviceinstaller.rb +41 -0
- data/bin/briar_install.rb +122 -0
- data/bin/briar_report.rb +55 -0
- data/bin/briar_rm.rb +84 -0
- data/bin/briar_sim.rb +107 -0
- data/bin/briar_xtc.rb +108 -0
- data/briar.gemspec +6 -1
- data/lib/briar.rb +8 -0
- data/lib/briar/irbrc.rb +18 -7
- data/lib/briar/uia/briar_ipad_emulation.rb +2 -2
- data/lib/briar/version.rb +1 -1
- metadata +71 -6
- data/bin/briar_helpers.rb +0 -53
data/briar.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# 'Does it try to require a relative path? That's been removed in Ruby 1.9'
|
6
6
|
#
|
7
7
|
# this is the current _best_ solution
|
8
|
-
$:.push File.expand_path(
|
8
|
+
$:.push File.expand_path('../lib', __FILE__)
|
9
9
|
require 'briar/version'
|
10
10
|
|
11
11
|
# experimental
|
@@ -28,6 +28,11 @@ Gem::Specification.new do |gem|
|
|
28
28
|
gem.add_runtime_dependency 'rbx-require-relative', '~> 0.0.9'
|
29
29
|
gem.add_runtime_dependency 'calabash-cucumber', '>= 0.9.166'
|
30
30
|
gem.add_runtime_dependency 'rake', '~>10.1'
|
31
|
+
gem.add_runtime_dependency 'dotenv', '~> 0.9.0'
|
32
|
+
gem.add_runtime_dependency 'ansi', '~> 1.4.3'
|
33
|
+
gem.add_runtime_dependency 'rainbow', '~> 1.99.0'
|
34
|
+
gem.add_runtime_dependency 'pry', '~> 0.9.12.6'
|
35
|
+
|
31
36
|
# downgrading to 1.0.0 from 1.2.0
|
32
37
|
# https://trello.com/c/YKREVfCX/630-lesspainfulformatter-should-depend-on-syntax-1-2-0
|
33
38
|
gem.add_runtime_dependency 'syntax', '~>1.0.0'
|
data/lib/briar.rb
CHANGED
data/lib/briar/irbrc.rb
CHANGED
@@ -2,6 +2,8 @@ require 'rubygems'
|
|
2
2
|
require 'irb/completion'
|
3
3
|
require 'irb/ext/save-history'
|
4
4
|
require 'awesome_print'
|
5
|
+
require 'pry'
|
6
|
+
|
5
7
|
AwesomePrint.irb!
|
6
8
|
|
7
9
|
require 'require_relative'
|
@@ -14,7 +16,6 @@ def World(*world_modules, &proc)
|
|
14
16
|
}
|
15
17
|
end
|
16
18
|
|
17
|
-
|
18
19
|
ARGV.concat [ '--readline',
|
19
20
|
'--prompt-mode',
|
20
21
|
'simple']
|
@@ -25,7 +26,6 @@ IRB.conf[:SAVE_HISTORY] = 50
|
|
25
26
|
# Store results in home directory with specified file name
|
26
27
|
IRB.conf[:HISTORY_FILE] = '.irb-history'
|
27
28
|
|
28
|
-
|
29
29
|
#noinspection RubyResolve
|
30
30
|
require 'calabash-cucumber'
|
31
31
|
#noinspection RubyResolve
|
@@ -131,6 +131,15 @@ def text_marks(opts={})
|
|
131
131
|
opts[:return] ? res : nil
|
132
132
|
end
|
133
133
|
|
134
|
+
def verbose
|
135
|
+
ENV['DEBUG'] = '1'
|
136
|
+
ENV['CALABASH_FULL_CONSOLE_OUTPUT'] = '1'
|
137
|
+
end
|
138
|
+
|
139
|
+
def quiet
|
140
|
+
ENV['DEBUG'] = '0'
|
141
|
+
ENV['CALABASH_FULL_CONSOLE_OUTPUT'] = '0'
|
142
|
+
end
|
134
143
|
|
135
144
|
def ids
|
136
145
|
accessibility_marks(:id)
|
@@ -175,7 +184,7 @@ end
|
|
175
184
|
def puts_calabash_environment
|
176
185
|
|
177
186
|
puts ''
|
178
|
-
puts "loaded #{
|
187
|
+
puts "loaded #{File.expand_path(ENV['IRBRC'])}"
|
179
188
|
puts ''
|
180
189
|
puts " DEVICE_ENDPOINT => '#{ENV['DEVICE_ENDPOINT']}'"
|
181
190
|
puts " DEVICE_TARGET => '#{ENV['DEVICE_TARGET']}'"
|
@@ -188,10 +197,12 @@ def puts_calabash_environment
|
|
188
197
|
puts " DEBUG => '#{ENV['DEBUG']}'"
|
189
198
|
puts ''
|
190
199
|
puts '*** useful functions defined in .irbrc ***'
|
191
|
-
puts '>
|
192
|
-
puts '>
|
193
|
-
puts '>
|
194
|
-
puts '> row_ids
|
200
|
+
puts '> ids #=> all accessibilityIdentifiers'
|
201
|
+
puts '> labels #=> all accessibilityLabels'
|
202
|
+
puts '> text #=> all text'
|
203
|
+
puts '> row_ids #=> all tableViewCell accessibilityIdentifiers'
|
204
|
+
puts '> verbose #=> set debug logging on'
|
205
|
+
puts '> quiet #=> set debug logging off'
|
195
206
|
puts ''
|
196
207
|
end
|
197
208
|
|
@@ -15,7 +15,7 @@ module Briar
|
|
15
15
|
|
16
16
|
end
|
17
17
|
# use the apple localization codes
|
18
|
-
|
18
|
+
IPAD_1X_2X_BUTTON_LABELS = {
|
19
19
|
:en => {:emulated_1x => 'Switch to full screen mode',
|
20
20
|
:emulated_2x => 'Switch to normal mode'}
|
21
21
|
}
|
@@ -36,7 +36,7 @@ module Briar
|
|
36
36
|
|
37
37
|
|
38
38
|
def ipad_1x_2x_labels_hash(lang_code)
|
39
|
-
ht =
|
39
|
+
ht = IPAD_1X_2X_BUTTON_LABELS[lang_code]
|
40
40
|
if ht.nil?
|
41
41
|
screenshot_and_raise "did not recognize language code '#{lang_code}'"
|
42
42
|
end
|
data/lib/briar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: briar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.3
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbx-require-relative
|
@@ -52,6 +52,62 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ansi
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.4.3
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.4.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rainbow
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.99.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.99.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.12.6
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.12.6
|
55
111
|
- !ruby/object:Gem::Dependency
|
56
112
|
name: syntax
|
57
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,8 +135,17 @@ files:
|
|
79
135
|
- README.md
|
80
136
|
- Rakefile
|
81
137
|
- bin/briar
|
82
|
-
- bin/
|
138
|
+
- bin/briar_console.rb
|
139
|
+
- bin/briar_dot_xamarin.rb
|
140
|
+
- bin/briar_env.rb
|
141
|
+
- bin/briar_help.rb
|
142
|
+
- bin/briar_ideviceinstaller.rb
|
143
|
+
- bin/briar_install.rb
|
144
|
+
- bin/briar_report.rb
|
83
145
|
- bin/briar_resign.rb
|
146
|
+
- bin/briar_rm.rb
|
147
|
+
- bin/briar_sim.rb
|
148
|
+
- bin/briar_xtc.rb
|
84
149
|
- briar.gemspec
|
85
150
|
- features/step_definitions/alerts_and_sheets/action_sheet_steps.rb
|
86
151
|
- features/step_definitions/alerts_and_sheets/alert_view_steps.rb
|
@@ -154,14 +219,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
219
|
version: 1.8.7
|
155
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
221
|
requirements:
|
157
|
-
- - '
|
222
|
+
- - '>='
|
158
223
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
224
|
+
version: '0'
|
160
225
|
requirements: []
|
161
226
|
rubyforge_project:
|
162
227
|
rubygems_version: 2.2.2
|
163
228
|
signing_key:
|
164
229
|
specification_version: 4
|
165
|
-
summary: briar-0.1.3
|
230
|
+
summary: briar-0.1.3
|
166
231
|
test_files:
|
167
232
|
- spec/spec_helper.rb
|
data/bin/briar_helpers.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'briar'
|
2
|
-
|
3
|
-
BRIAR_RM_CAL_TARGETS='rm-cal-targets'
|
4
|
-
BRIAR_INSTALL_CALABASH_GEM='calabash-gem'
|
5
|
-
BRIAR_INSTALL_CALABASH_SERVER='calabash-server'
|
6
|
-
BRIAR_INSTALL_GEM='gem'
|
7
|
-
BRIAR_RESIGN_IPA='resign'
|
8
|
-
BRIAR_VERSION_CMD='version'
|
9
|
-
|
10
|
-
BRIAR_CMD_INSTALL='install'
|
11
|
-
|
12
|
-
|
13
|
-
def print_usage
|
14
|
-
puts <<EOF
|
15
|
-
briar #{Briar::VERSION}
|
16
|
-
|
17
|
-
briar #{BRIAR_VERSION_CMD}
|
18
|
-
print the current briar version
|
19
|
-
|
20
|
-
briar #{BRIAR_RM_CAL_TARGETS}
|
21
|
-
WARN: this is a destructive operation!
|
22
|
-
* deletes all *-cal targets from simulator
|
23
|
-
you have been warned.
|
24
|
-
searches the ~/Library/Application Support/iPhone Simulator for *-cal.app
|
25
|
-
targets and deletes the enclosing directory. useful for clearing out old
|
26
|
-
calabash targets when the framework needs to be updated.
|
27
|
-
|
28
|
-
briar #{BRIAR_CMD_INSTALL} { gem | calabash-gem | calabash-server }
|
29
|
-
subcommand to perform various installation tasks
|
30
|
-
|
31
|
-
briar #{BRIAR_CMD_INSTALL} #{BRIAR_INSTALL_GEM}
|
32
|
-
looks for ~/git/briar and runs 'rake install'. useful for developing and
|
33
|
-
testing the briar gem
|
34
|
-
|
35
|
-
briar #{BRIAR_CMD_INSTALL} #{BRIAR_INSTALL_CALABASH_GEM}
|
36
|
-
looks for ~/git/calabash-ios/calabash-cucumber directory and runs
|
37
|
-
'rake install' to install the calabash-cucumber gem. useful for developing
|
38
|
-
and testing the calabash-cucumber gem.
|
39
|
-
|
40
|
-
briar #{BRIAR_CMD_INSTALL} #{BRIAR_INSTALL_CALABASH_SERVER}
|
41
|
-
WARN: this is a destructive operation!
|
42
|
-
* replaces calabash.framework in current directory
|
43
|
-
* deletes all *-cal targets from simulator
|
44
|
-
you have been warned.
|
45
|
-
|
46
|
-
builds and installs the calabash server using calabash-cucumber rake task
|
47
|
-
'rake rake build_server', removes all *-cal targets from simulator, and
|
48
|
-
replaces calabash.framework in local directory. useful for developing and
|
49
|
-
testing the calabash-ios-server.
|
50
|
-
|
51
|
-
briar: #{BRIAR_RESIGN_IPA} (experimental)
|
52
|
-
EOF
|
53
|
-
end
|