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 +4 -4
- data/app/models/tweet.rb +2 -2
- data/lib/cartoonist-twitter/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e0d67953d75299adb4bc828b443dffd8260659
|
4
|
+
data.tar.gz: 8379b27d8fe3732fb11b8e43b40ef08514310205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 779ce648eb415630449a8e6ca060a1d0fc4244764a14b1953a1b8e3e6adc5d1b721bb747c037fb41e2e17584e3a3a7bbe263c2667828fc358792fde5d1eb4a5c
|
7
|
+
data.tar.gz: a12a243228114a343c5321dd4ea7969e36c7ef6c0645fc50f977598e41b1a16395fd675db9444ce7698bf6059ca9c4153bef5729599ec78f166ae58cdde7c27e
|
data/app/models/tweet.rb
CHANGED
@@ -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 =
|
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
|
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-
|
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
|