appraisal 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/.gitignore +6 -0
- data/.rspec +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +2 -10
- data/appraisal.gemspec +26 -0
- data/lib/appraisal.rb +1 -0
- data/lib/appraisal/file.rb +1 -1
- data/lib/appraisal/version.rb +3 -0
- data/spec/appraisal/gemfile_spec.rb +30 -0
- data/spec/spec_helper.rb +2 -0
- metadata +78 -105
data/.bundle/config
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Setup
|
|
22
22
|
-----
|
23
23
|
|
24
24
|
Setting up appraisal requires an Appraisals file (similar to a Gemfile) in your
|
25
|
-
project root, and some slight changes to your project's Rakefile.
|
25
|
+
project root, named "Appraisals" (note the case), and some slight changes to your project's Rakefile.
|
26
26
|
|
27
27
|
An Appraisals file consists of several appraisal definitions. An appraisal
|
28
28
|
definition is simply a list of gem dependencies. For example, to test with a
|
data/Rakefile
CHANGED
@@ -1,15 +1,8 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'bundler/setup'
|
3
|
-
require '
|
2
|
+
require 'bundler/gem_tasks'
|
4
3
|
require 'rspec/core/rake_task'
|
5
4
|
require 'cucumber/rake/task'
|
6
5
|
|
7
|
-
eval("$specification = #{IO.read('appraisal.gemspec')}")
|
8
|
-
Rake::GemPackageTask.new($specification) do |package|
|
9
|
-
package.need_zip = true
|
10
|
-
package.need_tar = true
|
11
|
-
end
|
12
|
-
|
13
6
|
RSpec::Core::RakeTask.new do |t|
|
14
7
|
t.pattern = 'spec/**/*_spec.rb'
|
15
8
|
end
|
@@ -19,6 +12,5 @@ Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
19
12
|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
20
13
|
end
|
21
14
|
|
22
|
-
desc "Default: run the cucumber scenarios"
|
15
|
+
desc "Default: run the rspec examples and cucumber scenarios"
|
23
16
|
task :default => [:spec, :cucumber]
|
24
|
-
|
data/appraisal.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "appraisal/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = %q{appraisal}
|
7
|
+
s.version = Appraisal::VERSION.dup
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Joe Ferris"]
|
10
|
+
s.email = %q{jferris@thoughtbot.com}
|
11
|
+
s.homepage = "http://github.com/thoughtbot/appraisal"
|
12
|
+
s.summary = %q{Find out what your Ruby gems are worth}
|
13
|
+
s.description = %q{Appraisal integrates with bundler and rake to test your library against different versions of dependencies in repeatable scenarios called "appraisals."}
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_runtime_dependency('rake')
|
21
|
+
s.add_runtime_dependency('bundler')
|
22
|
+
|
23
|
+
s.add_development_dependency('cucumber', '~> 1.0')
|
24
|
+
s.add_development_dependency('rspec', '~> 2.6')
|
25
|
+
s.add_development_dependency('aruba', '~> 0.4.2')
|
26
|
+
end
|
data/lib/appraisal.rb
CHANGED
data/lib/appraisal/file.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'appraisal/gemfile'
|
3
|
+
|
4
|
+
describe Appraisal::Gemfile do
|
5
|
+
it "supports gemfiles without sources" do
|
6
|
+
gemfile = Appraisal::Gemfile.new
|
7
|
+
gemfile.to_s.strip.should == ""
|
8
|
+
end
|
9
|
+
|
10
|
+
it "supports multiple sources" do
|
11
|
+
gemfile = Appraisal::Gemfile.new
|
12
|
+
gemfile.source "one"
|
13
|
+
gemfile.source "two"
|
14
|
+
gemfile.to_s.strip.should == %{source "one"\nsource "two"}
|
15
|
+
end
|
16
|
+
|
17
|
+
it "preserves dependency order" do
|
18
|
+
gemfile = Appraisal::Gemfile.new
|
19
|
+
gemfile.gem "one"
|
20
|
+
gemfile.gem "two"
|
21
|
+
gemfile.gem "three"
|
22
|
+
gemfile.to_s.should =~ /one.*two.*three/m
|
23
|
+
end
|
24
|
+
|
25
|
+
it "supports symbol sources" do
|
26
|
+
gemfile = Appraisal::Gemfile.new
|
27
|
+
gemfile.source :one
|
28
|
+
gemfile.to_s.strip.should == %{source :one}
|
29
|
+
end
|
30
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,110 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: appraisal
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 0
|
10
|
-
version: 0.4.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Joe Ferris
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2012-02-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &70209726945840 !ruby/object:Gem::Requirement
|
22
17
|
none: false
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70209726945840
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bundler
|
27
|
+
requirement: &70209726945360 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
33
34
|
prerelease: false
|
35
|
+
version_requirements: *70209726945360
|
36
|
+
- !ruby/object:Gem::Dependency
|
34
37
|
name: cucumber
|
35
|
-
|
36
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70209726944480 !ruby/object:Gem::Requirement
|
37
39
|
none: false
|
38
|
-
requirements:
|
40
|
+
requirements:
|
39
41
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
- 6
|
45
|
-
version: "2.6"
|
46
|
-
requirement: *id002
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
47
44
|
type: :development
|
48
45
|
prerelease: false
|
46
|
+
version_requirements: *70209726944480
|
47
|
+
- !ruby/object:Gem::Dependency
|
49
48
|
name: rspec
|
50
|
-
|
51
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70209726943180 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
51
|
+
requirements:
|
54
52
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
- 4
|
60
|
-
- 2
|
61
|
-
version: 0.4.2
|
62
|
-
requirement: *id003
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.6'
|
63
55
|
type: :development
|
64
56
|
prerelease: false
|
57
|
+
version_requirements: *70209726943180
|
58
|
+
- !ruby/object:Gem::Dependency
|
65
59
|
name: aruba
|
66
|
-
|
67
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
|
-
requirements:
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
version: "0"
|
76
|
-
requirement: *id004
|
77
|
-
type: :runtime
|
78
|
-
prerelease: false
|
79
|
-
name: rake
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
60
|
+
requirement: &70209726942620 !ruby/object:Gem::Requirement
|
82
61
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
|
88
|
-
- 0
|
89
|
-
version: "0"
|
90
|
-
requirement: *id005
|
91
|
-
type: :runtime
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.4.2
|
66
|
+
type: :development
|
92
67
|
prerelease: false
|
93
|
-
|
94
|
-
description: Appraisal integrates with bundler and rake to test your library against
|
68
|
+
version_requirements: *70209726942620
|
69
|
+
description: Appraisal integrates with bundler and rake to test your library against
|
70
|
+
different versions of dependencies in repeatable scenarios called "appraisals."
|
95
71
|
email: jferris@thoughtbot.com
|
96
72
|
executables: []
|
97
|
-
|
98
73
|
extensions: []
|
99
|
-
|
100
74
|
extra_rdoc_files: []
|
101
|
-
|
102
|
-
|
75
|
+
files:
|
76
|
+
- .bundle/config
|
77
|
+
- .gitignore
|
78
|
+
- .rspec
|
103
79
|
- Gemfile
|
104
80
|
- Gemfile.lock
|
105
81
|
- MIT-LICENSE
|
106
|
-
- Rakefile
|
107
82
|
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- appraisal.gemspec
|
85
|
+
- features/appraisals.feature
|
86
|
+
- features/gemspec.feature
|
87
|
+
- features/step_definitions/dependency_steps.rb
|
88
|
+
- features/support/aruba.rb
|
89
|
+
- features/support/env.rb
|
90
|
+
- lib/appraisal.rb
|
108
91
|
- lib/appraisal/appraisal.rb
|
109
92
|
- lib/appraisal/command.rb
|
110
93
|
- lib/appraisal/dependency.rb
|
@@ -112,48 +95,38 @@ files:
|
|
112
95
|
- lib/appraisal/gemfile.rb
|
113
96
|
- lib/appraisal/gemspec.rb
|
114
97
|
- lib/appraisal/task.rb
|
115
|
-
- lib/appraisal.rb
|
116
|
-
-
|
117
|
-
-
|
118
|
-
- features/step_definitions/dependency_steps.rb
|
119
|
-
- features/support/aruba.rb
|
120
|
-
- features/support/env.rb
|
98
|
+
- lib/appraisal/version.rb
|
99
|
+
- spec/appraisal/gemfile_spec.rb
|
100
|
+
- spec/spec_helper.rb
|
121
101
|
homepage: http://github.com/thoughtbot/appraisal
|
122
102
|
licenses: []
|
123
|
-
|
124
103
|
post_install_message:
|
125
104
|
rdoc_options: []
|
126
|
-
|
127
|
-
require_paths:
|
105
|
+
require_paths:
|
128
106
|
- lib
|
129
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
108
|
none: false
|
131
|
-
requirements:
|
132
|
-
- -
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
|
135
|
-
|
136
|
-
- 0
|
137
|
-
version: "0"
|
138
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
114
|
none: false
|
140
|
-
requirements:
|
141
|
-
- -
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
147
119
|
requirements: []
|
148
|
-
|
149
120
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.8.
|
121
|
+
rubygems_version: 1.8.15
|
151
122
|
signing_key:
|
152
123
|
specification_version: 3
|
153
124
|
summary: Find out what your Ruby gems are worth
|
154
|
-
test_files:
|
125
|
+
test_files:
|
155
126
|
- features/appraisals.feature
|
156
127
|
- features/gemspec.feature
|
157
128
|
- features/step_definitions/dependency_steps.rb
|
158
129
|
- features/support/aruba.rb
|
159
130
|
- features/support/env.rb
|
131
|
+
- spec/appraisal/gemfile_spec.rb
|
132
|
+
- spec/spec_helper.rb
|