lib/core/environments.rb in radon-0.1.2 vs lib/core/environments.rb in radon-0.1.3

- old
+ new

@@ -4,12 +4,13 @@ @@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"), + 'c' => File.join(DATA_DIR, "c.zip"), 'ruby (beta)' => File.join(DATA_DIR, "ruby.zip"), - 'c' => File.join(DATA_DIR, "c.zip") + 'crystal'=> File.join(DATA_DIR, "crystal_app.zip") } # Gets all environments as an array of strings def self.getAllNames @@all.keys @@ -32,9 +33,11 @@ extract_ruby(target) when 'maven' extract_maven(target) when 'c' extract_c(target) + when 'crystal' + extract_crystal(target) else error("#{key} is not a supported environment.\nYou can suggest it be added at https://github.com/cbrnrd/radon/issues") end end end