exception-track 0.1.5 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0649a8e1e9913cc2d4df4aa7e3a91b4cf257dbd7'
4
- data.tar.gz: ca522fa7d25124288005c0a964a1419074f83349
3
+ metadata.gz: c875c0aaf1fbe81d8dbb2fa04a2858ae29c8e8a4
4
+ data.tar.gz: 928b5e9c267c400555e088237f473f1fc5125dcf
5
5
  SHA512:
6
- metadata.gz: f5d2b0b954ca3e67d1dcb866033e0aa6010d7f13ffee2d60d38c9fdea4660bba760800c61d500eb13b2b49dc56dba13591f6dbfa9a0cd5fe2259b9f99ca6c06c
7
- data.tar.gz: c8f3d4dbe3629a51f70cfd4bcd93aa5edc7a83a91448ca0af86e8859d16e91513698a701cad5f52ee552264d9aa0a9bbe69650ff9b6ad72ed4f75a1b59849395
6
+ metadata.gz: 85a430edb293dddcd70fe5a07d2fac50626a4779605187de460079c786699c837ff87831c8fddba39c9b6d4486dd6d8d666f962ec029b29f7db1c5b6d395715b
7
+ data.tar.gz: '09e224807ccd04215280b76c663e704f8cd81e9f29bfe76fd586177fe4e1a0cb723306f956ae737b9145931c341b4d34252bcbc1e14d4cf3eacf1e725bb85e50'
@@ -162,10 +162,13 @@ h1 { font-size: 16px; }
162
162
  .pagination li { display: inline; }
163
163
 
164
164
  .pagination a {
165
+ display: inline-block;
165
166
  padding: 5px 10px;
166
167
  border: 1px solid #eee;
167
168
  }
168
- .pagination em {
169
+ .pagination em,
170
+ .pagination .current {
171
+ display: inline-block;
169
172
  padding: 5px 10px;
170
173
  border: 1px solid #f0f0f0;
171
174
  background: #f0f0f0;
@@ -5,7 +5,7 @@ module ExceptionTrack
5
5
 
6
6
  # GET /exception_logs
7
7
  def index
8
- @logs = Log.order('id desc').paginate(page: params[:page], per_page: 10)
8
+ @logs = Log.order('id desc').page(params[:page]).per(15)
9
9
  end
10
10
 
11
11
  # GET /exception_logs/1
@@ -6,7 +6,7 @@
6
6
  }
7
7
  </script>
8
8
  <div class="toolbar">
9
- <%= @logs.total_entries %> exceptions
9
+ <%= @logs.total_count %> exceptions
10
10
 
11
11
  <div class="pull-right">
12
12
  <%= form_tag(all_logs_path, method: 'delete') do %>
@@ -18,7 +18,7 @@
18
18
  <% if @logs.blank? %>
19
19
  <div class="no-record">No exceptions.</div>
20
20
  <% else %>
21
- <%= will_paginate @logs %>
21
+ <%= paginate @logs %>
22
22
 
23
23
  <table class="table table-borded tabl">
24
24
  <thead>
@@ -40,5 +40,5 @@
40
40
  </tbody>
41
41
  </table>
42
42
 
43
- <%= will_paginate @logs %>
43
+ <%= paginate @logs %>
44
44
  <% end %>
@@ -6,8 +6,7 @@ require 'exception_notification'
6
6
  require 'exception_notification/rails'
7
7
  require 'exception_notifier/exception_track_notifier'
8
8
 
9
- require 'will_paginate'
10
- require 'will_paginate/active_record'
9
+ require 'kaminari'
11
10
 
12
11
  module ExceptionTrack
13
12
  class << self
@@ -1,3 +1,3 @@
1
1
  module ExceptionTrack
2
- VERSION = '0.1.5'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception-track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
@@ -45,19 +45,19 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '4'
47
47
  - !ruby/object:Gem::Dependency
48
- name: will_paginate
48
+ name: kaminari
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '3'
53
+ version: '0.15'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '3'
60
+ version: '0.15'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: mysql2
63
63
  requirement: !ruby/object:Gem::Requirement