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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39317c5b0270166a99673c49acea5ba95e6ec879
4
- data.tar.gz: fd88d9409ae49657f4bfaab67b4ac76663900c31
3
+ metadata.gz: 8fc7bbaeafcc27c195cf761656c0117348270437
4
+ data.tar.gz: 4de3077c09b132e54fc496a6a335869c8f6f3a6a
5
5
  SHA512:
6
- metadata.gz: a2d82f2ffdcc8f1f885ae3bd4919086d274dcde8dfc3c60e0d9fec9ea6e9f75bce9312b862812b130fce9cd3581d1886a6233f3b594b84bbf3c340c55ac8c014
7
- data.tar.gz: d42cb0239b668e5a737f575fcb551d149f2bc2f6d2654158959b7377c226428e01e8b9f81c8b1425a6a54e347c16ddba9da022062edd095f8cf445770edb9820
6
+ metadata.gz: 44bf62b9988b5bee586b11f969d817f8ce1917d756eeafe6948c957ee1c3d190a29621e0ccf06123c7623f5c1891efe889ad421168bf9d4fe727677976f7b2d7
7
+ data.tar.gz: 75770559bc7db62a2abf23bb478df14d5545d685ff25cb20146eb7859dae0f636739cbe15d21c5df08413a75fbb3292f8c014959959da606924396b491f715fb
data/.travis.yml CHANGED
@@ -3,6 +3,7 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
+ - rbx-2.2.10
6
7
  - jruby-19mode
7
8
  - ruby-head
8
9
  - jruby-head
data/README.md CHANGED
@@ -41,6 +41,7 @@ end
41
41
  * 1.9.3
42
42
  * 2.0.0
43
43
  * 2.1.0
44
+ * rbx-2.2.10
44
45
  * jruby-19mode
45
46
  * ruby-head
46
47
  * jruby-head
@@ -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 = "amqp://#{DEFAULT_RABBIT_USER}:#{DEFAULT_RABBIT_PASSWORD}@#{DEFAULT_RABBIT_HOST}:#{DEFAULT_RABBIT_PORT}/#{DEFAULT_RABBIT_VHOST}"
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
- "amqp://#{rabbit_user}:#{rabbit_password}@#{rabbit_host}:#{rabbit_port}/#{CGI.escape rabbit_vhost}"
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)
@@ -1,3 +1,3 @@
1
1
  module Philotic
2
- VERSION = '0.1.3'
2
+ VERSION = '0.2.0'
3
3
  end
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.1.3
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-18 00:00:00.000000000 Z
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