fly.io-rails 0.3.3 → 0.3.5

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: 2309c09c4343475c5bc0f9db6f8f62e2be0f0bdc57126fd524728099ab62c7d6
4
- data.tar.gz: fe723aa4c5ca096cd5dc3bab2c2028200735a241c43b5db1a326cbafa87f786b
3
+ metadata.gz: 4ff2b6f58e2b953fe73e4a91e72740c0084565980444f31f7b4b2ecd045654b5
4
+ data.tar.gz: b9a263ec7aaa71ef3f26e31dbbf29bf21624dcb08df1c54ca4ee5c3891ebd727
5
5
  SHA512:
6
- metadata.gz: 2934c24e7c628b62170023cfc96a36592961cc3536985e1e4b67b0c262695ff3a86754c39c0b0bca8d28b7709f81c69924548f778b007a2911f1a9b8d146385f
7
- data.tar.gz: 07c5bb14d2f15629dc0cea201bc9536cd864f9eb2cf2afdcc354821fe701464ba0ba03eb140f076007d7b6329d82de33f7a762618b33850e5909d322994d62f7
6
+ metadata.gz: 30f8d54ea129c64539144914471627c7d4a27c9e7c9cb77cd5ab0600369abca5fa39a35b97f60cd199b21187b0e6bc72df1bcfffc1c6aefe4724095642252b8e
7
+ data.tar.gz: 1087ba09b1a08049f4c7bf9e7625dc27dcc6c5addad7640175eb2c09f90a6f2d204c03360719d032920c0b4b897ebf8ac68e654edf1ab681a8e602889adb09aa
@@ -307,23 +307,21 @@ module Fly
307
307
  if @anycable and not @gemfile.include? 'anycable-rails'
308
308
  cmd = 'bundle add anycable-rails'
309
309
  say_status :run, cmd
310
- open('Gemfile', 'a') {|f| f.puts "\n gem \"anycable-rails\""}
311
- system 'bundle install'
310
+ Bundler.with_original_env { system cmd }
312
311
  exit $?.exitstatus unless $?.success?
313
312
  end
314
313
 
315
314
  if @postgresql and not @gemfile.include? 'pg'
316
315
  cmd = 'bundle add pg'
317
316
  say_status :run, cmd
318
- open('Gemfile', 'a') {|f| f.puts "\n gem \"pg\""}
319
- system 'bundle install'
317
+ Bundler.with_original_env { system cmd }
320
318
  exit $?.exitstatus unless $?.success?
321
319
  end
322
320
 
323
321
  if @redis and not @gemfile.include? 'redis'
324
322
  cmd = 'bundle add redis'
325
323
  say_status :run, cmd
326
- system cmd
324
+ Bundler.with_original_env { system cmd }
327
325
  exit $?.exitstatus unless $?.success?
328
326
  end
329
327
  end
@@ -1,3 +1,3 @@
1
1
  module Fly_io
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.5'
3
3
  end
@@ -60,14 +60,6 @@ RUN --mount=type=cache,id=dev-gem-cache,sharing=locked,target=/srv/vendor \
60
60
  bundle lock --add-platform x86_64-linux && \
61
61
  bundle config set path /srv/vendor && \
62
62
  bundle install && \
63
- <% if @redis and not @gemfile.include? 'redis' -%>
64
- <% @bundle_add = true -%>
65
- bundle add redis && \
66
- <% end -%>
67
- <% if @postgresql and not @gemfile.include? 'pg' -%>
68
- <% @bundle_add = true -%>
69
- bundle add pg && \
70
- <% end -%>
71
63
  mkdir -p vendor && \
72
64
  bundle config set path vendor && \
73
65
  cp -ar /srv/vendor .
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby