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 CHANGED
@@ -2,6 +2,11 @@
2
2
  = rufus-scheduler CHANGELOG.txt
3
3
 
4
4
 
5
+ == rufus-scheduler - 3.1.1 released 2015/04/19
6
+
7
+ - fix ZoTime.is_timezone? on OSX, thanks https://github.com/yaauie
8
+
9
+
5
10
  == rufus-scheduler - 3.1.0 released 2015/04/18
6
11
 
7
12
  - go without tzinfo (and its dependencies)
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
@@ -39,7 +39,7 @@ module Rufus
39
39
  require 'rufus/scheduler/job_array'
40
40
  require 'rufus/scheduler/locks'
41
41
 
42
- VERSION = '3.1.0'
42
+ VERSION = '3.1.1'
43
43
 
44
44
  #
45
45
  # A common error class for rufus-scheduler
@@ -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
- zt = ZoTime.new(0, str)
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.0
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-17 00:00:00.000000000 Z
12
+ date: 2015-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake