glitchy_gem 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile.lock +17 -0
- data/glitchy_gem.gemspec +1 -0
- data/lib/glitchy_gem/glitch.rb +10 -0
- data/lib/glitchy_gem/version.rb +1 -1
- metadata +22 -15
data/.travis.yml
ADDED
data/Gemfile.lock
ADDED
data/glitchy_gem.gemspec
CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.rubyforge_project = "glitchy_gem"
|
16
16
|
|
17
17
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
18
|
+
s.add_dependency "rake"
|
18
19
|
|
19
20
|
s.files = `git ls-files`.split("\n")
|
20
21
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
data/lib/glitchy_gem/glitch.rb
CHANGED
@@ -6,6 +6,7 @@ module GlitchyGem
|
|
6
6
|
@exception = e
|
7
7
|
|
8
8
|
params = options[:params] || @rack_env['action_dispatch.request.parameters'] || rack_env(:params)
|
9
|
+
params = default_params.merge(params)
|
9
10
|
url = options[:url] || rack_env(:url)
|
10
11
|
controller = options[:controller] || params['controller']
|
11
12
|
action = options[:action] || params['action']
|
@@ -61,10 +62,19 @@ module GlitchyGem
|
|
61
62
|
|
62
63
|
def rack_env(method)
|
63
64
|
rack_request.send(method) if rack_request
|
65
|
+
rescue
|
66
|
+
nil
|
64
67
|
end
|
65
68
|
|
66
69
|
def rack_request
|
67
70
|
@rack_request ||= ::Rack::Request.new(@rack_env)
|
68
71
|
end
|
72
|
+
|
73
|
+
def default_params
|
74
|
+
{
|
75
|
+
'controller' => '',
|
76
|
+
'action' => ''
|
77
|
+
}
|
78
|
+
end
|
69
79
|
end
|
70
80
|
end
|
data/lib/glitchy_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glitchy_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 15
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
8
|
+
- 1
|
9
|
+
version: 0.4.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- GlitchyApp
|
@@ -15,25 +14,35 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2011-
|
17
|
+
date: 2011-08-15 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
22
|
requirements:
|
27
23
|
- - ">="
|
28
24
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
25
|
segments:
|
31
26
|
- 1
|
32
27
|
- 0
|
33
28
|
- 0
|
34
29
|
version: 1.0.0
|
30
|
+
requirement: *id001
|
31
|
+
name: bundler
|
32
|
+
prerelease: false
|
35
33
|
type: :development
|
36
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
42
|
+
requirement: *id002
|
43
|
+
name: rake
|
44
|
+
prerelease: false
|
45
|
+
type: :runtime
|
37
46
|
description: Track your application errors with GlitchyApp and search through them.
|
38
47
|
email:
|
39
48
|
- support@glitchygem.com
|
@@ -45,7 +54,9 @@ extra_rdoc_files: []
|
|
45
54
|
|
46
55
|
files:
|
47
56
|
- .gitignore
|
57
|
+
- .travis.yml
|
48
58
|
- Gemfile
|
59
|
+
- Gemfile.lock
|
49
60
|
- README.md
|
50
61
|
- Rakefile
|
51
62
|
- glitchy_gem.gemspec
|
@@ -69,20 +80,16 @@ rdoc_options: []
|
|
69
80
|
require_paths:
|
70
81
|
- lib
|
71
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
83
|
requirements:
|
74
84
|
- - ">="
|
75
85
|
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
86
|
segments:
|
78
87
|
- 0
|
79
88
|
version: "0"
|
80
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
90
|
requirements:
|
83
91
|
- - ">="
|
84
92
|
- !ruby/object:Gem::Version
|
85
|
-
hash: 23
|
86
93
|
segments:
|
87
94
|
- 1
|
88
95
|
- 3
|
@@ -91,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
98
|
requirements: []
|
92
99
|
|
93
100
|
rubyforge_project: glitchy_gem
|
94
|
-
rubygems_version: 1.3.
|
101
|
+
rubygems_version: 1.3.6
|
95
102
|
signing_key:
|
96
103
|
specification_version: 3
|
97
104
|
summary: The gem to enable you to track your application errors with GlitchApp
|