Skip to content

Commit

Permalink
Merge branch 'release-2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon committed Jun 10, 2018
2 parents 20f45ea + f3427d4 commit e937566
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ before_script:
script:
- nuget restore -PackagesDirectory packages
- msbuild /p:Configuration=Debug /verbosity:quiet
- mono ./packages/xunit.runner.console/2.3.1/tools/net452/xunit.console.exe ./OpenTween.Tests/bin/Debug/net452/OpenTween.Tests.dll -noappdomain -parallel none
- mono ./packages/xunit.runner.console/2.3.1/tools/net452/xunit.console.exe ./OpenTween.Tests/bin/Debug/net472/OpenTween.Tests.dll -noappdomain -parallel none
6 changes: 3 additions & 3 deletions OpenTween.Tests/MyCommonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ public void ReplaceAppNameTest(string str, string excepted)
[Theory]
[InlineData("1.0.0.0", "1.0.0")]
[InlineData("1.0.0.1", "1.0.1-dev")]
[InlineData("1.0.0.12", "1.0.1-dev (Build 12)")]
[InlineData("1.0.0.12", "1.0.1-dev+build.12")]
[InlineData("1.0.1.0", "1.0.1")]
[InlineData("1.0.9.1", "1.1.0-dev")]
[InlineData("1.0.9.1", "1.0.10-dev")]
[InlineData("1.1.0.0", "1.1.0")]
[InlineData("1.9.9.1", "2.0.0-dev")]
[InlineData("1.9.9.1", "1.9.10-dev")]
public void GetReadableVersionTest(string fileVersion, string expected)
{
Assert.Equal(expected, MyCommon.GetReadableVersion(fileVersion));
Expand Down
2 changes: 1 addition & 1 deletion OpenTween.Tests/OpenTween.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>OpenTween</RootNamespace>
<TargetFramework>net452</TargetFramework>
<TargetFramework>net472</TargetFramework>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 0 additions & 4 deletions OpenTween/Connection/Networking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ public static void Initialize()
Networking.initialized = true;

ServicePointManager.Expect100Continue = false;

// 明示的に指定しないと、デフォルトでは SSL3.0, TLS1.0 のみ有効となる (.NET Framework 4.5.1)
// https://blogs.technet.microsoft.com/jpieblog/2015/04/07/net-framework-tls1-1-1-2/
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
}

public static void SetWebProxy(ProxyType proxyType, string proxyAddress, int proxyPort,
Expand Down
15 changes: 1 addition & 14 deletions OpenTween/MyCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -942,23 +942,10 @@ public static string GetReadableVersion(Version version)
{
versionNum[2] = versionNum[2] + 1;

// 10を越えたら桁上げ
if (versionNum[2] >= 10)
{
versionNum[1] += versionNum[2] / 10;
versionNum[2] %= 10;

if (versionNum[1] >= 10)
{
versionNum[0] += versionNum[1] / 10;
versionNum[1] %= 10;
}
}

if (versionNum[3] == 1)
return string.Format("{0}.{1}.{2}-dev", versionNum[0], versionNum[1], versionNum[2]);
else
return string.Format("{0}.{1}.{2}-dev (Build {3})", versionNum[0], versionNum[1], versionNum[2], versionNum[3]);
return string.Format("{0}.{1}.{2}-dev+build.{3}", versionNum[0], versionNum[1], versionNum[2], versionNum[3]);
}
}

Expand Down
7 changes: 1 addition & 6 deletions OpenTween/OpenTween.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3D8995C7-BDF3-4273-9F9D-DDD902F6A101}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenTween</RootNamespace>
<AssemblyName>OpenTween</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -187,7 +183,6 @@
<DependentUpon>TweetDetailsView.cs</DependentUpon>
</Compile>
<Compile Include="TweetExtractor.cs" />
<Compile Include="ValueTuple.cs" />
<Compile Include="WaitingDialog.cs">
<SubType>Form</SubType>
</Compile>
Expand Down
10 changes: 10 additions & 0 deletions OpenTween/Resources/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
更新履歴

==== Ver 2.0.0-dev(xxxx/xx/xx)
* このバージョン以降のOpenTweenは .NET Framework 4.7.2 以上が必須になります
- .NET Framework 4.7.2 のインストーラーは https://go.microsoft.com/fwlink/?LinkId=863262 から入手できます
- Windows 10 April 2018 Update には標準で .NET Framework 4.7.2 が含まれているため追加のインストールは不要です
* Windows Vista ではこのバージョン以降のOpenTweenを動作させることはできません

* CHG: .NET Frameworkのバージョンが 4.5.1 から 4.7.2 に変更されました
* CHG: OpenTweenのバージョン番号の規則が変更されました
- 新しいバージョン規則については https://osdn.net/projects/opentween/wiki/Versioning を参照してください

==== Ver 1.4.2(2018/06/11)
* NEW: 画像を添付したDMの送信に対応しました
* NEW: システムのタイムゾーンの変更を検知して、ツイートの投稿日時などの表示を新しいタイムゾーンに同期します
Expand Down
70 changes: 0 additions & 70 deletions OpenTween/ValueTuple.cs

This file was deleted.

3 changes: 0 additions & 3 deletions OpenTween/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
<!--このアプリケーションが動作するように設計されている、Windows のすべてのバージョンの一覧。
Windows は最も互換性の高い環境を自動的に選択します。-->

<!-- Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>

<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ before_build:
- choco install opencover.portable

test_script:
- OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\OpenTween.Tests\bin\Debug\net452\OpenTween.Tests.dll -noshadow -appveyor" -filter:"+[OpenTween*]* -[OpenTween.Tests]*" -excludebyfile:"*.Designer.cs" -skipautoprops -hideskipped:All -returntargetcode -output:coverage.xml
- OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\OpenTween.Tests\bin\Debug\net472\OpenTween.Tests.dll -noshadow -appveyor" -filter:"+[OpenTween*]* -[OpenTween.Tests]*" -excludebyfile:"*.Designer.cs" -skipautoprops -hideskipped:All -returntargetcode -output:coverage.xml

after_test:
- npm install codecov --save
Expand Down

0 comments on commit e937566

Please sign in to comment.