prospectus_gems 0.0.1 → 0.0.2

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: 2196c09aaa954d1a21a9301b82320d20d1a0033110c5bfab26fc321eded658e7
4
- data.tar.gz: fe2cc03e296ceb423b9142ed2410b5dd25c8de91c5ebde267c621a18ec80d5be
3
+ metadata.gz: 66db229f65c4665feb06a6543bebf7b05645c4dedb8e7d616428fdc6acd16bd0
4
+ data.tar.gz: be71a4ad86a8f5afe3e0fc798e9dbc174db1208b91266adab43b15c41853e6b9
5
5
  SHA512:
6
- metadata.gz: 1c13b42ee956b82e84d38a0b2c0d93dfb0bdb21d82b125f182d9370e416515f6744a110dab67d4c015c78b40794efcc6ea7c45aa6bae372b5d578d6f978af4c7
7
- data.tar.gz: c645683c619bde9322e29ed6449aabe1ea9ff86b2a6773a18660290fd85591b91a779deec8eddb39bbade0650ab86f3fefc00a67b8eb236bf87d3f2729dff46c
6
+ metadata.gz: 8c57f6ef97ae81387bfe8e782ef3067c006d0d7ec53bf3559bb4d3d88730e8e5ca6e3d0be90dbd9ef5879087d7064d0667355fe3ed41d98a6cd1cf6dae7849ae
7
+ data.tar.gz: 5fc3d09d6fdcf913db44c90565cc6dd702b4d2287ca13930af8f243bf5bfd39ecd659be7f0ca7409016c308236fb3669e73a3d84806e012d6ed2d32737f53f7a
data/README.md CHANGED
@@ -4,7 +4,7 @@ prospectus_gems
4
4
  [![Gem Version](https://img.shields.io/gem/v/prospectus_gems.svg)](https://rubygems.org/gems/prospectus_gems)
5
5
  [![Build Status](https://img.shields.io/circleci/project/akerl/prospectus_gems.svg)](https://circleci.com/gh/akerl/prospectus_gems)
6
6
  [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/prospectus_gems.svg)](https://codecov.io/github/akerl/prospectus_gems)
7
- [![Code Quality](https://img.shields.io/codacy/c5623564a4034ece993510d28edb19de.svg)](https://www.codacy.com/app/akerl/prospectus_gems)
7
+ [![Code Quality](https://img.shields.io/codacy/3e438ed62cec4ceaa4cca42cb567e42e.svg)](https://www.codacy.com/app/akerl/prospectus_gems)
8
8
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
9
9
 
10
10
  [Prospectus](https://github.com/akerl/prospectus) helpers for checking Ruby gem dependency status.
@@ -6,6 +6,11 @@ module ProspectusGems
6
6
  class Gemspec < Module
7
7
  @gem_version_cache = {}
8
8
 
9
+ def initialize(gemfile = nil, lockfile = nil)
10
+ @gemfile = gemfile
11
+ @lockfile = lockfile
12
+ end
13
+
9
14
  def extended(other) # rubocop:disable Metrics/MethodLength
10
15
  gem_deps = parse_deps
11
16
  other.deps do
@@ -44,7 +49,15 @@ module ProspectusGems
44
49
  end
45
50
 
46
51
  def bundle
47
- @bundle ||= Bundler.load
52
+ @bundle ||= Bundler::Definition.build(gemfile, lockfile, nil)
53
+ end
54
+
55
+ def gemfile
56
+ @gemfile ||= Bundler::SharedHelpers.default_gemfile
57
+ end
58
+
59
+ def lockfile
60
+ @lockfile ||= Bundler::SharedHelpers.default_lockfile
48
61
  end
49
62
 
50
63
  class << self
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'prospectus_gems'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
 
6
6
  s.summary = 'Prospectus helpers for gemspecs'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus_gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-19 00:00:00.000000000 Z
11
+ date: 2018-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prospectus