briar 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7dab5c94d2a903dc24b84bbf85c24f3654180cb
4
- data.tar.gz: 2c47762c151da5fd494f033dbf4ed4760ce3d706
3
+ metadata.gz: 93b78e9220f5ac82c9969b36e7c5c9652f5b65da
4
+ data.tar.gz: be309fdb8ca3bce430a999e9617d2dc09139e081
5
5
  SHA512:
6
- metadata.gz: 31dc7a2637f9042087f3d8fd7ee9b7fd4f02ef05fbf0a6a0cc2917dbd08d43cbfb619f51947fca41afb6657a4c85e0dd62a3ea07dc4d4e37c7d42e877b01794a
7
- data.tar.gz: b8a4d8557c0df97feb1ee5245bdbcfdcd6b1e0a895b4a5ec106e2b594f0f02194a7882b659d808d2579b573e5dbe89d7114b4d598b47683a85dbac6b288a982c
6
+ metadata.gz: 06537974ce19123e97d7f5f68efdf0ebe12defe0e5721e66d815bb15f52d3ce11c457453ff0a296f14faae3e3da9e23d68ceeeb842b5702e326692d47e638d5f
7
+ data.tar.gz: 7a698ad9fbc1a521b0442700f7851d74e437bcd4cdc056d825944ec45856c312002c9d2f97c8e3d046e17703c05f203722690458f9330d0e2ef79f494f5431e1
data/README.md CHANGED
@@ -1,8 +1,13 @@
1
- # Briar
1
+ [![Dependency Status](https://gemnasium.com/jmoody/briar.svg)](https://gemnasium.com/jmoody/briar)
2
+ [![License](https://go-shields.herokuapp.com/license-MIT-blue.png)](http://opensource.org/licenses/MIT)
3
+
4
+ ====
5
+
6
+ ## Briar
2
7
 
3
8
  Briar Extends the steps defined in [calabash-ios](https://github.com/calabash/calabash-ios.git) to help you write cucumber Scenarios that interact with complex UI elements like tables, pickers, and sliders.
4
9
 
5
- ### WARNING: briar is not trying to provide steps that will work for every project
10
+ ### Briar is not trying to provide steps that will work for every project.
6
11
 
7
12
  Every project should cultivate its own [vernacular](http://en.wikipedia.org/wiki/Vernacular) -
8
13
  a shared language between developers, clients, and users. The [steps that briar provides](features/step_definitions) are not meant to be dropped into into your projects (although they can be). Briar provides a library of ruby methods to build application-specific steps from. The steps in the features directory are meant to be examples of what briar can offer.
@@ -11,16 +16,16 @@ To see briar in action, take a look at https://github.com/jmoody/briar-ios-examp
11
16
 
12
17
  ### motivation
13
18
 
14
- DRY: I have several iOS projects that use calabash-cucumber and I found I was rewriting lots of steps and supporting code.
19
+ DRY: I have several iOS projects that use calabash-cucumber and I found I was rewriting lots of supporting code.
15
20
 
16
21
  ## Installation
17
22
 
18
- Requires ruby >= 1.8.7; ruby 2.0 is recommended.
23
+ Requires ruby >= 1.9.3; ruby 2.1.2 is recommended.
19
24
 
20
25
  In your Gemfile:
21
26
 
22
27
  ```
23
- gem 'briar'
28
+ gem 'briar', '~>1.1'
24
29
  ```
25
30
 
26
31
  In your `features/support/env.rb` file:
@@ -35,6 +40,7 @@ I18n.enforce_available_locales = false
35
40
 
36
41
  To integrate briar and your calabash-ios console see: https://github.com/jmoody/briar/wiki/Integrating-Briar-Into-Your-Calabash-Console
37
42
 
43
+ **WARNING:** I will be dropping the automatic import of pre-defined steps in briar 1.2.0. The predefined steps will be removed completely in briar 2.0.
38
44
 
39
45
  ## briar binary
40
46
 
@@ -90,7 +96,15 @@ Then I touch the "time" row
90
96
 
91
97
  ## version numbers
92
98
 
93
- I will try my best to follow http://semver.org/ when naming the versions.
99
+ I will try my best to follow Semantic Versioning [1] when naming the versions.
100
+
101
+ However, the semantic versioning spec is incompatible with RubyGem's patterns for pre-release gems. [2]
102
+
103
+ _"But returning to the practical: No release version of SemVer is compatible with Rubygems."_ - David Kellum
104
+
105
+ - [1] http://semver.org/
106
+ - [2] http://gravitext.com/2012/07/22/versioning.html
107
+
94
108
 
95
109
  ## Why call it briar?
96
110
 
@@ -313,7 +313,6 @@ def print_xtc_help
313
313
  #{help_command('xtc')}
314
314
  prints the available XTC device sets
315
315
 
316
-
317
316
  #{help_command('xtc <device-set> [profile]')} #{help_experimental}
318
317
  submits a job to the XTC targeting devices specified in < device-set >
319
318
  if no profile is set, the 'default' profile in the xtc-cucumber.yml will be used
@@ -331,9 +330,14 @@ def print_xtc_help
331
330
  #{help_env_var(' IPA_BUILD_SCRIPT', '(optional) script that generates the IPA')}
332
331
  #{help_example_comment('if you require other gems besides briar')}
333
332
  #{help_env_var(' XTC_OTHER_GEMS_FILE', 'path to a file describing other gems that should be installed on the XTC')}
334
- #{help_env_var(' XTC_BRIAR_GEM_DEV', "set to '1' to ensure the local version of briar will be uploaded to the XTC'")}
335
- #{help_env_var('XTC_CALABASH_GEM_DEV', "set to '1' to ensure the local version of calabash will be uploaded to the XTC'")}
333
+ #{help_example_comment("only useful if you are briar developer - defaults to '0'")}
334
+ #{help_env_var(' XTC_BRIAR_GEM_DEV', "(optional) set to '1' to ensure the local version of briar will be uploaded to the XTC'")}
335
+ #{help_example_comment("only useful if you are calabash developer - defaults to '0'")}
336
+ #{help_env_var('XTC_CALABASH_GEM_DEV', "(optional) set to '1' to ensure the local version of calabash will be uploaded to the XTC'")}
336
337
  #{help_env_var(' XTC_STAGING_DIR', 'path to the directory where XTC files will be staged')}
338
+ #{help_env_var(' XTC_SERIES', '(optional) the XTC series the test results should be displayed in')}
339
+ #{help_example_comment("defaults to '1' - set to '0' if you want to wait for the XTC to finish (for example in a CI environment)")}
340
+ #{help_env_var('XTC_WAIT_FOR_RESULTS', '(optional) should briar xtc wait for the XTC job to finish before exiting')}
337
341
 
338
342
  EOF
339
343
  end
@@ -42,9 +42,10 @@ def briar_xtc_submit(device_set, profile, opts={})
42
42
  :account => expect_xtc_account(),
43
43
  :other_gems => ENV['XTC_OTHER_GEMS_FILE'],
44
44
  :xtc_staging_dir => expect_xtc_staging_dir(),
45
- :briar_dev => ENV['XTC_BRIAR_GEM_DEV'] == '1',
46
- :calabash_dev => ENV['XTC_CALABASH_GEM_DEV'] == '1',
45
+ :briar_dev => ENV['XTC_BRIAR_GEM_DEV'] == '0',
46
+ :calabash_dev => ENV['XTC_CALABASH_GEM_DEV'] == '0',
47
47
  :async_submit => ENV['XTC_WAIT_FOR_RESULTS'] == '0',
48
+ :series => ENV['XTC_SERIES'],
48
49
  :rebuild => true}
49
50
 
50
51
 
@@ -68,7 +69,7 @@ def briar_xtc_submit(device_set, profile, opts={})
68
69
 
69
70
  if opts[:briar_dev]
70
71
  briar_path = `bundle show briar`.strip
71
- system('gem uninstall briar --no-executables --ignore-dependencies --quiet',
72
+ system('gem uninstall -Vax --force --no-abort-on-dependent briar',
72
73
  :err => '/dev/null')
73
74
  Dir.chdir(File.expand_path(briar_path)) do
74
75
  system 'bundle exec rake install'
@@ -77,7 +78,7 @@ def briar_xtc_submit(device_set, profile, opts={})
77
78
 
78
79
  if opts[:calabash_dev]
79
80
  calabash_path = `bundle show calabash-cucumber`.strip
80
- system('gem uninstall calabash-cucumber --no-executables --ignore-dependencies --quiet',
81
+ system('gem uninstall -Vax --force --no-abort-on-dependent calabash-cucumber',
81
82
  :err => '/dev/null')
82
83
 
83
84
  Dir.chdir(File.expand_path(calabash_path)) do
@@ -137,13 +138,18 @@ def briar_xtc_submit(device_set, profile, opts={})
137
138
  wait = '--no-async'
138
139
  end
139
140
 
141
+ if opts[:series]
142
+ series = "--series #{opts[:series]}"
143
+ else
144
+ series = ''
145
+ end
146
+
140
147
  ipa = File.basename(File.expand_path(expect_ipa(opts[:ipa])))
141
148
 
142
- cmd = "bundle exec test-cloud submit #{ipa} #{api_key} -d #{device_set} -c cucumber.yml -p #{profile} #{wait}"
149
+ cmd = "bundle exec test-cloud submit #{ipa} #{api_key} -d #{device_set} -c cucumber.yml -p #{profile} #{wait} #{series}"
143
150
 
144
151
  puts Rainbow("cd #{staging_dir}; #{cmd}").green
145
152
  Dir.chdir(staging_dir) do
146
- system 'bundle install'
147
153
  exec cmd
148
154
  end
149
155
  end
@@ -26,26 +26,25 @@ Gem::Specification.new do |gem|
26
26
  gem.required_ruby_version = '>= 1.9.3'
27
27
 
28
28
  gem.add_runtime_dependency 'rbx-require-relative', '~> 0.0'
29
- gem.add_runtime_dependency 'calabash-cucumber', '~> 0.9.169'
29
+ gem.add_runtime_dependency 'calabash-cucumber', '< 0.11', '> 0.9.169'
30
30
  gem.add_runtime_dependency 'dotenv', '~> 0.9'
31
31
  gem.add_runtime_dependency 'ansi', '~> 1.4'
32
- gem.add_runtime_dependency 'rainbow', '~> 1.99'
32
+ gem.add_runtime_dependency 'rainbow', '~> 2.0'
33
33
  gem.add_runtime_dependency 'xcpretty', '~> 0.1'
34
- # downgrade because of xtc gem
34
+ # downgrade because of xtc gem - wants ~> 1.4
35
35
  gem.add_runtime_dependency 'retriable', '~> 1.3'
36
36
  gem.add_runtime_dependency 'bundler', '~> 1.6'
37
-
37
+ gem.add_runtime_dependency 'xamarin-test-cloud', '~> 0.9', '>= 0.9.35'
38
38
 
39
39
  # downgrading to 1.0.0 from 1.2.0
40
40
  # https://github.com/xamarin/test-cloud-command-line/issues/3
41
41
  gem.add_runtime_dependency 'syntax', '~>1.0'
42
42
 
43
- gem.add_runtime_dependency 'pry', '~> 0.10'
43
+ gem.add_development_dependency('travis', '~> 1.7')
44
44
  gem.add_development_dependency('yard', '~> 0.8')
45
45
  gem.add_development_dependency('rake', '~> 10.3')
46
46
 
47
47
  gem.files = `git ls-files`.split("\n") - ['.gitignore']
48
48
  gem.executables = 'briar'
49
- gem.test_files = gem.files.grep(%r{^(test|spec)/})
50
49
  gem.require_paths = ['lib', 'features']
51
50
  end
@@ -1,14 +1,13 @@
1
1
  ## 1.1.1 changelog
2
2
 
3
- ## release requirements
3
+ The recommend calabash iOS version is ~> 0.10.
4
4
 
5
- *** @required ***
5
+ ## Features
6
6
 
7
- - [ ] update cli help docs around XTC_WAIT_FOR_RESULTS
8
- - [ ] need support for profiles
9
- - [ ] need support for opening consoles against different simulators
10
- - [ ] check calabash version!
7
+ ### Improvements to `briar xtc`
11
8
 
12
- *** @optional ***
9
+ * Adds support for targeting XTC series.
10
+ * Can now wait run xtc as async or sync.
11
+ * Adjusts how and when bundler is called when submitted an XTC job.
13
12
 
14
- ## features
13
+ See `$ briar help xtc`.
@@ -0,0 +1,14 @@
1
+ ## 1.2.0 changelog
2
+
3
+ The recommend calabash iOS version is ~> 0.10.
4
+
5
+
6
+ *** @required ***
7
+ - [ ] need support for profiles
8
+ - [ ] need support for opening consoles against different simulators
9
+ - [ ] drop automatic import of features/step_definitions
10
+ - [ ] change how rebuilding works in xtc client
11
+ - [ ] adopt another logging tool
12
+
13
+ *** @optional ***
14
+
@@ -1,3 +1,3 @@
1
1
  module Briar
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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: 1.1.0
4
+ version: 1.1.1
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-07-13 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbx-require-relative
@@ -28,14 +28,20 @@ dependencies:
28
28
  name: calabash-cucumber
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.11'
34
+ - - ">"
32
35
  - !ruby/object:Gem::Version
33
36
  version: 0.9.169
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.11'
44
+ - - ">"
39
45
  - !ruby/object:Gem::Version
40
46
  version: 0.9.169
41
47
  - !ruby/object:Gem::Dependency
@@ -72,14 +78,14 @@ dependencies:
72
78
  requirements:
73
79
  - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: '1.99'
81
+ version: '2.0'
76
82
  type: :runtime
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
86
  - - "~>"
81
87
  - !ruby/object:Gem::Version
82
- version: '1.99'
88
+ version: '2.0'
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: xcpretty
85
91
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +128,26 @@ dependencies:
122
128
  - - "~>"
123
129
  - !ruby/object:Gem::Version
124
130
  version: '1.6'
131
+ - !ruby/object:Gem::Dependency
132
+ name: xamarin-test-cloud
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '0.9'
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 0.9.35
141
+ type: :runtime
142
+ prerelease: false
143
+ version_requirements: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '0.9'
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 0.9.35
125
151
  - !ruby/object:Gem::Dependency
126
152
  name: syntax
127
153
  requirement: !ruby/object:Gem::Requirement
@@ -137,19 +163,19 @@ dependencies:
137
163
  - !ruby/object:Gem::Version
138
164
  version: '1.0'
139
165
  - !ruby/object:Gem::Dependency
140
- name: pry
166
+ name: travis
141
167
  requirement: !ruby/object:Gem::Requirement
142
168
  requirements:
143
169
  - - "~>"
144
170
  - !ruby/object:Gem::Version
145
- version: '0.10'
146
- type: :runtime
171
+ version: '1.7'
172
+ type: :development
147
173
  prerelease: false
148
174
  version_requirements: !ruby/object:Gem::Requirement
149
175
  requirements:
150
176
  - - "~>"
151
177
  - !ruby/object:Gem::Version
152
- version: '0.10'
178
+ version: '1.7'
153
179
  - !ruby/object:Gem::Dependency
154
180
  name: yard
155
181
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +232,7 @@ files:
206
232
  - briar.gemspec
207
233
  - changelog/1.1.0.md
208
234
  - changelog/1.1.1.md
235
+ - changelog/1.2.0.md
209
236
  - features/step_definitions/alerts_and_sheets/action_sheet_steps.rb
210
237
  - features/step_definitions/alerts_and_sheets/alert_view_steps.rb
211
238
  - features/step_definitions/bars/navbar_steps.rb
@@ -282,10 +309,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
309
  version: '0'
283
310
  requirements: []
284
311
  rubyforge_project:
285
- rubygems_version: 2.3.0
312
+ rubygems_version: 2.4.1
286
313
  signing_key:
287
314
  specification_version: 4
288
- summary: briar-1.1.0
289
- test_files:
290
- - spec/spec_helper.rb
315
+ summary: briar-1.1.1
316
+ test_files: []
291
317
  has_rdoc: