sauce 3.5.9 → 3.5.10

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: 484dfcd78bda89c2c669d66d80833ef5fc701ab3
4
- data.tar.gz: ca3d241e0b92700565c94b76b4b9ba5168bb3fcf
3
+ metadata.gz: b574ae156098ead93ce0698d02b2d17c0ab45152
4
+ data.tar.gz: 972a33863163fa8db96580ebcafdf0ecdcf44099
5
5
  SHA512:
6
- metadata.gz: a9002424513f146a979afebf03654cbab4b49b5848fd83b124bf00184041a003b33bed7f9425a7bc8745b5aa8f00ea78be41e4acb09f565fbb1f00cc9e4fd9bf
7
- data.tar.gz: 28069e913cbddb82a0a21daa77f55f90a3388076def0065a64e29cc5ad86119bd01a4fc7d5c2f04a16edb7e4f67793eecbb35fcb808ba628a8797edf2efc71a3
6
+ metadata.gz: 6ccb361ad508b8e789b838e00be84353a9f46e3c81e2e84b2b6b49a921ab47f803592f306315606a0a69adf753a6b16bf1843ddad27a563dc81f2d6f022cfef0
7
+ data.tar.gz: f7a661696b8238af21d51bae0dcd579f04435dfc3b9c6d3ecc157296af9edf485bdf8f225d16342a666ce979eaf2b053d451f4a7365c4b076a3ee78fbfa6d14d
data/lib/sauce/config.rb CHANGED
@@ -379,7 +379,7 @@ module Sauce
379
379
 
380
380
  paths.each do |path|
381
381
  if File.exist? path
382
- Sauce.debug.info "Loading Sauce config from yaml file at #{path}"
382
+ Sauce.logger.info "Loading Sauce config from yaml file at #{path}"
383
383
  conf = YAML.load_file(path)
384
384
  return conf.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
385
385
  end
data/lib/sauce/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Sauce
2
2
  MAJOR_VERSION = '3.5'
3
- PATCH_VERSION = '9'
3
+ PATCH_VERSION = '10'
4
4
 
5
5
  def version
6
6
  "#{MAJOR_VERSION}.#{PATCH_VERSION}"
@@ -72,7 +72,11 @@ namespace :sauce do
72
72
  end
73
73
 
74
74
  def run_parallel_tests(t, args, command)
75
- if ParallelTests.number_of_running_processes == 0
75
+ skip_check = ENV["SAUCE_SKIP_PARALLEL_CHECKS"]
76
+
77
+ warn_of_skipped_parallel_processes if skip_check
78
+
79
+ if((ParallelTests.number_of_running_processes == 0) || skip_check)
76
80
  username = ENV["SAUCE_USERNAME"].to_s
77
81
  access_key = ENV["SAUCE_ACCESS_KEY"].to_s
78
82
  if(!username.empty? && !access_key.empty?)
@@ -146,3 +150,15 @@ def parse_task_args(test_tool=:rspec, args)
146
150
 
147
151
  return return_args
148
152
  end
153
+
154
+ def warn_of_skipped_parallel_processes
155
+ puts <<-ENDLINE
156
+ ---------------------------------------------------------------------------
157
+ The SAUCE_SKIP_PARALLEL_CHECKS environment variable is truthy. This will
158
+ cause the gem to run regardless of other parallel_tests processes running,
159
+ and may lead to unexpected behaviour including never ending tests.
160
+
161
+ Automatic control of Sauce Connect does NOT work with this option.
162
+ ---------------------------------------------------------------------------
163
+ ENDLINE
164
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.9
4
+ version: 3.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Lacey
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2015-09-15 00:00:00.000000000 Z
17
+ date: 2015-09-28 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rspec