Class: ForgePackXZUrlsSanitizer
- Inherits:
-
BaseSanitizer
- Object
- BaseSanitizer
- ForgePackXZUrlsSanitizer
- Defined in:
- lib/wonko_the_sane/input/forge_installer_profile_input.rb
Constant Summary collapse
- @@packXZLibs =
['org.scala-lang', 'com.typesafe', 'com.typesafe.akka']
Class Method Summary collapse
Class Method Details
.sanitize(file) ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/wonko_the_sane/input/forge_installer_profile_input.rb', line 104 def self.sanitize(file) file.client.downloads.map! do |lib| if @@packXZLibs.include? WonkoTheSane::Util::MavenIdentifier.new(lib.name).group lib = lib.clone lib.mavenBaseUrl = 'http://repo.spongepowered.org/maven/' end lib end file end |