cowtech-extensions 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,7 +98,7 @@ module Cowtech
98
98
  rv = nil
99
99
  names = Cowtech::Extensions.settings.date_names
100
100
 
101
- final_format = ::DateTime.custom_format(format).ensure_string.gsub(/(%{1,2}[ab])/i) do |match|
101
+ final_format = ::DateTime.custom_format(format).ensure_string.gsub(/(%{1,2}[abz])/i) do |match|
102
102
  mrv = match
103
103
 
104
104
  if match !~ /^%%/ then
@@ -111,6 +111,8 @@ module Cowtech
111
111
  mrv = names[:short_months][self.month - 1]
112
112
  when "%B"
113
113
  mrv = names[:long_months][self.month - 1]
114
+ when "%z"
115
+ mrv = self.formatted_offset(false) if RUBY_VERSION =~ /^1\.8/ # This is to fix ruby 1.8 bug in OSX
114
116
  end
115
117
 
116
118
  mrv.sub!("%", "%%")
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 2
11
11
  MINOR = 0
12
- PATCH = 0
12
+ PATCH = 1
13
13
 
14
14
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
15
15
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-07 00:00:00 Z
18
+ date: 2012-06-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: actionpack