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 +4 -4
- data/lib/pebblebed/sinatra.rb +8 -0
- data/lib/pebblebed/version.rb +1 -1
- data/pebblebed.gemspec +2 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efe8248fdca70674018271af84a92a24df813ce
|
4
|
+
data.tar.gz: 0f028654498a86ad6d1f1f6096e32e3ad9e5c20a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39b833fafaab445ee841880551fc179d933fff9f298d9a8fa5bb439754df46dfeffce8923b49767d66af5626a994f0cbe8209d5f20c1e84c0272cc3ac87dd13e
|
7
|
+
data.tar.gz: 514daa75044474f7f5963daf119abc400c8776f104eb4bddc19a49652ca47ea3db423ca0bdfd705236a8b4960d5110ee4ce5832770dd39561c5304bc30ec8f3b
|
data/lib/pebblebed/sinatra.rb
CHANGED
@@ -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)
|
data/lib/pebblebed/version.rb
CHANGED
data/pebblebed.gemspec
CHANGED
@@ -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'
|
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.
|
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:
|
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:
|
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:
|
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.
|
306
|
+
rubygems_version: 2.2.5
|
293
307
|
signing_key:
|
294
308
|
specification_version: 4
|
295
309
|
summary: Development tools for working with Pebblebed
|