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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5633127fbe2f8ab61424e02fb3ae2202998216d8
4
- data.tar.gz: 7f2357713a86361061a2129a6c00f5126c612905
3
+ metadata.gz: 57fec7f66d17101b3293cd8d4f153ab065990ff2
4
+ data.tar.gz: 2908432910db2c96b0caf97c12d463909a6834dc
5
5
  SHA512:
6
- metadata.gz: e2724732d56e514f0d09d9419ff6b453528c254690fe556081b10f36ead17d785ff2b27897a0ed17ae2f30ffdca544d30fdd5d035e4178bf225b05e761596ddb
7
- data.tar.gz: 76170b8a253a75d81bf9863421193309554b8c8d0de63d6f8cccce6f3d89fc7c1fd3862e612e8573d0be847802d64b2ccd509173c3eca72a26b5cf18984373b8
6
+ metadata.gz: e68450a5aa3c2bddb0035280da6bd10a0e41b138da644b302f363616b908691b527d1f4cb9f3451b1de8d0774e2c7fa3e34d764da4083137919b4771308a32cf
7
+ data.tar.gz: b69fad26a3886414fb0c3b42c488a04808e1999f6040215b88fe5099449e9af77c7411122f005973360737da84170aab38fecd6a89c5f8e1e98ea539c31dd718
@@ -51,7 +51,7 @@ module MegliHelper
51
51
  Hash[hash_object.map { |k, v| [k.to_s.underscore, transform_hash_keys_in_snake_case(v)] }]
52
52
  else
53
53
  hash_object
54
- end
54
+ end
55
55
  end
56
56
 
57
57
  # Check if the JSON passed is valid or not
@@ -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.fortmat_date(time, format)
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.0
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-08-07 00:00:00.000000000 Z
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