legendary 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 011b36ac21ec2edf3489788c92e99bb79d8c2f93
4
- data.tar.gz: 4f84f64ed37e39fa806dbbfe464d0933b06bc334
3
+ metadata.gz: 594d2b34e13861f987648e281c471eb0012653d7
4
+ data.tar.gz: 5713f638590c9a06bcd8b052364847b9bd44c016
5
5
  SHA512:
6
- metadata.gz: 8830e3971fba8741c1f845bcf1128d509843592df40a20080c62fa225b7e66ac95cdb35212ea93ca694ca6afa92c47c91bef0abdda74489f282f4333101ca133
7
- data.tar.gz: e582ee13c1f4bb82b32a25c39bca3896b27b492072101d8d755d8de0f76a08daa1de8edc16b88da7a4db4d0b407c4113b0f94d054956c82aee3e249d8d019894
6
+ metadata.gz: dc950ad55813e95d233e4bb4a5d639ace92685efaa142c3e0fe17078a0e3503acc23c38bb01a164bed871d414d0a5ed48e164ff397d23526832e7b75120c9f2a
7
+ data.tar.gz: 9503877abf04bb1ac894d4a2f8f013dfa370a053fe82ec78934ba1b7df07beeae5d10ca490965c1744b330027117db8c202b570ebca2153d4bc64cb01fe5775e
@@ -7,7 +7,7 @@ module Legendary
7
7
  delegate :dependencies, to: :bundler
8
8
  delegate :specs, to: :bundler
9
9
 
10
- def initialize
10
+ def initialize(cached=false)
11
11
  @bundler = Bundler.load
12
12
  end
13
13
 
@@ -22,7 +22,11 @@ module Legendary
22
22
  def definitions
23
23
  # TODO: locking from gemsurance
24
24
  @definitions ||= Bundler.definition(true).tap do |definition|
25
- definition.resolve_remotely!
25
+ if @cached
26
+ definition.resolve_with_cache!
27
+ else
28
+ definition.resolve_remotely!
29
+ end
26
30
  end
27
31
  end
28
32
  end
@@ -2,7 +2,7 @@ require 'rspec/matchers'
2
2
 
3
3
  module GemStore
4
4
  def self.gems
5
- @gems ||= Legendary::Gems.new.to_a
5
+ @gems ||= Legendary::Gems.new(true).to_a
6
6
  end
7
7
  end
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Legendary
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legendary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - John D'Agostino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-02 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake