Skip to content

Commit

Permalink
Make nuspec
Browse files Browse the repository at this point in the history
  • Loading branch information
azyobuzin committed May 22, 2014
1 parent f695b97 commit e44a8bc
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@ $RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
/packages

packages
*.nupkg
23 changes: 23 additions & 0 deletions CoreTweetSupplement.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>CoreTweetSupplement</id>
<version>1.0.0</version>
<title>CoreTweetSupplement</title>
<authors>azyobuzin</authors>
<licenseUrl>https://github.com/azyobuzin/CoreTweetSupplement/blob/master/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/azyobuzin/CoreTweetSupplement</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An utility for client developers with CoreTweet</description>
<copyright>(c) 2014 azyobuzin</copyright>
<tags>Twitter</tags>
<dependencies>
<dependency id="CoreTweet" version="(, 0.3.2]" />
<dependency id="Newtonsoft.Json" version="4.5.11" />
</dependencies>
</metadata>
<files>
<file src="bin\Release\CoreTweetSupplement.dll" target="lib\portable-net4+sl5+wp8+win8+wpa81+MonoAndroid+MonoTouch\CoreTweetSupplement.dll" />
<file src="bin\Release\CoreTweetSupplement.XML" target="lib\portable-net4+sl5+wp8+win8+wpa81+MonoAndroid+MonoTouch\CoreTweetSupplement.XML" />
</files>
</package>
6 changes: 0 additions & 6 deletions CoreTweetSupplement.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions CoreTweetSupplement/CoreTweetSupplement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static Source ParseSource(this Status status)
return ParseSource(status.Source);
}

private static IEnumerable<string> EnumerateChar(string str)
private static IEnumerable<string> EnumerateChars(string str)
{
for (var i = 0; i < str.Length; i++)
{
Expand Down Expand Up @@ -180,9 +180,9 @@ public static IEnumerable<ITextPart> 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;
Expand Down
2 changes: 1 addition & 1 deletion CoreTweetSupplement/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
4 changes: 2 additions & 2 deletions CoreTweetSupplementTest/CoreTweetSupplementTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public void TestParseSource()
}

[TestMethod]
public void TestEnumerateChar()
public void TestEnumerateChars()
{
((IEnumerable<string>)TestTarget.InvokeStatic("EnumerateChar", "𠮷野家こそ至高!"))
((IEnumerable<string>)TestTarget.InvokeStatic("EnumerateChars", "𠮷野家こそ至高!"))
.Is("𠮷", "", "", "", "", "", "", "!");
}

Expand Down

0 comments on commit e44a8bc

Please sign in to comment.