squash_ruby 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +3 -3
- data/lib/squash/ruby.rb +5 -3
- data/lib/squash_ruby.rb +15 -0
- metadata +33 -80
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 1af4ce93466616f0fecfd2d26f22f548db6701a9ccdcf57aa3f766f84933880268d7212ade6ffab8a19e239c9f60a8c6786237be100677eb9ec814fa586b24ce
|
4
|
+
metadata.gz: 755f59365618372f00d0bb29e8f620a6b2062fd99023de5bf814831ab417a388d5b64ef6b6e01d6d29b63e55aaeb1d2f2fda8cbaf09405725965cfbace10fe9f
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: 380fc510872a2150e01f272ea754d3cf591e15a5
|
7
|
+
metadata.gz: 72eefccd008d88bc99ff8abffb1bd462a8b8ad28
|
data/README.md
CHANGED
@@ -33,9 +33,9 @@ Usage
|
|
33
33
|
-----
|
34
34
|
|
35
35
|
Add the Squash client to your Gemfile with
|
36
|
-
`gem 'squash_ruby'
|
37
|
-
|
38
|
-
|
36
|
+
`gem 'squash_ruby'`. Before you can use Squash, you must configure it (see
|
37
|
+
**Configuration** below). At a minimum, you must specify the API host and which
|
38
|
+
project you are recording exceptions for:
|
39
39
|
|
40
40
|
```` ruby
|
41
41
|
Squash::Ruby.configure :api_key => 'YOUR_API_KEY',
|
data/lib/squash/ruby.rb
CHANGED
@@ -63,9 +63,11 @@ module Squash
|
|
63
63
|
# {.configure}).
|
64
64
|
|
65
65
|
def self.notify(exception, user_data={})
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
unless configuration(:disabled)
|
67
|
+
raise "The :api_key configuration is required" unless configuration(:api_key)
|
68
|
+
raise "The :api_host configuration is required" unless configuration(:api_host)
|
69
|
+
raise "The :environment configuration is required" unless configuration(:environment)
|
70
|
+
end
|
69
71
|
|
70
72
|
begin
|
71
73
|
blob = self.generate_exception(exception, user_data)
|
data/lib/squash_ruby.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2013 Square Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'squash/ruby'
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squash_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 2
|
10
|
-
version: 1.2.2
|
4
|
+
version: 1.2.3
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Tim Morgan
|
@@ -15,93 +9,61 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2013-
|
12
|
+
date: 2013-11-26 00:00:00 Z
|
19
13
|
dependencies:
|
20
14
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
15
|
+
type: :runtime
|
22
16
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
17
|
requirements:
|
25
|
-
-
|
18
|
+
- &id002
|
19
|
+
- ">="
|
26
20
|
- !ruby/object:Gem::Version
|
27
|
-
hash: 3
|
28
|
-
segments:
|
29
|
-
- 0
|
30
21
|
version: "0"
|
22
|
+
name: json
|
31
23
|
prerelease: false
|
32
|
-
type: :runtime
|
33
24
|
requirement: *id001
|
34
25
|
- !ruby/object:Gem::Dependency
|
35
|
-
name: rspec
|
36
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
hash: 3
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
version: "0"
|
45
|
-
prerelease: false
|
46
26
|
type: :development
|
47
|
-
requirement: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: fakefs
|
50
27
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
28
|
requirements:
|
53
|
-
-
|
54
|
-
|
55
|
-
hash: 3
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
version: "0"
|
29
|
+
- *id002
|
30
|
+
name: rspec
|
59
31
|
prerelease: false
|
60
|
-
type: :development
|
61
32
|
requirement: *id003
|
62
33
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
34
|
+
type: :development
|
64
35
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
36
|
requirements:
|
67
|
-
-
|
68
|
-
|
69
|
-
hash: 3
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
37
|
+
- *id002
|
38
|
+
name: fakefs
|
73
39
|
prerelease: false
|
74
|
-
type: :development
|
75
40
|
requirement: *id004
|
76
41
|
- !ruby/object:Gem::Dependency
|
77
|
-
|
42
|
+
type: :development
|
78
43
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
44
|
requirements:
|
81
|
-
-
|
82
|
-
|
83
|
-
hash: 7
|
84
|
-
segments:
|
85
|
-
- 3
|
86
|
-
- 0
|
87
|
-
version: "3.0"
|
45
|
+
- *id002
|
46
|
+
name: yard
|
88
47
|
prerelease: false
|
89
|
-
type: :development
|
90
48
|
requirement: *id005
|
91
49
|
- !ruby/object:Gem::Dependency
|
92
|
-
|
50
|
+
type: :development
|
93
51
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
52
|
requirements:
|
96
|
-
- -
|
53
|
+
- - <
|
97
54
|
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
|
100
|
-
- 0
|
101
|
-
version: "0"
|
55
|
+
version: "3.0"
|
56
|
+
name: redcarpet
|
102
57
|
prerelease: false
|
103
|
-
type: :development
|
104
58
|
requirement: *id006
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
type: :development
|
61
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- *id002
|
64
|
+
name: jeweler
|
65
|
+
prerelease: false
|
66
|
+
requirement: *id007
|
105
67
|
description: This client library records Ruby exceptions to Squash.
|
106
68
|
email: tim@squareup.com
|
107
69
|
executables: []
|
@@ -116,38 +78,29 @@ files:
|
|
116
78
|
- README.md
|
117
79
|
- lib/squash/ruby.rb
|
118
80
|
- lib/squash/ruby/exception_additions.rb
|
81
|
+
- lib/squash_ruby.rb
|
119
82
|
homepage: http://github.com/SquareSquash/ruby
|
120
83
|
licenses:
|
121
84
|
- Apache 2.0
|
85
|
+
metadata: {}
|
86
|
+
|
122
87
|
post_install_message:
|
123
88
|
rdoc_options: []
|
124
89
|
|
125
90
|
require_paths:
|
126
91
|
- lib
|
127
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
93
|
requirements:
|
130
|
-
-
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
hash: 3
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
version: "0"
|
94
|
+
- *id002
|
136
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
96
|
requirements:
|
139
|
-
-
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
hash: 3
|
142
|
-
segments:
|
143
|
-
- 0
|
144
|
-
version: "0"
|
97
|
+
- *id002
|
145
98
|
requirements: []
|
146
99
|
|
147
100
|
rubyforge_project:
|
148
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.0.11
|
149
102
|
signing_key:
|
150
|
-
specification_version:
|
103
|
+
specification_version: 4
|
151
104
|
summary: Squash client for Ruby projects
|
152
105
|
test_files: []
|
153
106
|
|