Commit 0605744

mo <mo@mokhan.ca>
2009-10-10 16:05:14
renamed project from simple.migrations to gorilla.migrations.
1 parent 0c07035
product/application/data/DatabaseCommand.cs
@@ -2,7 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Data;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public interface DatabaseCommand : IDisposable
     {
product/application/data/DatabaseCommandFactory.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public interface DatabaseCommandFactory
     {
product/application/data/DatabaseGateway.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public interface DatabaseGateway
     {
product/application/data/DatabaseGatewayFactory.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public interface DatabaseGatewayFactory
     {
product/application/data/SqlDatabaseCommand.cs
@@ -2,7 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Data;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public class SqlDatabaseCommand : DatabaseCommand
     {
product/application/data/SqlDatabaseCommandFactory.cs
@@ -1,6 +1,6 @@
 using System.Data.Common;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public class SqlDatabaseCommandFactory : DatabaseCommandFactory
     {
product/application/data/SqlDatabaseGateway.cs
@@ -1,7 +1,7 @@
 using System.Linq;
-using simple.migrations.utility;
+using gorilla.migrations.utility;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public class SqlDatabaseGateway : DatabaseGateway
     {
product/application/data/SqlDatabaseGatewayFactory.cs
@@ -1,6 +1,6 @@
 using System.Data.Common;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public class SqlDatabaseGatewayFactory : DatabaseGatewayFactory
     {
product/application/data/SqlFile.cs
@@ -1,8 +1,8 @@
 using System;
 using System.IO;
-using simple.migrations.utility;
+using gorilla.migrations.utility;
 
-namespace simple.migrations.Data
+namespace gorilla.migrations.data
 {
     public class SqlFile : IEquatable<SqlFile>, IComparable<SqlFile>
     {
@@ -35,7 +35,7 @@ namespace simple.migrations.Data
 
         public virtual string raw_sql()
         {
-            throw new NotImplementedException();
+            return File.ReadAllText(path);
         }
 
         static public implicit operator SqlFile(string file_path)
product/application/io/FileSystem.cs
@@ -1,7 +1,7 @@
 using System.Collections.Generic;
-using simple.migrations.Data;
+using gorilla.migrations.data;
 
-namespace simple.migrations.io
+namespace gorilla.migrations.io
 {
     public interface FileSystem
     {
product/application/io/WindowsFileSystem.cs
@@ -1,8 +1,8 @@
 using System.Collections.Generic;
 using System.IO;
-using simple.migrations.Data;
+using gorilla.migrations.data;
 
-namespace simple.migrations.io
+namespace gorilla.migrations.io
 {
     public class WindowsFileSystem : FileSystem
     {
product/application/utility/ConversionExtensions.cs
@@ -1,7 +1,7 @@
 using System;
 using System.Globalization;
 
-namespace simple.migrations.utility
+namespace gorilla.migrations.utility
 {
     static public class ConversionExtensions
     {
product/application/utility/IterationExtensions.cs
@@ -1,7 +1,7 @@
 using System;
 using System.Collections.Generic;
 
-namespace simple.migrations.utility
+namespace gorilla.migrations.utility
 {
     static public class IterationExtensions
     {
product/application/application.csproj
@@ -8,8 +8,8 @@
     <ProjectGuid>{5106142C-D444-4D6A-A73F-CA823CE38101}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>simple.migrations</RootNamespace>
-    <AssemblyName>simple.migrations</AssemblyName>
+    <RootNamespace>gorilla.migrations</RootNamespace>
+    <AssemblyName>gorilla.migrations</AssemblyName>
     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
   </PropertyGroup>
product/application/Command.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public interface Command
     {
product/application/CommandRegistry.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public interface CommandRegistry
     {
product/application/Console.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public interface Console : ParameterizedCommand<string[]>
     {
product/application/ConsoleApplication.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public class ConsoleApplication : Console
     {
product/application/ConsoleArguments.cs
@@ -1,6 +1,6 @@
 using System.Text.RegularExpressions;
 
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public class ConsoleArguments
     {
product/application/ConsoleArgumentsCommandRegistry.cs
@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public class ConsoleArgumentsCommandRegistry : CommandRegistry
     {
product/application/ConsoleCommand.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public interface ConsoleCommand : ParameterizedCommand<ConsoleArguments>
     {
product/application/HelpCommand.cs
@@ -1,6 +1,6 @@
 using System;
 
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public class HelpCommand : ConsoleCommand
     {
product/application/ParameterizedCommand.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public interface ParameterizedCommand<T>
     {
product/application/RunMigrationsCommand.cs
@@ -1,8 +1,8 @@
-using simple.migrations.Data;
-using simple.migrations.io;
-using simple.migrations.utility;
+using gorilla.migrations.data;
+using gorilla.migrations.io;
+using gorilla.migrations.utility;
 
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public class RunMigrationsCommand : ConsoleCommand
     {
product/application/StringExtensions.cs
@@ -1,4 +1,4 @@
-namespace simple.migrations
+namespace gorilla.migrations
 {
     public static class StringExtensions
     {
product/application.console/application.console/Properties/AssemblyInfo.cs
@@ -0,0 +1,39 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+
+[assembly: AssemblyTitle("application.console")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("application.console")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+
+[assembly: Guid("88c3aff3-f58b-4bad-9926-4b21d01b40c6")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
\ No newline at end of file
product/application.console/application.console/application.console.csproj
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{138AFA6A-D88C-4156-82EC-65AB62B19830}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>gorilla.migrations.console</RootNamespace>
+    <AssemblyName>gorilla.migrations.console</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>..\..\..\artifacts\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Xml.Linq">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data.DataSetExtensions">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\application\application.csproj">
+      <Project>{5106142C-D444-4D6A-A73F-CA823CE38101}</Project>
+      <Name>application</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file
product/application.console/application.console/Program.cs
@@ -0,0 +1,7 @@
+namespace gorilla.migrations.console
+{
+    class Program
+    {
+        static void Main(string[] args) {}
+    }
+}
\ No newline at end of file
product/application.tests/data/SqlDatabaseGatewayFactorySpecs.cs
@@ -1,7 +1,7 @@
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdddoc.core;
-using simple.migrations.Data;
+using gorilla.migrations.data;
 
 namespace tests.data
 {
product/application.tests/data/SqlDatabaseGatewaySpecs.cs
@@ -3,7 +3,7 @@ using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdd.mocking.rhino;
 using developwithpassion.bdddoc.core;
-using simple.migrations.Data;
+using gorilla.migrations.data;
 using tests.helpers;
 
 namespace tests.data
product/application.tests/data/SqlFileSpecs.cs
@@ -1,7 +1,7 @@
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdddoc.core;
-using simple.migrations.Data;
+using gorilla.migrations.data;
 
 namespace tests.data
 {
product/application.tests/io/WindowsFileSystemSpecs.cs
@@ -5,9 +5,9 @@ using System.Linq;
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdddoc.core;
+using gorilla.migrations.data;
+using gorilla.migrations.io;
 using MbUnit.Framework;
-using simple.migrations.Data;
-using simple.migrations.io;
 
 namespace tests.io
 {
product/application.tests/application.tests.csproj
@@ -95,7 +95,7 @@
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
     <None Include="sample_files\0002_second_sql_file.sql">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
product/application.tests/CommandRegistrySpecs.cs
@@ -1,7 +1,7 @@
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
+using gorilla.migrations;
 using Rhino.Mocks;
-using simple.migrations;
 
 namespace tests
 {
product/application.tests/ConsoleArgumentsSpecs.cs
@@ -1,6 +1,6 @@
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
-using simple.migrations;
+using gorilla.migrations;
 
 namespace tests
 {
product/application.tests/ConsoleSpecs.cs
@@ -1,8 +1,8 @@
 using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdd.mocking.rhino;
+using gorilla.migrations;
 using Rhino.Mocks;
-using simple.migrations;
 
 namespace tests
 {
product/application.tests/RunMigrationsCommandSpecs.cs
@@ -2,9 +2,9 @@ using developwithpassion.bdd.contexts;
 using developwithpassion.bdd.harnesses.mbunit;
 using developwithpassion.bdd.mocking.rhino;
 using developwithpassion.bdddoc.core;
-using simple.migrations;
-using simple.migrations.Data;
-using simple.migrations.io;
+using gorilla.migrations;
+using gorilla.migrations.data;
+using gorilla.migrations.io;
 using tests.helpers;
 
 namespace tests
project.rb
@@ -6,7 +6,7 @@ class Project
   attr_reader :startup_extension
 
   def self.name
-    @name = "simple.migrations"
+    @name = "gorilla.migrations"
   end
 
   def self.startup_dir
rakefile.rb
@@ -31,7 +31,7 @@ project_test_dir  = File.join('product',"#{Project.tests_dir}",'bin','debug')
 
 output_folders = [project_startup_dir,project_test_dir]
 
-task :default => [:build_db,:full_test]
+task :default => [:build_db,:test]
 
 task :init  => :clean do
   mkdir 'artifacts'
solution.sln
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "application", "product\appl
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "application.tests", "product\application.tests\application.tests.csproj", "{5C38D18E-7788-4B0C-A228-EBBEFBF148AD}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "application.console", "product\application.console\application.console\application.console.csproj", "{138AFA6A-D88C-4156-82EC-65AB62B19830}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -24,6 +26,10 @@ Global
 		{5C38D18E-7788-4B0C-A228-EBBEFBF148AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{5C38D18E-7788-4B0C-A228-EBBEFBF148AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{5C38D18E-7788-4B0C-A228-EBBEFBF148AD}.Release|Any CPU.Build.0 = Release|Any CPU
+		{138AFA6A-D88C-4156-82EC-65AB62B19830}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{138AFA6A-D88C-4156-82EC-65AB62B19830}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{138AFA6A-D88C-4156-82EC-65AB62B19830}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{138AFA6A-D88C-4156-82EC-65AB62B19830}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE