pebblebed 0.3.10 → 0.3.11

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: 322009708cc4f636535fb25db0ea8bdad4a0dcbc
4
- data.tar.gz: 61f9a56fb0800a9a858882eb587397f507ca2576
3
+ metadata.gz: 5efe8248fdca70674018271af84a92a24df813ce
4
+ data.tar.gz: 0f028654498a86ad6d1f1f6096e32e3ad9e5c20a
5
5
  SHA512:
6
- metadata.gz: 4c9dace20f8693ab250c63e878a0ac1e19306aed72d7c7cefb4428a9391e7efe4127386bb90ce9f829ef4b1d89dcc04e0c876ebbfb471fc3cdb652fefe068a4f
7
- data.tar.gz: acb68bf0f7b96e1e4bf138732b17e4ba9fc256862c44010b704e6c69cec6849fb42ee6dbbba4bc2ba871fc995b3179acec37214ca776cc9ab6f8002ea70165f6
6
+ metadata.gz: 39b833fafaab445ee841880551fc179d933fff9f298d9a8fa5bb439754df46dfeffce8923b49767d66af5626a994f0cbe8209d5f20c1e84c0272cc3ac87dd13e
7
+ data.tar.gz: 514daa75044474f7f5963daf119abc400c8776f104eb4bddc19a49652ca47ea3db423ca0bdfd705236a8b4960d5110ee4ce5832770dd39561c5304bc30ec8f3b
@@ -125,6 +125,14 @@ module Sinatra
125
125
 
126
126
  def self.registered(app)
127
127
  app.helpers(Sinatra::Pebblebed::Helpers)
128
+ app.before do
129
+ @_start_time = AbsoluteTime.now
130
+ end
131
+ app.after do
132
+ if (start_time = @_start_time)
133
+ headers 'X-Timing' => ((AbsoluteTime.now - start_time) * 1000).to_i.to_s
134
+ end
135
+ end
128
136
  end
129
137
 
130
138
  def declare_pebbles(&block)
@@ -1,3 +1,3 @@
1
1
  module Pebblebed
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.add_runtime_dependency "pathbuilder"
35
35
  s.add_runtime_dependency "nokogiri"
36
36
  s.add_runtime_dependency 'activesupport', '~> 4.0.13'
37
- s.add_runtime_dependency 'bunny', '~> 1.7.1'
37
+ s.add_runtime_dependency 'bunny'
38
+ s.add_runtime_dependency 'absolute_time'
38
39
 
39
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pebblebed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-27 00:00:00.000000000 Z
12
+ date: 2017-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -211,16 +211,30 @@ dependencies:
211
211
  name: bunny
212
212
  requirement: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - "~>"
214
+ - - ">="
215
215
  - !ruby/object:Gem::Version
216
- version: 1.7.1
216
+ version: '0'
217
217
  type: :runtime
218
218
  prerelease: false
219
219
  version_requirements: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - "~>"
221
+ - - ">="
222
222
  - !ruby/object:Gem::Version
223
- version: 1.7.1
223
+ version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: absolute_time
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ type: :runtime
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
224
238
  description: Development tools for working with Pebblebed
225
239
  email:
226
240
  - katrina@bengler.no
@@ -289,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
303
  version: '0'
290
304
  requirements: []
291
305
  rubyforge_project: pebblebed
292
- rubygems_version: 2.4.5.1
306
+ rubygems_version: 2.2.5
293
307
  signing_key:
294
308
  specification_version: 4
295
309
  summary: Development tools for working with Pebblebed