rufus-scheduler 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +5 -0
- data/CREDITS.txt +1 -0
- data/lib/rufus/scheduler.rb +1 -1
- data/lib/rufus/scheduler/zotime.rb +4 -3
- metadata +2 -2
data/CHANGELOG.txt
CHANGED
data/CREDITS.txt
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
== Contributors
|
6
6
|
|
7
|
+
- Ryan Biesemeyer (https://github.com/yaauie) ZoTime.is_timezone? on OSX
|
7
8
|
- Ketan Padegaonkar (https://github.com/ketan) .brute_frequency improvement
|
8
9
|
- Gabriel Gilder (https://github.com/ggilder) LA DST specs
|
9
10
|
- Sterling Paramore (https://github.com/gnilrets) underscore TZ fix
|
data/lib/rufus/scheduler.rb
CHANGED
@@ -123,15 +123,16 @@ class Rufus::Scheduler
|
|
123
123
|
return false if str == nil
|
124
124
|
|
125
125
|
return true if Time.zone_offset(str)
|
126
|
-
return true if str == 'Zulu'
|
126
|
+
return true if str == 'Zulu' || str == 'UTC'
|
127
127
|
|
128
128
|
return !! (::TZInfo::Timezone.get(str) rescue nil) if defined?(::TZInfo)
|
129
129
|
|
130
|
-
|
131
|
-
t = zt.time
|
130
|
+
t = ZoTime.new(0, str).time
|
132
131
|
|
133
132
|
return false if t.zone == ''
|
133
|
+
return false if t.zone == 'UTC'
|
134
134
|
return false if str.match(/[a-z]/) && str.start_with?(t.zone)
|
135
|
+
# 3 common fallbacks...
|
135
136
|
|
136
137
|
return false if RUBY_PLATFORM.include?('java') && ! envtzable?(str)
|
137
138
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rufus-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
12
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|