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 +4 -4
- data/bin/rabbiter +3 -1
- data/doc/en/index.rd +0 -9
- data/doc/ja/index.rd +0 -10
- data/lib/rabbiter.rb +12 -5
- data/lib/rabbiter/version.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c03a74ebb49efc299456ac46162c40574a6fd487
|
4
|
+
data.tar.gz: c1dc4f667448e52c671514641cd04c0e4b41235a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b35e57b016f58c55ea16c64a8cf81f1afd31ce3cb78def3e80126160ef7ac1b80696a0c060dfe0fa2cca7529fd88095f6cae7a12402a7845c96f1d6d085fc0e
|
7
|
+
data.tar.gz: 6181008a3a84d044036319b5b621641884fb478776641dc0eaf6f1c0fda218032a5523df5e2cc573f8cdf8d7fbc5265c1a6144c11150e3a41c62e8a16efb21e0
|
data/bin/rabbiter
CHANGED
@@ -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(
|
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
|
data/doc/en/index.rd
CHANGED
@@ -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
|
data/doc/ja/index.rd
CHANGED
@@ -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が収集するツイートは特定のキーワードで絞り込みます。最近のイベ
|
data/lib/rabbiter.rb
CHANGED
@@ -109,11 +109,18 @@ module Rabbiter
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def show_uri(uri)
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
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
|
data/lib/rabbiter/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
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.
|
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.
|
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:
|
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.
|
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:
|