prospectus_gems 0.1.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: 578661f3648fe36018c0978eef32b34d6eacc670319bc921eb8c03124013c7a1
4
- data.tar.gz: bb2d9c755f63654b5016ed8ec835019ee1fc3a00e7b6a62530d250f2e0506155
3
+ metadata.gz: 3a505888040a2ac5c28e603339af085199cc8ca743d892d9cc73cdab1e9740a5
4
+ data.tar.gz: 626f5ef9664559c92cf333ba61fbd96318ecb15f49aa047ecc54809640ed4be6
5
5
  SHA512:
6
- metadata.gz: b677a8fce304d70b1a6451857a5055d4a95a267bed41a93062727a28844baf8a5062d920dae62b8a5e5d4b4be4aa890efb2d62ff6d96a3ce1b29afa527452124
7
- data.tar.gz: cc7dfac89d37073063aa6eedc639ce65ae9ede81d6a8f2b2dd1b3d60dc24cd0f473e4d9cd6291a484cbf5d4861ca7040ec30c27f36b5fb3d01af98978de7c5ca
6
+ metadata.gz: e82e8da05e103b38121681d8a176bbd73f8534cf065549f49b46df9a326601e07b7d98e7008b0df5ccb914a2760f4853aa628b1b0ebbf1e995878f1a04a5feb3
7
+ data.tar.gz: c296dd4a4dfeb4cbd675bffcd077a76e064767c91e38b24f3207dde597471b32da01f58c33f4e0d2e4a695b45f632d51cbfd866698c974063fa267fe1bf7ed3e
@@ -35,22 +35,14 @@ module ProspectusGems
35
35
  private
36
36
 
37
37
  def parse_deps
38
- (runtime_deps + dev_deps).map do |x|
38
+ bundle.resolve_remotely! unless bundle.instance_variable_get(:@specs)
39
+ bundle.dependencies.map do |x|
39
40
  latest = Gemspec.lookup_gem(x.name)
40
41
  current = x.match?(x.name, latest) ? latest : x.requirements_list
41
42
  [x.name, current, latest]
42
43
  end
43
44
  end
44
45
 
45
- def runtime_deps
46
- @runtime_deps ||= [] unless gemfile.read =~ /^gemspec$/
47
- @runtime_deps ||= bundle.resolve[dev_deps.first.name].first.dependencies
48
- end
49
-
50
- def dev_deps
51
- @dev_deps ||= bundle.dependencies
52
- end
53
-
54
46
  def bundle
55
47
  @bundle ||= Bundler::Definition.build(gemfile, lockfile, nil)
56
48
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'prospectus_gems'
3
- s.version = '0.1.1'
3
+ s.version = '0.2.0'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
 
6
6
  s.summary = 'Prospectus helpers for gemspecs'
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split
14
14
  s.test_files = `git ls-files spec/*`.split
15
15
 
16
+ s.add_dependency 'bundler', '~> 1.16.2'
16
17
  s.add_dependency 'prospectus', '~> 0.5.0'
17
18
 
18
19
  s.add_development_dependency 'codecov', '~> 0.1.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus_gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.16.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.16.2
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: prospectus
15
29
  requirement: !ruby/object:Gem::Requirement