respond_for_helper 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/respond_for_helper/flashes/timestamp.rb +11 -1
- data/lib/respond_for_helper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c9d236367624f955240459dad1d1757ed3757e9fe59823ec0ba6a829cf41d8c
|
4
|
+
data.tar.gz: 3c06d61ccd843cc4e41f82decbc4088b51c5e96bf0801fe0409b08b9d16fe0b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c0c9fcd0b643e30b9ea9ae801a8f3d11cee1b36b7df7fd737d3d148ab57dc41e11b6b9de8d0e1887e32c2698b96ded6ed01e7456752748c9950ed61c92818b7
|
7
|
+
data.tar.gz: 2fec9caf0d96d44190d720493bc8c27141fe1a247cbca1a8fe2185a9d98c751f37a1aaa2e748a3a6b3b3687f75027e0ffb5b043be7e3d4f75bb758c89a3e7c4e
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,17 @@ module RespondForHelper
|
|
5
5
|
class Timestamp < Base
|
6
6
|
def initialize(type, options = {})
|
7
7
|
super
|
8
|
-
@options = options.reverse_merge(timestamp: I18n.l(
|
8
|
+
@options = options.reverse_merge(timestamp: I18n.l(now))
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def now
|
14
|
+
if Time.respond_to?(:zone)
|
15
|
+
Time.zone.now
|
16
|
+
else
|
17
|
+
Time.now
|
18
|
+
end
|
9
19
|
end
|
10
20
|
end
|
11
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: respond_for_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|