tapioca 0.11.2 → 0.11.3

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
  SHA256:
3
- metadata.gz: f19238941e4e663cef8326fc3cd46a9e9fb80b19130b676509d17e9081881fea
4
- data.tar.gz: aa1db65b32badf4df8937a9d6566ac409b788cc746c714b40f5f7f0098cd062c
3
+ metadata.gz: '0409ff7f6d35e2767d201fc3b920d9c3febdd94017dd2f51dda7ddbade8cf322'
4
+ data.tar.gz: 2a328485d2bd7b961531edd123e8f9b88172078d32f63dcf1bc7d8d120725640
5
5
  SHA512:
6
- metadata.gz: ba99ab5d35eb0d88cd671370bfbee1e73b72e1a6828c083915c32ed36d7142291b93b79d9258cca9a7bd7d41fcf31770f00865c12c0fe5395cba0d439b9bd850
7
- data.tar.gz: 93d5fa3abba74e8919415d494bf47416a36721f4689d5ce893831b39cf4a8f00ca1f9d9c3500fcd70fa574fe2230d9aca6f743bf4c9642817ce969bbbdb6c431
6
+ metadata.gz: f815bf33068255e641484a8e642c665a782416a08d5b0c4ca7e30690a0ae2034a34fb7a75a2ed159bddaf9271e103f62dadaf16642adc918a3be81b1853efdf2
7
+ data.tar.gz: 88d826dc3de171edca2dd81d4157ba6c91d6c0177b2a354aa7ccd3b9b9bac35030213f03b1fc256abd91b35f671ce370dd579d3c9c829ef82a5b750b0d4fe28c
@@ -343,6 +343,8 @@ module Tapioca
343
343
  #{set_color("RBI files are out-of-date. In your development environment, please run:", :green)}
344
344
  #{set_color("`#{default_command(command)}`", :green, :bold)}
345
345
  #{set_color("Once it is complete, be sure to commit and push any changes", :green)}
346
+ If you don't observe any changes after running the command locally, ensure your database is in a good
347
+ state e.g. run `bin/rails db:reset`
346
348
 
347
349
  #{set_color("Reason:", :red)}
348
350
  #{reasons}
@@ -105,14 +105,13 @@ module Tapioca
105
105
  sig { returns([T::Enumerable[Spec], T::Array[String]]) }
106
106
  def materialize_deps
107
107
  deps = definition.locked_gems.dependencies.values
108
- missing_specs = T::Array[String].new
109
- materialized_dependencies = if definition.resolve.method(:materialize).arity == 1 # Support bundler >= v2.2.25
110
- md = definition.resolve.materialize(deps)
111
- missing_spec_names = md.missing_specs.map(&:name)
112
- missing_specs = T.cast(md.missing_specs.map { |spec| "#{spec.name} (#{spec.version})" }, T::Array[String])
113
- md.to_a.reject { |spec| missing_spec_names.include?(spec.name) }
114
- else
115
- definition.resolve.materialize(deps, missing_specs)
108
+ materialized_dependencies = definition.resolve.materialize(deps)
109
+ missing_spec_names = materialized_dependencies.missing_specs.map(&:name).to_set
110
+ missing_specs = materialized_dependencies.missing_specs.map do |spec|
111
+ "#{spec.name} (#{spec.version})"
112
+ end
113
+ materialized_dependencies = materialized_dependencies.to_a.reject do |spec|
114
+ missing_spec_names.include?(spec.name)
116
115
  end
117
116
  [materialized_dependencies, missing_specs]
118
117
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Tapioca
5
- VERSION = "0.11.2"
5
+ VERSION = "0.11.3"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapioca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ufuk Kayserilioglu
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2023-03-10 00:00:00.000000000 Z
14
+ date: 2023-03-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.17.3
22
+ version: 2.2.25
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.17.3
29
+ version: 2.2.25
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: netrc
32
32
  requirement: !ruby/object:Gem::Requirement