Skip to content
Browse files

Merge branch 'disable_deploy'

Conflicts:
	CHANGELOG.md
  • Loading branch information...
2 parents 8137a21 + 066d4a1 commit 4c8d376c420be9afa027de0691e1c61fd65fd08d @hone hone committed Jan 30, 2013
Showing with 27 additions and 4 deletions.
  1. +8 −2 CHANGELOG.md
  2. +2 −2 lib/language_pack.rb
  3. +17 −0 lib/language_pack/disable_deploys.rb
View
10 CHANGELOG.md
@@ -1,10 +1,16 @@
-## v47
+## v48
Features:
* Display ruby version change when busting the cache
-## v46 (1/10/2012)
+## v47 (1/30/2013)
+
+Features:
+
+* Disable ruby deploys due to rubygems.org compromise
+
+## v46 (1/10/2013)
Features:
View
4 lib/language_pack.rb
@@ -9,7 +9,7 @@ module LanguagePack
def self.detect(*args)
Dir.chdir(args.first)
- pack = [ Rails3, Rails2, Rack, Ruby ].detect do |klass|
+ pack = [ DisableDeploys, Rails3, Rails2, Rack, Ruby ].detect do |klass|
klass.use?
end
@@ -22,4 +22,4 @@ def self.detect(*args)
require "language_pack/rack"
require "language_pack/rails2"
require "language_pack/rails3"
-
+require "language_pack/disable_deploys"
View
17 lib/language_pack/disable_deploys.rb
@@ -0,0 +1,17 @@
+require "language_pack"
+require "language_pack/base"
+
+class LanguagePack::DisableDeploys < LanguagePack::Base
+ def self.use?
+ File.exist?("Gemfile")
+ end
+
+ def name
+ "Ruby/DisableDeploys"
+ end
+
+ def compile
+ error "Ruby deploys have been temporarily disabled. We will have more information available shortly, including a workaround."
+ end
+end
+

0 comments on commit 4c8d376

Please sign in to comment.
Something went wrong with that request. Please try again.