appraisal 2.0.0 → 2.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f0ed208de18ec1152d5f8d9d77e86a42236f89f
4
- data.tar.gz: 5a0a145e1c89faeb6447aa5ca47b9662e69ed84c
3
+ metadata.gz: 3ab623ad895ec0d2c27cd4a0865a476ca268c355
4
+ data.tar.gz: 7525addf1bd53d5b424bcb314390b620ddee77e5
5
5
  SHA512:
6
- metadata.gz: 5c182a653a7e693cfcf9f288aa25a0f9c5ec312b89c7ea3741927eea0a4d4c7890230ef760313a3753bfee4cb9ddf3a5829f255f5a14393fd6013724e0bcf97f
7
- data.tar.gz: 9bc7f08e8982c0234ddc3e098fe75ba530604eb2f79546032537db14faa74d2dc3aa71a17e5e15ced8059e39de17701bff90e6b66caa3c76422071d8b4a44f6b
6
+ metadata.gz: 564306857e229c592407c8f1c027d7da3a1b34ed62c49e51b4d3186a39346e1d68d6d14e0bad0887a15241dd4cb5597e7f0fea69125bdd4980ef0a3b9db6caa3
7
+ data.tar.gz: e24f07952fc90e2c088a2932dcd827d1a4590faa63469ae45168a1a870d6af48c65bd302eb8c75ca0dbd134977820c37b1c167afe4a12a10978f5d883537b6df
@@ -12,9 +12,12 @@ module Appraisal
12
12
  `appraisal generate --travis` to get the correct configuration.
13
13
  WARNING
14
14
 
15
+ # @see http://docs.travis-ci.com/user/languages/ruby/
16
+ GEMFILES_CONFIGURATION_KEY = "gemfile".freeze
17
+
15
18
  def self.display_instruction
16
19
  puts "# Put this in your .travis.yml"
17
- puts "gemfiles:"
20
+ puts "#{GEMFILES_CONFIGURATION_KEY}:"
18
21
 
19
22
  File.each do |appraisal|
20
23
  puts " - #{appraisal.relative_gemfile_path}"
@@ -45,14 +48,14 @@ module Appraisal
45
48
  end
46
49
 
47
50
  def has_no_gemfiles_configuration?
48
- !(configuration && configuration.has_key?("gemfiles"))
51
+ !(configuration && configuration.has_key?(GEMFILES_CONFIGURATION_KEY))
49
52
  end
50
53
 
51
54
  def has_invalid_gemfiles_configuration?
52
- if configuration && configuration["gemfiles"]
55
+ if configuration && configuration[GEMFILES_CONFIGURATION_KEY]
53
56
  appraisal_paths =
54
57
  File.new.appraisals.map(&:relative_gemfile_path).sort
55
- travis_gemfile_paths = configuration["gemfiles"].sort
58
+ travis_gemfile_paths = configuration[GEMFILES_CONFIGURATION_KEY].sort
56
59
  appraisal_paths != travis_gemfile_paths
57
60
  end
58
61
  end
@@ -1,3 +1,3 @@
1
1
  module Appraisal
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
@@ -21,7 +21,7 @@ describe "Travis CI integration" do
21
21
 
22
22
  expect(output).to include <<-stdout.strip_heredoc
23
23
  # Put this in your .travis.yml
24
- gemfiles:
24
+ gemfile:
25
25
  - gemfiles/1.0.0.gemfile
26
26
  - gemfiles/1.1.0.gemfile
27
27
  stdout
@@ -44,7 +44,7 @@ describe "Travis CI integration" do
44
44
  context "with incorrect gemfiles directive" do
45
45
  before do
46
46
  write_file ".travis.yml", <<-travis_yml
47
- gemfiles:
47
+ gemfile:
48
48
  - gemfiles/1.0.0.gemfile
49
49
  - gemfiles/1.0.1.gemfile
50
50
  travis_yml
@@ -60,7 +60,7 @@ describe "Travis CI integration" do
60
60
  context "with correct gemfiles directive" do
61
61
  before do
62
62
  write_file ".travis.yml", <<-travis_yml
63
- gemfiles:
63
+ gemfile:
64
64
  - gemfiles/1.0.0.gemfile
65
65
  - gemfiles/1.1.0.gemfile
66
66
  travis_yml
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: 2.0.0
4
+ version: 2.0.1
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-04-10 00:00:00.000000000 Z
12
+ date: 2015-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake