diff --git a/.gitignore b/.gitignore index a4b4eb0..7aa6b1a 100644 --- a/.gitignore +++ b/.gitignore @@ -154,4 +154,6 @@ $RECYCLE.BIN/ # Mac desktop service store files .DS_Store -/packages + +packages +*.nupkg diff --git a/CoreTweetSupplement.nuspec b/CoreTweetSupplement.nuspec new file mode 100644 index 0000000..a30674f --- /dev/null +++ b/CoreTweetSupplement.nuspec @@ -0,0 +1,23 @@ + + + + CoreTweetSupplement + 1.0.0 + CoreTweetSupplement + azyobuzin + https://github.com/azyobuzin/CoreTweetSupplement/blob/master/LICENSE.txt + https://github.com/azyobuzin/CoreTweetSupplement + false + An utility for client developers with CoreTweet + (c) 2014 azyobuzin + Twitter + + + + + + + + + + \ No newline at end of file diff --git a/CoreTweetSupplement.sln b/CoreTweetSupplement.sln index 4d3b5dd..9c75982 100644 --- a/CoreTweetSupplement.sln +++ b/CoreTweetSupplement.sln @@ -14,8 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{67A9B0 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreTweetSupplementTest", "CoreTweetSupplementTest\CoreTweetSupplementTest.csproj", "{FDC352B1-A93E-4DDB-895B-342DB718B869}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreTweetSupplement.net35", "CoreTweetSupplement.net35\CoreTweetSupplement.net35.csproj", "{43C302E4-3ACE-4FB1-A5F2-20952B0EA17C}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -30,10 +28,6 @@ Global {FDC352B1-A93E-4DDB-895B-342DB718B869}.Debug|Any CPU.Build.0 = Debug|Any CPU {FDC352B1-A93E-4DDB-895B-342DB718B869}.Release|Any CPU.ActiveCfg = Release|Any CPU {FDC352B1-A93E-4DDB-895B-342DB718B869}.Release|Any CPU.Build.0 = Release|Any CPU - {43C302E4-3ACE-4FB1-A5F2-20952B0EA17C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {43C302E4-3ACE-4FB1-A5F2-20952B0EA17C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {43C302E4-3ACE-4FB1-A5F2-20952B0EA17C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {43C302E4-3ACE-4FB1-A5F2-20952B0EA17C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CoreTweetSupplement/CoreTweetSupplement.cs b/CoreTweetSupplement/CoreTweetSupplement.cs index f88c523..5b46842 100644 --- a/CoreTweetSupplement/CoreTweetSupplement.cs +++ b/CoreTweetSupplement/CoreTweetSupplement.cs @@ -76,7 +76,7 @@ public static Source ParseSource(this Status status) return ParseSource(status.Source); } - private static IEnumerable EnumerateChar(string str) + private static IEnumerable EnumerateChars(string str) { for (var i = 0; i < str.Length; i++) { @@ -180,9 +180,9 @@ public static IEnumerable EnumerateTextParts(string text, Entity enti } var current = list.First; - var chars = EnumerateChar(text).ToArray(); + var chars = EnumerateChars(text).ToArray(); - while (current != null) + while (true) { var start = current.Previous != null ? current.Previous.Value.End : 0; var count = current.Value.Start - start; diff --git a/CoreTweetSupplement/Properties/AssemblyInfo.cs b/CoreTweetSupplement/Properties/AssemblyInfo.cs index 5aad2da..f082ce5 100644 --- a/CoreTweetSupplement/Properties/AssemblyInfo.cs +++ b/CoreTweetSupplement/Properties/AssemblyInfo.cs @@ -7,7 +7,7 @@ // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("CoreTweetSupplement")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("An utility for client developers with CoreTweet")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("CoreTweetSupplement")] diff --git a/CoreTweetSupplementTest/CoreTweetSupplementTest.cs b/CoreTweetSupplementTest/CoreTweetSupplementTest.cs index afc99c2..02302b7 100644 --- a/CoreTweetSupplementTest/CoreTweetSupplementTest.cs +++ b/CoreTweetSupplementTest/CoreTweetSupplementTest.cs @@ -44,9 +44,9 @@ public void TestParseSource() } [TestMethod] - public void TestEnumerateChar() + public void TestEnumerateChars() { - ((IEnumerable)TestTarget.InvokeStatic("EnumerateChar", "𠮷野家こそ至高!")) + ((IEnumerable)TestTarget.InvokeStatic("EnumerateChars", "𠮷野家こそ至高!")) .Is("𠮷", "野", "家", "こ", "そ", "至", "高", "!"); }