sidekiq_monitor 0.1.4 → 0.1.5

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: 5fd926f216418f28aeab97630d618b387b8f2451
4
- data.tar.gz: da7a82e2fe0ae82ce23d6481d4bff1ae5fadb63a
3
+ metadata.gz: 9b89b0c895fddab0247ec0940eb8c34c8f97cc2d
4
+ data.tar.gz: 2c062635448ae9229e6b623f1d619f3262b9f718
5
5
  SHA512:
6
- metadata.gz: 187662f247f3262f3944740f5d5405d3171250984277d324fbe3a10382efc556b1d2c33fd521633d1032f755a87ea3b65ee5cd08f449f8d8b6e91e793f4a74f3
7
- data.tar.gz: 3ace2465eb70982e7a585a35bbfef75fd8a27a3015a0ff72a83c38e17d9d2ce829bd13b398ec4d702769134271eabd70a5d14cdb32d9a91e68fc123c35bc20f4
6
+ metadata.gz: 324cd4c58b6d1a38c3d69c9c7c44f73a2245fcc63a79a9be3ea21e005d422ea2d1a352acda95dde13bda5c8f2b419c019631041b40ae1a54ff80a81021d14d15
7
+ data.tar.gz: 3e552c35b9169b6547037522c325c1d3a5a4df6e883c898971765c14a7cb07b77e910d871adbfaf4c5cc78a2fa632995e3e0ea70dcee7f54a9b8b9737d4016b0
@@ -79,7 +79,12 @@ module Sidekiq
79
79
  end
80
80
 
81
81
  def simplified_distance_of_time_in_words(from_time, to_time)
82
- distance_of_time_in_words(from_time, to_time, true).gsub('less than ', '').gsub('about ', '')
82
+ if ::Rails::VERSION::MAJOR >= 4
83
+ words = distance_of_time_in_words(from_time, to_time, include_seconds: true)
84
+ else
85
+ words = distance_of_time_in_words(from_time, to_time, true)
86
+ end
87
+ words.gsub('less than ', '').gsub('about ', '')
83
88
  end
84
89
 
85
90
  def search_records(records)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Monitor
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Benner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-13 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq