logical-insight 0.4.5 → 0.4.6
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/README.md +32 -14
- data/Rakefile +8 -2
- data/lib/insight/public/__insight__/insight.js +4 -0
- metadata +26 -12
data/README.md
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
Insight
|
2
2
|
=========
|
3
3
|
|
4
|
-
Insight began life as an LRDesign fork of Rack::Bug by brynary. We started a
|
4
|
+
Insight began life as an LRDesign fork of Rack::Bug by brynary. We started a
|
5
|
+
fork because, at the time, the main project wasn't making progress on Rails 3
|
6
|
+
support. Since then we've rewritten a lot of the code to make it more modular,
|
7
|
+
easier to extend, and to store information about multiple requests so you can
|
8
|
+
use it to inspect your AJAX requests (or any past request), not just previous
|
9
|
+
page loads.
|
5
10
|
|
6
|
-
Having made really significant architectural changes, we'll be keeping Insight
|
11
|
+
Having made really significant architectural changes, we'll be keeping Insight
|
12
|
+
a separate project for the forseeable future.
|
7
13
|
|
8
|
-
* Forked From: [
|
14
|
+
* Forked From: [rack-bug](http://github.com/brynary/rack-bug)
|
15
|
+
|
16
|
+
* [Full documentation](http://lrdesign.github.com/logical-insight/)
|
9
17
|
|
10
18
|
Description
|
11
19
|
-----------
|
@@ -53,14 +61,19 @@ In config/environments/development.rb, add:
|
|
53
61
|
config.middleware.use "Insight::App",
|
54
62
|
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring"
|
55
63
|
|
56
|
-
Any environment with Insight loaded will have a link to "Insight" added to as
|
64
|
+
Any environment with Insight loaded will have a link to "Insight" added to as
|
65
|
+
the last child of BODY to normal responses. Clicking that link will load the
|
66
|
+
toolbar. It's set with an id of "logical-insight-enabler", so it can be styled
|
67
|
+
to go somewhere more noticeable. E.g. "position: absolute; top: 0; left: 0"
|
57
68
|
|
58
69
|
Using with non-Rails Rack apps
|
59
70
|
------------------------------
|
60
71
|
|
61
|
-
Just 'use Insight' as any other middleware. See the SampleApp in the
|
72
|
+
Just 'use Insight' as any other middleware. See the SampleApp in the
|
73
|
+
spec/fixtures folder for an example Sinatra app.
|
62
74
|
|
63
|
-
If you wish to use the logger panel define the LOGGER constant that is a ruby
|
75
|
+
If you wish to use the logger panel define the LOGGER constant that is a ruby
|
76
|
+
Logger or ActiveSupport::BufferedLogger
|
64
77
|
|
65
78
|
Configuring custom panels
|
66
79
|
-------------------------
|
@@ -80,7 +93,9 @@ Specify the set of panels you want, in the order you want them to appear:
|
|
80
93
|
memory_panel
|
81
94
|
]
|
82
95
|
|
83
|
-
Files are looked up by prepending "insight/panels/" and requiring them.
|
96
|
+
Files are looked up by prepending "insight/panels/" and requiring them.
|
97
|
+
Subclasses of Insight::Panel are loaded and added to the toolbar. This makes
|
98
|
+
it easier to work with the configuration and extend Insight with plugin gems.
|
84
99
|
|
85
100
|
Running Insight in staging or production
|
86
101
|
------------------------------------------
|
@@ -89,7 +104,8 @@ We have have found that Insight is fast enough to run in production for specific
|
|
89
104
|
|
90
105
|
### Configuration ####
|
91
106
|
|
92
|
-
Add the middleware configuration to an initializer or the appropriate
|
107
|
+
Add the middleware configuration to an initializer or the appropriate
|
108
|
+
environment files, taking the rest of this section into consideration.
|
93
109
|
|
94
110
|
### Security ####
|
95
111
|
|
@@ -109,7 +125,9 @@ Restrict access using a password:
|
|
109
125
|
|
110
126
|
#### custom file path for the logging database ####
|
111
127
|
|
112
|
-
Logical Insight uses SQLite to store data from requests, and outputs a database
|
128
|
+
Logical Insight uses SQLite to store data from requests, and outputs a database
|
129
|
+
file in the root directory. If you need the file to be created at another
|
130
|
+
location (i.e. Heroku), you can pass a custom file path.
|
113
131
|
|
114
132
|
ActionController::Dispatcher.middleware.use "Insight::App"
|
115
133
|
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring",
|
@@ -124,13 +142,13 @@ Authors
|
|
124
142
|
|
125
143
|
Thanks
|
126
144
|
------
|
127
|
-
Insight owes a lot to Rack::Bug, as the basis project. There's a lot of smart
|
145
|
+
Insight owes a lot to Rack::Bug, as the basis project. There's a lot of smart
|
146
|
+
in there. Many thanks to Bryan for building it.
|
128
147
|
|
129
|
-
Inspiration for Rack::Bug is primarily from the Django debug toolbar.
|
148
|
+
Inspiration for Rack::Bug is primarily from the Django debug toolbar.
|
149
|
+
Additional ideas from Rails footnotes, Rack's ShowException middleware, Oink,
|
150
|
+
and Rack::Cache
|
130
151
|
|
131
|
-
Development
|
132
|
-
-----------
|
133
|
-
For development, you'll need to install the following gems: rspec, rack-test, webrat, sinatra
|
134
152
|
|
135
153
|
License
|
136
154
|
-------
|
data/Rakefile
CHANGED
@@ -19,7 +19,13 @@ module Corundum
|
|
19
19
|
vc.branch = "master"
|
20
20
|
end
|
21
21
|
task tk.finished_files.build => vc["is_checked_in"]
|
22
|
-
|
22
|
+
yd = YARDoc.new(tk) do |yd|
|
23
|
+
yd.options = %w[--exclude lib/insight/views --exclude lib/insight/public]
|
24
|
+
end
|
25
|
+
all_docs = DocumentationAssembly.new(tk, yd, rspec, cov) do |da|
|
26
|
+
da.external_docs["The Wiki"] = "https://github.com/LRDesign/logical-insight/wiki"
|
27
|
+
da.external_docs["Github page"] = "https://github.com/LRDesign/logical-insight/"
|
28
|
+
end
|
29
|
+
pages = GithubPages.new(all_docs)
|
23
30
|
end
|
24
31
|
end
|
25
|
-
|
@@ -94,6 +94,10 @@ jQuery(function($) {
|
|
94
94
|
$(this).parents("tr").next().toggle();
|
95
95
|
return false;
|
96
96
|
});
|
97
|
+
$('#insight a.reveal_response').live('click',function() {
|
98
|
+
$(this).parents("tr").next().next().toggle();
|
99
|
+
return false;
|
100
|
+
});
|
97
101
|
$('#insight a.insight_close').live('click',function() {
|
98
102
|
$(document).trigger('close.insight');
|
99
103
|
return false;
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logical-insight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Bryan Helmkamp
|
9
8
|
- Evan Dorn
|
10
9
|
- Judson Lester
|
10
|
+
- Bryan Helmkamp
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2012-05-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: corundum
|
18
|
-
requirement: &
|
18
|
+
requirement: &81106850 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,10 +23,21 @@ dependencies:
|
|
23
23
|
version: 0.0.13
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *81106850
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: redcarpet
|
29
|
+
requirement: &81119770 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *81119770
|
27
38
|
- !ruby/object:Gem::Dependency
|
28
39
|
name: uuid
|
29
|
-
requirement: &
|
40
|
+
requirement: &81118520 !ruby/object:Gem::Requirement
|
30
41
|
none: false
|
31
42
|
requirements:
|
32
43
|
- - ~>
|
@@ -38,10 +49,10 @@ dependencies:
|
|
38
49
|
- 1
|
39
50
|
type: :runtime
|
40
51
|
prerelease: false
|
41
|
-
version_requirements: *
|
52
|
+
version_requirements: *81118520
|
42
53
|
- !ruby/object:Gem::Dependency
|
43
54
|
name: sqlite3
|
44
|
-
requirement: &
|
55
|
+
requirement: &81116710 !ruby/object:Gem::Requirement
|
45
56
|
none: false
|
46
57
|
requirements:
|
47
58
|
- - ~>
|
@@ -53,10 +64,13 @@ dependencies:
|
|
53
64
|
- 3
|
54
65
|
type: :runtime
|
55
66
|
prerelease: false
|
56
|
-
version_requirements: *
|
67
|
+
version_requirements: *81116710
|
57
68
|
description: ! "Debugging toolbar for Rack applications implemented as\n middleware.
|
58
69
|
\ Rails 3 compatible version maintained by Logical Reality\n Design. "
|
59
|
-
email:
|
70
|
+
email:
|
71
|
+
- evan@lrdesign.com
|
72
|
+
- judson@lrdesign.com
|
73
|
+
- bryan@brynary.com
|
60
74
|
executables: []
|
61
75
|
extensions: []
|
62
76
|
extra_rdoc_files:
|
@@ -163,7 +177,7 @@ files:
|
|
163
177
|
- README.md
|
164
178
|
- Rakefile
|
165
179
|
- Thorfile
|
166
|
-
homepage:
|
180
|
+
homepage: http://lrdesign.github.com/logical-insight/
|
167
181
|
licenses: []
|
168
182
|
post_install_message:
|
169
183
|
rdoc_options: []
|
@@ -177,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
191
|
version: '0'
|
178
192
|
segments:
|
179
193
|
- 0
|
180
|
-
hash: -
|
194
|
+
hash: -526620845
|
181
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
196
|
none: false
|
183
197
|
requirements:
|