gemlist 0.1.0 → 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
  SHA1:
3
- metadata.gz: beee6db7e16d6d5a5f597c0b8b2880c991990690
4
- data.tar.gz: 91bc624d56440cf3f9cb81afb388145285bb9759
3
+ metadata.gz: 9184e8804d7122179c389dcb2f5f683290f52534
4
+ data.tar.gz: 75b596b0c9199be59c9e09458c959a2ff6a5fe94
5
5
  SHA512:
6
- metadata.gz: 0defa9af278076a6025ba11f7833ffcebb53eacba67be50a87bae710c82bfc8005ce9a9c021c52f4178c0cb63edf1fd74a6f6f911f4bb5ec21891eb1206210f6
7
- data.tar.gz: 2d3d7a16b926dfe9459bb4cc6dd30881a8eb2e641bc336f5522f82202a02dbc679626e85c6660291b2b8ada7fb83a90894bce9efe10d46c4cb58e1437263ebbc
6
+ metadata.gz: 10b8f8a542d37f276a70f84b17b7456d09ac5636c870978b103344d78fc7ae7afc79da0370c688824648ce7adbd23608f5dc85d957ec7a778b7961c49fa8cc64
7
+ data.tar.gz: 0a2cca22e7a371f3e991b9b4f6e9f910569dba833454379ca319f003dc0b20faf3c36c821077ac8b9a4ab9ee55344058a396f59e1c078106ce22e7abef7f50ec
@@ -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 (`path => ...`) dependencies.
13
- * I don't care about git (`git => ...`) dependencies.
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.
@@ -10,8 +10,10 @@ class Gemlist
10
10
  end
11
11
 
12
12
  def gems
13
- specs.each.with_index.with_object([]) do |(spec, index), uniquified_specs|
14
- last_occurrence_of_spec = specs.rindex(spec) == index
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
@@ -1,3 +1,3 @@
1
1
  class Gemlist
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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-04 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler