Module: GemDating

Defined in:
lib/gem_dating.rb,
lib/gem_dating/cli.rb,
lib/gem_dating/input.rb,
lib/gem_dating/result.rb,
lib/gem_dating/version.rb,
lib/gem_dating/rubygems.rb

Defined Under Namespace

Classes: Cli, Input, Result, Rubygems

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.from_file(path) ⇒ Object



14
15
16
17
18
# File 'lib/gem_dating.rb', line 14

def self.from_file(path)
  gems = Input.file(path).gems
  specs = Rubygems.fetch(gems)
  Result.new(specs)
end

.from_string(s) ⇒ Object



8
9
10
11
12
# File 'lib/gem_dating.rb', line 8

def self.from_string(s)
  gems = Input.string(s).gems
  specs = Rubygems.fetch(gems)
  Result.new(specs)
end