rapnd 0.4.1 → 0.5.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.5.0
data/bin/rapnd CHANGED
@@ -28,6 +28,10 @@ OptionParser.new do |opts|
28
28
  opts.on("--redis_port=OPTIONAL", "Redis port") do |port|
29
29
  options[:redis_port] = port
30
30
  end
31
+
32
+ opts.on("--redis_password=OPTIONAL", "Redis password") do |redis_password|
33
+ options[:redis_password] = redis_password
34
+ end
31
35
 
32
36
  opts.on("--environment=OPTIONAL", "Specify sandbox or production") do |env|
33
37
  if env == 'production'
@@ -30,5 +30,6 @@ module Rapnd
30
30
 
31
31
  option :redis_host, :default => 'localhost'
32
32
  option :redis_port, :default => 6879
33
+ option :redis_password
33
34
  end
34
35
  end
@@ -21,7 +21,10 @@ module Rapnd
21
21
 
22
22
  Airbrake.configure { |config| config.api_key = options[:airbrake]; @airbrake = true; } if options[:airbrake]
23
23
 
24
- @redis = Redis.new(:host => options[:redis_host], :port => options[:redis_port])
24
+ redis_options = { :host => options[:redis_host], :port => options[:redis_port] }
25
+ redis_options[:password] = options[:redis_password] if options.has_key?(:redis_password)
26
+
27
+ @redis = Redis.new(redis_options)
25
28
  @queue = options[:queue]
26
29
  @cert = options[:cert]
27
30
  @host = options[:host]
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rapnd"
8
- s.version = "0.4.1"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Symonds"]
12
- s.date = "2012-05-04"
12
+ s.date = "2012-05-22"
13
13
  s.description = "redis APN daemon"
14
14
  s.email = "veraticus@gmail.com"
15
15
  s.executables = ["rapnd"]
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.homepage = "http://github.com/Veraticus/rapnd"
43
43
  s.licenses = ["MIT"]
44
44
  s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.24"
45
+ s.rubygems_version = "1.8.23"
46
46
  s.summary = "redis APN daemon"
47
47
 
48
48
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapnd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-04 00:00:00.000000000 Z
12
+ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis
@@ -231,7 +231,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
231
  version: '0'
232
232
  segments:
233
233
  - 0
234
- hash: -3943854128204889530
234
+ hash: -3557786820524646224
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  none: false
237
237
  requirements:
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  requirements: []
242
242
  rubyforge_project:
243
- rubygems_version: 1.8.24
243
+ rubygems_version: 1.8.23
244
244
  signing_key:
245
245
  specification_version: 3
246
246
  summary: redis APN daemon