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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmMzMzI1NjY3NDYxZmZhYjc4ZGZhMzVmODFjNTQ0NjlmNWIzMTQ5ZA==
4
+ ZTQ3ZjMwYWU4ZDg2ZTcwMGVkYmZjZTYxNzY2OGM0ODAyM2YzMjk0OA==
5
5
  data.tar.gz: !binary |-
6
- YzJiOTE1MTJhMDU0N2I5Y2M2ODUzN2MxNzYzYzQ0NjI0MTg5YjU5Ng==
6
+ NjdlMjQ4NmFlNTYxNmE0NTE5YTFmYzE2YjViMGFiNDkwY2NmYzZmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTJmYzY3NWM0NzBjMzk5MjdmYTkxYmMyZGEyYjAwOWNhYjM4OTAxYTgwMTM1
10
- M2FjZTIwM2NmMTNhZjg4Mjk3YzI2NWMxYTM5YjljNmY0ZTMzNDFmZmVhZjU3
11
- NmNkZWNjODk3Y2QyOTI5YmM4YjYwMzY3ZGMzYjFiMmNhMGM0YTM=
9
+ MDkxYWY3NWNhYTVjNzNiZTk3MTc3ODYzNTE4ZDk1NjI2ZDE4YTk3YzcwNzUz
10
+ ODc4ZWRmOTU4ODg2MmEwNTAzNTU5M2VkN2JhYjdiNWNjOWFhOThlNDVhMWZl
11
+ MWJhNzUwMTZjOTA4ODM0YzNmZGRmMTk2YjBkNjkyNmU2ZTZmZmI=
12
12
  data.tar.gz: !binary |-
13
- MDkzODg2YTkyMzM1MTNiZDIyYjg3OWVlMzNkMjQ2NWIzMjc0OWVlMTgxNWMy
14
- MjZiNDExNjQwZTAzNWZhMTNmNjE4NGM3ZDJlY2VjY2YxNjFjOGE0NGEzMWY5
15
- YzJmMmJmNWQ2OGExYTJlNGZiMTliNDU3NzU5YWU4MWVmMGIwMjQ=
13
+ ZWEyNTljMjBhNWZiYWJlYzIwNGI4ZDE4MWI0ODdhNDgyZDU1MmFlZWM4MmJi
14
+ ZWYyZTMwZGY5MzM0YzFhZGJlMDNlNzQyZGVlOGVkMWE4MmUyMzJiMjhjMmVk
15
+ NjU4OTdlMjZlYTdkMzE3MWI4ODA1NzcxNDA1OGIzZGRiMTFhZDE=
@@ -1,7 +1,7 @@
1
1
  module Lookout
2
2
  module Rack
3
3
  module Utils
4
- VERSION = "3.1.0"
4
+ VERSION = "3.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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.0'
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"
@@ -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
- allow_any_instance_of(Lookout::Rack::Utils::Log).to receive(:warn)
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.1.0.12
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-04-24 00:00:00.000000000 Z
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.0
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.0
138
+ version: '1.5'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rack-graphite
141
141
  requirement: !ruby/object:Gem::Requirement