flumtter 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/flumtter/app/core/core.rb +0 -1
- data/lib/flumtter/app/core/initializer.rb +4 -0
- data/lib/flumtter/app/core/util.rb +2 -0
- data/lib/flumtter/app/plugins/toast.rb +1 -1
- data/lib/flumtter/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: 4837f13438b83ba9f4fcd9f67c748f63616d7a89
|
4
|
+
data.tar.gz: 6d936d740ad575000be00ed6b9452fdcafcd35b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 410eb76edfedc53bc41690bd734a983a502fe200786214484c51462244e8bf33acdeb88ee5e8a9f1f4b974841a5d1bfeb9faad6a010c419d0f05335c10846358
|
7
|
+
data.tar.gz: a223c48a854af578828e4e0394ed86446b56f0be186e63cb51e424bbd566a58b61cbbd2e87b26bb347e61f3262d4abf72532e5899f567a630310116ec269dac5
|
data/README.md
CHANGED
@@ -10,9 +10,18 @@ This client is supported multiple account.
|
|
10
10
|
and help
|
11
11
|
|
12
12
|
$ flumtter -h
|
13
|
+
Usage: flumtter [options]
|
14
|
+
-n, --name VALUE account name
|
15
|
+
-i, --index VALUE account index
|
16
|
+
-s, --non_stream without stream
|
17
|
+
-d, --debug debug mode
|
18
|
+
--args VALUE
|
19
|
+
--timeline_load VALUE load timeline num
|
20
|
+
--[no-]timeline_load? load timeline on init
|
21
|
+
--pry console mode
|
13
22
|
|
14
23
|
## Customize
|
15
|
-
There is a configuration file on
|
24
|
+
There is a configuration file on `~/.flumtter/setting/setting.rb`. This setting is overwritten by start option. This file needs to be described in ruby's hash format. This file will be created automatically and should ONLY be edited by someone who knows what they are doing.
|
16
25
|
|
17
26
|
```ruby
|
18
27
|
Setting = {
|
@@ -14,6 +14,7 @@ module Initializer
|
|
14
14
|
|
15
15
|
def optparse
|
16
16
|
opt = OptionParser.new
|
17
|
+
opt.version = Flumtter::VERSION
|
17
18
|
options = {}
|
18
19
|
opt.on('-n VALUE', '--name VALUE', 'account name'){|v|options[:name] = v}
|
19
20
|
opt.on('-i VALUE', '--index VALUE', 'account index'){|v|options[:id] = v.to_i}
|
@@ -24,5 +25,8 @@ module Initializer
|
|
24
25
|
opt.parse!(ARGV)
|
25
26
|
options.each{|k,v|@events[k].call(v,options) unless @events[k].nil?}
|
26
27
|
options
|
28
|
+
rescue OptionParser::InvalidOption => e
|
29
|
+
STDERR.puts e.message
|
30
|
+
exit false
|
27
31
|
end
|
28
32
|
end
|
@@ -25,7 +25,7 @@ module Flumtter
|
|
25
25
|
Toast.new("Followed by #{object.source.screen_name}") do |t|
|
26
26
|
t.title title(twitter)
|
27
27
|
end
|
28
|
-
elsif type.include?(:favorite)
|
28
|
+
elsif type.include?(:favorite) && object.target_object.user.id == twitter.account.id && object.source.user.id != twitter.account.id
|
29
29
|
Toast.new(object.target_object.text) do |t|
|
30
30
|
t.title title(twitter)
|
31
31
|
t.subtitle "Favorited by #{object.source.screen_name}"
|
data/lib/flumtter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flumtter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- flum1025
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|