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 +4 -4
- data/Changelog.md +4 -0
- data/lib/zonebie.rb +5 -1
- data/lib/zonebie/version.rb +1 -1
- data/spec/lib/zonebie_spec.rb +3 -0
- 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: 97c64c22c991e1f7c50391345b7ada14776f6047
|
4
|
+
data.tar.gz: f840331ff15d64d4552f0af2f2cedde8de7f7c72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5152b196ebf8b3a7b20ff04215f8087692c3a8ed91b225b74ee62f05a0b1a81ebc63f1bad89a78c5e546963a4d66aeb31ade8f473d25c3f9e4afce5889915aa
|
7
|
+
data.tar.gz: f75d6371cdc9bf2e53e51b19084cf4e5de5f9e0ca85ccaa9b9c238452d113c0b3405d34c6737d3918b10d35ad75ef34cb68bba6070e22f88dd2b3557d2d76fdd
|
data/Changelog.md
CHANGED
data/lib/zonebie.rb
CHANGED
@@ -39,11 +39,15 @@ module Zonebie
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def set_random_timezone
|
42
|
-
zone = ENV['ZONEBIE_TZ'] ||
|
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
|
|
data/lib/zonebie/version.rb
CHANGED
data/spec/lib/zonebie_spec.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|