briar 2.0.0 → 2.0.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: 72d33b4436ba2582f900535fbe4124d38c82b5cb
4
- data.tar.gz: 488358b770db3e716e3f25e2d72b5b13ce1fa878
3
+ metadata.gz: 852b97fa19bcc3ef09ee86ae57e2dfe430852257
4
+ data.tar.gz: c442208c21dae89b2377d21106b5f3204297de96
5
5
  SHA512:
6
- metadata.gz: fc19ac4a7c978bd10b2b5d663fe1ca71e4f550677b73b344488839a71a51b500383c642b7db8d3b5331f71af4755baedbcd76bb2bfa53ce8094ef734edf40996
7
- data.tar.gz: 17e84271c9f723efbc1fc1ce08dda642c921518c8d81e1bce282d3c5c93f42cff412d0820dff9a27afd6a91ab9f70cf3e06b361329ed0a520c58ea119ece54cb
6
+ metadata.gz: b2d3f80ed20772994b90f369bad011c6272c6f220d8e62a37ac3afd03c53a45cce8fe2126aa6abcaa240fadcec63415cbf00424553ecd745f3b011bfd2f72c67
7
+ data.tar.gz: ce7be061c81a1d6fd1ce5efa5b99e32c25f9bb376a6c0ac056661e1dbb31c53c2d6f8efc865be4dd67eda7f0c9385b1d8629a4d87466b87225e0fbf0bea5b905
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### 2.0.1
2
+
3
+ * CLI: allow xtc gem dev testing #67
4
+
5
+ ### 2.0.0
6
+
7
+ * Relex gem dependencies
8
+ * Require ruby >= 2.0
9
+
1
10
  ### 1.4.2
2
11
 
3
12
  * Allow priority option for xtc #63
data/README.md CHANGED
@@ -5,52 +5,59 @@
5
5
 
6
6
  ## Briar
7
7
 
8
- Briar extends the [Calabash iOS](https://github.com/calabash/calabash-ios.git) API to help you write cucumber Scenarios that interact with complex UI elements like tables, pickers, and sliders.
8
+ Briar extends the [Calabash iOS](https://github.com/calabash/calabash-ios.git)
9
+ API to help you write cucumber Scenarios that interact with complex UI elements
10
+ like tables, pickers, and sliders.
9
11
 
10
12
  ### Briar is not trying to provide steps that will work for every project.
11
13
 
12
- Every project should cultivate its own [vernacular](http://en.wikipedia.org/wiki/Vernacular) -
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.
14
+ Every project should cultivate its own [vernacular](http://en.wikipedia.org/wiki/Vernacular) -
15
+ a shared language between developers, clients, and users. The [steps that briar provides](features/step_definitions)
16
+ are not meant to be dropped into into your projects. Briar provides a library
17
+ of ruby methods to build application-specific steps from. The steps in the
18
+ features directory are meant to be examples of what briar can offer.
14
19
 
15
20
  To see briar in action, take a look at https://github.com/jmoody/briar-ios-example
16
21
 
17
22
  ### Motivation
18
23
 
19
- DRY: I have many iOS projects that use Calabash and I found I was rewriting a lot of supporting code.
24
+ DRY: I have many iOS projects that use Calabash and I found I was rewriting
25
+ a lot of supporting code.
20
26
 
21
- ## Installation
27
+ ## Installation
22
28
 
23
- Requires ruby >= 1.9.3; ruby 2.1.2 is recommended.
29
+ Requires ruby >= 2.0; the latest release of ruby is recommended.
24
30
 
25
31
  In your Gemfile:
26
32
 
27
33
  ```
28
- gem 'briar', '~> 1.1.2'
34
+ gem "briar", "~> 2.0"
29
35
 
30
36
  # To use the briar XTC developer tools, include rake
31
- gem 'rake', '~> 10.3'
37
+ gem "rake", "~> 10.3"
32
38
  ```
33
39
 
34
40
  In your `features/support/env.rb` file:
35
41
 
36
42
  ```
37
- require 'calabash-cucumber/cucumber'
38
- ENV['NO_BRIAR_PREDEFINED_STEPS'] = '1'
39
- require 'briar/cucumber'
43
+ require "calabash-cucumber/cucumber"
44
+ ENV["NO_BRIAR_PREDEFINED_STEPS"] = "1"
45
+ require "briar/cucumber"
40
46
 
41
47
  # Optional
42
48
  I18n.enforce_available_locales = false
43
49
  ```
44
50
 
45
- To integrate briar and your calabash-ios console see: https://github.com/jmoody/briar/wiki/Integrating-Briar-Into-Your-Calabash-Console
51
+ To integrate briar and your calabash-ios console see:
52
+ https://github.com/jmoody/briar/wiki/Integrating-Briar-Into-Your-Calabash-Console
46
53
 
47
- **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.
48
54
 
49
55
  ## briar binary
50
56
 
51
57
  The briar binary provides useful commands to improve your calabash workflow.
52
58
 
53
- There is detailed help about how to use the .xamarin convention and dotenv to setup your environment.
59
+ There is detailed help about how to use the .xamarin convention and dotenv to
60
+ setup your environment.
54
61
 
55
62
  ```
56
63
  # help
@@ -66,7 +73,7 @@ $ briar console sim7 ipad_r_64 <== changes the default simulator
66
73
  $ briar console venus
67
74
  $ briar console neptune
68
75
 
69
- # install the calabash server from a local repo and remove all stale simulator targets in one command
76
+ # install the calabash server from a local repo
70
77
  $ briar install calabash-server
71
78
 
72
79
  # do a clean install of your .ipa on named device
@@ -76,22 +83,12 @@ $ briar install earp
76
83
  # open a cucumber html report in your default browser
77
84
  $ briar report <== last run against the simulator
78
85
  $ briar report venus <== last run against venus
79
-
80
- # remove all *-cal targets from the simulator (without resetting the device)
81
- $ briar rm sim-targets
82
-
83
- # resolve APP_BUNDLE_PATH auto-detection problems by removing spurious DerivedData directories
84
- $ briar rm dups
85
- $ briar rm dups briar-ios-example
86
-
87
- # change the simulator version (will be deprecated soon)
88
- $ briar sim ipad_r
89
- $ briar sim iphone_4in
90
86
  ```
91
87
 
92
88
  ## Xamarin Test Cloud
93
89
 
94
- Requires adopting the .xamarin convention and a .env file. See the help for `.xamarin` and `xtc`.
90
+ Requires adopting the .xamarin convention and a .env file.
91
+ See the help for `.xamarin` and `xtc`.
95
92
 
96
93
  ```
97
94
  # list the currently cached device in ~/.xamarin/test-cloud/ios-sets.csv
data/bin/briar_xtc.rb CHANGED
@@ -13,15 +13,18 @@ def briar_xtc_submit(device_set, profile, opts={})
13
13
  :account => expect_xtc_account(),
14
14
  :other_gems => ENV['XTC_OTHER_GEMS_FILE'],
15
15
  :xtc_staging_dir => expect_xtc_staging_dir(),
16
- :briar_dev => ENV['XTC_BRIAR_GEM_DEV'] == '1',
17
- :calabash_dev => ENV['XTC_CALABASH_GEM_DEV'] == '1',
18
- :run_loop_dev => ENV['XTC_RUN_LOOP_GEM_DEV'] == '1',
16
+ :calabash_dev => ENV['XTC_CALABASH_GEM_DEV'] == "1",
17
+ :run_loop_dev => ENV['XTC_RUN_LOOP_GEM_DEV'] == "1",
18
+ :test_cloud_gem_dev => ENV["XTC_TEST_CLOUD_GEM_DEV"] == "1",
19
19
  :async_submit => ENV['XTC_WAIT_FOR_RESULTS'] == '0',
20
20
  :series => ENV['XTC_SERIES'],
21
21
  :user => ENV['XTC_USER'],
22
22
  :dsym => ENV['XTC_DSYM'],
23
23
  :priority => ENV['XTC_HIGH_PRIORITY'] == '1',
24
- :rebuild => true}
24
+ :rebuild => true,
25
+ # Unused.
26
+ :briar_dev => ENV['XTC_BRIAR_GEM_DEV'] == '1'
27
+ }
25
28
 
26
29
  opts = default_opts.merge(opts)
27
30
 
@@ -40,18 +43,6 @@ def briar_xtc_submit(device_set, profile, opts={})
40
43
  account = opts[:account]
41
44
  api_key = read_api_token(account)
42
45
 
43
- # ugh. it works, then it doesn't
44
- # i think the real solution is to pull the bin/tools out of the gem and into
45
- # (yet) another gem.
46
- # if opts[:briar_dev]
47
- # briar_path = `bundle show briar`.strip
48
- # # system('gem uninstall -Vax --force --no-abort-on-dependent briar',
49
- # # :err => '/dev/null')
50
- # Dir.chdir(File.expand_path(briar_path)) do
51
- # system 'gem rake install'
52
- # end
53
- # end
54
-
55
46
  if opts[:calabash_dev]
56
47
  cmd = 'bundle show calabash-cucumber'
57
48
  puts Rainbow("EXEC: #{cmd}").cyan
@@ -84,6 +75,22 @@ def briar_xtc_submit(device_set, profile, opts={})
84
75
  end
85
76
  end
86
77
 
78
+ if opts[:test_cloud_gem_dev]
79
+ cmd = "bundle show xamarin-test-cloud"
80
+ puts Rainbow("EXEC: #{cmd}").cyan
81
+ test_cloud_gem_path = `#{cmd}`.strip
82
+
83
+ cmd = "gem uninstall -Vax --force --no-abort-on-dependent xamarin-test-cloud"
84
+ system(*cmd.split(" "), :err => "/dev/null")
85
+ puts Rainbow("EXEC: #{cmd}").cyan
86
+
87
+ puts Rainbow("EXEC: cd #{test_cloud_gem_path}").cyan
88
+ Dir.chdir(File.expand_path(test_cloud_gem_path)) do
89
+ puts Rainbow("EXEC: rake install").cyan
90
+ system("rake", "install")
91
+ end
92
+ end
93
+
87
94
  other_gems = []
88
95
  if opts[:other_gems] != ''
89
96
  path = File.expand_path(opts[:other_gems])
data/lib/briar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Briar
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.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: 2.0.0
4
+ version: 2.0.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: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbx-require-relative
@@ -384,6 +384,6 @@ rubyforge_project:
384
384
  rubygems_version: 2.4.8
385
385
  signing_key:
386
386
  specification_version: 4
387
- summary: briar-2.0.0
387
+ summary: briar-2.0.1
388
388
  test_files: []
389
389
  has_rdoc: