http_log 0.0.1 → 0.1.0
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/app/assets/javascripts/http_log.js +1 -2
- data/app/assets/javascripts/http_log_bootstrap.js +176 -0
- data/app/assets/stylesheets/http_log.css +4 -1
- data/app/assets/stylesheets/http_log_bootstrap.css +1409 -0
- data/app/views/http_log/requests/show.html.erb +23 -9
- data/app/views/layouts/http_log/requests.html.erb +4 -5
- data/lib/http_log/{railtie.rb → engine.rb} +0 -0
- data/lib/http_log/version.rb +1 -1
- data/lib/http_log.rb +1 -2
- data/test/dummy/log/development.log +740 -0
- data/test/dummy/log/test.log +468 -8351
- data/test/dummy/tmp/cache/assets/C29/430/sprockets%2F5d4798898541830746a18061cdb24e22 +0 -0
- data/test/dummy/tmp/cache/assets/C30/4B0/sprockets%2F4d4c963e909938451634853191ef71b1 +0 -0
- data/test/dummy/tmp/cache/assets/C6F/9C0/sprockets%2F9ee093f789804668cf30834d62c33868 +0 -0
- data/test/dummy/tmp/cache/assets/CD7/1F0/sprockets%2Fec1bfc2a41850057178b1545635b65df +0 -0
- data/test/dummy/tmp/cache/assets/CEA/A80/sprockets%2Fd80929b3a9dba09f6c2231f07385499e +0 -0
- data/test/dummy/tmp/cache/assets/CF2/A70/sprockets%2F40bb28799af7985e4b86b32534ec36d6 +0 -0
- data/test/dummy/tmp/cache/assets/D05/F50/sprockets%2F6f54f21d560b31a9d95f6cd49001cd20 +0 -0
- data/test/dummy/tmp/cache/assets/D0F/AB0/sprockets%2F36a48359923542e854b211ffdfec4a3a +0 -0
- data/test/dummy/tmp/cache/assets/D12/5F0/sprockets%2F5ec20f8455843f226a50e8af0499a3dd +0 -0
- data/test/dummy/tmp/cache/assets/D1B/FB0/sprockets%2F39feaa8a20f8c6e978071c2156484f3e +0 -0
- data/test/dummy/tmp/cache/assets/D3C/5B0/sprockets%2Fced102cc185991cadc45322d3771d9f6 +0 -0
- data/test/dummy/tmp/cache/assets/D53/E70/sprockets%2F0a240175a8cc96b28c10d220aecfa0f7 +0 -0
- data/test/dummy/tmp/cache/assets/D69/800/sprockets%2F2176c4dc895e51da2af75cd13b7b74a2 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/020/sprockets%2Faa3d21ad9528c449cad4836d6a378c1c +0 -0
- data/test/dummy/tmp/cache/assets/D88/C50/sprockets%2F9bdc671419016acad2ff21da03b39a0f +0 -0
- data/test/dummy/tmp/cache/assets/D92/AA0/sprockets%2Fe824d0ef7489be7897c8886cd08f3dad +0 -0
- data/test/dummy/tmp/cache/assets/DAC/450/sprockets%2F660ac1e463dcff3f9213298bec98ef7b +0 -0
- data/test/dummy/tmp/cache/assets/DD0/A30/sprockets%2F54f4d51d8f83e5e823beccab890d2c3a +0 -0
- data/test/dummy/tmp/cache/assets/DD6/7D0/sprockets%2Fcc968677b58fa5f7339bcadb1700aaff +0 -0
- data/test/dummy/tmp/cache/assets/DDA/D30/sprockets%2Fd383a6dc76c00f0ed798addceec88482 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/AD0/sprockets%2F9e1cdca46096d5649bf4cfc37f4a7a6f +0 -0
- data/test/dummy/tmp/cache/assets/DEA/DA0/sprockets%2F10cae5c1a2af7c7aafad8932bf560c07 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +64 -26
- data/lib/tasks/http_logger_tasks.rake +0 -4
@@ -0,0 +1,176 @@
|
|
1
|
+
/* ===================================================
|
2
|
+
* bootstrap-transition.js v2.0.2
|
3
|
+
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4
|
+
* ===================================================
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
* ========================================================== */
|
19
|
+
|
20
|
+
!function( $ ) {
|
21
|
+
|
22
|
+
$(function () {
|
23
|
+
|
24
|
+
"use strict"
|
25
|
+
|
26
|
+
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
27
|
+
* ======================================================= */
|
28
|
+
|
29
|
+
$.support.transition = (function () {
|
30
|
+
var thisBody = document.body || document.documentElement
|
31
|
+
, thisStyle = thisBody.style
|
32
|
+
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
33
|
+
|
34
|
+
return support && {
|
35
|
+
end: (function () {
|
36
|
+
var transitionEnd = "TransitionEnd"
|
37
|
+
if ( $.browser.webkit ) {
|
38
|
+
transitionEnd = "webkitTransitionEnd"
|
39
|
+
} else if ( $.browser.mozilla ) {
|
40
|
+
transitionEnd = "transitionend"
|
41
|
+
} else if ( $.browser.opera ) {
|
42
|
+
transitionEnd = "oTransitionEnd"
|
43
|
+
}
|
44
|
+
return transitionEnd
|
45
|
+
}())
|
46
|
+
}
|
47
|
+
})()
|
48
|
+
|
49
|
+
})
|
50
|
+
|
51
|
+
}( window.jQuery );
|
52
|
+
/* =============================================================
|
53
|
+
* bootstrap-scrollspy.js v2.0.2
|
54
|
+
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
55
|
+
* =============================================================
|
56
|
+
* Copyright 2012 Twitter, Inc.
|
57
|
+
*
|
58
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
59
|
+
* you may not use this file except in compliance with the License.
|
60
|
+
* You may obtain a copy of the License at
|
61
|
+
*
|
62
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
63
|
+
*
|
64
|
+
* Unless required by applicable law or agreed to in writing, software
|
65
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
66
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
67
|
+
* See the License for the specific language governing permissions and
|
68
|
+
* limitations under the License.
|
69
|
+
* ============================================================== */
|
70
|
+
|
71
|
+
!function ( $ ) {
|
72
|
+
|
73
|
+
"use strict"
|
74
|
+
|
75
|
+
/* SCROLLSPY CLASS DEFINITION
|
76
|
+
* ========================== */
|
77
|
+
|
78
|
+
function ScrollSpy( element, options) {
|
79
|
+
var process = $.proxy(this.process, this)
|
80
|
+
, $element = $(element).is('body') ? $(window) : $(element)
|
81
|
+
, href
|
82
|
+
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
|
83
|
+
this.$scrollElement = $element.on('scroll.scroll.data-api', process)
|
84
|
+
this.selector = (this.options.target
|
85
|
+
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
86
|
+
|| '') + ' .nav li > a'
|
87
|
+
this.$body = $('body').on('click.scroll.data-api', this.selector, process)
|
88
|
+
this.refresh()
|
89
|
+
this.process()
|
90
|
+
}
|
91
|
+
|
92
|
+
ScrollSpy.prototype = {
|
93
|
+
|
94
|
+
constructor: ScrollSpy
|
95
|
+
|
96
|
+
, refresh: function () {
|
97
|
+
this.targets = this.$body
|
98
|
+
.find(this.selector)
|
99
|
+
.map(function () {
|
100
|
+
var href = $(this).attr('href')
|
101
|
+
return /^#\w/.test(href) && $(href).length ? href : null
|
102
|
+
})
|
103
|
+
|
104
|
+
this.offsets = $.map(this.targets, function (id) {
|
105
|
+
return $(id).position().top
|
106
|
+
})
|
107
|
+
}
|
108
|
+
|
109
|
+
, process: function () {
|
110
|
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
111
|
+
, offsets = this.offsets
|
112
|
+
, targets = this.targets
|
113
|
+
, activeTarget = this.activeTarget
|
114
|
+
, i
|
115
|
+
|
116
|
+
for (i = offsets.length; i--;) {
|
117
|
+
activeTarget != targets[i]
|
118
|
+
&& scrollTop >= offsets[i]
|
119
|
+
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
120
|
+
&& this.activate( targets[i] )
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
, activate: function (target) {
|
125
|
+
var active
|
126
|
+
|
127
|
+
this.activeTarget = target
|
128
|
+
|
129
|
+
this.$body
|
130
|
+
.find(this.selector).parent('.active')
|
131
|
+
.removeClass('active')
|
132
|
+
|
133
|
+
active = this.$body
|
134
|
+
.find(this.selector + '[href="' + target + '"]')
|
135
|
+
.parent('li')
|
136
|
+
.addClass('active')
|
137
|
+
|
138
|
+
if ( active.parent('.dropdown-menu') ) {
|
139
|
+
active.closest('li.dropdown').addClass('active')
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/* SCROLLSPY PLUGIN DEFINITION
|
147
|
+
* =========================== */
|
148
|
+
|
149
|
+
$.fn.scrollspy = function ( option ) {
|
150
|
+
return this.each(function () {
|
151
|
+
var $this = $(this)
|
152
|
+
, data = $this.data('scrollspy')
|
153
|
+
, options = typeof option == 'object' && option
|
154
|
+
if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
|
155
|
+
if (typeof option == 'string') data[option]()
|
156
|
+
})
|
157
|
+
}
|
158
|
+
|
159
|
+
$.fn.scrollspy.Constructor = ScrollSpy
|
160
|
+
|
161
|
+
$.fn.scrollspy.defaults = {
|
162
|
+
offset: 10
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
/* SCROLLSPY DATA-API
|
167
|
+
* ================== */
|
168
|
+
|
169
|
+
$(function () {
|
170
|
+
$('[data-spy="scroll"]').each(function () {
|
171
|
+
var $spy = $(this)
|
172
|
+
$spy.scrollspy($spy.data())
|
173
|
+
})
|
174
|
+
})
|
175
|
+
|
176
|
+
}( window.jQuery );
|
@@ -3,10 +3,13 @@
|
|
3
3
|
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
4
|
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
5
|
*= require_self
|
6
|
-
*= require twitter/bootstrap
|
7
6
|
*= require_tree .
|
8
7
|
*/
|
9
8
|
|
9
|
+
#http-logger ul.nav {
|
10
|
+
top: 10px;
|
11
|
+
}
|
12
|
+
|
10
13
|
#http-logger table {
|
11
14
|
table-layout: fixed;
|
12
15
|
}
|