cinch-twitter 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/cinch-twitter.gemspec +2 -2
- data/lib/cinch/plugins/twitter/formatter.rb +3 -3
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/cinch-twitter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cinch-twitter"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mark Seymour"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-08-13"
|
13
13
|
s.description = "A Twitter plugin for Cinch."
|
14
14
|
s.email = "mark.seymour.ns@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -14,7 +14,7 @@ module Cinch
|
|
14
14
|
body << CGI::unescapeHTML(tweet_text.gsub("\n", " ").squeeze(" "))
|
15
15
|
body << Cinch::Formatting.format(:aqua,"*twoosh*") if tweet.full_text.length == 140
|
16
16
|
tail << "From #{tweet.place.full_name}" if !tweet.place.blank?
|
17
|
-
tail << "at #{tweet.created_at.strftime("%B %-d, %Y, %-I:%
|
17
|
+
tail << "at #{tweet.created_at.strftime("%B %-d, %Y, %-I:%M%P")}"
|
18
18
|
tail << "via #{tweet.source.gsub( %r{</?[^>]+?>}, '' )}"
|
19
19
|
urls << "https://twitter.com/#{tweet.user.screen_name}"
|
20
20
|
urls << Cinch::Formatting.format(:grey,"in reply to") if !tweet.in_reply_to_screen_name.blank?
|
@@ -29,7 +29,7 @@ module Cinch
|
|
29
29
|
head = Cinch::Formatting.format(:bold,"#{tweet.from_user} »")
|
30
30
|
body << CGI::unescapeHTML(tweet_text.gsub("\n", " ").squeeze(" "))
|
31
31
|
body << Cinch::Formatting.format(:aqua,"*twoosh*") if tweet.full_text.length == 140
|
32
|
-
tail << "at #{tweet.created_at.strftime("%B %-d, %Y, %-I:%
|
32
|
+
tail << "at #{tweet.created_at.strftime("%B %-d, %Y, %-I:%M%P")}"
|
33
33
|
urls << "https://twitter.com/#{tweet.from_user}"
|
34
34
|
parts = [head, body, ["(", tail.join(" "), ")"].join, urls].flatten
|
35
35
|
parts.join(" ")
|
@@ -56,7 +56,7 @@ module Cinch
|
|
56
56
|
tweet << CGI::unescapeHTML(tweep_status_text.gsub("\n", " ").squeeze(" "))
|
57
57
|
tweet_tail = []
|
58
58
|
tweet_tail << "from #{tweep.status.place.full_name}" if !tweep.status.place.blank?
|
59
|
-
tweet_tail << "at #{tweep.status.created_at.strftime("%B %-d, %Y, %-I:%
|
59
|
+
tweet_tail << "at #{tweep.status.created_at.strftime("%B %-d, %Y, %-I:%M%P")}"
|
60
60
|
|
61
61
|
parts = [head, bio, location, desc, flags].reject(&:blank?).map {|e| e.is_a?(Array) ? "#{tweep.name} " + e.to_sentence + "." : e }
|
62
62
|
parts << [tweet, Cinch::Formatting.format(:silver,["(", tweet_tail.join(" "), ")"].join)].join(" ")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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: 2012-
|
12
|
+
date: 2012-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
segments:
|
162
162
|
- 0
|
163
|
-
hash:
|
163
|
+
hash: -942801069
|
164
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
165
|
none: false
|
166
166
|
requirements:
|