appygram-rails 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/appygram-rails.gemspec +4 -3
- data/lib/appygram-rails/version.rb +1 -1
- data/lib/appygram-rails.rb +15 -4
- metadata +5 -7
- data/lib/appygram-rails/railtie.rb +0 -16
data/appygram-rails.gemspec
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
|
4
|
+
require 'appygram-rails/version'
|
3
5
|
|
4
6
|
Gem::Specification.new do |gem|
|
5
7
|
gem.name = %q{appygram-rails}
|
@@ -11,6 +13,5 @@ Gem::Specification.new do |gem|
|
|
11
13
|
gem.files = Dir['lib/**/*'] + Dir['spec/**/*'] + Dir['spec/**/*'] + Dir['rails/**/*'] + Dir['tasks/**/*'] + Dir['*.rb'] + ["appygram-rails.gemspec"]
|
12
14
|
gem.homepage = %q{http://www.appygram.com/}
|
13
15
|
gem.require_paths = ["lib"]
|
14
|
-
gem.
|
15
|
-
gem.add_dependency 'rack'
|
16
|
+
gem.add_runtime_dependency 'rails'
|
16
17
|
end
|
data/lib/appygram-rails.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
$:.unshift File.dirname(__FILE__)
|
2
|
-
|
3
1
|
require 'appygram-rails/monkeypatches'
|
4
2
|
require 'appygram-rails/catcher'
|
5
3
|
require 'appygram-rails/startup'
|
@@ -17,9 +15,8 @@ require 'appygram-rails/integration/alerter'
|
|
17
15
|
require 'appygram-rails/version'
|
18
16
|
require 'appygram-rails/integration/debug_exceptions'
|
19
17
|
|
20
|
-
require 'appygram-rails/railtie' if defined?(Rails::Railtie)
|
21
|
-
|
22
18
|
module Appygram
|
19
|
+
|
23
20
|
PROTOCOL_VERSION = 5
|
24
21
|
CLIENT_NAME = 'appygram-rails'
|
25
22
|
ENVIRONMENT_FILTER = []
|
@@ -68,4 +65,18 @@ module Appygram
|
|
68
65
|
Thread.current[:appygram_context].merge!(hash)
|
69
66
|
self
|
70
67
|
end
|
68
|
+
|
69
|
+
class Railtie < Rails::Railtie
|
70
|
+
|
71
|
+
initializer "appygram.middleware" do |app|
|
72
|
+
Appygram.logger.info("Loading Appygram #{Appygram::VERSION} for #{Rails::VERSION::STRING}")
|
73
|
+
if defined?(ActionDispatch::DebugExceptions)
|
74
|
+
ActionDispatch::DebugExceptions.send(:include,Appygram::DebugExceptions)
|
75
|
+
else
|
76
|
+
app.config.middleware.use "Rack::RailsAppygram"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
71
82
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appygram-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,8 +12,8 @@ cert_chain: []
|
|
12
12
|
date: 2012-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
15
|
+
name: rails
|
16
|
+
requirement: &70094878265060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70094878265060
|
25
25
|
description: appygram-rails sends exceptions and feedback to the hosted messaging
|
26
26
|
service at http://www.appygram.com
|
27
27
|
email: heittman.rob@gmail.com
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- lib/appygram-rails/log_factory.rb
|
43
43
|
- lib/appygram-rails/monkeypatches.rb
|
44
44
|
- lib/appygram-rails/rack_exception_data.rb
|
45
|
-
- lib/appygram-rails/railtie.rb
|
46
45
|
- lib/appygram-rails/remote.rb
|
47
46
|
- lib/appygram-rails/startup.rb
|
48
47
|
- lib/appygram-rails/version.rb
|
@@ -66,8 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
65
|
- - ! '>='
|
67
66
|
- !ruby/object:Gem::Version
|
68
67
|
version: '0'
|
69
|
-
requirements:
|
70
|
-
- json_pure, json-jruby or json gem required
|
68
|
+
requirements: []
|
71
69
|
rubyforge_project:
|
72
70
|
rubygems_version: 1.8.17
|
73
71
|
signing_key:
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'appygram-rails'
|
2
|
-
require 'rails'
|
3
|
-
|
4
|
-
module Appygram
|
5
|
-
class Railtie < Rails::Railtie
|
6
|
-
|
7
|
-
initializer "appygram.middleware" do |app|
|
8
|
-
Appygram.logger.info("Loading Appygram #{Appygram::VERSION} for #{Rails::VERSION::STRING}")
|
9
|
-
if defined?(ActionDispatch::DebugExceptions)
|
10
|
-
ActionDispatch::DebugExceptions.send(:include,Appygram::DebugExceptions)
|
11
|
-
else
|
12
|
-
app.config.middleware.use "Rack::RailsAppygram"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|