lib/core/environments.rb in radon-0.1.0 vs lib/core/environments.rb in radon-0.1.1

- old
+ new

@@ -2,12 +2,13 @@ module Radon class Environments @@all = { 'gradle' => File.join(DATA_DIR, "gradle.zip"), 'java' => File.join(DATA_DIR, "java.zip"), + 'maven' => File.join(DATA_DIR, "maven.zip"), 'python' => File.join(DATA_DIR, "python.zip"), - 'ruby' => File.join(DATA_DIR, "ruby.zip") + 'ruby (beta)' => File.join(DATA_DIR, "ruby.zip") } # Gets all environments as an array of strings def self.getAllNames @@all.keys @@ -26,11 +27,13 @@ extract_java(target) when 'python' extract_python(target) when 'ruby' extract_ruby(target) + when 'maven' + extract_maven(target) else - error("#{key} is not a supported environment.\nYou can suggest it be added at https://github.com/cbrnrd/krypton/issues") + error("#{key} is not a supported environment.\nYou can suggest it be added at https://github.com/cbrnrd/radon/issues") end end end end \ No newline at end of file