• R/O
  • HTTP
  • SSH
  • HTTPS

open-tween: Commit

開発に使用するリポジトリ


Commit MetaInfo

Revisão2cda1637fb7e5e7ae5d07c840066d98b4c198ddd (tree)
Hora2012-02-18 23:11:16
Autorkiri_feather <kiri_feather@user...>
CommiterKimura Youichi

Mensagem de Log

0882。API情報取得をAPI使用に戻し。

git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@133 e39ad16e-3079-482e-bb30-4b4d378143b6

Mudança Sumário

Diff

--- a/Tween/My Project/AssemblyInfo.vb
+++ b/Tween/My Project/AssemblyInfo.vb
@@ -55,5 +55,5 @@ Imports System.Runtime.InteropServices
5555 ' <Assembly: AssemblyVersion("1.0.*")>
5656
5757 <Assembly: AssemblyVersion("0.1.0.0")>
58-<Assembly: AssemblyFileVersion("0.8.8.1")>
58+<Assembly: AssemblyFileVersion("0.8.8.2")>
5959
--- a/Tween/Resources/ChangeLog.txt
+++ b/Tween/Resources/ChangeLog.txt
@@ -1,5 +1,16 @@
11 更新履歴
22
3+==== Ver 0.8.8.2(2010/03/12)
4+ * 認証エラーが返ってくると、以後更新しなくなってしまうバグ修正
5+ * API情報取得が正常に動作しないバグ修正
6+ * 検索タブの遡りで、キャッシュが効いてしまう現象への対処
7+ * BASIC認証も選べるように(各APIの接続先は共通なので、API制限は共通となります)
8+ * ProxyAPI対応として、APIの接続先URLの一部を置き換えできるように設定追加
9+ * 1秒以内の同種のAPIリクエストをキャンセルするように
10+ * home_timeline,mentions,DirectMessageを遡れるように(Shift-F5,Shift-r)(DMはTwitterが仕様と違う動きをするため取得出来ません)
11+ * 公式RTに対するQT返信時に、in_reply_toがつかないバグ修正
12+ * 最小化状態で起動するとレイアウトが崩れる問題に対応(Tweenへのショートカットのプロパティで設定すると最小化状態で起動できます)
13+ * 投稿時に自動URL短縮される際に、最後のURLしか短縮されない場合があるバグ修正
314 ==== Ver 0.8.8.1(2010/03/3)
415 * Webモード廃止
516 * OAuth(xAuth)対応(API上限が350へ)
--- a/Tween/Tween.Designer.vb
+++ b/Tween/Tween.Designer.vb
@@ -28,6 +28,7 @@ Partial Class TweenMain
2828 Me.ToolStripContainer1 = New System.Windows.Forms.ToolStripContainer
2929 Me.StatusStrip1 = New System.Windows.Forms.StatusStrip
3030 Me.StatusLabelUrl = New System.Windows.Forms.ToolStripStatusLabel
31+ Me.StatusLabel = New Tween.TweenCustomControl.ToolStripLabelHistory
3132 Me.HashStripSplitButton = New System.Windows.Forms.ToolStripSplitButton
3233 Me.ContextMenuStripPostMode = New System.Windows.Forms.ContextMenuStrip(Me.components)
3334 Me.ToolStripMenuItemUrlMultibyteSplit = New System.Windows.Forms.ToolStripMenuItem
@@ -62,6 +63,7 @@ Partial Class TweenMain
6263 Me.ToolStripMenuItem1 = New System.Windows.Forms.ToolStripSeparator
6364 Me.SaveIconPictureToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
6465 Me.NameLabel = New System.Windows.Forms.Label
66+ Me.PostBrowser = New System.Windows.Forms.WebBrowser
6567 Me.ContextMenuStrip4 = New System.Windows.Forms.ContextMenuStrip(Me.components)
6668 Me.ToolStripMenuItem2 = New System.Windows.Forms.ToolStripMenuItem
6769 Me.SearchItem2ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
@@ -229,8 +231,6 @@ Partial Class TweenMain
229231 Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog
230232 Me.TimerRefreshIcon = New System.Windows.Forms.Timer(Me.components)
231233 Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
232- Me.PostBrowser = New System.Windows.Forms.WebBrowser
233- Me.StatusLabel = New Tween.TweenCustomControl.ToolStripLabelHistory
234234 Me.ToolStripContainer1.BottomToolStripPanel.SuspendLayout()
235235 Me.ToolStripContainer1.ContentPanel.SuspendLayout()
236236 Me.ToolStripContainer1.TopToolStripPanel.SuspendLayout()
@@ -289,6 +289,14 @@ Partial Class TweenMain
289289 resources.ApplyResources(Me.StatusLabelUrl, "StatusLabelUrl")
290290 Me.StatusLabelUrl.Spring = True
291291 '
292+ 'StatusLabel
293+ '
294+ Me.StatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right
295+ Me.StatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text
296+ Me.StatusLabel.DoubleClickEnabled = True
297+ Me.StatusLabel.Name = "StatusLabel"
298+ resources.ApplyResources(Me.StatusLabel, "StatusLabel")
299+ '
292300 'HashStripSplitButton
293301 '
294302 Me.HashStripSplitButton.AutoToolTip = False
@@ -523,6 +531,18 @@ Partial Class TweenMain
523531 Me.NameLabel.Name = "NameLabel"
524532 Me.NameLabel.UseMnemonic = False
525533 '
534+ 'PostBrowser
535+ '
536+ Me.PostBrowser.AllowWebBrowserDrop = False
537+ Me.TableLayoutPanel1.SetColumnSpan(Me.PostBrowser, 2)
538+ Me.PostBrowser.ContextMenuStrip = Me.ContextMenuStrip4
539+ resources.ApplyResources(Me.PostBrowser, "PostBrowser")
540+ Me.PostBrowser.IsWebBrowserContextMenuEnabled = False
541+ Me.PostBrowser.Name = "PostBrowser"
542+ Me.PostBrowser.ScriptErrorsSuppressed = True
543+ Me.PostBrowser.TabStop = False
544+ Me.PostBrowser.Url = New System.Uri("", System.UriKind.Relative)
545+ '
526546 'ContextMenuStrip4
527547 '
528548 Me.ContextMenuStrip4.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItem2, Me.ToolStripSeparator13, Me.ToolStripMenuItem3, Me.ToolStripMenuItem4, Me.ToolStripMenuItem5, Me.ToolStripSeparator5, Me.FollowContextMenuItem, Me.RemoveContextMenuItem, Me.FriendshipContextMenuItem, Me.ToolStripSeparator32, Me.IdFilterAddMenuItem, Me.ToolStripSeparator33, Me.UseHashtagMenuItem})
@@ -1387,26 +1407,6 @@ Partial Class TweenMain
13871407 '
13881408 Me.OpenFileDialog1.FileName = "OpenFileDialog1"
13891409 '
1390- 'PostBrowser
1391- '
1392- Me.PostBrowser.AllowWebBrowserDrop = False
1393- Me.TableLayoutPanel1.SetColumnSpan(Me.PostBrowser, 2)
1394- Me.PostBrowser.ContextMenuStrip = Me.ContextMenuStrip4
1395- resources.ApplyResources(Me.PostBrowser, "PostBrowser")
1396- Me.PostBrowser.IsWebBrowserContextMenuEnabled = False
1397- Me.PostBrowser.Name = "PostBrowser"
1398- Me.PostBrowser.ScriptErrorsSuppressed = True
1399- Me.PostBrowser.TabStop = False
1400- Me.PostBrowser.Url = New System.Uri("", System.UriKind.Relative)
1401- '
1402- 'StatusLabel
1403- '
1404- Me.StatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right
1405- Me.StatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text
1406- Me.StatusLabel.DoubleClickEnabled = True
1407- Me.StatusLabel.Name = "StatusLabel"
1408- resources.ApplyResources(Me.StatusLabel, "StatusLabel")
1409- '
14101410 'TweenMain
14111411 '
14121412 Me.AllowDrop = True
--- a/Tween/Tween.resx
+++ b/Tween/Tween.resx
@@ -1887,6 +1887,12 @@
18871887 <data name="&gt;&gt;StatusLabelUrl.Type" xml:space="preserve">
18881888 <value>System.Windows.Forms.ToolStripStatusLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
18891889 </data>
1890+ <data name="&gt;&gt;StatusLabel.Name" xml:space="preserve">
1891+ <value>StatusLabel</value>
1892+ </data>
1893+ <data name="&gt;&gt;StatusLabel.Type" xml:space="preserve">
1894+ <value>Tween.TweenCustomControl.ToolStripLabelHistory, Tween, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
1895+ </data>
18901896 <data name="&gt;&gt;HashStripSplitButton.Name" xml:space="preserve">
18911897 <value>HashStripSplitButton</value>
18921898 </data>
@@ -2991,12 +2997,6 @@
29912997 <data name="&gt;&gt;OpenFileDialog1.Type" xml:space="preserve">
29922998 <value>System.Windows.Forms.OpenFileDialog, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
29932999 </data>
2994- <data name="&gt;&gt;StatusLabel.Name" xml:space="preserve">
2995- <value>StatusLabel</value>
2996- </data>
2997- <data name="&gt;&gt;StatusLabel.Type" xml:space="preserve">
2998- <value>Tween.TweenCustomControl.ToolStripLabelHistory, Tween, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value>
2999- </data>
30003000 <data name="&gt;&gt;$this.Name" xml:space="preserve">
30013001 <value>TweenMain</value>
30023002 </data>
--- a/Tween/Twitter.vb
+++ b/Tween/Twitter.vb
@@ -3984,31 +3984,31 @@ Public Class Twitter
39843984
39853985 If _endingFlag Then Return True
39863986
3987- info.MaxCount = twCon.UpperCountApi
3988- info.RemainCount = twCon.RemainCountApi
3989- info.ResetTime = twCon.ResetTimeApi
3990- Return True
3991- 'Dim res As HttpStatusCode
3992- 'Dim content As String = ""
3993- 'Try
3994- ' res = twCon.RateLimitStatus(content)
3995- 'Catch ex As Exception
3996- ' Return False
3997- 'End Try
3998-
3999- 'If res <> HttpStatusCode.OK Then Return False
4000-
4001- 'Dim xdoc As New XmlDocument
4002- 'Try
4003- ' xdoc.LoadXml(content)
4004- ' info.MaxCount = Integer.Parse(xdoc.SelectSingleNode("/hash/hourly-limit").InnerText)
4005- ' info.RemainCount = Integer.Parse(xdoc.SelectSingleNode("/hash/remaining-hits").InnerText)
4006- ' info.ResetTime = DateTime.Parse(xdoc.SelectSingleNode("/hash/reset-time").InnerText)
4007- ' info.ResetTimeInSeconds = Integer.Parse(xdoc.SelectSingleNode("/hash/reset-time-in-seconds").InnerText)
4008- ' Return True
4009- 'Catch ex As Exception
4010- ' Return False
4011- 'End Try
3987+ 'info.MaxCount = twCon.UpperCountApi
3988+ 'info.RemainCount = twCon.RemainCountApi
3989+ 'info.ResetTime = twCon.ResetTimeApi
3990+ 'Return True
3991+ Dim res As HttpStatusCode
3992+ Dim content As String = ""
3993+ Try
3994+ res = twCon.RateLimitStatus(content)
3995+ Catch ex As Exception
3996+ Return False
3997+ End Try
3998+
3999+ If res <> HttpStatusCode.OK Then Return False
4000+
4001+ Dim xdoc As New XmlDocument
4002+ Try
4003+ xdoc.LoadXml(content)
4004+ info.MaxCount = Integer.Parse(xdoc.SelectSingleNode("/hash/hourly-limit").InnerText)
4005+ info.RemainCount = Integer.Parse(xdoc.SelectSingleNode("/hash/remaining-hits").InnerText)
4006+ info.ResetTime = DateTime.Parse(xdoc.SelectSingleNode("/hash/reset-time").InnerText)
4007+ 'info.ResetTimeInSeconds = Integer.Parse(xdoc.SelectSingleNode("/hash/reset-time-in-seconds").InnerText)
4008+ Return True
4009+ Catch ex As Exception
4010+ Return False
4011+ End Try
40124012 End Function
40134013
40144014 Public Function GetHashList() As String()
Show on old repository browser