rack-timestamp 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/rack/timestamp.rb +1 -1
- data/lib/rack/timestamp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e21eac0d0c156d5f7dddbec7de9a8c3c7fe090d
|
4
|
+
data.tar.gz: 25a4816fa207bd79dadd29bfe410a1449db4a089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d79752f9a590869c1296e4e814f044fab5b1b10adda9a0768b6b2de7623479dca0b498ce1f8ebe631079e66482c12068cd4b546d1534d033553777be112800c
|
7
|
+
data.tar.gz: f4f3ee96d54d1a03bf7520b8a3d741d0a3117e7353cfe8c0d580a103725e9c62e99cfb9b89629873cb49d0c97da689944fa2da9de58aecac6c23d8fa90eba816
|
data/README.md
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/mchaisse/rack-timestamp.svg?branch=master)](https://travis-ci.org/mchaisse/rack-timestamp) [![Dependency Status](https://gemnasium.com/badges/github.com/mchaisse/rack-timestamp.svg)](https://gemnasium.com/github.com/mchaisse/rack-timestamp) [![Code Climate](https://codeclimate.com/github/mchaisse/rack-timestamp/badges/gpa.svg)](https://codeclimate.com/github/mchaisse/rack-timestamp) [![Test Coverage](https://codeclimate.com/github/mchaisse/rack-timestamp/badges/coverage.svg)](https://codeclimate.com/github/mchaisse/rack-timestamp/coverage)
|
4
4
|
|
5
|
-
|
5
|
+
[Rack::Timestamp](https://rubygems.org/gems/rack-timestamp) adds a timestamp to the Rack environment. By using this middleware at the top of the stack, it is usefull to **know exactly when the request has been processed by the server**. It will prevent `Time.now` to be spoiled by the execution time of the other middlewares and/or code within controllers/models/libs...
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'rack-timestamp', '~> 1.
|
12
|
+
gem 'rack-timestamp', '~> 1.1'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -32,7 +32,7 @@ Then in your app:
|
|
32
32
|
|
33
33
|
```ruby
|
34
34
|
puts env['rack.timestamp']
|
35
|
-
=>
|
35
|
+
=> "Sun, 28 Aug 2016 04:19:34 GMT"
|
36
36
|
```
|
37
37
|
|
38
38
|
## Running tests
|
data/lib/rack/timestamp.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-timestamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Chaisse-Leal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|