apache_log_report 1.1.7 → 1.1.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ad003b9ae4768923ebb253dc937277372ff9adee264d77eb3db103153d8bcb5
4
- data.tar.gz: f843e794726853611240ca3267cfed35666e3a04c030a78426bb524a8e40c632
3
+ metadata.gz: d957c3ba44653ff3812aa0ad5f912edae8691f32c900cee509a005748319de81
4
+ data.tar.gz: 792424f5272630630ea896599aa0f814f72dc1ff599cb0f238327d17a603044f
5
5
  SHA512:
6
- metadata.gz: 9a609336d73e83d15dd97939c1e1282ebe73b82d1b8e6d2cf07d2af769d4ad1e93803e825a38549c198d64f5f7e32637dcb6d3dea39eee14711e23b8adde35a0
7
- data.tar.gz: 7fecc82af8cbb5debc54542f271855607479d1f142d1a725175afa51acbcc921f8955f4ba444594abc4e2cda4a6baf30421822c5d01e7d07bffcaf68eadbfe1e
6
+ metadata.gz: 0b649cf5abc5e186372f853f2f127ea3afd6eb514f13ee2a006bf9310c4acc2e92f8fdd22414609fdd13a1197c377b3ccc9fde73d6cf95d6c9930056e90409aa
7
+ data.tar.gz: 7085f94df8b7029fd1fb8c011a9b187e0490f86501abacf8d205c608eb554a96abe70bc792ead20e3d5fc4f8b27572209f5a28f4b2ea2d0bb4c74498ef93e768
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apache_log_report (1.1.2)
4
+ apache_log_report (1.1.7)
5
5
  apache_log-parser
6
6
  browser
7
7
  sqlite3
@@ -14,9 +14,9 @@ GEM
14
14
  browser (5.3.1)
15
15
  rake (12.3.3)
16
16
  sqlite3 (1.4.2)
17
- terminal-table (3.0.2)
18
- unicode-display_width (>= 1.1.1, < 3)
19
- unicode-display_width (2.1.0)
17
+ terminal-table (2.0.0)
18
+ unicode-display_width (~> 1.1, >= 1.1.1)
19
+ unicode-display_width (1.7.0)
20
20
 
21
21
  PLATFORMS
22
22
  ruby
@@ -168,7 +168,16 @@
168
168
  <thead>
169
169
  <tr>
170
170
  <th>IP</th>
171
- <th>Day and URL</th>
171
+ <th>
172
+ <div class="columns">
173
+ <div class="col-2 column">
174
+ Day
175
+ </div>
176
+ <div class="col-10 column">
177
+ Resources
178
+ </div>
179
+ </div>
180
+ </th>
172
181
  </tr>
173
182
  </thead>
174
183
  <tbody>
@@ -176,11 +185,28 @@
176
185
  <tr>
177
186
  <td class="ip"><%= ip %></td>
178
187
  <td class="streaks">
179
- <% date_urls.group_by(&:first).each do |date, urls| %>
180
- <% urls.each do |url| %>
181
- <b><%= url[1] %>:</b> <%= url[2] %> <br />
182
- <% end %>
188
+ <div class="columns">
189
+ <% date_urls.group_by { |x| x[1] }.each do |date, urls| %>
190
+ <div class="col-2 column">
191
+ <%= date %>
192
+ </div>
193
+ <div class="col-10 column">
194
+ <span class="res-title">HTML:</span>
195
+ <ul>
196
+ <% urls.map { |x| x[2] }.select { |x| x.match /.*\.html?/ }.each do |url| %>
197
+ <li><%= url %></li>
198
+ <% end %>
199
+ </ul>
200
+
201
+ <span class="res-title">Other Resources:</span>
202
+ <ul>
203
+ <% urls.map { |x| x[2] }.sort.select { |x| not x.match /.*\.html?/ }.each do |url| %>
204
+ <li><%= url %></li>
205
+ <% end %>
206
+ </ul>
207
+ </div>
183
208
  <% end %>
209
+ </div>
184
210
  </td>
185
211
  </tr>
186
212
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ApacheLogReport
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apache_log_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adolfo Villafiorita
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-01 00:00:00.000000000 Z
11
+ date: 2021-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apache_log-parser