Module: Licensed

Defined in:
lib/licensed/sources/bundler/missing_specification.rb,
lib/licensed/cli.rb,
lib/licensed/git.rb,
lib/licensed/shell.rb,
lib/licensed/report.rb,
lib/licensed/sources.rb,
lib/licensed/version.rb,
lib/licensed/commands.rb,
lib/licensed/ui/shell.rb,
lib/licensed/reporters.rb,
lib/licensed/dependency.rb,
lib/licensed/migrations.rb,
lib/licensed/sources/go.rb,
lib/licensed/sources/dep.rb,
lib/licensed/sources/mix.rb,
lib/licensed/sources/npm.rb,
lib/licensed/sources/pip.rb,
lib/licensed/sources/pnpm.rb,
lib/licensed/sources/yarn.rb,
lib/licensed/commands/list.rb,
lib/licensed/configuration.rb,
lib/licensed/migrations/v2.rb,
lib/licensed/sources/bower.rb,
lib/licensed/sources/cabal.rb,
lib/licensed/sources/cargo.rb,
lib/licensed/sources/nuget.rb,
lib/licensed/sources/swift.rb,
lib/licensed/commands/cache.rb,
lib/licensed/sources/gradle.rb,
lib/licensed/sources/pipenv.rb,
lib/licensed/sources/source.rb,
lib/licensed/commands/status.rb,
lib/licensed/sources/bundler.rb,
lib/licensed/sources/yarn/v1.rb,
lib/licensed/commands/command.rb,
lib/licensed/commands/notices.rb,
lib/licensed/sources/composer.rb,
lib/licensed/sources/manifest.rb,
lib/licensed/dependency_record.rb,
lib/licensed/sources/cocoapods.rb,
lib/licensed/reporters/reporter.rb,
lib/licensed/sources/yarn/berry.rb,
lib/licensed/commands/environment.rb,
lib/licensed/sources/git_submodule.rb,
lib/licensed/reporters/json_reporter.rb,
lib/licensed/reporters/list_reporter.rb,
lib/licensed/reporters/yaml_reporter.rb,
lib/licensed/reporters/cache_reporter.rb,
lib/licensed/reporters/status_reporter.rb,
lib/licensed/reporters/notices_reporter.rb,
lib/licensed/sources/bundler/definition.rb,
lib/licensed/sources/helpers/content_versioning.rb

Overview

This monkey patch instead creates MissingSpecification objects to identify missing specs without raising errors and halting enumeration. It was the most minimal-touch solution I could think of that should reliably work across many bundler versions

Defined Under Namespace

Modules: Bundler, Commands, Git, Migrations, Reporters, Shell, Sources, UI Classes: AppConfiguration, CLI, Configuration, Dependency, DependencyRecord, Report

Constant Summary collapse

VERSION =
"5.0.1".freeze

Class Method Summary collapse

Class Method Details

.previous_major_versionsObject



5
6
7
8
# File 'lib/licensed/version.rb', line 5

def self.previous_major_versions
  major_version = Gem::Version.new(Licensed::VERSION).segments.first
  (1...major_version).to_a
end