peritus_private_pub 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peritus_private_pub.rb +4 -2
- data/peritus_private_pub.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3986ebb3fe40ad6c42661a182a8dc834306b1544
|
4
|
+
data.tar.gz: b97a0df31283a2cd7db2ae9b787dd452a75ba0ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc35b10b04ac496bb1d9525f4ac2590f9aa3f03233c4542f9b0c4d0a31ef1531da733c8c0af9d4bd786681d889cd7ec106e75acd4cbc6701fcd620197e3116e2
|
7
|
+
data.tar.gz: 3a6b1e8d2e5a0abc1fd296fa8e559a9beaa8966a3e15f0c8a893e783ba275287d69f09c76b64c25fce35030adeb9fa2f274b2f4e91e5552f8406aa79dd2588c8
|
data/lib/peritus_private_pub.rb
CHANGED
@@ -23,8 +23,10 @@ module PrivatePub
|
|
23
23
|
yaml = YAML.load(ERB.new(File.read(filename)).result)[environment.to_s]
|
24
24
|
raise ArgumentError, "The #{environment} environment does not exist in #{filename}" if yaml.nil?
|
25
25
|
yaml.each { |k, v| config[k.to_sym] = v }
|
26
|
-
|
27
|
-
|
26
|
+
unless environment.to_s == 'test'
|
27
|
+
url = URI.parse(config[:server])
|
28
|
+
raise Error, "No host defined. Ensure LOCAL_IP is defined" unless url.host
|
29
|
+
end
|
28
30
|
end
|
29
31
|
|
30
32
|
# Publish the given data to a specific channel. This ends up sending
|
data/peritus_private_pub.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peritus_private_pub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler DeWitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faye
|