trafficlogger 1.0.1 → 1.0.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/app/models/trafficlogger/analytic.rb +14 -5
- data/app/views/trafficlogger/traffic_analytics/_listings.html.erb +31 -15
- data/app/views/trafficlogger/traffic_analytics/index.html.erb +9 -6
- data/db/migrate/20140318181352_create_trafficlogger_analytics.rb +7 -1
- data/lib/trafficlogger.rb +63 -1
- data/lib/trafficlogger/regexes.yaml +1125 -0
- data/lib/trafficlogger/version.rb +1 -1
- data/test/dummy/db/schema.rb +1 -33
- data/test/dummy/log/development.log +22 -12
- metadata +145 -140
- checksums.yaml +0 -15
data/test/dummy/db/schema.rb
CHANGED
@@ -11,38 +11,6 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
15
|
-
|
16
|
-
create_table "trafficlogger_analytics", :force => true do |t|
|
17
|
-
t.string "server_name"
|
18
|
-
t.string "server_port"
|
19
|
-
t.text "server_software"
|
20
|
-
t.string "gateway_interface"
|
21
|
-
t.string "path_info"
|
22
|
-
t.string "original_full_path"
|
23
|
-
t.string "request_uri"
|
24
|
-
t.string "query_string"
|
25
|
-
t.string "remote_host"
|
26
|
-
t.text "http_accept_encoding"
|
27
|
-
t.text "http_user_agent"
|
28
|
-
t.string "server_protocol"
|
29
|
-
t.string "http_accept_language"
|
30
|
-
t.string "http_host"
|
31
|
-
t.string "remote_addr"
|
32
|
-
t.text "http_referer"
|
33
|
-
t.string "http_cookie"
|
34
|
-
t.text "http_accept"
|
35
|
-
t.string "request_method"
|
36
|
-
t.string "http_connection"
|
37
|
-
t.string "http_version"
|
38
|
-
t.datetime "created_at", :null => false
|
39
|
-
t.datetime "updated_at", :null => false
|
40
|
-
end
|
41
|
-
|
42
|
-
add_index "trafficlogger_analytics", ["original_full_path"], :name => "index_trafficlogger_analytics_on_original_full_path"
|
43
|
-
add_index "trafficlogger_analytics", ["path_info"], :name => "index_trafficlogger_analytics_on_path_info"
|
44
|
-
add_index "trafficlogger_analytics", ["request_method"], :name => "index_trafficlogger_analytics_on_request_method"
|
45
|
-
add_index "trafficlogger_analytics", ["request_uri"], :name => "index_trafficlogger_analytics_on_request_uri"
|
46
|
-
add_index "trafficlogger_analytics", ["server_name"], :name => "index_trafficlogger_analytics_on_server_name"
|
14
|
+
ActiveRecord::Schema.define(:version => 0) do
|
47
15
|
|
48
16
|
end
|
@@ -1,15 +1,25 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
-
|
3
|
-
[1m[
|
4
|
-
[1m[
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
[1m[36m (144.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
4
|
+
[1m[35m (363.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
5
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
6
|
+
Connecting to database specified by database.yml
|
7
|
+
Connecting to database specified by database.yml
|
8
|
+
Connecting to database specified by database.yml
|
9
|
+
Connecting to database specified by database.yml
|
10
|
+
Connecting to database specified by database.yml
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
Connecting to database specified by database.yml
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
Connecting to database specified by database.yml
|
15
|
+
Connecting to database specified by database.yml
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
Connecting to database specified by database.yml
|
20
|
+
Connecting to database specified by database.yml
|
21
|
+
Connecting to database specified by database.yml
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
Connecting to database specified by database.yml
|
14
24
|
Connecting to database specified by database.yml
|
15
25
|
Connecting to database specified by database.yml
|
metadata
CHANGED
@@ -1,200 +1,205 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: trafficlogger
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 1.0.2
|
5
10
|
platform: ruby
|
6
|
-
authors:
|
11
|
+
authors:
|
7
12
|
- Shuddhashil Ray
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
16
|
+
|
17
|
+
date: 2014-03-19 00:00:00 +05:30
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.2'
|
20
|
-
type: :runtime
|
21
22
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '3.2'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rack
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
31
26
|
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 2
|
31
|
+
version: "3.2"
|
34
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rack
|
35
36
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.4'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: mysql2
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
45
40
|
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 4
|
45
|
+
version: "1.4"
|
48
46
|
type: :runtime
|
49
|
-
|
50
|
-
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.3'
|
55
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
56
49
|
name: will_paginate
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
type: :runtime
|
63
50
|
prerelease: false
|
64
|
-
|
65
|
-
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
66
54
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 3
|
58
|
+
- 0
|
59
|
+
version: "3.0"
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
description: Trafficlogger is a Rails Engine with Rack Middleware to track incoming HTTP requests coming to your site and logs them with detailed information about the Request
|
63
|
+
email:
|
73
64
|
- rayshuddhashil@gmail.com
|
74
65
|
executables: []
|
66
|
+
|
75
67
|
extensions: []
|
68
|
+
|
76
69
|
extra_rdoc_files: []
|
77
|
-
|
78
|
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
- app/
|
70
|
+
|
71
|
+
files:
|
72
|
+
- app/models/trafficlogger/analytic.rb
|
73
|
+
- app/views/layouts/trafficlogger/application.html.erb
|
74
|
+
- app/views/trafficlogger/traffic_analytics/index.js.erb
|
75
|
+
- app/views/trafficlogger/traffic_analytics/index.html.erb
|
76
|
+
- app/views/trafficlogger/traffic_analytics/_listings.html.erb
|
77
|
+
- app/helpers/trafficlogger/application_helper.rb
|
78
|
+
- app/helpers/trafficlogger/traffic_analytics_helper.rb
|
82
79
|
- app/assets/javascripts/trafficlogger/jquery.js
|
80
|
+
- app/assets/javascripts/trafficlogger/application.js
|
83
81
|
- app/assets/javascripts/trafficlogger/traffic_analytics.js
|
84
|
-
- app/assets/stylesheets/trafficlogger/application.css
|
85
82
|
- app/assets/stylesheets/trafficlogger/traffic_analytics.css
|
86
|
-
- app/
|
83
|
+
- app/assets/stylesheets/trafficlogger/application.css
|
87
84
|
- app/controllers/trafficlogger/traffic_analytics_controller.rb
|
88
|
-
- app/
|
89
|
-
- app/helpers/trafficlogger/traffic_analytics_helper.rb
|
90
|
-
- app/models/trafficlogger/analytic.rb
|
91
|
-
- app/views/layouts/trafficlogger/application.html.erb
|
92
|
-
- app/views/trafficlogger/traffic_analytics/_listings.html.erb
|
93
|
-
- app/views/trafficlogger/traffic_analytics/index.html.erb
|
94
|
-
- app/views/trafficlogger/traffic_analytics/index.js.erb
|
85
|
+
- app/controllers/trafficlogger/application_controller.rb
|
95
86
|
- config/initializers/trafficlogger/analytic_filter.rb
|
96
87
|
- config/routes.rb
|
97
88
|
- db/migrate/20140318181352_create_trafficlogger_analytics.rb
|
98
|
-
- lib/tasks/trafficlogger_tasks.rake
|
99
89
|
- lib/trafficlogger.rb
|
90
|
+
- lib/tasks/trafficlogger_tasks.rake
|
100
91
|
- lib/trafficlogger/engine.rb
|
101
92
|
- lib/trafficlogger/version.rb
|
102
|
-
-
|
103
|
-
-
|
93
|
+
- lib/trafficlogger/regexes.yaml
|
94
|
+
- MIT-LICENSE
|
95
|
+
- Rakefile
|
96
|
+
- README.md
|
97
|
+
- test/fixtures/trafficlogger/analytics.yml
|
98
|
+
- test/trafficlogger_test.rb
|
99
|
+
- test/test_helper.rb
|
100
|
+
- test/dummy/public/422.html
|
101
|
+
- test/dummy/public/favicon.ico
|
102
|
+
- test/dummy/public/500.html
|
103
|
+
- test/dummy/public/404.html
|
104
|
+
- test/dummy/app/views/layouts/application.html.erb
|
105
|
+
- test/dummy/app/helpers/application_helper.rb
|
104
106
|
- test/dummy/app/assets/javascripts/application.js
|
105
107
|
- test/dummy/app/assets/stylesheets/application.css
|
106
108
|
- test/dummy/app/controllers/application_controller.rb
|
107
|
-
- test/dummy/
|
108
|
-
- test/dummy/
|
109
|
-
- test/dummy/
|
110
|
-
- test/dummy/config/application.rb
|
109
|
+
- test/dummy/db/schema.rb
|
110
|
+
- test/dummy/log/development.log
|
111
|
+
- test/dummy/README.rdoc
|
111
112
|
- test/dummy/config/boot.rb
|
113
|
+
- test/dummy/config/application.rb
|
114
|
+
- test/dummy/config/locales/en.yml
|
115
|
+
- test/dummy/config/initializers/secret_token.rb
|
116
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
117
|
+
- test/dummy/config/initializers/mime_types.rb
|
118
|
+
- test/dummy/config/initializers/inflections.rb
|
119
|
+
- test/dummy/config/initializers/session_store.rb
|
120
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
112
121
|
- test/dummy/config/database.yml
|
113
122
|
- test/dummy/config/environment.rb
|
123
|
+
- test/dummy/config/routes.rb
|
114
124
|
- test/dummy/config/environments/development.rb
|
115
|
-
- test/dummy/config/environments/production.rb
|
116
125
|
- test/dummy/config/environments/test.rb
|
117
|
-
- test/dummy/config/
|
118
|
-
- test/dummy/config
|
119
|
-
- test/dummy/
|
120
|
-
- test/dummy/config/initializers/secret_token.rb
|
121
|
-
- test/dummy/config/initializers/session_store.rb
|
122
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
123
|
-
- test/dummy/config/locales/en.yml
|
124
|
-
- test/dummy/config/routes.rb
|
125
|
-
- test/dummy/db/schema.rb
|
126
|
-
- test/dummy/log/development.log
|
127
|
-
- test/dummy/public/404.html
|
128
|
-
- test/dummy/public/422.html
|
129
|
-
- test/dummy/public/500.html
|
130
|
-
- test/dummy/public/favicon.ico
|
126
|
+
- test/dummy/config/environments/production.rb
|
127
|
+
- test/dummy/config.ru
|
128
|
+
- test/dummy/Rakefile
|
131
129
|
- test/dummy/script/rails
|
132
|
-
- test/fixtures/trafficlogger/analytics.yml
|
133
|
-
- test/functional/trafficlogger/traffic_analytics_controller_test.rb
|
134
|
-
- test/integration/navigation_test.rb
|
135
|
-
- test/test_helper.rb
|
136
|
-
- test/trafficlogger_test.rb
|
137
130
|
- test/unit/helpers/trafficlogger/traffic_analytics_helper_test.rb
|
138
131
|
- test/unit/trafficlogger/analytic_test.rb
|
132
|
+
- test/functional/trafficlogger/traffic_analytics_controller_test.rb
|
133
|
+
- test/integration/navigation_test.rb
|
134
|
+
has_rdoc: true
|
139
135
|
homepage: https://github.com/raycoding/trafficlogger
|
140
136
|
licenses: []
|
141
|
-
|
137
|
+
|
142
138
|
post_install_message:
|
143
139
|
rdoc_options: []
|
144
|
-
|
140
|
+
|
141
|
+
require_paths:
|
145
142
|
- lib
|
146
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
version:
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
segments:
|
149
|
+
- 1
|
150
|
+
- 9
|
151
|
+
- 2
|
152
|
+
version: 1.9.2
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
156
161
|
requirements: []
|
162
|
+
|
157
163
|
rubyforge_project:
|
158
|
-
rubygems_version:
|
164
|
+
rubygems_version: 1.3.7.1
|
159
165
|
signing_key:
|
160
|
-
specification_version:
|
161
|
-
summary: Trafficlogger is a Rails Engine with Rack Middleware to track HTTP Requests
|
162
|
-
|
163
|
-
|
164
|
-
- test/functional/trafficlogger/traffic_analytics_controller_test.rb
|
166
|
+
specification_version: 3
|
167
|
+
summary: Trafficlogger is a Rails Engine with Rack Middleware to track HTTP Requests on your site and log them
|
168
|
+
test_files:
|
169
|
+
- test/fixtures/trafficlogger/analytics.yml
|
165
170
|
- test/trafficlogger_test.rb
|
166
|
-
- test/
|
167
|
-
- test/dummy/
|
171
|
+
- test/test_helper.rb
|
172
|
+
- test/dummy/public/422.html
|
173
|
+
- test/dummy/public/favicon.ico
|
174
|
+
- test/dummy/public/500.html
|
175
|
+
- test/dummy/public/404.html
|
168
176
|
- test/dummy/app/views/layouts/application.html.erb
|
169
|
-
- test/dummy/app/
|
177
|
+
- test/dummy/app/helpers/application_helper.rb
|
170
178
|
- test/dummy/app/assets/javascripts/application.js
|
171
|
-
- test/dummy/
|
172
|
-
- test/dummy/
|
173
|
-
- test/dummy/
|
179
|
+
- test/dummy/app/assets/stylesheets/application.css
|
180
|
+
- test/dummy/app/controllers/application_controller.rb
|
181
|
+
- test/dummy/db/schema.rb
|
182
|
+
- test/dummy/log/development.log
|
183
|
+
- test/dummy/README.rdoc
|
174
184
|
- test/dummy/config/boot.rb
|
185
|
+
- test/dummy/config/application.rb
|
186
|
+
- test/dummy/config/locales/en.yml
|
187
|
+
- test/dummy/config/initializers/secret_token.rb
|
188
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
189
|
+
- test/dummy/config/initializers/mime_types.rb
|
190
|
+
- test/dummy/config/initializers/inflections.rb
|
191
|
+
- test/dummy/config/initializers/session_store.rb
|
192
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
175
193
|
- test/dummy/config/database.yml
|
194
|
+
- test/dummy/config/environment.rb
|
176
195
|
- test/dummy/config/routes.rb
|
177
|
-
- test/dummy/config/environments/test.rb
|
178
196
|
- test/dummy/config/environments/development.rb
|
197
|
+
- test/dummy/config/environments/test.rb
|
179
198
|
- test/dummy/config/environments/production.rb
|
180
|
-
- test/dummy/config/application.rb
|
181
|
-
- test/dummy/config/initializers/session_store.rb
|
182
|
-
- test/dummy/config/initializers/inflections.rb
|
183
|
-
- test/dummy/config/initializers/mime_types.rb
|
184
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
185
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
186
|
-
- test/dummy/config/initializers/secret_token.rb
|
187
|
-
- test/dummy/public/422.html
|
188
|
-
- test/dummy/public/404.html
|
189
|
-
- test/dummy/public/500.html
|
190
|
-
- test/dummy/public/favicon.ico
|
191
|
-
- test/dummy/db/schema.rb
|
192
|
-
- test/dummy/script/rails
|
193
199
|
- test/dummy/config.ru
|
194
|
-
- test/dummy/
|
195
|
-
- test/dummy/
|
196
|
-
- test/integration/navigation_test.rb
|
197
|
-
- test/fixtures/trafficlogger/analytics.yml
|
200
|
+
- test/dummy/Rakefile
|
201
|
+
- test/dummy/script/rails
|
198
202
|
- test/unit/helpers/trafficlogger/traffic_analytics_helper_test.rb
|
199
203
|
- test/unit/trafficlogger/analytic_test.rb
|
200
|
-
- test/
|
204
|
+
- test/functional/trafficlogger/traffic_analytics_controller_test.rb
|
205
|
+
- test/integration/navigation_test.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
N2ZhNDUyZTcwZWYyMmYzOGU1YTJjYWJlNWQ3ZThmYzA0NTY5MDRhZA==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzlhZDkyZDc1YjM3MjgxMDRkYmIxYTZmOGEzMjM4NTJhZDhlMmJhYw==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MzNjMjE5NzBhNmVkMWI3NGU3ZDRiYzQ4YmNkYjQ5NmU2ZjVjZTEyZDRmNzNl
|
10
|
-
YzI2MjU5NmY1OGVhYTE4Yjc5ZWM0ZDVhZDJmMjE2YTFjZWFmZDYyODZjMzE3
|
11
|
-
OGIwYmYzNDFlZDFmNmVlZDZkNGEzZDllZDIwNDI2YjhmNTU3ODA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MGRjOTRlM2VkZGEyNTMyYzFlNGE2ZTNlYzg5YTI4YTgyNDZhODA3NTk0ZDFi
|
14
|
-
ZWFlZjFjYWVlNDVjYzc4YjhjMTU4YmYzYmFiYjQ2MWFjNDAwNjkzOTllNjZl
|
15
|
-
ZDljNDk5YzllNjM5NzZiNmVlOWQzNDE0ZjJkNzdjYTNjNzY2ZGQ=
|