Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
developwithpassion committed May 17, 2011
0 parents commit a5e4df2
Show file tree
Hide file tree
Showing 307 changed files with 47,400 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .gitignore
@@ -0,0 +1,30 @@
_UpgradeReport_Files
UpgradeLog.XML
source/*/obj
source/*/bin
*.chm
_[Rr]e[Ss]harper.*
*.csproj[1-9]*
*.csproj.user
*.[Rr]e[Ss]harper.user
*.[Rr]e[Ss]harper
*.suo
*.cache
*~
*.sql
*.stackdump
*.swp
*.swo
source/docs/Help/*.*
artifacts
source/config/web.config
source/config/our_custom_config.txt
source/config/log4net.config.xml
source/config/hibernate.cfg.xml
source/*.web.ui/Bin
source/*.web.ui/*.xml
source/*.web.ui/*.config
source/*.web.ui/*.txt
*.orig
local_properties.rb
connection_details.rb
4 changes: 4 additions & 0 deletions README.markdown
@@ -0,0 +1,4 @@
#Develop With Passion® - Denver 2011

##Main project for the week

3 changes: 3 additions & 0 deletions build.bat
@@ -0,0 +1,3 @@
@echo off
cls
"build\tools\Rake\bin\ruby.exe" "build\tools\Rake\bin\rake" %*
95 changes: 95 additions & 0 deletions build.csproj
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{EAA828F4-419B-4078-8EB6-533FBD86E800}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>build</RootNamespace>
<AssemblyName>build</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>http://localhost/build/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>true</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</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>
<None Include="build.bat" />
<None Include="docs\conventions.markdown" />
<None Include="fetch_latest" />
<None Include="push" />
<None Include="push_latest_work.ps1" />
<None Include="rakefile.rb" />
<None Include="source\config\web.config.erb" />
<None Include="start_new_exercise.ps1" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Folder Include="build\" />
</ItemGroup>
<ItemGroup>
<Content Include=".gitignore" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\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>
17 changes: 17 additions & 0 deletions build/configuration/db.rb
@@ -0,0 +1,17 @@
task :configure_db do
configs =
{
:db =>
{
:initial_catalog => delayed{configatron.project},
:server_name => ENV['HOSTNAME'],
:osql_connection_string => delayed{"-E \-S #{configatron.db.server_name}"},
:web_account_sql => "#{configatron.db.web_user_account}, N'#{configatron.db.web_user_account}'",
:app_connection => "data source=Server;Integrated Security=SSPI;Initial Catalog=blah"
}
}

configatron.configure_from_hash configs
end

Rake::Task[:configure_db].invoke
6 changes: 6 additions & 0 deletions build/configuration/db.yaml.customize
@@ -0,0 +1,6 @@
db:
database_path: C:/tempfiles/databases
osql_exe: osql
database_provider: System.Data.SqlClient
web_user_account: NT Authority\\Network Service
osql_args_prior_to_file_name: -b -i
7 changes: 7 additions & 0 deletions build/configuration/load_yaml_configuration.rb
@@ -0,0 +1,7 @@
task :load_yaml_configuration do
Dir.glob("build/configuration/*.yaml").each do|file|
configatron.configure_from_yaml file
end
end

Rake::Task[:load_yaml_configuration].invoke
15 changes: 15 additions & 0 deletions build/configuration/machine_specs.rb
@@ -0,0 +1,15 @@
task :configure_mspec do
configs =
{
:specs =>
{
:runner_options => ["-x","example"],
:assemblies => dynamic{Dir.glob("#{configatron.artifacts_dir}/*specs.dll")},
}
}
configatron.configure_from_hash configs
end

Rake::Task['configure_mspec'].invoke


4 changes: 4 additions & 0 deletions build/configuration/machine_specs.yaml
@@ -0,0 +1,4 @@
specs:
dir: artifacts/specs
report_dir: artifacts/specs/report
tools_folder: packages/Machine.Specifications.0.4.12.0/tools
9 changes: 9 additions & 0 deletions build/configuration/project.yaml
@@ -0,0 +1,9 @@
project: nothinbutdotnetstore
target: Debug
source_dir: source
artifacts_dir: artifacts
config_dir: source/config
app_dir: source/nothinbutdotnetstore.web.ui
log_file_name: NBDNStoreLog.txt
log_level: DEBUG
cool_setting: This is cool
14 changes: 14 additions & 0 deletions build/tasks/db.rb.ignore
@@ -0,0 +1,14 @@
namespace :db do
desc 'tears down the database and recreates it from the ddl files'
task :create_schema => [:init] do
sql_runner.process_sql_files(create_sql_fileset('ddl'))

sh "build/tools/sql_metal/SqlMetal.exe /server:#{configatron.server_name} /database:#{configatron.initial_catalog} /code:[Replace with path to code file] /namespace:[Replace with namespace for code file]"
end

desc 'loads the database with acceptance testing data'
task :load_data => :create_schema do
sql_runner.process_sql_files(create_sql_fileset('data'))
end
end

15 changes: 15 additions & 0 deletions build/tasks/machine_specs.rb
@@ -0,0 +1,15 @@
namespace :specs do
desc 'view the spec report'
task :view do
system "start #{configatron.specs.report_dir}/#{configatron.project}.specs.html"
end

desc 'run the specs for the project'
task :run => [:init,:expand_all_template_files,:copy_config_files,'build:rebuild'] do
Dir.glob("#{configatron.specs.tools_folder}/*.*").each do|file|
FileUtils.cp(file,configatron.artifacts_dir)
end

sh "#{configatron.artifacts_dir}/mspec-clr4.exe", "--html", "#{configatron.specs.report_dir}/#{configatron.project}.specs.html", *(configatron.specs.runner_options + configatron.specs.assemblies)
end
end
5 changes: 5 additions & 0 deletions build/tasks/remotes.rb
@@ -0,0 +1,5 @@
desc "Sets up the remotes to jp"
task :remotes do
`git remote rm jp`
`git remote add jp git://github.com/developwithpassion/dwpds.git`
end
5 changes: 5 additions & 0 deletions build/tasks/templates.rb
@@ -0,0 +1,5 @@
task :expand_all_template_files do
TemplateFiles.expand
end


62 changes: 62 additions & 0 deletions build/tools/7zip/7-Zip License.txt
@@ -0,0 +1,62 @@
7-Zip Command line version
~~~~~~~~~~~~~~~~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

7-Zip Copyright (C) 1999-2007 Igor Pavlov.

7za.exe is distributed under the GNU LGPL + AES code license

The GNU LGPL + AES code license means that you must follow both GNU LGPL rules
and AES code license rules.


Notes:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.


GNU LGPL information
--------------------

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


AES code license
----------------

Copyright (c) 2001, Dr Brian Gladman

LICENSE TERMS

The free distribution and use of this software in both source and binary
form is allowed (with or without changes) provided that:

1. distributions of this source code include the above copyright
notice, this list of conditions and the following disclaimer;

2. distributions in binary form include the above copyright
notice, this list of conditions and the following disclaimer
in the documentation and/or other associated materials;

3. the copyright holder's name is not used to endorse products
built using this software without specific written permission.

DISCLAIMER

This software is provided 'as is' with no explicit or implied warranties
in respect of its properties, including, but not limited to, correctness
and fitness for purpose.

Binary file added build/tools/7zip/7za.exe
Binary file not shown.

0 comments on commit a5e4df2

Please sign in to comment.