request_recorder 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- request_recorder (0.0.6)
4
+ request_recorder (0.0.7)
5
5
  rack
6
6
 
7
7
  GEM
@@ -10,7 +10,7 @@ module RequestRecorder
10
10
  if id
11
11
  old = read(id)
12
12
  else
13
- id = "#{Time.now.utc.strftime("%Y-%m-%d %H:%M:%S.%L")}_#{Process.pid}"
13
+ id = "#{Time.now.utc.strftime("%Y-%m-%d %H:%M:%S")}_#{rand(1000)}_#{Process.pid}"
14
14
  end
15
15
  @store.write(key(id), "#{old}#{text}")
16
16
  id
@@ -10,7 +10,7 @@ module RequestRecorder
10
10
  if id
11
11
  old = read(id)
12
12
  else
13
- id = "#{Time.now.utc.strftime("%Y-%m-%d %H:%M:%S.%L")}_#{Process.pid}"
13
+ id = "#{Time.now.utc.strftime("%Y-%m-%d %H:%M:%S")}_#{rand(1000)}_#{Process.pid}"
14
14
  end
15
15
  @store.hset(KEY, id, "#{old}#{text}")
16
16
  id
@@ -1,3 +1,3 @@
1
1
  module RequestRecorder
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -39,7 +39,6 @@ shared_examples "a logger" do
39
39
  context "#write" do
40
40
  it "returns a unique id" do
41
41
  old = logger.write(nil, "X")
42
- sleep 0.01
43
42
  old.should_not == logger.write(nil, "X")
44
43
  end
45
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request_recorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: 3828955395049011862
66
+ hash: 3121116752566984075
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements:
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  segments:
74
74
  - 0
75
- hash: 3828955395049011862
75
+ hash: 3121116752566984075
76
76
  requirements: []
77
77
  rubyforge_project:
78
78
  rubygems_version: 1.8.24