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 +4 -4
- data/lib/bullet_train/version.rb +1 -1
- data/lib/bullet_train.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9bf6373626523a2b56fae55a9d884db079f0b300bb97a83ae726597cc13a24
|
4
|
+
data.tar.gz: dcad48f627a911b4243697ef92550f39c8f40e386bf2c67c11e51b4b3a707a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e99b9e93e5ea204b8ea9793f1960119c038a1c11dc9c49bc523c69dc887efff3fd810935f3abf5f515ca629cac43e12296cfeb588641ddc12b2f92aaa58c2ea1
|
7
|
+
data.tar.gz: 6187fb36affafd8baed716441a33f869ca88dfe382098cfde1e3668c01cfa30c1f36c54efdf200580161a161ae43c8f851b7410611673e66eae662ba62fecc3b
|
data/lib/bullet_train/version.rb
CHANGED
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"]
|
55
|
+
ENV["BASE_URL"] = "http://localhost:3000"
|
56
56
|
else
|
57
|
-
|
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.
|
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-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|