appygram 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/appygram/controller_exception_data.rb +11 -1
- data/lib/appygram/version.rb +1 -1
- metadata +5 -4
@@ -14,7 +14,7 @@ module Appygram
|
|
14
14
|
|
15
15
|
def extra_stuff
|
16
16
|
return {} if @request.nil?
|
17
|
-
{
|
17
|
+
e = {
|
18
18
|
'request' => {
|
19
19
|
'url' => (@request.respond_to?(:url) ? @request.url : "#{@request.protocol}#{@request.host}#{@request.request_uri}"),
|
20
20
|
'controller' => @controller.class.to_s,
|
@@ -26,6 +26,16 @@ module Appygram
|
|
26
26
|
'session' => self.class.sanitize_session(@request)
|
27
27
|
}
|
28
28
|
}
|
29
|
+
if @controller.respond_to?(:current_user)
|
30
|
+
cu = @controller.current_user
|
31
|
+
if cu.email
|
32
|
+
e['request']['current_user'] = {
|
33
|
+
'id' => cu.id,
|
34
|
+
'email'=> cu.email
|
35
|
+
}
|
36
|
+
end
|
37
|
+
end
|
38
|
+
return e
|
29
39
|
end
|
30
40
|
|
31
41
|
def filter_hash(keys_to_filter, hash)
|
data/lib/appygram/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appygram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70171608801540 !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: *70171608801540
|
25
25
|
description: Appygram is the Ruby gem for communicating with http://appygram.com (hosted
|
26
26
|
messaging service). It supports an exception reporting mechanism similar to http://exceptional.io,
|
27
27
|
and this Ruby gem, forked from the Exceptional gem, emulates Exceptional functionality.
|
@@ -80,3 +80,4 @@ signing_key:
|
|
80
80
|
specification_version: 3
|
81
81
|
summary: appygram is a hosted service for sending messages from mobile/web apps
|
82
82
|
test_files: []
|
83
|
+
has_rdoc:
|