culturecode_stagehand 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 80028dbb24f83c131a67022d24ab3c84dc64edb7
4
- data.tar.gz: c307e846e18fafc50f6987e9208b2dd6601d753c
3
+ metadata.gz: 8b8179d6ad93cd085a7295bea6448af7c5486c0a
4
+ data.tar.gz: 0bf2ad0a345d0e838d78992da2f49f88d5a3410e
5
5
  SHA512:
6
- metadata.gz: 8e1f6ceba25e85f6dd598b2b6ce52ca9c36e09af45ed327a7ef56a5799c8a57b2e9d76f2d8aa7d52c32783de0008c78adfc8900847127a15bea19cb6c6d76c32
7
- data.tar.gz: d1c21179ad1014dd99208ca1936ab57306aaa76a6ecb070d3fb4306dd606649afc632f5005972388e767ebfddd5586820a917000f79690507361145dbf66c562
6
+ metadata.gz: 611afcda68917bbfe7366473e4ef6a4d86c4a4fe81679b8cf05d032860d1a91ae9c1109744679e65968a203f6607eba738ae941049f383a27a27c4db654cd76e
7
+ data.tar.gz: b85ff167090f1925b1c9b401675b5a3d6dd1e5a8025b24d40bccb398ed4f26409ac4d7e95535ec98d55bceb162fadc40b38ee631b8a708d6c5a808879ae13fbc
@@ -9,11 +9,11 @@ module Stagehand
9
9
  extend self
10
10
 
11
11
  def staging_connection_name
12
- Rails.configuration.x.stagehand.staging_connection_name || raise(StagingConnectionNameNotSet)
12
+ Rails.configuration.x.stagehand.staging_connection_name || Rails.env.to_sym
13
13
  end
14
14
 
15
15
  def production_connection_name
16
- Rails.configuration.x.stagehand.production_connection_name || raise(ProductionConnectionNameNotSet)
16
+ Rails.configuration.x.stagehand.production_connection_name || Rails.env.to_sym
17
17
  end
18
18
 
19
19
  def ghost_mode?
@@ -26,8 +26,4 @@ module Stagehand
26
26
  staging_connection_name == production_connection_name
27
27
  end
28
28
  end
29
-
30
- # EXCEPTIONS
31
- class StagingConnectionNameNotSet < StandardError; end
32
- class ProductionConnectionNameNotSet < StandardError; end
33
29
  end
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode_stagehand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-07 00:00:00.000000000 Z
12
+ date: 2016-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails