megli_common_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/lib/helpers/common_helper.rb +1 -1
- data/lib/helpers/time_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57fec7f66d17101b3293cd8d4f153ab065990ff2
|
4
|
+
data.tar.gz: 2908432910db2c96b0caf97c12d463909a6834dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e68450a5aa3c2bddb0035280da6bd10a0e41b138da644b302f363616b908691b527d1f4cb9f3451b1de8d0774e2c7fa3e34d764da4083137919b4771308a32cf
|
7
|
+
data.tar.gz: b69fad26a3886414fb0c3b42c488a04808e1999f6040215b88fe5099449e9af77c7411122f005973360737da84170aab38fecd6a89c5f8e1e98ea539c31dd718
|
data/lib/helpers/time_helper.rb
CHANGED
@@ -15,7 +15,7 @@ module MegliHelper
|
|
15
15
|
# @param time [Time | String] time to be formatted
|
16
16
|
# @param format [String] format used
|
17
17
|
# @return [String] time formatted
|
18
|
-
def self.
|
18
|
+
def self.format_date(time, format)
|
19
19
|
time = Time.parse(time) if time.class == String
|
20
20
|
time.strftime(format)
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megli_common_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
|
- Eduardo Gomes Heinen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Megli common helper has some basic helpers to be used in a ruby project
|
14
14
|
email: eduardogheinen@gmail.com
|