lib/cutting_edge/langs.rb in cutting_edge-0.0.1 vs lib/cutting_edge/langs.rb in cutting_edge-0.1
- old
+ new
@@ -1,14 +1,16 @@
require 'ostruct'
require 'toml-rb'
+require 'semantic_logger'
class Gem::Dependency
TYPES = [:runtime, :development, :build]
end
module LanguageHelpers
- # Return a mock construct that mimicks Gem::Dependency for depedencies we tried to parse, but weren't valid.
+
+ # Return a mock construct that mimicks Gem::Dependency for dependencies we tried to parse, but weren't valid.
def unknown_dependency(name, type = :runtime)
OpenStruct.new(name: name, type: type, requirement: 'unknown')
end
# For each dependency, find its latest version and return the two together. Takes account of invalid or dependencies (see #unknown_dependency)
@@ -28,9 +30,13 @@
end
class Language
include ::SemanticLogger::Loggable
extend LanguageHelpers
+
+ def website(name)
+ raise 'Please implement'
+ end
end
module LanguageVersionHelpers
private
\ No newline at end of file