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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0636f04008c60855826651b8463b00ec2ddbc55d
4
- data.tar.gz: 0d17f7dc24be101117f123c8b329e62d81a39da5
3
+ metadata.gz: cfb6aa751c551429a11611090d53bc7e12131069
4
+ data.tar.gz: 2087324f9ac8e6243182382cc99330d82cda778e
5
5
  SHA512:
6
- metadata.gz: 6d6f7210110f77c08bb2c6a1d1a48cf95e63de3c4f747cce9a403be842e4f9043cebf15faec2acd90e377a1a539de81a28de1d21527a7781d1ce87f9766c5d88
7
- data.tar.gz: 9ef0e841c39f9cbd0b38351e269d26a60523f5cf0ddc018883614abb389c232f3a3de18950046530c0b6a429472feb84fc76bd75593404353fc7b1c1aed6fe24
6
+ metadata.gz: c653d2bb79a6dec49cdc5344e93466c2e24858828b683a7a529374efc21ab0f600a67fd08252c38df5b19098934275f589d79a71011739798e514fdbc83e9b81
7
+ data.tar.gz: f6d47f77d40ad6cf2808190ce8a5311640252d28354a49b76f1ff56708ccba1a2990996f417dcb646bfa3d1d0d283a4c7b38521d89fff562fb5e290ae99f904e
@@ -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|
@@ -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.followed_by?(Client.current.user_id)
119
+ user.following?(Client.current.user_id)
120
120
  end
121
121
 
122
122
  def following?
@@ -1,3 +1,3 @@
1
1
  module Twterm
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
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.3
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-10-13 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses