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 +4 -4
- data/README.md +1 -1
- data/lib/prospectus_gems.rb +14 -1
- data/prospectus_gems.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66db229f65c4665feb06a6543bebf7b05645c4dedb8e7d616428fdc6acd16bd0
|
4
|
+
data.tar.gz: be71a4ad86a8f5afe3e0fc798e9dbc174db1208b91266adab43b15c41853e6b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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.
|
data/lib/prospectus_gems.rb
CHANGED
@@ -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.
|
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
|
data/prospectus_gems.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prospectus
|