dockerfile-rails 1.5.10 → 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: d88f0410567f5185fcffce4a01b85cd5d63d04864e261ded85f260389b1bbf35
4
- data.tar.gz: 3f2d42a85d4b78401842aed0c78f277ae5d6c97fe8aa76a370a420d407b8ad5c
3
+ metadata.gz: fdf6d8e58eec7c4d0eec797792faa410c9b0c09a7cfc478563e0f387166be802
4
+ data.tar.gz: e238089dfc97a18fb6809be291ffbdc08d65e58b21be427fb5f3d3c7db5986bf
5
5
  SHA512:
6
- metadata.gz: cf0c9e328c292f8e9f4cab6e5529ae0767837b0339cbd673809cd23aa6a884ff3fd7562e1a0d85fbe9711fb9925e60f1c3ecb9bf9f7b4ff9d6ad652dcab1b9d3
7
- data.tar.gz: 9c1886019e9b95c8190beb66b82f65338f959b210ecced923aa819ec7843f903a849a8022b1429f92c6f0ab5ec20a0e62ef2e6bd05e1627e1e1cb3d79149afba
6
+ metadata.gz: 7e7b085fb960accab2838308541e3a85eb08f3a069d486dc48e644f42d06d6ffb2d8f240ab2abf9df87dc10f82b2881ea5f93f264f9c192f3e32895bda7754d4
7
+ data.tar.gz: 94d2d844c5af3382f81c8956148878564ad1dc6ca5ff636d75c67ef031e18c4276ec980e729883ab0220474e30fc69565a319c592a83dda21387365d7aba121b
data/README.md CHANGED
@@ -15,11 +15,15 @@ For more background:
15
15
 
16
16
  ## Usage
17
17
 
18
+ Install from the root of your Rails project by running the following.
19
+
18
20
  ```
19
21
  bundle add dockerfile-rails --optimistic --group development
20
22
  bin/rails generate dockerfile
21
23
  ```
22
24
 
25
+ The `--optomistic` flag will make sure you always get the latest `dockerfile-rails` gem when you run `bundle update && rails g dockerfile`.
26
+
23
27
  ### General option:
24
28
 
25
29
  * `--force` - overwrite existing files
@@ -76,7 +80,7 @@ Not all of your needs can be determined by scanning your application. For examp
76
80
  * `--env=name:value` - add an environment variable
77
81
  * `--remove package...` - remove package from "to be added" list
78
82
 
79
- Each of these can be tailored to a specific build phase by adding `-base`, `-build`, or `-deploy` after the flag name (e.g `--add-build freetds-dev --add-deploy freetds-bin`). If no such suffix is found, the default for arg is `-base`, and the default for the rest is `-deploy`. Removal of an arg or environment variable is done by leaving the value blank (e.g `--env-build=PORT:`).
83
+ Args and environment variables can be tailored to a specific build phase by adding `-base`, `-build`, or `-deploy` after the flag name (e.g `--add-build freetds-dev --add-deploy freetds-bin`). If no such suffix is found, the default for arg is `-base`, and the default for env is `-deploy`. Removal of an arg or environment variable is done by leaving the value blank (e.g `--env-build=PORT:`).
80
84
 
81
85
  ### Configuration:
82
86
 
@@ -968,7 +968,7 @@ private
968
968
 
969
969
  version
970
970
  rescue
971
- "latest"
971
+ "1.22.19"
972
972
  end
973
973
 
974
974
 
@@ -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.10
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-09-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