error_stalker 0.0.14 → 0.0.15

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/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- error_stalker (0.0.14)
4
+ error_stalker (0.0.15)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -264,7 +264,13 @@ class ErrorStalker::Store::Mongoid::ExceptionGroup < ErrorStalker::ExceptionGrou
264
264
  r.most_recent_report = id_map[r.most_recent_report_id]
265
265
  end
266
266
 
267
- recent.paginate(:per_page => pagination_opts[:per_page], :total_entries => total_entries)
267
+ recent = recent.paginate(:per_page => pagination_opts[:per_page], :total_entries => total_entries)
268
+
269
+ # We're 'fake paginating' this collection, but we still want the
270
+ # page number to be correct. This is the only way to set it
271
+ # without triggering a pagination on records we don't actually have.
272
+ recent.instance_variable_set(:@current_page, WillPaginate::PageNumber(pagination_opts[:page] || 1))
273
+ recent
268
274
  end
269
275
  end
270
276
  end
@@ -1,4 +1,4 @@
1
1
  module ErrorStalker
2
2
  # ErrorStalker's current version.
3
- VERSION = "0.0.14"
3
+ VERSION = "0.0.15"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: error_stalker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-01 00:00:00.000000000Z
12
+ date: 2012-05-03 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Logs exceptions to a pluggable backend. Also provides a server for centralized
15
15
  exception logging using a pluggable data store.
@@ -22,6 +22,7 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
  files:
24
24
  - .gitignore
25
+ - .travis.yml
25
26
  - Gemfile
26
27
  - Gemfile.lock
27
28
  - README.rdoc
@@ -85,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
86
  version: '0'
86
87
  segments:
87
88
  - 0
88
- hash: 1852610378218954238
89
+ hash: -1187536212377381335
89
90
  required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  none: false
91
92
  requirements:
@@ -94,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  version: '0'
95
96
  segments:
96
97
  - 0
97
- hash: 1852610378218954238
98
+ hash: -1187536212377381335
98
99
  requirements: []
99
100
  rubyforge_project: error_stalker
100
101
  rubygems_version: 1.8.10