fly-ruby 0.5.0 → 0.5.1

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: 8a3bb68f5d53d6264cef896d2117eb23f0ba0699625abf1a38c90d7766fa20b7
4
- data.tar.gz: aa8dfe7f28f5bd8c191c5f0cd52f11c780dd541d9c7e5198415311cc59c92c37
3
+ metadata.gz: eca3058695c9bca72614139b04fe716c66e51391fe0c97174d7585655b6360fc
4
+ data.tar.gz: 7cc2f305188afd9f78f7bc40a59fc4669bf531ec9d48bf15fc324e1c1a0f46cd
5
5
  SHA512:
6
- metadata.gz: 7e3992debe26fa9616fdda0fab6e84673b646bd2fe3b00633c347a8997bdabc41879f1d6d55373643a7c5a914d33008311de1a5e90759adb82d39e466648ef64
7
- data.tar.gz: c12c5f319d006ef0633068edf1917c1ace64bee43b3949abdab3ac2a57ef777c1942e2362596c48b2208b46f00314022d1c1ad2d02dbeef62582604e35125c79
6
+ metadata.gz: 4c9786f36932df4f606b4944ba19ff658629490a69e86c10b8c4ea3c102235d8368780884f9e9cc436b079dcb683c34dd82007da59dfa6f70f7e6132fcff1f1c
7
+ data.tar.gz: db27454d933e0db41dd48c05b741eb3dc64a06bd0c688f9ccad08a879f616fa9d872e0a38923d4922d82e667a21c0ee19563cfac3ab47d4b9aa10ba3dc5b01bb
@@ -113,7 +113,7 @@ module Fly
113
113
  end
114
114
 
115
115
  def eligible_for_activation?
116
- database_url && primary_region && current_region && web?
116
+ database_url && primary_region && current_region && !rake_task?
117
117
  end
118
118
 
119
119
  def hijack_database_connection!
@@ -3,7 +3,7 @@
3
3
  class Fly::Railtie < Rails::Railtie
4
4
  initializer("fly.regional_database", before: "active_record.initialize_database") do |app|
5
5
  # Insert the request middleware high in the stack, but after static file delivery
6
- app.config.middleware.insert_after ActionDispatch::Executor, Fly::Headers if Fly.configuration.web?
6
+ app.config.middleware.insert_after ActionDispatch::Executor, Fly::Headers
7
7
 
8
8
  if Fly.configuration.eligible_for_activation?
9
9
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fly
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Sierles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack