cartoonist-twitter 0.0.19 → 0.0.19.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e3818f3e804ac47a7aaf59cf4be13075815fcf1
4
- data.tar.gz: 9c1a6254f8f6b6afb901091575c16bfd75ac14ff
3
+ metadata.gz: 75e0d67953d75299adb4bc828b443dffd8260659
4
+ data.tar.gz: 8379b27d8fe3732fb11b8e43b40ef08514310205
5
5
  SHA512:
6
- metadata.gz: f96eead961e67294d4288fc5813e086c3eb9d1c329f1d4b2f7f25fa49164001164a6703c73e4438efcbc87d535d172534e1e097878b80fce6511a8f963e4a4b3
7
- data.tar.gz: 6ea615e6362fe26590fe889a676ed55f970d112930d2c344e32ae20815a986775817891b40f51b36443c5079b9baf6bb2c8eea4ea704a77328839af826b85850
6
+ metadata.gz: 779ce648eb415630449a8e6ca060a1d0fc4244764a14b1953a1b8e3e6adc5d1b721bb747c037fb41e2e17584e3a3a7bbe263c2667828fc358792fde5d1eb4a5c
7
+ data.tar.gz: a12a243228114a343c5321dd4ea7969e36c7ef6c0645fc50f977598e41b1a16395fd675db9444ce7698bf6059ca9c4153bef5729599ec78f166ae58cdde7c27e
@@ -89,8 +89,8 @@ class Tweet < ActiveRecord::Base
89
89
  if tweet_time.blank?
90
90
  entity.posted_at
91
91
  elsif entity.posted_at
92
- parsed = DateTime.strptime("#{entity.posted_at.year}-#{entity.posted_at.month}-#{entity.posted_at.day} #{tweet_time.downcase}", "%Y-%m-%d %I:%M %p").to_time
93
- result = Time.local entity.posted_at.year, entity.posted_at.month, entity.posted_at.day, parsed.hour, parsed.min
92
+ parsed = Time.zone.parse("#{entity.posted_at.year}-#{entity.posted_at.month}-#{entity.posted_at.day} #{tweet_time.downcase}")
93
+ result = Time.zone.local entity.posted_at.year, entity.posted_at.month, entity.posted_at.day, parsed.hour, parsed.min
94
94
  result = result + 1.day if result < entity.posted_at.to_time
95
95
  result
96
96
  end
@@ -2,7 +2,7 @@ module CartoonistTwitter
2
2
  class Version
3
3
  class << self
4
4
  def to_s
5
- "0.0.19"
5
+ "0.0.19.1"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Virata-Stone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-25 00:00:00.000000000 Z
11
+ date: 2013-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cartoonist
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.19
19
+ version: 0.0.19.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.19
26
+ version: 0.0.19.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: twitter
29
29
  requirement: !ruby/object:Gem::Requirement