gemlist 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +2 -2
- data/lib/gemlist.rb +4 -2
- data/lib/gemlist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9184e8804d7122179c389dcb2f5f683290f52534
|
4
|
+
data.tar.gz: 75b596b0c9199be59c9e09458c959a2ff6a5fe94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b8f8a542d37f276a70f84b17b7456d09ac5636c870978b103344d78fc7ae7afc79da0370c688824648ce7adbd23608f5dc85d957ec7a778b7961c49fa8cc64
|
7
|
+
data.tar.gz: 0a2cca22e7a371f3e991b9b4f6e9f910569dba833454379ca319f003dc0b20faf3c36c821077ac8b9a4ab9ee55344058a396f59e1c078106ce22e7abef7f50ec
|
data/README.adoc
CHANGED
@@ -9,8 +9,8 @@ I want this capability because a containerization tool I work on builds Docker i
|
|
9
9
|
|
10
10
|
Given this, I have a very specific set of assumptions:
|
11
11
|
|
12
|
-
* I don't care about local (
|
13
|
-
* I don't care about git (
|
12
|
+
* I don't care about local (`:path \=> \...`) dependencies.
|
13
|
+
* I don't care about git (`:git \=> \...`) dependencies.
|
14
14
|
* I do care about being able to include or exclude bundle groups.
|
15
15
|
* I don't actually want to install gems, just get a list of them.
|
16
16
|
* I have local filesystem access to the Gemfile and Gemfile.lock of the target project.
|
data/lib/gemlist.rb
CHANGED
@@ -10,8 +10,10 @@ class Gemlist
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def gems
|
13
|
-
|
14
|
-
|
13
|
+
cached_specs = specs
|
14
|
+
|
15
|
+
cached_specs.each.with_index.with_object([]) do |(spec, index), uniquified_specs|
|
16
|
+
last_occurrence_of_spec = cached_specs.rindex(spec) == index
|
15
17
|
|
16
18
|
uniquified_specs << spec if last_occurrence_of_spec
|
17
19
|
end
|
data/lib/gemlist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemlist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|