request_visualizer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/request_visualizer/version.rb +1 -1
- data/lib/request_visualizer.rb +1 -1
- metadata +36 -51
data/Gemfile.lock
CHANGED
data/lib/request_visualizer.rb
CHANGED
@@ -10,7 +10,7 @@ class RequestVisualizer
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def colorize(string)
|
13
|
-
@@colors ||= [:black_on_cyan, :black_on_magenta, :black_on_yellow, :black_on_green]
|
13
|
+
@@colors ||= [:white_on_black, :white_on_red, :white_on_blue, :black_on_cyan, :black_on_magenta, :black_on_yellow, :black_on_green]
|
14
14
|
@@colorized_before ||= {}
|
15
15
|
@@colorized_before[string] ||= string.send(@@colors.pop || :black_on_white)
|
16
16
|
@@colorized_before[string]
|
metadata
CHANGED
@@ -1,46 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: request_visualizer
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 0.0.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jacob Burkhart
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: colored
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :runtime
|
33
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
34
30
|
description: Rack middleware for visualizing HTTP/JSON requests, and stuff
|
35
|
-
email:
|
31
|
+
email:
|
36
32
|
- jacob@engineyard.com
|
37
33
|
executables: []
|
38
|
-
|
39
34
|
extensions: []
|
40
|
-
|
41
35
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
files:
|
36
|
+
files:
|
44
37
|
- Gemfile
|
45
38
|
- Gemfile.lock
|
46
39
|
- README
|
@@ -49,39 +42,31 @@ files:
|
|
49
42
|
- request_visualizer.gemspec
|
50
43
|
- spec/sample.rb
|
51
44
|
- spec/spec.rb
|
52
|
-
homepage:
|
45
|
+
homepage: ''
|
53
46
|
licenses: []
|
54
|
-
|
55
47
|
post_install_message:
|
56
48
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
49
|
+
require_paths:
|
59
50
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
52
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
- 0
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
58
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
78
63
|
requirements: []
|
79
|
-
|
80
64
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.8.
|
65
|
+
rubygems_version: 1.8.24
|
82
66
|
signing_key:
|
83
67
|
specification_version: 3
|
84
68
|
summary: Rack middleware for visualizing HTTP/JSON requests
|
85
|
-
test_files:
|
69
|
+
test_files:
|
86
70
|
- spec/sample.rb
|
87
71
|
- spec/spec.rb
|
72
|
+
has_rdoc:
|