rapnd-mikec54088 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gem "redis", "~> 2.2.2", :require => ["redis/connection/hiredis", "redis"]
5
5
  gem 'activesupport'
6
6
  gem 'daemons', '1.1.6'
7
7
  gem 'i18n'
8
- gem 'airbrake'
9
8
 
10
9
  group :development do
11
10
  gem 'mocha'
data/Gemfile.lock CHANGED
@@ -2,10 +2,6 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  activesupport (3.0.0)
5
- airbrake (3.0.9)
6
- activesupport
7
- builder
8
- builder (3.0.0)
9
5
  daemons (1.1.6)
10
6
  diff-lcs (1.1.3)
11
7
  git (1.2.5)
@@ -35,7 +31,6 @@ PLATFORMS
35
31
 
36
32
  DEPENDENCIES
37
33
  activesupport
38
- airbrake
39
34
  bundler
40
35
  daemons (= 1.1.6)
41
36
  hiredis (~> 0.4.4)
data/README.markdown CHANGED
@@ -18,7 +18,6 @@ Usage: rapnd start [options]
18
18
  --queue=OPTIONAL Name of the redis queue
19
19
  --foreground Run in the foreground
20
20
  --dir=OPTIONAL Directory to start in
21
- --airbrake=OPTIONAL Airbrake API key
22
21
  --help Show help
23
22
  ```
24
23
 
data/bin/rapnd CHANGED
@@ -53,10 +53,6 @@ OptionParser.new do |opts|
53
53
  options[:dir] = dir
54
54
  end
55
55
 
56
- opts.on("--airbrake=OPTIONAL", "Airbrake API key") do |airbrake|
57
- options[:airbrake] = airbrake
58
- end
59
-
60
56
  opts.on('--help', 'Show help') do |help|
61
57
  puts opts
62
58
  end
data/lib/rapnd/daemon.rb CHANGED
@@ -4,12 +4,11 @@ require 'socket'
4
4
  require 'active_support/ordered_hash'
5
5
  require 'active_support/json'
6
6
  require 'base64'
7
- require 'airbrake'
8
7
  require 'logger'
9
8
 
10
9
  module Rapnd
11
10
  class Daemon
12
- attr_accessor :redis, :host, :apple, :cert, :queue, :connected, :logger, :airbrake
11
+ attr_accessor :redis, :host, :apple, :cert, :queue, :connected, :logger
13
12
 
14
13
  def initialize(options = {})
15
14
  options[:redis_host] ||= 'localhost'
@@ -19,8 +18,6 @@ module Rapnd
19
18
  options[:password] ||= ''
20
19
  raise 'No cert provided!' unless options[:cert]
21
20
 
22
- Airbrake.configure { |config| config.api_key = options[:airbrake]; @airbrake = true; } if options[:airbrake]
23
-
24
21
  redis_options = { :host => options[:redis_host], :port => options[:redis_port] }
25
22
  redis_options[:password] = options[:redis_password] if options.has_key?(:redis_password)
26
23
 
@@ -69,7 +66,6 @@ module Rapnd
69
66
  @logger.info "Trying again for: #{notification.json_payload}"
70
67
  self.apple.write(notification.to_bytes)
71
68
  end
72
- Airbrake.notify(e, {:environment_name => self.queue }) if @airbrake
73
69
  @logger.error "Encountered error: #{e}"
74
70
  end
75
71
  end
data/rapnd.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rapnd-mikec54088"
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
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"]
@@ -54,7 +54,6 @@ Gem::Specification.new do |s|
54
54
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
55
55
  s.add_runtime_dependency(%q<daemons>, ["= 1.1.6"])
56
56
  s.add_runtime_dependency(%q<i18n>, [">= 0"])
57
- s.add_runtime_dependency(%q<airbrake>, [">= 0"])
58
57
  s.add_development_dependency(%q<mocha>, [">= 0"])
59
58
  s.add_development_dependency(%q<rspec>, [">= 0"])
60
59
  s.add_development_dependency(%q<bundler>, [">= 0"])
@@ -66,7 +65,6 @@ Gem::Specification.new do |s|
66
65
  s.add_dependency(%q<activesupport>, [">= 0"])
67
66
  s.add_dependency(%q<daemons>, ["= 1.1.6"])
68
67
  s.add_dependency(%q<i18n>, [">= 0"])
69
- s.add_dependency(%q<airbrake>, [">= 0"])
70
68
  s.add_dependency(%q<mocha>, [">= 0"])
71
69
  s.add_dependency(%q<rspec>, [">= 0"])
72
70
  s.add_dependency(%q<bundler>, [">= 0"])
@@ -79,7 +77,6 @@ Gem::Specification.new do |s|
79
77
  s.add_dependency(%q<activesupport>, [">= 0"])
80
78
  s.add_dependency(%q<daemons>, ["= 1.1.6"])
81
79
  s.add_dependency(%q<i18n>, [">= 0"])
82
- s.add_dependency(%q<airbrake>, [">= 0"])
83
80
  s.add_dependency(%q<mocha>, [">= 0"])
84
81
  s.add_dependency(%q<rspec>, [">= 0"])
85
82
  s.add_dependency(%q<bundler>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapnd-mikec54088
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hiredis
16
- requirement: &70170337333900 !ruby/object:Gem::Requirement
16
+ requirement: &70169986452380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70170337333900
24
+ version_requirements: *70169986452380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redis
27
- requirement: &70170337333280 !ruby/object:Gem::Requirement
27
+ requirement: &70169986450580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.2.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70170337333280
35
+ version_requirements: *70169986450580
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
- requirement: &70170337332720 !ruby/object:Gem::Requirement
38
+ requirement: &70169986449960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70170337332720
46
+ version_requirements: *70169986449960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: daemons
49
- requirement: &70170337325420 !ruby/object:Gem::Requirement
49
+ requirement: &70169986449280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.6
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70170337325420
57
+ version_requirements: *70169986449280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: i18n
60
- requirement: &70170337324840 !ruby/object:Gem::Requirement
60
+ requirement: &70169986448460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,21 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70170337324840
69
- - !ruby/object:Gem::Dependency
70
- name: airbrake
71
- requirement: &70170337324220 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: *70170337324220
68
+ version_requirements: *70169986448460
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: mocha
82
- requirement: &70170337323660 !ruby/object:Gem::Requirement
71
+ requirement: &70169986447560 !ruby/object:Gem::Requirement
83
72
  none: false
84
73
  requirements:
85
74
  - - ! '>='
@@ -87,10 +76,10 @@ dependencies:
87
76
  version: '0'
88
77
  type: :development
89
78
  prerelease: false
90
- version_requirements: *70170337323660
79
+ version_requirements: *70169986447560
91
80
  - !ruby/object:Gem::Dependency
92
81
  name: rspec
93
- requirement: &70170337323060 !ruby/object:Gem::Requirement
82
+ requirement: &70169986446900 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ! '>='
@@ -98,10 +87,10 @@ dependencies:
98
87
  version: '0'
99
88
  type: :development
100
89
  prerelease: false
101
- version_requirements: *70170337323060
90
+ version_requirements: *70169986446900
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: bundler
104
- requirement: &70170337322400 !ruby/object:Gem::Requirement
93
+ requirement: &70169986446340 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
@@ -109,10 +98,10 @@ dependencies:
109
98
  version: '0'
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *70170337322400
101
+ version_requirements: *70169986446340
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: jeweler
115
- requirement: &70170337321720 !ruby/object:Gem::Requirement
104
+ requirement: &70169986445700 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
@@ -120,10 +109,10 @@ dependencies:
120
109
  version: '0'
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *70170337321720
112
+ version_requirements: *70169986445700
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: rcov
126
- requirement: &70170337321020 !ruby/object:Gem::Requirement
115
+ requirement: &70169986445080 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
@@ -131,7 +120,7 @@ dependencies:
131
120
  version: '0'
132
121
  type: :development
133
122
  prerelease: false
134
- version_requirements: *70170337321020
123
+ version_requirements: *70169986445080
135
124
  description: redis APN daemon
136
125
  email: veraticus@gmail.com
137
126
  executables: