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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b24fb5f357346d5eaab819a49dae5ce206581db2
4
- data.tar.gz: cc8bc220838d66d841e19a14b99922152dbf49ab
3
+ metadata.gz: 4e21eac0d0c156d5f7dddbec7de9a8c3c7fe090d
4
+ data.tar.gz: 25a4816fa207bd79dadd29bfe410a1449db4a089
5
5
  SHA512:
6
- metadata.gz: 98b8a83f2ce43a8160698c9396645a5628257f28b95ccb0d2d0c48d3c52af5e3ac2a7b9d455525836c420381c8b4c519604e730d682dadaff14481cd66985943
7
- data.tar.gz: de17219836331e92c9f1df0d403a8b0ccf5dc0f60255e296f1005bc11056fe1cc1d340e4b63fb9cbc11699ead3dfe0370bf4207c5898a499d01f107853f9d7fc
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
- `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...
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.0'
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
- => 1472194171.28057
35
+ => "Sun, 28 Aug 2016 04:19:34 GMT"
36
36
  ```
37
37
 
38
38
  ## Running tests
@@ -8,7 +8,7 @@ module Rack
8
8
  end
9
9
 
10
10
  def call(env)
11
- env['rack.timestamp'] = Time.now.to_f
11
+ env['rack.timestamp'] = Time.now.httpdate
12
12
  @app.call(env)
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Timestamp
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
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.0.0
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-26 00:00:00.000000000 Z
11
+ date: 2016-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler