bullet_train 1.2.14 → 1.2.16

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: 358e50b478a3dc8e59e119ce48bb7dadae9307c9ce6bde1126cb2a239078eb95
4
- data.tar.gz: ed9095ed50c53a6235dbf6b854137f20960e4ba3f79c8ce2092b2dc70a67bfb8
3
+ metadata.gz: db9bf6373626523a2b56fae55a9d884db079f0b300bb97a83ae726597cc13a24
4
+ data.tar.gz: dcad48f627a911b4243697ef92550f39c8f40e386bf2c67c11e51b4b3a707a42
5
5
  SHA512:
6
- metadata.gz: 6501ad3fea38da957ffa0729aad517e13e0b330f2b11674a0acf1c30e2d1aa1f315f723f03a6664616ff17038b1435dbc36f114e8f8c78c4013a8cafe4296ac0
7
- data.tar.gz: 2546ccaa180b2f9001a9947de2cc1d3add2f4676f486cf8cb2799b6543f99be518b70aa782d071f4b6c8eaa2270a99df95b66ae7669816a6319af4fc4e980775
6
+ metadata.gz: e99b9e93e5ea204b8ea9793f1960119c038a1c11dc9c49bc523c69dc887efff3fd810935f3abf5f515ca629cac43e12296cfeb588641ddc12b2f92aaa58c2ea1
7
+ data.tar.gz: 6187fb36affafd8baed716441a33f869ca88dfe382098cfde1e3668c01cfa30c1f36c54efdf200580161a161ae43c8f851b7410611673e66eae662ba62fecc3b
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.2.14"
2
+ VERSION = "1.2.16"
3
3
  end
data/lib/bullet_train.rb CHANGED
@@ -52,9 +52,9 @@ end
52
52
  def default_url_options_from_base_url
53
53
  unless ENV["BASE_URL"].present?
54
54
  if Rails.env.development?
55
- ENV["BASE_URL"] ||= "http://localhost:3000"
55
+ ENV["BASE_URL"] = "http://localhost:3000"
56
56
  else
57
- raise "you need to define the value of ENV['BASE_URL'] in your environment. if you're on heroku, you can do this with `heroku config:add BASE_URL=https://your-app-name.herokuapp.com` (or whatever your configured domain is)."
57
+ return {}
58
58
  end
59
59
  end
60
60
 
@@ -72,6 +72,10 @@ def default_url_options_from_base_url
72
72
  default_url_options
73
73
  end
74
74
 
75
+ def heroku?
76
+ ENV["PATH"]&.include?("/app/.heroku/")
77
+ end
78
+
75
79
  def inbound_email_enabled?
76
80
  ENV["INBOUND_EMAIL_DOMAIN"].present?
77
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard