time_zone_converter 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 24628c2805123fa20e6157df706a73d93465dbccc1e25bb241e18389f9de0435
4
- data.tar.gz: 3bbcd44656410bc62dfdb715d14a180d8723c524fa13af53446164588f09f6c9
3
+ metadata.gz: b623ee8173d1ac3cdaa2d25edc40252957d4e6aeb486f2cb53a5c16a9f23d66d
4
+ data.tar.gz: '07840b75654fa44888669345c7201d80d35906d26b27d6aa14234fcc2c51a697'
5
5
  SHA512:
6
- metadata.gz: 24e44d2ba55eec2de0f5fe940e7254c95438a12e2be2a9ac278987498892d26cfdb9410b6137838f3288a844f70637d67cd88607347b84a359859fe04114ccec
7
- data.tar.gz: c5f862080d586ca82d1da4af95ec54af8b44cd583d1e1441b9e430ad59aec37e908557d1943952fe6a06cd4b777df355fca5ad4cc1a01ef430311449ff98416f
6
+ metadata.gz: 7559776e8e93dd310b8caca8346792b76a60bafc1af688a928568adb694642e5c354b858be441da976bf55e9704eb85d0c5bb70ea56d410af04d21c827154d66
7
+ data.tar.gz: 8c03b4b3cbd8ee002ffb1208a4a2992b1ae77c32f11cd3b9b82f2cff6b11957715cb5136f4ad2461a2e3e2d1459b1f9dfe43b2cceb6a98af62cf75b8d663dc57
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- time_zone_converter (0.2.0)
4
+ time_zone_converter (0.2.2)
5
5
  activesupport
6
6
  nearest_time_zone
7
7
  oj
@@ -52,10 +52,10 @@ module TimeZoneConverter
52
52
 
53
53
  ISO_TIME = /\A(\d\d):(\d\d)\z/
54
54
 
55
- def self.string_to_time(string, time_zone)
56
- return unless string.is_a? String
55
+ def self.string_to_time(time, time_zone)
56
+ return time unless time.is_a? String
57
57
 
58
- if string =~ ISO_TIME
58
+ if time =~ ISO_TIME
59
59
  zone = ActiveSupport::TimeZone[time_zone]
60
60
  current_time = Time.new.utc
61
61
 
@@ -12,7 +12,7 @@ module TimeZoneConverter
12
12
 
13
13
  Returns array of arrays: [[city, time], [...]]
14
14
 
15
- Example: time_zone_converter ct 'Chiang Mai' Skopje '19:00'
15
+ Example: time_zone_converter c 'Chiang Mai' Skopje
16
16
 
17
17
  =>
18
18
  [
@@ -1,3 +1,3 @@
1
1
  module TimeZoneConverter
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_zone_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Trojanowski