Module: Bibliothecary::Analyser
- Included in:
- Parsers::Bower, Parsers::CPAN, Parsers::CRAN, Parsers::Cargo, Parsers::Carthage, Parsers::Clojars, Parsers::CocoaPods, Parsers::Conda, Parsers::Dub, Parsers::Elm, Parsers::Go, Parsers::Hackage, Parsers::Haxelib, Parsers::Hex, Parsers::Julia, Parsers::Maven, Parsers::Meteor, Parsers::NPM, Parsers::Nuget, Parsers::Packagist, Parsers::Pub, Parsers::Pypi, Parsers::Rubygems, Parsers::Shard, Parsers::SwiftPM
- Defined in:
- lib/bibliothecary/analyser.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
- .create_analysis(platform_name, relative_path, kind, dependencies) ⇒ Object
- .create_error_analysis(platform_name, relative_path, kind, message) ⇒ Object
- .included(base) ⇒ Object
Class Method Details
.create_analysis(platform_name, relative_path, kind, dependencies) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/bibliothecary/analyser.rb', line 14 def self.create_analysis(platform_name, relative_path, kind, dependencies) { platform: platform_name, path: relative_path, dependencies: dependencies, kind: kind, success: true } end |
.create_error_analysis(platform_name, relative_path, kind, message) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bibliothecary/analyser.rb', line 3 def self.create_error_analysis(platform_name, relative_path, kind, ) { platform: platform_name, path: relative_path, dependencies: nil, kind: kind, success: false, error_message: } end |
.included(base) ⇒ Object
24 25 26 |
# File 'lib/bibliothecary/analyser.rb', line 24 def self.included(base) base.extend(ClassMethods) end |