lookout-rack-utils 3.1.0.12 → 3.2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/lookout/rack/utils/version.rb +1 -1
- data/lookout-rack-utils.gemspec +1 -1
- data/spec/request_spec.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTQ3ZjMwYWU4ZDg2ZTcwMGVkYmZjZTYxNzY2OGM0ODAyM2YzMjk0OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjdlMjQ4NmFlNTYxNmE0NTE5YTFmYzE2YjViMGFiNDkwY2NmYzZmZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDkxYWY3NWNhYTVjNzNiZTk3MTc3ODYzNTE4ZDk1NjI2ZDE4YTk3YzcwNzUz
|
10
|
+
ODc4ZWRmOTU4ODg2MmEwNTAzNTU5M2VkN2JhYjdiNWNjOWFhOThlNDVhMWZl
|
11
|
+
MWJhNzUwMTZjOTA4ODM0YzNmZGRmMTk2YjBkNjkyNmU2ZTZmZmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWEyNTljMjBhNWZiYWJlYzIwNGI4ZDE4MWI0ODdhNDgyZDU1MmFlZWM4MmJi
|
14
|
+
ZWYyZTMwZGY5MzM0YzFhZGJlMDNlNzQyZGVlOGVkMWE4MmUyMzJiMjhjMmVk
|
15
|
+
NjU4OTdlMjZlYTdkMzE3MWI4ODA1NzcxNDA1OGIzZGRiMTFhZDE=
|
data/lookout-rack-utils.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_runtime_dependency "i18n"
|
30
30
|
|
31
|
-
spec.add_dependency "rack", '~> 1.5
|
31
|
+
spec.add_dependency "rack", '~> 1.5'
|
32
32
|
spec.add_dependency "rack-graphite", '~> 1.1'
|
33
33
|
spec.add_dependency "configatron", '~> 2.13'
|
34
34
|
spec.add_dependency "log4r"
|
data/spec/request_spec.rb
CHANGED
@@ -16,6 +16,7 @@ describe Lookout::Rack::Utils::Request do
|
|
16
16
|
let(:helper) { TestHelper.new }
|
17
17
|
let(:sample_data) {'i am groot'}
|
18
18
|
let(:zipped_sample_data){Zlib::Deflate.deflate(sample_data)}
|
19
|
+
let(:log_instance) { double('Lookout::Rack::Utils::Log') }
|
19
20
|
|
20
21
|
describe '#gunzipped_body' do
|
21
22
|
|
@@ -38,7 +39,8 @@ describe Lookout::Rack::Utils::Request do
|
|
38
39
|
end
|
39
40
|
|
40
41
|
it 'should halt and throw and 400 when we have badly encoded data' do
|
41
|
-
|
42
|
+
allow(Lookout::Rack::Utils::Log).to receive(:instance).and_return(log_instance)
|
43
|
+
expect(log_instance).to receive(:warn)
|
42
44
|
helper.request.body.stub(:read).and_return(sample_data)
|
43
45
|
expect(helper).to receive(:halt).with(400, "{}")
|
44
46
|
helper.gunzipped_body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookout-rack-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.5
|
131
|
+
version: '1.5'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.5
|
138
|
+
version: '1.5'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rack-graphite
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|