stardust_rails 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f9ed3ccdac95798e18abee0c7600b0c189188a5b291705cc907e4f05af4a33b
4
- data.tar.gz: '08964765b051cdf70d4350b8e4058bfe53e4424a77776bd4dd18ae76260940aa'
3
+ metadata.gz: f8eb21f090ad688321f132ad33e11779e5f70c20bdff23145f70be7c2f13bc68
4
+ data.tar.gz: e95bd3003db24696056c4a0dfd5070146e3f7217cc61e2037b6683f5151f4627
5
5
  SHA512:
6
- metadata.gz: 67e99d6712a56b22f803a2b7a6e1b29e700b025dd340f70ad3c3caaf828b5497ce7a5bad2b363c6e297de9f29d95c519d44b15334068b131cc14a7f438eb85b7
7
- data.tar.gz: 84fd071401395195e31a304553bddf5c3400b05d0a2a30b7631333d69c8e33bfd01bca9e86c1f72ad04011151c94e046ebda91f5965f2312eecf1222a79db99c
6
+ metadata.gz: 367fbde524a8bb848a27a48f6b93cfcde65e2ce1b9cff14bd24d0f9cc34dacfa6233c6edbf60d7a161a7124308d61565e2f6dc4c2b8bb496e75a4bec3f9fa222
7
+ data.tar.gz: 9e0b8b661c245416663d505d43ebad7da42d5a2349efd333cb33a824f42b370650633f36e112cf8cfd93cc8edde8b37bd9eaf091532a6496622b07f6e3c0a66d
@@ -3,12 +3,12 @@ module Stardust
3
3
 
4
4
  def instance
5
5
  if Rails.env == 'production'
6
- ENV['INSTANCE'].to_sym || :production
6
+ ENV['INSTANCE']&.to_sym || :production
7
7
  else
8
8
  Rails.env.to_sym
9
9
  end
10
10
  end
11
-
11
+
12
12
  def production?
13
13
  instance == :production
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Stardust
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stardust_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Wittenbrook