heroku_hatchet 1.3.7 → 1.4.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 +3 -2
- data/CHANGELOG.md +5 -0
- data/hatchet.gemspec +2 -0
- data/hatchet.json +2 -1
- data/lib/hatchet.rb +1 -1
- data/lib/hatchet/app.rb +4 -3
- data/lib/hatchet/version.rb +1 -1
- data/test/hatchet/allow_failure_anvil_test.rb +0 -29
- data/test/hatchet/anvil_test.rb +0 -16
- data/test/hatchet/app_test.rb +9 -0
- data/test/hatchet/config_test.rb +9 -6
- data/test/hatchet/edit_repo_test.rb +3 -3
- data/test/hatchet/heroku_api_test.rb +7 -2
- data/test/hatchet/multi_cmd_runner_test.rb +2 -6
- data/test/hatchet/runner_test.rb +2 -2
- metadata +33 -65
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/.gitignore +0 -4
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/CHANGELOG.md +0 -378
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/Gemfile +0 -10
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/LICENSE +0 -9
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/README.md +0 -192
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/Rakefile +0 -358
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/bin/compile +0 -13
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/bin/detect +0 -12
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/bin/release +0 -9
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/hatchet.json +0 -25
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack.rb +0 -27
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/base.rb +0 -175
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/bundler_lockfile.rb +0 -19
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/disable_deploys.rb +0 -17
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb +0 -16
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/rack.rb +0 -43
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/rails2.rb +0 -91
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/rails3.rb +0 -86
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/rails4.rb +0 -66
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/ruby.rb +0 -681
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/shell_helpers.rb +0 -62
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/bugs_spec.rb +0 -11
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/no_lockfile_spec.rb +0 -10
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rails23_spec.rb +0 -11
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rails3_spec.rb +0 -22
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rails4_spec.rb +0 -12
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb +0 -38
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/spec/spec_helper.rb +0 -35
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/support/s3/hmac +0 -79
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/support/s3/s3 +0 -223
- data/test/fixtures/buildpacks/heroku-buildpack-ruby/vendor/syck_hack.rb +0 -64
@@ -1,64 +0,0 @@
|
|
1
|
-
# :stopdoc:
|
2
|
-
|
3
|
-
# Hack to handle syck's DefaultKey bug
|
4
|
-
#
|
5
|
-
# This file is always loaded AFTER either syck or psych are already
|
6
|
-
# loaded. It then looks at what constants are available and creates
|
7
|
-
# a consistent view on all rubys.
|
8
|
-
#
|
9
|
-
# All this is so that there is always a YAML::Syck::DefaultKey
|
10
|
-
# class no matter if the full yaml library has loaded or not.
|
11
|
-
#
|
12
|
-
|
13
|
-
$: << ENV['BUNDLER_LIB_PATH'] if ENV['BUNDLER_LIB_PATH']
|
14
|
-
require 'bundler/psyched_yaml'
|
15
|
-
|
16
|
-
module YAML
|
17
|
-
# In newer 1.9.2, there is a Syck toplevel constant instead of it
|
18
|
-
# being underneith YAML. If so, reference it back under YAML as
|
19
|
-
# well.
|
20
|
-
if defined? ::Syck
|
21
|
-
Syck = ::Syck
|
22
|
-
|
23
|
-
# Otherwise, if there is no YAML::Syck, then we've got just psych
|
24
|
-
# loaded, so lets define a stub for DefaultKey.
|
25
|
-
elsif !defined? YAML::Syck
|
26
|
-
module Syck
|
27
|
-
class DefaultKey
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
# Now that we've got something that is always here, define #to_s
|
33
|
-
# so when code tries to use this, it at least just shows up like it
|
34
|
-
# should.
|
35
|
-
module Syck
|
36
|
-
class DefaultKey
|
37
|
-
def to_s
|
38
|
-
'='
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# Sometime in the 1.9 dev cycle, the Syck constant was moved from under YAML
|
45
|
-
# to be a toplevel constant. So gemspecs created under these versions of Syck
|
46
|
-
# will have references to Syck::DefaultKey.
|
47
|
-
#
|
48
|
-
# So we need to be sure that we reference Syck at the toplevel too so that
|
49
|
-
# we can always load these kind of gemspecs.
|
50
|
-
#
|
51
|
-
if !defined?(Syck)
|
52
|
-
Syck = YAML::Syck
|
53
|
-
end
|
54
|
-
|
55
|
-
# Now that we've got Syck setup in all the right places, store
|
56
|
-
# a reference to the DefaultKey class inside Gem. We do this so that
|
57
|
-
# if later on YAML, etc are redefined, we've still got a consistent
|
58
|
-
# place to find the DefaultKey class for comparison.
|
59
|
-
|
60
|
-
module Gem
|
61
|
-
SyckDefaultKey = YAML::Syck::DefaultKey
|
62
|
-
end
|
63
|
-
|
64
|
-
# :startdoc:
|