macmillan-utils 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ceb6f071e4d8123ba9f25db12896061d91c29e
4
- data.tar.gz: 4d7ab8418d0eaaac90998dd520e50168edfed0d0
3
+ metadata.gz: fb22ff44444f327f1ad8b6b86fbf0a5459c8dbe5
4
+ data.tar.gz: e4dc24cc3545a2f066a144ffe0b2ac03419d3d7c
5
5
  SHA512:
6
- metadata.gz: 37047c82fe4ce0365ffb74f5a33f48baedae125e870de5cddf2a4aa81fdb2a7532bccbb01b2f5f6f60c1dcfad21d270ec39157efb9723e4f1014e12f8d69b232
7
- data.tar.gz: fbc64df8dc8a0066bc6116a4ac095f668b1e435d7d758446f4ba0038c1e0a9799cfc0e7dc0290529df90f4652a3bb8aa4a60b033292926b0b7244d44bb536697
6
+ metadata.gz: 2ae1c641868cdcc139a20707fcf37a24de37d3d5ccf9028e6162bc795435106535b6602d7a8dbd79754fe081c5137188f76b036dc9c69158c5e735b5f3e8f5a7
7
+ data.tar.gz: 3ba354ceeaba0b362d21664551e6761aee2567ce309a6a16a8270b2aa066cd630f39421a9efa317338ed0f132b4dfccf1836f0cd20badf0a86aa9408917b9102
@@ -29,5 +29,4 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency 'multi_test'
30
30
  spec.add_dependency 'syslog-logger'
31
31
  spec.add_dependency 'rubocop'
32
- spec.add_dependency 'geminabox'
33
32
  end
@@ -50,7 +50,7 @@ describe Macmillan::Utils::StatsdDecorator do
50
50
 
51
51
  describe '#time' do
52
52
  it 'should require a block' do
53
- expect { subject.time(stat_name) }.to raise_error
53
+ expect { subject.time(stat_name) }.to raise_error(LocalJumpError)
54
54
  end
55
55
 
56
56
  it 'should call the block' do
@@ -44,7 +44,7 @@ describe Macmillan::Utils::StatsdMiddleware do
44
44
  let(:app) { ->(env) { raise } }
45
45
 
46
46
  it 'sends an exception increment to statsd and raises the error' do
47
- expect { subject.call(request.env) }.to raise_error
47
+ expect { subject.call(request.env) }.to raise_error(RuntimeError)
48
48
  expect(statsd_client).to have_received(:increment).with('rack.exception').once
49
49
  end
50
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macmillan-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macmillan Science and Education (New Publsihing Platforms)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -192,20 +192,6 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: geminabox
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :runtime
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
195
  description:
210
196
  email:
211
197
  - npp-developers@macmillan.com
@@ -223,7 +209,6 @@ files:
223
209
  - README.rdoc
224
210
  - Rakefile
225
211
  - lib/macmillan/utils.rb
226
- - lib/macmillan/utils/bundler/gem_helper.rb
227
212
  - lib/macmillan/utils/cucumber/cucumber_defaults.rb
228
213
  - lib/macmillan/utils/cucumber/webmock_helper.rb
229
214
  - lib/macmillan/utils/helper.rb
@@ -1,9 +0,0 @@
1
- module Bundler
2
- class GemHelper
3
- def rubygem_push(path)
4
- gem_server_url = 'http://gems.npgsrv.com'
5
- sh("gem inabox '#{path}' --host #{gem_server_url}")
6
- Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_server_url}"
7
- end
8
- end
9
- end