prospectus_gems 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prospectus_gems.rb +17 -3
- data/prospectus_gems.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ed87bf771a5970c7f4c10406dd6ad5bd8068504e25cdd55a7919d7d28237990
|
4
|
+
data.tar.gz: 4d729edd86a16ce21b7974d7815ff262975aea9bac0c0a59b8ff0fff42e6a9fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fb897ab0030b501d22c99493879171c5edf51d21a2666f523e6e906fe96f7577fcc665ddce762fe67393816737643b97e4ff3532e68a7a98f161ac463724cd3
|
7
|
+
data.tar.gz: 73a6b5420fa7097d890b19254bff2f029705879351a3859b674e308ac116a1bb13a0704e02aacf580d553251977d3b6dc65b4823fa66283d309d16009d1d1cf5
|
data/lib/prospectus_gems.rb
CHANGED
@@ -35,16 +35,30 @@ module ProspectusGems
|
|
35
35
|
private
|
36
36
|
|
37
37
|
def parse_deps
|
38
|
-
|
39
|
-
bundle.dependencies.map do |x|
|
38
|
+
dependencies.map do |x|
|
40
39
|
latest = Gemspec.lookup_gem(x.name)
|
41
40
|
current = x.match?(x.name, latest) ? latest : x.requirements_list
|
42
41
|
[x.name, current, latest]
|
43
42
|
end
|
44
43
|
end
|
45
44
|
|
45
|
+
def dependencies
|
46
|
+
@dependencies ||= dep_obj.dependencies
|
47
|
+
end
|
48
|
+
|
49
|
+
def dep_obj
|
50
|
+
@dep_obj ||= if gemfile.read =~ /^gemspec$/
|
51
|
+
bundle.specs[bundle.dependencies.first.name].first
|
52
|
+
else
|
53
|
+
bundle
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
46
57
|
def bundle
|
47
|
-
@bundle
|
58
|
+
return @bundle if @bundle
|
59
|
+
@bundle = Bundler::Definition.build(gemfile, lockfile, nil)
|
60
|
+
@bundle.resolve_remotely!
|
61
|
+
@bundle
|
48
62
|
end
|
49
63
|
|
50
64
|
def gemfile
|
data/prospectus_gems.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'prospectus_gems'
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.1'
|
4
4
|
s.date = Time.now.strftime('%Y-%m-%d')
|
5
5
|
|
6
6
|
s.summary = 'Prospectus helpers for gemspecs'
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.test_files = `git ls-files spec/*`.split
|
15
15
|
|
16
16
|
s.add_dependency 'bundler', '~> 1.16.2'
|
17
|
-
s.add_dependency 'prospectus', '~> 0.
|
17
|
+
s.add_dependency 'prospectus', '~> 0.6.0'
|
18
18
|
|
19
19
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
20
20
|
s.add_development_dependency 'fuubar', '~> 2.3.0'
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.6.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.6.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: codecov
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|