zonebie 0.6.0 → 0.6.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: 9ac61eaa2de78b672edd604210408215be46a490
4
- data.tar.gz: ff3af6b4e27c25a521b466a2d3aa6c454ce1aa87
3
+ metadata.gz: 97c64c22c991e1f7c50391345b7ada14776f6047
4
+ data.tar.gz: f840331ff15d64d4552f0af2f2cedde8de7f7c72
5
5
  SHA512:
6
- metadata.gz: d0e8dce6f7e8c5f7a3b1f804010d64c8d41d460ba05140c54211fe6e796b533da28a7bcc6c8da92b7fb010db8a6ad9b5c251b379f399678e8f1c4248d91c96b7
7
- data.tar.gz: 9e444956b30c04f538713c8c14f732b6fab1fb63ddfd6eff68dee24a21fe987d5b04e9cac7437aae334e00558e6c7cbf8aa4638874542cf46b18fbefb3041a53
6
+ metadata.gz: f5152b196ebf8b3a7b20ff04215f8087692c3a8ed91b225b74ee62f05a0b1a81ebc63f1bad89a78c5e546963a4d66aeb31ade8f473d25c3f9e4afce5889915aa
7
+ data.tar.gz: f75d6371cdc9bf2e53e51b19084cf4e5de5f9e0ca85ccaa9b9c238452d113c0b3405d34c6737d3918b10d35ad75ef34cb68bba6070e22f88dd2b3557d2d76fdd
@@ -1,3 +1,7 @@
1
+ ## 0.6.1 (12 April 2016)
2
+
3
+ * Restores the `Zonebie.random_timezone` API (Ben Borowski)
4
+
1
5
  ## 0.6.0 (13 March 2016)
2
6
 
3
7
  * Refactorings (Yuki Matsukura)
@@ -39,11 +39,15 @@ module Zonebie
39
39
  end
40
40
 
41
41
  def set_random_timezone
42
- zone = ENV['ZONEBIE_TZ'] || backend.zones.sample
42
+ zone = ENV['ZONEBIE_TZ'] || random_timezone
43
43
 
44
44
  $stdout.puts("[Zonebie] Setting timezone: ZONEBIE_TZ=\"#{zone}\"") unless quiet
45
45
  backend.zone = zone
46
46
  end
47
+
48
+ def random_timezone
49
+ backend.zones.sample
50
+ end
47
51
  end
48
52
  end
49
53
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Zonebie
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.1'.freeze
4
4
  end
@@ -90,5 +90,8 @@ describe Zonebie do
90
90
  Zonebie.backend = :my_awesome_backend
91
91
  end
92
92
 
93
+ it "returns a random timezone" do
94
+ expect(Zonebie.random_timezone).to eq("Eastern Time (US & Canada)")
95
+ end
93
96
  end
94
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zonebie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Lindeman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-03-13 00:00:00.000000000 Z
13
+ date: 2016-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake