Skip to content

Commit

Permalink
Added license, readme and sample rake file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeobrien committed Mar 1, 2011
1 parent cc509c6 commit ca42f0c
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LICENSE
@@ -0,0 +1,18 @@
Copyright (c) 2010 Ultraviolet Catastrophe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
@@ -0,0 +1,9 @@
Gribble
=============

Gribble is a simple, Linq enabled ORM designed to work with dynamically created tables. Gribble supports POCO's and has a fluent mapping API (shamelessly ripped off from FluentNHibernate). It is not meant to be a replacement for a real ORM like NHiberate but to handle an edge case that NHibernate was not designed for.

Props
------------

Thanks to [JetBrains](http://www.jetbrains.com/) for providing an OSS licenses!
65 changes: 65 additions & 0 deletions release/rakefile.rb
@@ -0,0 +1,65 @@
require "albacore"

task :default => [:deploySample]

desc "Inits the build"
task :initBuild do
end

desc "Generate assembly info."
assemblyinfo :assemblyInfo => :initBuild do |asm|
asm.version = ENV["GO_PIPELINE_LABEL"]
asm.company_name = "Ultraviolet Catastrophe"
asm.product_name = "Wcf Rest Contrib"
asm.title = "Wcf Rest Contrib"
asm.description = "Goodies for Wcf Rest."
asm.copyright = "Copyright (c) 2010 Ultraviolet Catastrophe"
asm.output_file = "src/WcfRestContrib/Properties/AssemblyInfo.cs"
end

desc "Builds the library."
msbuild :buildLibrary => :setAssemblyVersion do |msb|
msb.path_to_command = File.join(ENV['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
msb.properties :configuration => :Release
msb.targets :Clean, :Build
msb.solution = "src/WcfRestContrib/WcfRestContrib.csproj"
end

desc "Builds the test project."
msbuild :buildTestProject => :buildLibrary do |msb|
msb.path_to_command = File.join(ENV['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
msb.properties :configuration => :Release
msb.targets :Clean, :Build
msb.solution = "src/WcfRestContrib.Tests/WcfRestContrib.Tests.csproj"
end

desc "Builds the sample app."
msbuild :buildSampleApp => :buildTestProject do |msb|
msb.path_to_command = File.join(ENV['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
msb.properties :configuration => :Release
msb.targets :Clean, :Build
msb.solution = "src/NielsBohrLibrary/NielsBohrLibrary.csproj"
end

desc "Set assembly reference in the sample project."
task :addSampleAssemblyReference => :buildSampleApp do
path = "src/NielsBohrLibrary/NielsBohrLibrary.csproj"
replace = /<ProjectReference.*<\/ProjectReference>/m
reference = "<Reference Include=\"WcfRestContrib\"><HintPath>bin\WcfRestContrib.dll</HintPath></Reference>"
project = Common.ReadAllFileText(path)
project = project.gsub(replace, reference)
Common.WriteAllFileText(path, project)
end

desc "NUnit Test Runner"
nunit :unitTests => :buildInstaller do |nunit|
nunit.path_to_command = "lib/nunit/net-2.0/nunit-console.exe"
nunit.assemblies "src/WcfRestContrib.Tests/bin/Release/WcfRestContrib.Tests.dll"
nunit.options "/xml=reports/TestResult.xml"
end

desc "Inits the deploy"
task :initDeploy => :unitTests do
Common.EnsurePath(ReleasePath)
end

0 comments on commit ca42f0c

Please sign in to comment.