atig 0.4.0 → 0.4.1

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: 5f549827483cdb150253c9528eeea5366784dd55
4
- data.tar.gz: deb4bda7d0836cad0a19d36adf8d9b1e98abcd1d
3
+ metadata.gz: 3e201d9ce1842a733c03d41341dd68c6d9b87532
4
+ data.tar.gz: 0a3320335a18a898edc078983d931fe96638d9ab
5
5
  SHA512:
6
- metadata.gz: b4085e54b3da5388d87a09aea541d01ae425dbcc29852c4d3c3c88fe9df1ae0377901b36bc75d0c31ff4d39cb2615828d3b56d4f4c7fb6596fe740ac54d8d8a8
7
- data.tar.gz: b575c7e8979c5bac405144fd84953b4edaed0abe7702f5e7c06c5acc36d435bc7b7ec4cbec22e4d743342b881a78c86469eaa1da4cc27abddbf65923c498515c
6
+ metadata.gz: 71203f2d8ba4e7ce17683c1a814754a9f83e51593861154209e683f24ac60a0b33eda8247ca78fcdb7342c722e05940c839e2e358d00b297e1d5351352a24aff
7
+ data.tar.gz: a7f51a1b6a287ce03f2afaac5691b0edb780aab67b1e8d056a48c62d4a8c8ce2743cb742ee32cc20378fdf2f0a6d5b34c7d502cacd555758304a48bdf77bd452
data/docs/changelog.rst CHANGED
@@ -1,6 +1,24 @@
1
1
  更新履歴
2
2
  ==============
3
3
 
4
+ v0.4.1(2013-08-02)
5
+ ------------------------------
6
+ http://github.com/mzp/atig/tree/v0.4.1
7
+
8
+ 不具合修正
9
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
+ - '&' が置換されない問題を修正しました
11
+ - reply が取得できない不具合を修正しました
12
+ - list の追加・削除 API が 1.0 のままだった問題を修正しました
13
+
14
+ v0.4.0(2013-06-12)
15
+ ------------------------------
16
+ http://github.com/mzp/atig/tree/v0.4.0
17
+
18
+ 機能変更
19
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
+ - Twitter API 1.1に対応しました
21
+
4
22
  v0.3.12(2013-04-02)
5
23
  ------------------------------
6
24
  http://github.com/mzp/atig/tree/v0.3.12
@@ -16,7 +16,9 @@ module Atig
16
16
  log :info, "initialize"
17
17
 
18
18
  @api.stream do|t|
19
- t.watch('user') do |status|
19
+ options = context.opts.allreplies ? {:replies => :all} : {}
20
+
21
+ t.watch('user', options) do |status|
20
22
  # @log.debug status.inspect
21
23
  next if status.retweeted_status and db.noretweets.include?(status.user.id)
22
24
  if status.direct_message
@@ -12,14 +12,14 @@ module Atig
12
12
  def on_invite(api, nick)
13
13
  return if @name.include? '^'
14
14
 
15
- api.post("#{@db.me.screen_name}/#{@name}/members", :id => nick )
15
+ api.post("lists/members/create", :screen_name => nick, :owner_screen_name => @db.me.screen_name, :slug => @name )
16
16
  @db.lists.invalidate @name
17
17
  end
18
18
 
19
19
  def on_kick(api, nick)
20
20
  return if @name.include? '^'
21
21
 
22
- api.delete("#{@db.me.screen_name}/#{@name}/members", :id => nick )
22
+ api.post("lists/members/destroy", :screen_name => nick, :owner_screen_name => @db.me.screen_name, :slug => @name )
23
23
  @db.lists.invalidate @name
24
24
  end
25
25
 
@@ -10,6 +10,7 @@ module Atig
10
10
  gsub(">", ">").
11
11
  gsub(""", '"').
12
12
  gsub("&lt;", "<").
13
+ gsub("&amp;", "&").
13
14
  gsub(WSP_REGEX, " ")
14
15
  status.merge :text => text
15
16
  }
data/lib/atig/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Atig
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SHIBATA Hiroshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-12 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  version: '0'
319
319
  requirements: []
320
320
  rubyforge_project:
321
- rubygems_version: 2.0.3
321
+ rubygems_version: 2.0.6
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: Atig.rb is forked from cho45's tig.rb. We improve some features of tig.rb.
@@ -366,4 +366,3 @@ test_files:
366
366
  - spec/sized_hash_spec.rb
367
367
  - spec/spec_helper.rb
368
368
  - spec/update_checker_spec.rb
369
- has_rdoc: