rabbiter 2.0.3 → 2.0.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: 2c64d254c91883c38c15038cad942db2f369c980
4
- data.tar.gz: dbbc7b955addd298e7fb3ebe6358158746acbf36
3
+ metadata.gz: c03a74ebb49efc299456ac46162c40574a6fd487
4
+ data.tar.gz: c1dc4f667448e52c671514641cd04c0e4b41235a
5
5
  SHA512:
6
- metadata.gz: b132fbfdd0f515ea9d6620694ff689a55bc40dd1aa28d7f5d8f81f5acc00fedd67e5a89e19fcc23e335a5c6a8024937b427011fca431b99b2764e61acc07b5cc
7
- data.tar.gz: 0e8933d5833f5b8d4a3f98bc80f3ac0071a706e69ed98eeb98b4d75210e26cdd7db6e40ee585c98a3a5d400b2a67af8d38498a0ea4f180fedee6bb566c236376
6
+ metadata.gz: 2b35e57b016f58c55ea16c64a8cf81f1afd31ce3cb78def3e80126160ef7ac1b80696a0c060dfe0fa2cca7529fd88095f6cae7a12402a7845c96f1d6d085fc0e
7
+ data.tar.gz: 6181008a3a84d044036319b5b621641884fb478776641dc0eaf6f1c0fda218032a5523df5e2cc573f8cdf8d7fbc5265c1a6144c11150e3a41c62e8a16efb21e0
@@ -132,8 +132,10 @@ def resolve_shorten_urls(raw_text, status, options)
132
132
  -start_position
133
133
  end
134
134
  reversed_urls.each do |url|
135
+ expanded_url = url.expanded_url
136
+ next if expanded_url.nil?
135
137
  start_position, end_position = url.indices
136
- resolved_url = resolve_shorten_url(url.expanded_url)
138
+ resolved_url = resolve_shorten_url(expanded_url)
137
139
  resolved_text[start_position...end_position] = resolved_url.to_s
138
140
  end
139
141
  resolved_text
@@ -25,15 +25,6 @@ installed.
25
25
 
26
26
  % gem install rabbiter
27
27
 
28
- === Special OS X installation instructions
29
-
30
- Most packages necessary for Rabbiter are commonly already installed.
31
-
32
- You must install the ((%glib-networking%)) package. If you are using
33
- Homebrew, use the following command to install the package:
34
-
35
- % brew install glib-networking
36
-
37
28
  == Usage
38
29
 
39
30
  Rabbiter filters target tweets by specified keywords. It's good idea
@@ -26,16 +26,6 @@ RubyGemsでインストールできます。関連パッケージも一緒にイ
26
26
 
27
27
  % gem install rabbiter
28
28
 
29
- === OS X特有のインストール手順
30
-
31
- Rabbiterに必要なパッケージは自動でインストールされますが、OS Xでは足り
32
- ないパッケージがあります。
33
-
34
- ((%glib-networking%))パッケージを自分でインストールする必要があります。
35
- Homebrewを使っているなら以下のようにインストールしてください。
36
-
37
- % brew install glib-networking
38
-
39
29
  == 使い方
40
30
 
41
31
  Rabbiterが収集するツイートは特定のキーワードで絞り込みます。最近のイベ
@@ -109,11 +109,18 @@ module Rabbiter
109
109
  end
110
110
 
111
111
  def show_uri(uri)
112
- return unless Gtk.respond_to?(:show_uri)
113
- begin
114
- Gtk.show_uri(uri)
115
- rescue GLib::Error
116
- @logger.warning("[twitter][show-uri] #{$!}")
112
+ if Gtk.respond_to?(:show_uri_on_window)
113
+ begin
114
+ Gtk.show_uri_on_window(nil, uri, Gdk::CURRENT_TIME)
115
+ rescue GLib::ErrorInfo
116
+ @logger.warning("[twitter][show-uri] #{$!}")
117
+ end
118
+ elsif Gtk.respond_to?(:show_uri)
119
+ begin
120
+ Gtk.show_uri(uri)
121
+ rescue GLib::ErrorInfo
122
+ @logger.warning("[twitter][show-uri] #{$!}")
123
+ end
117
124
  end
118
125
  end
119
126
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@cozmixng.org>
1
+ # Copyright (C) 2012-2016 Kouhei Sutou <kou@cozmixng.org>
2
2
  #
3
3
  # This program is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -15,5 +15,5 @@
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
17
  module Rabbiter
18
- VERSION = "2.0.3"
18
+ VERSION = "2.0.4"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-21 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rabbit
@@ -153,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project: rabbit
156
- rubygems_version: 2.5.1
156
+ rubygems_version: 2.5.2
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Rabbiter is a twitter client for Rabbit
160
160
  test_files: []
161
- has_rdoc: