poundie-last-tweet 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/poundie-last-tweet.rb +1 -0
- metadata +3 -3
data/lib/poundie-last-tweet.rb
CHANGED
@@ -7,6 +7,7 @@ class LastTweet < Poundie::Plugin
|
|
7
7
|
|
8
8
|
action do |message|
|
9
9
|
username = message.gsub("last tweet ", "").gsub("@", "").strip
|
10
|
+
puts "showing last tweet by @#{username}"
|
10
11
|
res = get "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=#{username}"
|
11
12
|
tweets = JSON.parse(res)
|
12
13
|
tweet "https://twitter.com/#!/#{username}/status/#{tweets.first['id']}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poundie-last-tweet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Nakajima
|