tddium-preview 0.6.19 → 0.7.0
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.
- data/Gemfile.lock +2 -2
- data/lib/tddium.rb +4 -3
- data/lib/tddium/constant.rb +4 -5
- data/lib/tddium/version.rb +1 -1
- data/spec/tddium_spec.rb +7 -7
- data/tddium.gemspec +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/tddium.rb
CHANGED
@@ -442,7 +442,7 @@ class Tddium < Thor
|
|
442
442
|
end
|
443
443
|
|
444
444
|
def dependency_version(command)
|
445
|
-
result = `#{command} -v`.
|
445
|
+
result = `#{command} -v`.strip
|
446
446
|
say Text::Process::DEPENDENCY_VERSION % [command, result]
|
447
447
|
result
|
448
448
|
end
|
@@ -516,8 +516,9 @@ class Tddium < Thor
|
|
516
516
|
end
|
517
517
|
|
518
518
|
def git_origin_url
|
519
|
-
result = `git config --get remote.origin.url`
|
520
|
-
|
519
|
+
result = `(git config --get remote.origin.url || echo GIT_FAILED) 2>/dev/null`
|
520
|
+
return nil if result =~ /GIT_FAILED/
|
521
|
+
if result =~ /@/
|
521
522
|
result.strip
|
522
523
|
else
|
523
524
|
nil
|
data/lib/tddium/constant.rb
CHANGED
@@ -59,9 +59,9 @@ module TddiumConstant
|
|
59
59
|
INVITATION_TOKEN = "Enter your invitation token:"
|
60
60
|
USE_EXISTING_SUITE = "A suite exists '%%s' (branch %s). Enter '#{Response::YES}' to use it, or enter a new repo name:"
|
61
61
|
TEST_PATTERN = "Enter a test pattern or press 'Return'. Using '%s' by default:"
|
62
|
-
CI_PULL_URL = "Enter git URL to pull from (default '%s'):"
|
63
|
-
CI_PUSH_URL = "Enter git URL to push to (default '%s'):"
|
64
|
-
CAMPFIRE_SUBDOMAIN = "Enter your Campfire subdomain (default '%s'):"
|
62
|
+
CI_PULL_URL = "Enter git URL to pull from (default '%s') or enter 'disable':"
|
63
|
+
CI_PUSH_URL = "Enter git URL to push to (default '%s') or enter 'disable':"
|
64
|
+
CAMPFIRE_SUBDOMAIN = "Enter your Campfire subdomain (default '%s') or enter 'disable':"
|
65
65
|
CAMPFIRE_ROOM = "Enter the Campfire room name (default '%s'):"
|
66
66
|
CAMPFIRE_TOKEN = "Enter your Campfire API Token (default '%s'):"
|
67
67
|
end
|
@@ -131,14 +131,13 @@ CI build when it's triggered by a POST:
|
|
131
131
|
4. Optionally, Tddium CI will then push to a git server (push to URL). For
|
132
132
|
example, enter the git URL to your Heroku staging app.
|
133
133
|
|
134
|
-
>>> Set both pull and push URLs to 'disable' to disable hosted CI completely.
|
135
|
-
|
136
134
|
When everything's been set up, you'll receive an SSH public key to authorize in
|
137
135
|
git for pulls and pushes, and a Hook URL to configure in a post-commit hook.
|
138
136
|
|
139
137
|
Tddium CI will not start builds on its own.
|
140
138
|
|
141
139
|
>>> To set up Hosted CI, enter a git URL to pull from.
|
140
|
+
>>> Set both pull and push URLs to 'disable' to disable hosted CI completely.
|
142
141
|
|
143
142
|
EOF
|
144
143
|
SETUP_CAMPFIRE_FIRST_TIME =<<EOF;
|
data/lib/tddium/version.rb
CHANGED
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 = "1.10.10"
|
17
|
+
SAMPLE_BUNDLER_VERSION = "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 = "1.8.7"
|
30
|
+
SAMPLE_RUBY_VERSION = "ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.5.0]"
|
31
31
|
SAMPLE_RECURLY_URL = "https://tddium.recurly.com/account/1"
|
32
32
|
SAMPLE_SESSION_ID = 1
|
33
33
|
SAMPLE_SUITE_ID = 1
|
@@ -118,8 +118,8 @@ describe Tddium do
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
|
-
def stub_bundler_version(tddium
|
122
|
-
tddium.stub(:`).with("bundle -v").and_return(
|
121
|
+
def stub_bundler_version(tddium)
|
122
|
+
tddium.stub(:`).with("bundle -v").and_return(SAMPLE_BUNDLER_VERSION)
|
123
123
|
end
|
124
124
|
|
125
125
|
def stub_call_api_response(method, path, *response)
|
@@ -202,7 +202,7 @@ describe Tddium do
|
|
202
202
|
end
|
203
203
|
|
204
204
|
def stub_git_config(tddium)
|
205
|
-
tddium.stub(:`).with(
|
205
|
+
tddium.stub(:`).with(/^\(git config --get remote.origin.url/).and_return(SAMPLE_GIT_REPO_URI)
|
206
206
|
end
|
207
207
|
|
208
208
|
def stub_git_push(tddium, success = true)
|
@@ -214,8 +214,8 @@ describe Tddium do
|
|
214
214
|
tddium.stub(:`).with(/^git remote #{action}/).and_return(git_response)
|
215
215
|
end
|
216
216
|
|
217
|
-
def stub_ruby_version(tddium
|
218
|
-
tddium.stub(:`).with("ruby -v").and_return(
|
217
|
+
def stub_ruby_version(tddium)
|
218
|
+
tddium.stub(:`).with("ruby -v").and_return(SAMPLE_RUBY_VERSION)
|
219
219
|
end
|
220
220
|
|
221
221
|
def stub_rubygems_version(tddium, version = SAMPLE_RUBYGEMS_VERSION)
|
data/tddium.gemspec
CHANGED
@@ -35,7 +35,7 @@ EOF
|
|
35
35
|
s.add_runtime_dependency("thor")
|
36
36
|
s.add_runtime_dependency("highline")
|
37
37
|
s.add_runtime_dependency("json")
|
38
|
-
s.add_runtime_dependency("tddium_client", ">=0.0.
|
38
|
+
s.add_runtime_dependency("tddium_client", ">=0.0.8")
|
39
39
|
s.add_runtime_dependency("bundler")
|
40
40
|
|
41
41
|
s.add_development_dependency("rspec")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: tddium-preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.7.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Solano Labs
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-10 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.0.
|
57
|
+
version: 0.0.8
|
58
58
|
type: :runtime
|
59
59
|
version_requirements: *id004
|
60
60
|
- !ruby/object:Gem::Dependency
|