friendfeed 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/tw2ff +37 -9
- data/friendfeed.gemspec +6 -3
- data/lib/friendfeed/unofficial.rb +3 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/bin/tw2ff
CHANGED
@@ -50,15 +50,7 @@ rescue => e
|
|
50
50
|
|
51
51
|
STDERR.print <<EOM
|
52
52
|
The key "#{keypath}" is missing in #{ConfigFile()}.
|
53
|
-
Please
|
54
|
-
|
55
|
-
---
|
56
|
-
friendfeed:
|
57
|
-
username: "username"
|
58
|
-
password: "password"
|
59
|
-
twitter:
|
60
|
-
username: "username"
|
61
|
-
password: "password"
|
53
|
+
Please run "#{$0} config" and fill out necessary information.
|
62
54
|
EOM
|
63
55
|
exit 1
|
64
56
|
end
|
@@ -122,6 +114,28 @@ Main {
|
|
122
114
|
def run
|
123
115
|
print usage.to_s
|
124
116
|
end
|
117
|
+
|
118
|
+
mode 'config' do
|
119
|
+
description 'Edit the configuration file'
|
120
|
+
|
121
|
+
def run
|
122
|
+
if !File.exist?(ConfigFile())
|
123
|
+
File.open(ConfigFile(), 'w') { |f|
|
124
|
+
f.print <<EOF
|
125
|
+
---
|
126
|
+
friendfeed:
|
127
|
+
username: "username"
|
128
|
+
password: "password"
|
129
|
+
twitter:
|
130
|
+
username: "username"
|
131
|
+
password: "password"
|
132
|
+
EOF
|
133
|
+
}
|
134
|
+
end
|
135
|
+
|
136
|
+
system ENV['VISUAL'] || ENV['EDITOR'] || 'vi', ConfigFile()
|
137
|
+
end
|
138
|
+
end
|
125
139
|
|
126
140
|
mode 'sync' do
|
127
141
|
description 'Add imaginary friends for Twitter-only friends'
|
@@ -329,4 +343,18 @@ Main {
|
|
329
343
|
}
|
330
344
|
end
|
331
345
|
end
|
346
|
+
|
347
|
+
mode 'refresh' do
|
348
|
+
description 'Refresh the user services'
|
349
|
+
|
350
|
+
def run
|
351
|
+
ffcli = friendfeed_client()
|
352
|
+
profile = ffcli.get_profile
|
353
|
+
|
354
|
+
ffcli.get_services.each { |service|
|
355
|
+
putinfo "Refreshing %s..." % service['service']
|
356
|
+
ffcli.refresh_service(profile['id'], service['serviceid'], service['service'])
|
357
|
+
}
|
358
|
+
end
|
359
|
+
end
|
332
360
|
}
|
data/friendfeed.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{friendfeed}
|
5
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Akinori MUSHA"]
|
9
|
-
s.date = %q{2009-06
|
12
|
+
s.date = %q{2009-10-06}
|
10
13
|
s.default_executable = %q{tw2ff}
|
11
14
|
s.description = %q{This is a Ruby library to provide access to FriendFeed API's.
|
12
15
|
|
@@ -38,7 +41,7 @@ manipulating friends, groups and services for your personal purposes.
|
|
38
41
|
s.rdoc_options = ["--charset=UTF-8"]
|
39
42
|
s.require_paths = ["lib"]
|
40
43
|
s.rubyforge_project = %q{friendfeed}
|
41
|
-
s.rubygems_version = %q{1.3.
|
44
|
+
s.rubygems_version = %q{1.3.5}
|
42
45
|
s.summary = %q{A Ruby library to provide access to FriendFeed API's}
|
43
46
|
s.test_files = [
|
44
47
|
"test/test_helper.rb",
|
@@ -213,10 +213,11 @@ module FriendFeed
|
|
213
213
|
# imaginary friend specified by a unique ID. [unofficial]
|
214
214
|
def refresh_service(id, serviceid, service, options = nil)
|
215
215
|
params = {
|
216
|
-
'
|
216
|
+
'stream' => id,
|
217
|
+
'serviceid' => serviceid,
|
217
218
|
}
|
218
219
|
params.update(options) if options
|
219
|
-
|
220
|
+
post(ROOT_URI + '/a/crawlservice', params)
|
220
221
|
end
|
221
222
|
|
222
223
|
# Adds a feed to the authenticated user, a group or an imaginary
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friendfeed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06
|
12
|
+
date: 2009-10-06 00:00:00 +09:00
|
13
13
|
default_executable: tw2ff
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements: []
|
66
66
|
|
67
67
|
rubyforge_project: friendfeed
|
68
|
-
rubygems_version: 1.3.
|
68
|
+
rubygems_version: 1.3.5
|
69
69
|
signing_key:
|
70
70
|
specification_version: 3
|
71
71
|
summary: A Ruby library to provide access to FriendFeed API's
|