appraisal 1.0.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CONTRIBUTING.md +6 -2
- data/Gemfile +5 -0
- data/README.md +5 -0
- data/appraisal.gemspec +1 -1
- data/lib/appraisal/appraisal.rb +10 -2
- data/lib/appraisal/bundler_dsl.rb +124 -0
- data/lib/appraisal/cli.rb +21 -2
- data/lib/appraisal/command.rb +22 -6
- data/lib/appraisal/dependency_list.rb +2 -1
- data/lib/appraisal/gemfile.rb +9 -126
- data/lib/appraisal/gemspec.rb +1 -1
- data/lib/appraisal/git_source.rb +7 -19
- data/lib/appraisal/group.rb +5 -46
- data/lib/appraisal/path_source.rb +7 -19
- data/lib/appraisal/platform.rb +16 -14
- data/lib/appraisal/travis_ci_helper.rb +65 -0
- data/lib/appraisal/version.rb +1 -1
- data/spec/acceptance/appraisals_file_bundler_dsl_compatibility_spec.rb +18 -2
- data/spec/acceptance/bundle_with_custom_path_spec.rb +22 -0
- data/spec/acceptance/cli/generate_spec.rb +6 -0
- data/spec/acceptance/cli/install_spec.rb +1 -1
- data/spec/acceptance/cli/list_spec.rb +28 -0
- data/spec/acceptance/cli/version_spec.rb +27 -0
- data/spec/acceptance/gemfile_dsl_compatibility_spec.rb +3 -3
- data/spec/acceptance/gemspec_spec.rb +3 -3
- data/spec/acceptance/travis_ci_integration_spec.rb +94 -0
- data/spec/appraisal/gemfile_spec.rb +147 -16
- data/spec/appraisal/utils_spec.rb +6 -5
- data/spec/spec_helper.rb +6 -2
- data/spec/support/acceptance_test_helpers.rb +24 -18
- data/spec/support/dependency_helpers.rb +7 -0
- metadata +15 -7
- data/features/support/dependency_helpers.rb +0 -35
@@ -45,5 +45,12 @@ module DependencyHelpers
|
|
45
45
|
`git add .`
|
46
46
|
`git commit -a -m "initial commit"`
|
47
47
|
end
|
48
|
+
|
49
|
+
# Cleanup Bundler cache path manually for now
|
50
|
+
git_cache_path = File.join(ENV["GEM_HOME"], "cache", "bundler", "git")
|
51
|
+
|
52
|
+
Dir[File.join(git_cache_path, "#{gem_name}-*")].each do |path|
|
53
|
+
FileUtils.rm_r(path)
|
54
|
+
end
|
48
55
|
end
|
49
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appraisal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Ferris
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 3.2.
|
63
|
-
type: :
|
62
|
+
version: 3.2.21
|
63
|
+
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 3.2.
|
69
|
+
version: 3.2.21
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rspec
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,9 +101,9 @@ files:
|
|
101
101
|
- Rakefile
|
102
102
|
- appraisal.gemspec
|
103
103
|
- bin/appraisal
|
104
|
-
- features/support/dependency_helpers.rb
|
105
104
|
- lib/appraisal.rb
|
106
105
|
- lib/appraisal/appraisal.rb
|
106
|
+
- lib/appraisal/bundler_dsl.rb
|
107
107
|
- lib/appraisal/cli.rb
|
108
108
|
- lib/appraisal/command.rb
|
109
109
|
- lib/appraisal/dependency.rb
|
@@ -117,18 +117,23 @@ files:
|
|
117
117
|
- lib/appraisal/path_source.rb
|
118
118
|
- lib/appraisal/platform.rb
|
119
119
|
- lib/appraisal/task.rb
|
120
|
+
- lib/appraisal/travis_ci_helper.rb
|
120
121
|
- lib/appraisal/utils.rb
|
121
122
|
- lib/appraisal/version.rb
|
122
123
|
- spec/acceptance/appraisals_file_bundler_dsl_compatibility_spec.rb
|
124
|
+
- spec/acceptance/bundle_with_custom_path_spec.rb
|
123
125
|
- spec/acceptance/cli/clean_spec.rb
|
124
126
|
- spec/acceptance/cli/generate_spec.rb
|
125
127
|
- spec/acceptance/cli/help_spec.rb
|
126
128
|
- spec/acceptance/cli/install_spec.rb
|
129
|
+
- spec/acceptance/cli/list_spec.rb
|
127
130
|
- spec/acceptance/cli/run_spec.rb
|
128
131
|
- spec/acceptance/cli/update_spec.rb
|
132
|
+
- spec/acceptance/cli/version_spec.rb
|
129
133
|
- spec/acceptance/cli/with_no_arguments_spec.rb
|
130
134
|
- spec/acceptance/gemfile_dsl_compatibility_spec.rb
|
131
135
|
- spec/acceptance/gemspec_spec.rb
|
136
|
+
- spec/acceptance/travis_ci_integration_spec.rb
|
132
137
|
- spec/appraisal/appraisal_spec.rb
|
133
138
|
- spec/appraisal/dependency_list_spec.rb
|
134
139
|
- spec/appraisal/file_spec.rb
|
@@ -163,17 +168,20 @@ signing_key:
|
|
163
168
|
specification_version: 4
|
164
169
|
summary: Find out what your Ruby gems are worth
|
165
170
|
test_files:
|
166
|
-
- features/support/dependency_helpers.rb
|
167
171
|
- spec/acceptance/appraisals_file_bundler_dsl_compatibility_spec.rb
|
172
|
+
- spec/acceptance/bundle_with_custom_path_spec.rb
|
168
173
|
- spec/acceptance/cli/clean_spec.rb
|
169
174
|
- spec/acceptance/cli/generate_spec.rb
|
170
175
|
- spec/acceptance/cli/help_spec.rb
|
171
176
|
- spec/acceptance/cli/install_spec.rb
|
177
|
+
- spec/acceptance/cli/list_spec.rb
|
172
178
|
- spec/acceptance/cli/run_spec.rb
|
173
179
|
- spec/acceptance/cli/update_spec.rb
|
180
|
+
- spec/acceptance/cli/version_spec.rb
|
174
181
|
- spec/acceptance/cli/with_no_arguments_spec.rb
|
175
182
|
- spec/acceptance/gemfile_dsl_compatibility_spec.rb
|
176
183
|
- spec/acceptance/gemspec_spec.rb
|
184
|
+
- spec/acceptance/travis_ci_integration_spec.rb
|
177
185
|
- spec/appraisal/appraisal_spec.rb
|
178
186
|
- spec/appraisal/dependency_list_spec.rb
|
179
187
|
- spec/appraisal/file_spec.rb
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module DependencyHelpers
|
2
|
-
def build_gem(gem_name, version)
|
3
|
-
FileUtils.mkdir_p "tmp/aruba/#{gem_name}/lib"
|
4
|
-
|
5
|
-
FileUtils.cd "tmp/aruba/#{gem_name}" do
|
6
|
-
gemspec = "#{gem_name}.gemspec"
|
7
|
-
lib_file = "lib/#{gem_name}.rb"
|
8
|
-
|
9
|
-
File.open gemspec, 'w' do |file|
|
10
|
-
file.puts <<-gemspec
|
11
|
-
Gem::Specification.new do |s|
|
12
|
-
s.name = #{gem_name.inspect}
|
13
|
-
s.version = #{version.inspect}
|
14
|
-
s.authors = 'Mr. Smith'
|
15
|
-
s.summary = 'summary'
|
16
|
-
s.files = #{lib_file.inspect}
|
17
|
-
end
|
18
|
-
gemspec
|
19
|
-
end
|
20
|
-
|
21
|
-
File.open lib_file, 'w' do |file|
|
22
|
-
file.puts "$#{gem_name}_version = '#{version}'"
|
23
|
-
end
|
24
|
-
|
25
|
-
`gem build #{gemspec} 2>&1`
|
26
|
-
|
27
|
-
ENV['GEM_HOME'] = TMP_GEM_ROOT
|
28
|
-
`gem install #{gem_name}-#{version}.gem 2>&1`
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
if respond_to?(:World)
|
34
|
-
World(DependencyHelpers)
|
35
|
-
end
|