philotic 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/README.md +1 -0
- data/lib/philotic/config.rb +4 -3
- data/lib/philotic/version.rb +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: 8fc7bbaeafcc27c195cf761656c0117348270437
|
4
|
+
data.tar.gz: 4de3077c09b132e54fc496a6a335869c8f6f3a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44bf62b9988b5bee586b11f969d817f8ce1917d756eeafe6948c957ee1c3d190a29621e0ccf06123c7623f5c1891efe889ad421168bf9d4fe727677976f7b2d7
|
7
|
+
data.tar.gz: 75770559bc7db62a2abf23bb478df14d5545d685ff25cb20146eb7859dae0f636739cbe15d21c5df08413a75fbb3292f8c014959959da606924396b491f715fb
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/philotic/config.rb
CHANGED
@@ -13,12 +13,13 @@ module Philotic
|
|
13
13
|
|
14
14
|
DEFAULT_DISABLE_PUBLISH = false
|
15
15
|
|
16
|
+
DEFAULT_RABBIT_SCHEME = 'amqp'
|
16
17
|
DEFAULT_RABBIT_HOST = 'localhost'
|
17
18
|
DEFAULT_RABBIT_PORT = 5672
|
18
19
|
DEFAULT_RABBIT_USER = 'guest'
|
19
20
|
DEFAULT_RABBIT_PASSWORD = 'guest'
|
20
21
|
DEFAULT_RABBIT_VHOST = '%2f' # '/'
|
21
|
-
DEFAULT_RABBIT_URL = "
|
22
|
+
DEFAULT_RABBIT_URL = "#{DEFAULT_RABBIT_SCHEME}://#{DEFAULT_RABBIT_USER}:#{DEFAULT_RABBIT_PASSWORD}@#{DEFAULT_RABBIT_HOST}:#{DEFAULT_RABBIT_PORT}/#{DEFAULT_RABBIT_VHOST}"
|
22
23
|
DEFAULT_EXCHANGE_NAME = 'philotic.headers'
|
23
24
|
DEFAULT_TIMEOUT = 2
|
24
25
|
DEFAULT_ROUTING_KEY = nil
|
@@ -84,7 +85,7 @@ module Philotic
|
|
84
85
|
settings = Bunny::Session.parse_uri(@rabbit_url || defaults[:rabbit_url])
|
85
86
|
settings[:password] = settings.delete(:pass)
|
86
87
|
|
87
|
-
%w[host port user password vhost].each do |setting|
|
88
|
+
%w[scheme host port user password vhost].each do |setting|
|
88
89
|
setting = setting.to_sym
|
89
90
|
current_value = send("rabbit_#{setting}")
|
90
91
|
|
@@ -98,7 +99,7 @@ module Philotic
|
|
98
99
|
|
99
100
|
def self.rabbit_url
|
100
101
|
self.parse_rabbit_uri
|
101
|
-
"
|
102
|
+
"#{rabbit_scheme}://#{rabbit_user}:#{rabbit_password}@#{rabbit_host}:#{rabbit_port}/#{CGI.escape rabbit_vhost}"
|
102
103
|
end
|
103
104
|
|
104
105
|
def load(config)
|
data/lib/philotic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: philotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Keyes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codeclimate-test-reporter
|