pat-maddox-twinkies 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 1
data/lib/ext/date_time.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class DateTime
2
- def pretty
3
- strftime '%a, %d %b %Y %H:%M:%S'
2
+ def rfc822
3
+ strftime '%a, %d %b %Y %H:%M:%S %z'
4
4
  end
5
5
  end
@@ -45,7 +45,7 @@ module Twinkies
45
45
  xml.item do
46
46
  xml.title "#{tweet.user} - #{tweet.text}"
47
47
  xml.link tweet.link
48
- xml.pubDate tweet.created_at.pretty
48
+ xml.pubDate tweet.created_at.rfc822
49
49
  xml.guid tweet.id, :isPermaLink => false
50
50
  end
51
51
  end
@@ -1,8 +1,8 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper'
2
2
 
3
- describe DateTime, "#pretty" do
4
- it "should print 'Day, dd Mon 2009 01:23:45" do
5
- DateTime.parse('1/9/2009 3:45pm').pretty.
6
- should == 'Fri, 09 Jan 2009 15:45:00'
3
+ describe DateTime, "#rfc822" do
4
+ it "should print 'Day, dd Mon 2009 01:23:45 +0000" do
5
+ DateTime.parse('1/9/2009 3:45pm').rfc822.
6
+ should == 'Fri, 09 Jan 2009 15:45:00 +0000'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pat-maddox-twinkies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Maddox