request_recorder 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/Readme.md +4 -1
- data/lib/request_recorder/frontend.rb +3 -1
- data/lib/request_recorder/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
|
@@ -32,7 +32,10 @@ Chrome console
|
|
|
32
32
|
Web-frontend
|
|
33
33
|
========
|
|
34
34
|
(needs `:frontend_auth`)
|
|
35
|
-
|
|
35
|
+
|
|
36
|
+

|
|
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}'>")
|
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.
|
|
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-
|
|
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:
|
|
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:
|
|
115
|
+
hash: 1774609380025706584
|
|
116
116
|
requirements: []
|
|
117
117
|
rubyforge_project:
|
|
118
118
|
rubygems_version: 1.8.25
|