twterm 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twterm/rest_client.rb +2 -0
- data/lib/twterm/tab/user_tab.rb +2 -2
- data/lib/twterm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb6aa751c551429a11611090d53bc7e12131069
|
4
|
+
data.tar.gz: 2087324f9ac8e6243182382cc99330d82cda778e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c653d2bb79a6dec49cdc5344e93466c2e24858828b683a7a529374efc21ab0f600a67fd08252c38df5b19098934275f589d79a71011739798e514fdbc83e9b81
|
7
|
+
data.tar.gz: f6d47f77d40ad6cf2808190ce8a5311640252d28354a49b76f1ff56708ccba1a2990996f417dcb646bfa3d1d0d283a4c7b38521d89fff562fb5e290ae99f904e
|
data/lib/twterm/rest_client.rb
CHANGED
@@ -190,6 +190,8 @@ module Twterm
|
|
190
190
|
conn.include?('following_requested') ? Friendship.following_requested(client_id, id) : Friendship.following_not_requested(client_id, id)
|
191
191
|
conn.include?('followed_by') ? Friendship.follow(id, client_id) : Friendship.unfollow(id, client_id)
|
192
192
|
conn.include?('muting') ? Friendship.mute(client_id, id) : Friendship.unmute(client_id, id)
|
193
|
+
|
194
|
+
Friendship.looked_up!(id)
|
193
195
|
end
|
194
196
|
end
|
195
197
|
end.catch do |e|
|
data/lib/twterm/tab/user_tab.rb
CHANGED
@@ -36,7 +36,7 @@ module Twterm
|
|
36
36
|
User.find_or_fetch(user_id).then do |user|
|
37
37
|
refresh
|
38
38
|
|
39
|
-
Client.current.lookup_friendships
|
39
|
+
Client.current.lookup_friendships.then { render } unless Friendship.already_looked_up?(user_id)
|
40
40
|
self.title = "@#{user.screen_name}"
|
41
41
|
end
|
42
42
|
end
|
@@ -116,7 +116,7 @@ module Twterm
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def followed?
|
119
|
-
user.
|
119
|
+
user.following?(Client.current.user_id)
|
120
120
|
end
|
121
121
|
|
122
122
|
def following?
|
data/lib/twterm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twterm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Kameoka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|