tddium-preview 0.6.15 → 0.6.16

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tddium-preview (0.6.14)
4
+ tddium-preview (0.6.15)
5
5
  bundler
6
6
  highline
7
7
  json
data/lib/tddium.rb CHANGED
@@ -382,7 +382,7 @@ class Tddium < Thor
382
382
  end
383
383
 
384
384
  def dependency_version(command)
385
- result = `#{command} -v`.strip
385
+ result = `#{command} -v`.match(Dependency::VERSION_REGEXP)[1]
386
386
  say Text::Process::DEPENDENCY_VERSION % [command, result]
387
387
  result
388
388
  end
@@ -3,5 +3,5 @@ Copyright (c) 2011 Solano Labs All Rights Reserved
3
3
  =end
4
4
 
5
5
  module TddiumVersion
6
- VERSION = "0.6.15"
6
+ VERSION = "0.6.16"
7
7
  end
data/spec/tddium_spec.rb CHANGED
@@ -14,7 +14,7 @@ describe Tddium do
14
14
  SAMPLE_API_KEY = "afb12412bdafe124124asfasfabebafeabwbawf1312342erbfasbb"
15
15
  SAMPLE_APP_NAME = "tddelicious"
16
16
  SAMPLE_BRANCH_NAME = "test"
17
- SAMPLE_BUNDLER_VERSION = "Bundler version 1.10.10"
17
+ SAMPLE_BUNDLER_VERSION = "1.10.10"
18
18
  SAMPLE_DATE_TIME = "2011-03-11T08:43:02Z"
19
19
  SAMPLE_EMAIL = "someone@example.com"
20
20
  SAMPLE_FILE_PATH = "./my_user_file.png"
@@ -27,7 +27,7 @@ describe Tddium do
27
27
  SAMPLE_NEW_PASSWORD = "foobar2"
28
28
  SAMPLE_REPORT_URL = "http://api.tddium.com/1/sessions/1/test_executions/report"
29
29
  SAMPLE_RUBYGEMS_VERSION = "1.3.7"
30
- SAMPLE_RUBY_VERSION = "ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.5.0]"
30
+ SAMPLE_RUBY_VERSION = "1.8.7"
31
31
  SAMPLE_RECURLY_URL = "https://tddium.recurly.com/account/1"
32
32
  SAMPLE_SESSION_ID = 1
33
33
  SAMPLE_SUITE_ID = 1
@@ -117,8 +117,8 @@ describe Tddium do
117
117
  end
118
118
  end
119
119
 
120
- def stub_bundler_version(tddium)
121
- tddium.stub(:`).with("bundle -v").and_return(SAMPLE_BUNDLER_VERSION)
120
+ def stub_bundler_version(tddium, version = SAMPLE_BUNDLER_VERSION)
121
+ tddium.stub(:`).with("bundle -v").and_return("Bundler version #{version}")
122
122
  end
123
123
 
124
124
  def stub_call_api_response(method, path, *response)
@@ -203,8 +203,8 @@ describe Tddium do
203
203
  tddium.stub(:`).with(/^git remote #{action}/).and_return(git_response)
204
204
  end
205
205
 
206
- def stub_ruby_version(tddium)
207
- tddium.stub(:`).with("ruby -v").and_return(SAMPLE_RUBY_VERSION)
206
+ def stub_ruby_version(tddium, version = SAMPLE_RUBY_VERSION)
207
+ tddium.stub(:`).with("ruby -v").and_return("ruby #{version} (2010-08-16 patchlevel 302) [i686-darwin10.5.0]")
208
208
  end
209
209
 
210
210
  def stub_rubygems_version(tddium, version = SAMPLE_RUBYGEMS_VERSION)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tddium-preview
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.15
5
+ version: 0.6.16
6
6
  platform: ruby
7
7
  authors:
8
8
  - Solano Labs