appraisal 0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/features/appraisals.feature +9 -8
- data/lib/appraisal/command.rb +5 -1
- metadata +20 -39
data/features/appraisals.feature
CHANGED
@@ -6,7 +6,7 @@ Feature: run a rake task through several appraisals
|
|
6
6
|
And I write to "Gemfile" with:
|
7
7
|
"""
|
8
8
|
source "http://rubygems.org"
|
9
|
-
gem "rake"
|
9
|
+
gem "rake", "0.8.7"
|
10
10
|
gem "factory_girl"
|
11
11
|
"""
|
12
12
|
When I add "appraisal" from this project as a dependency
|
@@ -17,6 +17,7 @@ Feature: run a rake task through several appraisals
|
|
17
17
|
end
|
18
18
|
appraise "1.3.0" do
|
19
19
|
gem "factory_girl", "1.3.0"
|
20
|
+
gem "rake", "0.9.0"
|
20
21
|
end
|
21
22
|
"""
|
22
23
|
When I write to "Rakefile" with:
|
@@ -35,40 +36,40 @@ Feature: run a rake task through several appraisals
|
|
35
36
|
end
|
36
37
|
task :default => :version
|
37
38
|
"""
|
38
|
-
When I successfully run "rake appraisal:install --trace"
|
39
|
+
When I successfully run "bundle exec rake appraisal:install --trace"
|
39
40
|
|
40
41
|
@disable-bundler
|
41
42
|
Scenario: run a specific task with one appraisal
|
42
|
-
When I successfully run "rake appraisal:1.3.0 version --trace"
|
43
|
+
When I successfully run "bundle exec rake appraisal:1.3.0 version --trace"
|
43
44
|
Then the output should contain "Loaded 1.3.0"
|
44
45
|
|
45
46
|
@disable-bundler
|
46
47
|
Scenario: run a specific task with all appraisals
|
47
|
-
When I successfully run "rake appraisal version --trace"
|
48
|
+
When I successfully run "bundle exec rake appraisal version --trace"
|
48
49
|
Then the output should contain "Loaded 1.3.0"
|
49
50
|
And the output should contain "Loaded 1.3.2"
|
50
51
|
And the output should not contain "Invoke version"
|
51
52
|
|
52
53
|
@disable-bundler
|
53
54
|
Scenario: run the default task with one appraisal
|
54
|
-
When I successfully run "rake appraisal:1.3.0 --trace"
|
55
|
+
When I successfully run "bundle exec rake appraisal:1.3.0 --trace"
|
55
56
|
Then the output should contain "Loaded 1.3.0"
|
56
57
|
|
57
58
|
@disable-bundler
|
58
59
|
Scenario: run the default task with all appraisals
|
59
|
-
When I successfully run "rake appraisal --trace"
|
60
|
+
When I successfully run "bundle exec rake appraisal --trace"
|
60
61
|
Then the output should contain "Loaded 1.3.0"
|
61
62
|
And the output should contain "Loaded 1.3.2"
|
62
63
|
|
63
64
|
@disable-bundler
|
64
65
|
Scenario: run a failing task with one appraisal
|
65
|
-
When I run "rake appraisal:1.3.0 fail --trace"
|
66
|
+
When I run "bundle exec rake appraisal:1.3.0 fail --trace"
|
66
67
|
Then the output should contain "Fail 1.3.0"
|
67
68
|
And the exit status should be 1
|
68
69
|
|
69
70
|
@disable-bundler
|
70
71
|
Scenario: run a failing task with all appraisals
|
71
|
-
When I run "rake appraisal fail --trace"
|
72
|
+
When I run "bundle exec rake appraisal fail --trace"
|
72
73
|
Then the output should contain "Fail 1.3.2"
|
73
74
|
But the output should not contain "Fail 1.3.0"
|
74
75
|
And the exit status should be 1
|
data/lib/appraisal/command.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appraisal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: "0.1"
|
4
|
+
prerelease:
|
5
|
+
version: 0.2.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Joe Ferris
|
@@ -14,65 +10,53 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-05-23 00:00:00 -04:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
17
|
name: cucumber
|
24
|
-
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
|
-
requirement: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
24
|
type: :development
|
36
25
|
prerelease: false
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
37
28
|
name: aruba
|
38
|
-
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
30
|
none: false
|
40
31
|
requirements:
|
41
32
|
- - ">="
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
34
|
version: "0"
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
type: :runtime
|
35
|
+
type: :development
|
50
36
|
prerelease: false
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
51
39
|
name: rake
|
52
|
-
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
41
|
none: false
|
54
42
|
requirements:
|
55
43
|
- - ">="
|
56
44
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
|
-
segments:
|
59
|
-
- 0
|
60
45
|
version: "0"
|
61
|
-
requirement: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
46
|
type: :runtime
|
64
47
|
prerelease: false
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
65
50
|
name: bundler
|
66
|
-
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
52
|
none: false
|
68
53
|
requirements:
|
69
54
|
- - ">="
|
70
55
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
|
-
segments:
|
73
|
-
- 0
|
74
56
|
version: "0"
|
75
|
-
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
76
60
|
description: Appraisal integrates with bundler and rake to test your library against different versions of dependencies in repeatable scenarios called "appraisals."
|
77
61
|
email: jferris@thoughtbot.com
|
78
62
|
executables: []
|
@@ -96,7 +80,7 @@ files:
|
|
96
80
|
- features/appraisals.feature
|
97
81
|
- features/step_definitions/dependency_steps.rb
|
98
82
|
- features/support/env.rb
|
99
|
-
has_rdoc:
|
83
|
+
has_rdoc: true
|
100
84
|
homepage: http://github.com/thoughtbot/appraisal
|
101
85
|
licenses: []
|
102
86
|
|
@@ -110,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
94
|
requirements:
|
111
95
|
- - ">="
|
112
96
|
- !ruby/object:Gem::Version
|
113
|
-
hash:
|
97
|
+
hash: -3413517185819594219
|
114
98
|
segments:
|
115
99
|
- 0
|
116
100
|
version: "0"
|
@@ -119,14 +103,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
103
|
requirements:
|
120
104
|
- - ">="
|
121
105
|
- !ruby/object:Gem::Version
|
122
|
-
hash: 3
|
123
|
-
segments:
|
124
|
-
- 0
|
125
106
|
version: "0"
|
126
107
|
requirements: []
|
127
108
|
|
128
109
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
110
|
+
rubygems_version: 1.6.2
|
130
111
|
signing_key:
|
131
112
|
specification_version: 3
|
132
113
|
summary: Find out what your Ruby gems are worth
|