flumtter 5.0.2 → 5.0.3

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: 33531e2cb1261fc28002dd6d94a112d8332dc0b9
4
- data.tar.gz: 5cc07ba9ce4a3bd9172f00ab48771feb18633bb7
3
+ metadata.gz: 4837f13438b83ba9f4fcd9f67c748f63616d7a89
4
+ data.tar.gz: 6d936d740ad575000be00ed6b9452fdcafcd35b0
5
5
  SHA512:
6
- metadata.gz: 33fd4b29293048d83e45c1d5c06a355699deebbc68fba42de00d7687083819f97c362ce2671cfa2c280e4210b9224d876a3aa6396b864c3dd0daf8681567c756
7
- data.tar.gz: 039841cc82d9f633df0425aae11ef63b0fc5a2b3a941807c8d5d7d3cb2ea26c49de34ffc163942309a250a35e7ee8d779edb9a44ecdfe7fb710c5667fe87ec27
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 '~/.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.
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 = {
@@ -15,7 +15,6 @@ module Flumtter
15
15
  data_path = UserPath.join("data", "data.bin")
16
16
  Config = Marshal.load(File.read(data_path)) rescue {}
17
17
  at_exit {
18
- puts 'data saved'
19
18
  File.write(data_path, Marshal.dump(Config))
20
19
  }
21
20
 
@@ -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
@@ -77,6 +77,8 @@ module Flumtter
77
77
  puts e.message.color
78
78
  rescue Twitter::Error::Unauthorized => e
79
79
  puts e.message.color
80
+ rescue Twitter::Error::Forbidden => e
81
+ puts e.message.color
80
82
  end
81
83
  end
82
84
 
@@ -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}"
@@ -1,3 +1,3 @@
1
1
  module Flumtter
2
- VERSION = "5.0.2"
2
+ VERSION = "5.0.3"
3
3
  end
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.2
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-22 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler