lono 7.4.1 → 7.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 507b0d6d611b2714a82e390ff102fafd52ed68e702c6f1666731bb0c181caa3a
4
- data.tar.gz: 78e9e59d93ded9c457a80de048e931c509ada33de89aa53cc36b7464339f074c
3
+ metadata.gz: d5fb2024cd3b5206340c2c55347cda9af53f17fc8e165c0c72d5e03397fee376
4
+ data.tar.gz: 588801a14d28f01a374f0e9e906739d4872ad78ae98e760c1d03d0633ed1d435
5
5
  SHA512:
6
- metadata.gz: fdb248c807e1f7013d396deaeb853be745aaa967e8aa62dd630cc95597673ec6649577de2320f160d86c455876cb409bac9cdc9fbac2e3656c6284788fd90a61
7
- data.tar.gz: 868cd5a626513821036b28971cbf54ca7a57b9f391a0765a9d108bdff5c4313bcc347778d712c21e5238874829b9c652ab7497f95e2a97df1985f91f4b88baf0
6
+ metadata.gz: 18d3f263e75e822bbaa8ae3e8a098a2d775fde0ead210082b38b0447f1c1ebaacd23458543f9114f7663efeb0d0616425a61aec16903b3b91bed5df2db01acc9
7
+ data.tar.gz: d72a837f16c0cfe93b0331fbad13bd88f3442901bf589357917612f44b35218f0f4a02b35de802a30ed9ed6a3d3bac2488271f00458ea3338ddeb2ffa306ac5d
data/CHANGELOG.md CHANGED
@@ -3,8 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [7.4.2]
7
+ - #60 fix edge case when cached materialized Gemfile.lock breaks finder
8
+
6
9
  ## [7.4.1]
7
- - lono generate fix: generate with configsets
10
+ - #59 lono generate fix: generate with configsets
8
11
 
9
12
  ## [7.4.0]
10
13
  - #57 Big improvements generally and configsets
@@ -120,8 +120,20 @@ module Lono::Finder
120
120
  specs = parser.specs
121
121
  # __materialize__ only exists in Gem::LazySpecification and not in Gem::Specification
122
122
  specs.each { |spec| spec.__materialize__ }
123
- specs.map do |spec|
124
- spec.full_gem_path
123
+ begin
124
+ specs.map do |spec|
125
+ spec.full_gem_path
126
+ end
127
+ rescue RuntimeError => e
128
+ if e.message.include?("LazySpecification has not been materialized yet")
129
+ # Thinking quiet behavior is preferred. Leaving comment here for now.
130
+ # puts "WARN: The Finder class is having trouble using the cached tmp/jades/Gemfile.lock to search for materialized gems."
131
+ # puts "This can happen when materialized gems are updated. It is generally safe to ignore."
132
+ # puts "To remove this warning you can remove the cached Gemfile.lock"
133
+ return []
134
+ else
135
+ raise(e)
136
+ end
125
137
  end
126
138
  end
127
139
  memoize :materialized_gem_roots
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "7.4.1"
2
+ VERSION = "7.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.1
4
+ version: 7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport