lib/polariscope.rb in polariscope-0.1.2 vs lib/polariscope.rb in polariscope-0.1.3
- old
+ new
@@ -2,11 +2,10 @@
require_relative 'polariscope/version'
require_relative 'polariscope/scanner/codebase_health_score'
require_relative 'polariscope/scanner/gem_versions'
require_relative 'polariscope/file_content'
-require_relative 'polariscope/color/hsl'
module Polariscope
Error = Class.new(StandardError)
class << self
@@ -14,13 +13,9 @@
Scanner::CodebaseHealthScore.new(
gemfile_content: gemfile_content || FileContent.for('Gemfile'),
gemfile_lock_content: gemfile_lock_content || FileContent.for('Gemfile.lock'),
bundler_audit_config_content: bundler_audit_config_content || FileContent.for('.bundler-audit.yml')
).health_score
- end
-
- def score_color(score)
- Color::Hsl.for(score)
end
def gem_versions(dependency_names, spec_type: :released)
Scanner::GemVersions.new(dependency_names, spec_type: spec_type)
end