sidekiq_monitor 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b89b0c895fddab0247ec0940eb8c34c8f97cc2d
|
4
|
+
data.tar.gz: 2c062635448ae9229e6b623f1d619f3262b9f718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
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
|
+
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-
|
11
|
+
date: 2014-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|