Skip to content

Commit 4318580

Browse files
committed
Changed M3U formatter to terminate last line with newline character.
Removed Bitdeli tracking.
1 parent 1e070c2 commit 4318580

File tree

11 files changed

+31
-19
lines changed

11 files changed

+31
-19
lines changed

Playlist Generator Console/Playlist Generator Console.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
</PropertyGroup>
2525
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2626
<PlatformTarget>AnyCPU</PlatformTarget>
27-
<DebugType>pdbonly</DebugType>
27+
<DebugType>none</DebugType>
2828
<Optimize>true</Optimize>
2929
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
30+
<DefineConstants>
31+
</DefineConstants>
3132
<ErrorReport>prompt</ErrorReport>
3233
<WarningLevel>4</WarningLevel>
34+
<UseVSHostingProcess>false</UseVSHostingProcess>
3335
</PropertyGroup>
3436
<PropertyGroup>
3537
<ApplicationIcon>logo 1.2 grey.ico</ApplicationIcon>

Playlist Generator GUI/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Grid>
1111
<Label Margin="10,7,0,0" Content="Directory" VerticalAlignment="Top" HorizontalAlignment="Left"/>
1212
<TextBox x:Name="directory" Height="23" VerticalAlignment="Top" Margin="73,10,86,0" Text="{Binding Directory, UpdateSourceTrigger=PropertyChanged}"/>
13-
<Button x:Name="browse" Content="Browse" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Height="23" Click="browse_Click" Width="71"/>
13+
<Button x:Name="browse" Content="Browse..." HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Height="23" Click="browse_Click" Width="71"/>
1414
<Label Content="File type" HorizontalAlignment="Left" Margin="10,38,0,0" VerticalAlignment="Top"/>
1515
<ComboBox VerticalAlignment="Top" Margin="69,42,10,0" SelectedValuePath="Key" SelectedValue="{Binding SelectedFileType}" IsEnabled="{Binding Files, TargetNullValue=false}">
1616
<ComboBox.Resources>

Playlist Generator GUI/MainWindowViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using FileDirectory = System.IO.Directory;
99

1010
namespace PlaylistGenerator {
11-
class MainWindowViewModel : ViewModel {
11+
sealed class MainWindowViewModel : ViewModel {
1212
//Working directory.
1313
private string directory;
1414

Playlist Generator GUI/Playlist Generator GUI.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@
4343
</PropertyGroup>
4444
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4545
<PlatformTarget>AnyCPU</PlatformTarget>
46-
<DebugType>pdbonly</DebugType>
46+
<DebugType>none</DebugType>
4747
<Optimize>true</Optimize>
4848
<OutputPath>bin\Release\</OutputPath>
49-
<DefineConstants>TRACE</DefineConstants>
49+
<DefineConstants>
50+
</DefineConstants>
5051
<ErrorReport>prompt</ErrorReport>
5152
<WarningLevel>4</WarningLevel>
5253
<Prefer32Bit>false</Prefer32Bit>
54+
<UseVSHostingProcess>false</UseVSHostingProcess>
5355
</PropertyGroup>
5456
<PropertyGroup>
5557
<StartupObject>

Playlist Generator GUI/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.1.0.0")]
55-
[assembly: AssemblyFileVersion("1.1.0.0")]
54+
[assembly: AssemblyVersion("1.3.0.0")]
55+
[assembly: AssemblyFileVersion("1.3.0.0")]

Playlist Generator Test/M3UTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ public void TestToString() {
4444
var m3u = new M3U();
4545
Assert.AreEqual(String.Empty, m3u.ToString());
4646

47-
m3u.Add("foo").Add("bar");
48-
Assert.AreEqual("foo\nbar", m3u.ToString());
47+
m3u.Add("foo");
48+
Assert.AreEqual("foo\n", m3u.ToString());
49+
50+
m3u.Add("bar").Add("baz");
51+
Assert.AreEqual("foo\nbar\nbaz\n", m3u.ToString());
4952
}
5053
}
5154
}

Playlist Generator.sln

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.21005.1
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playlist Generator GUI", "Playlist Generator GUI\Playlist Generator GUI.csproj", "{3294B331-287B-417B-A5EE-0AE67DAC34DB}"
77
EndProject
@@ -11,6 +11,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playlist Generator", "Playl
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playlist Generator Console", "Playlist Generator Console\Playlist Generator Console.csproj", "{9DAA5A06-E8A7-4E25-8621-C0DA0C7EBCCE}"
1313
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0C7C84D3-CA41-4210-8EF8-19A91E6D5D31}"
15+
ProjectSection(SolutionItems) = preProject
16+
README.md = README.md
17+
EndProjectSection
18+
EndProject
1419
Global
1520
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1621
Debug|Any CPU = Debug|Any CPU

Playlist Generator/M3U.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public M3U() : base() {}
1717
public M3U(IEnumerable<string> paths) : base(paths) {}
1818

1919
override public string ToString() {
20-
return Paths.DefaultIfEmpty(String.Empty).Aggregate((a, b) => a += lineFeed + b);
20+
return Paths.Aggregate(String.Empty, (a, b) => a + b + lineFeed);
2121
}
2222
}
2323
}

Playlist Generator/Playlist Generator.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
<WarningLevel>4</WarningLevel>
2323
</PropertyGroup>
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
25+
<DebugType>none</DebugType>
2626
<Optimize>true</Optimize>
2727
<OutputPath>bin\Release\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
28+
<DefineConstants>
29+
</DefineConstants>
2930
<ErrorReport>prompt</ErrorReport>
3031
<WarningLevel>4</WarningLevel>
32+
<UseVSHostingProcess>false</UseVSHostingProcess>
3133
</PropertyGroup>
3234
<ItemGroup>
3335
<Reference Include="System" />

Playlist Generator/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.1.0.0")]
36+
[assembly: AssemblyFileVersion("1.1.0.0")]
3737

3838
//Friend assemblies.
3939
[assembly: InternalsVisibleTo("PlaylistGeneratorTest")]

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ The entire project has been designed with extensibility in mind so feel free to
3535
[1]: https://raw.github.com/wiki/ScriptFUSION/Playlist-Generator/images/logo%201.2%20grey%20x35.png
3636
[2]: http://stackoverflow.com/questions/14942374/nuget-package-files-not-being-copied-to-project-content-during-build
3737
[3]: http://docs.nuget.org/docs/reference/package-restore
38-
39-
![](https://d2weczhvl823v0.cloudfront.net/ScriptFUSION/playlist-generator/trend.png)

0 commit comments

Comments
 (0)