dockerfile-rails 1.5.11 → 1.5.12

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: 1d82a193aafa58b460153c6f40f11eb3ef6928dd889b2225cf05c8d54403413e
4
- data.tar.gz: 102a8194647678ee4d21cbdc5e01aeab3f626a6498ae8b01bc1ec1f9ab8e25ae
3
+ metadata.gz: fdf6d8e58eec7c4d0eec797792faa410c9b0c09a7cfc478563e0f387166be802
4
+ data.tar.gz: e238089dfc97a18fb6809be291ffbdc08d65e58b21be427fb5f3d3c7db5986bf
5
5
  SHA512:
6
- metadata.gz: f9eeb2d4615acba7c25d796b7c77cf636794b73e003f966c061607e5c46948db96c84c42d3cc4608ad2afbdcae8ebb13f580dfac971e5318d232190b983d8eb0
7
- data.tar.gz: 4f94cb176f2d6bb93379895cc5616d93061638c2f5ec17af50492d397007d8457f90adc14851e0bde6c8d95a1ccb5f57294466fddd19169f29b3ef8db43201b2
6
+ metadata.gz: 7e7b085fb960accab2838308541e3a85eb08f3a069d486dc48e644f42d06d6ffb2d8f240ab2abf9df87dc10f82b2881ea5f93f264f9c192f3e32895bda7754d4
7
+ data.tar.gz: 94d2d844c5af3382f81c8956148878564ad1dc6ca5ff636d75c67ef031e18c4276ec980e729883ab0220474e30fc69565a319c592a83dda21387365d7aba121b
@@ -1107,12 +1107,15 @@ private
1107
1107
  return unless toml.include?("primary_region") # v2
1108
1108
 
1109
1109
  # see if flyctl is in the path
1110
- paths = ENV["PATH"].split(File::PATH_SEPARATOR)
1111
- cmds = %w(flyctl)
1112
- exts = ENV["PATHEXT"] ? ENV["PATHEXT"].split(";") : [""]
1113
- flyctl = Enumerator.product(paths, cmds, exts).
1114
- map { |path, cmd, ext| File.join(path, "#{cmd}#{ext}") }.
1115
- find { |path| File.executable? path }
1110
+ flyctl = (lambda do
1111
+ cmd = "flyctl"
1112
+ ENV["PATH"].split(File::PATH_SEPARATOR).each do |path|
1113
+ (ENV["PATHEXT"] ? ENV["PATHEXT"].split(";") : [""]).each do |ext|
1114
+ path = File.join(path, "#{cmd}#{ext}")
1115
+ return path if File.executable? path
1116
+ end
1117
+ end
1118
+ end).call
1116
1119
  return unless flyctl
1117
1120
 
1118
1121
  # see if secret is already set?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerfile-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.11
4
+ version: 1.5.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-22 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails