request_recorder 0.2.1 → 0.2.2

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.2.1)
4
+ request_recorder (0.2.2)
5
5
  activerecord
6
6
  multi_json
7
7
  rack
data/Readme.md CHANGED
@@ -32,7 +32,10 @@ Chrome console
32
32
  Web-frontend
33
33
  ========
34
34
  (needs `:frontend_auth`)
35
- See the log of all requests in an entire session: `/request_recorder/my_session_name`.
35
+
36
+ ![Frontend](https://dl.dropboxusercontent.com/u/2670385/Web/request_recorder_frontend.png)
37
+
38
+ See the log of **all** requests in the session: `/request_recorder/my_session_name`.
36
39
  This also includes requests that did not get shown in the chrome logger like redirects.
37
40
 
38
41
  Author
@@ -2,7 +2,7 @@ module RequestRecorder
2
2
  class Frontend
3
3
  class << self
4
4
  def render(log)
5
- convert_console_to_html_colors(log).gsub("\n", "<br/>")
5
+ "<html>#{convert_console_to_html_colors(log).gsub("\n", "<br/>")}</html>"
6
6
  end
7
7
 
8
8
  private
@@ -11,8 +11,10 @@ module RequestRecorder
11
11
  string = string.dup
12
12
  {
13
13
  "0" => "inherit",
14
+ "1" => "inherit",
14
15
  "0;1" => "inherit",
15
16
  "4;35;1" => "red",
17
+ "36" => "blue",
16
18
  "4;36;1" => "blue",
17
19
  }.each do |console, html|
18
20
  string.gsub!("\e[#{console}m","</span><span style='color:#{html}'>")
@@ -1,3 +1,3 @@
1
1
  module RequestRecorder
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: 3001746926882152200
106
+ hash: 1774609380025706584
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 3001746926882152200
115
+ hash: 1774609380025706584
116
116
  requirements: []
117
117
  rubyforge_project:
118
118
  rubygems_version: 1.8.25