Skip to content

Commit 8273415

Browse files
committed
build and readme updated
1 parent a059041 commit 8273415

File tree

5 files changed

+29
-17
lines changed

5 files changed

+29
-17
lines changed

OrigoDB.Modules.Protobuf/OrigoDB.Modules.Protobuf.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
26+
<DocumentationFile>bin\Debug\OrigoDb.Modules.Protobuf.XML</DocumentationFile>
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2829
<DebugType>pdbonly</DebugType>
@@ -31,6 +32,7 @@
3132
<DefineConstants>TRACE</DefineConstants>
3233
<ErrorReport>prompt</ErrorReport>
3334
<WarningLevel>4</WarningLevel>
35+
<DocumentationFile>bin\Release\OrigoDb.Modules.Protobuf.XML</DocumentationFile>
3436
</PropertyGroup>
3537
<ItemGroup>
3638
<Reference Include="protobuf-net, Version=2.0.0.668, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">

OrigoDB.Modules.Protobuf/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
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("0.1.2.0")]
36-
[assembly: AssemblyFileVersion("0.1.2.0")]
35+
[assembly: AssemblyVersion("0.2.0.0")]
36+
[assembly: AssemblyFileVersion("0.2.0.0")]

OrigoDB.ProtoBuf.nuspec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,26 @@
33
<metadata>
44
<id>OrigoDB.ProtoBuf</id>
55
<title>OrigoDb ProtoBuf Serialization Module</title>
6-
<version>0.1.2</version>
7-
<authors>Robert Friberg, Kristoffer Schroeder et al</authors>
6+
<version>0.2.0</version>
7+
<authors>Robert Friberg, Patrik Svensson</authors>
88
<copyright>Copyright Devrex Labs</copyright>
99
<summary>Enable OrigoDb serialization with ProtoBuf</summary>
1010
<description>
1111
Enable OrigoDb serialization with ProtoBuf
1212
</description>
13-
<projectUrl>https://github.com/devrexlabs/origodb</projectUrl>
13+
<projectUrl>https://github.com/devrexlabs/modules.protobufformatter</projectUrl>
1414
<licenseUrl>https://github.com/devrexlabs/origodb#license</licenseUrl>
1515
<requireLicenseAcceptance>false</requireLicenseAcceptance>
16-
<releaseNotes>Can be found on project site: https://github.com/devrexlabs/origodb/wiki/release-notes</releaseNotes>
16+
<releaseNotes>https://github.com/devrexlabs/origodb/releases</releaseNotes>
1717
<tags>in-memory imdb nosql prevalence odbms database imc</tags>
1818
<dependencies>
19-
<dependency id="OrigoDb.Core" version="0.10.0"/>
2019
<dependency id="protobuf-net" version="2.0.0"/>
2120
</dependencies>
2221
</metadata>
2322
<files>
24-
<file src="OrigoDB.Modules.ProtoBuf.dll" target="lib"/>
23+
<file src="build\OrigoDB.*.dll" target="lib\net40" />
24+
<file src="build\OrigoDB.*.pdb" target="lib\net40" />
25+
<file src="build\OrigoDB.*.XML" target="lib\net40" />
26+
<file src="OrigoDB.Modules.Protobuf\**\*.cs" target="src" />
2527
</files>
2628
</package>

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## In-memory database toolkit for NET/Mono
2-
See the project home page at http://devrexlabs.github.io/
31

4-
Release notes: https://github.com/DevrexLabs/OrigoDB/releases
2+
This is a custom IFormatter implementation based on the
3+
protobuf-net library by Marc Gravell, available at http://code.google.com/p/protobuf-net/
4+
5+
By default, the formatter writes type information to the stream which is needed during deserialization.
6+
7+
Usage:
8+
var formatter = new ProtoBufFormatter();
9+
formatter.Serialize(stream, graph);
10+
object cloned = formatter.Deserialize();

build.pl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
my $sevenZip = "C:/Program Files/7-Zip/7z.exe";
1313

1414

15-
my $version = extract('src/SharedAssemblyInfo.cs');
15+
my $version = extract('OrigoDB.Modules.ProtoBuf/Properties/AssemblyInfo.cs');
1616
die "missing or bad version: [$version]\n" unless $version =~ /^\d+\.\d+\.\d+(-[a-z]+)?$/;
1717

1818
my $target = shift || 'default';
1919
my $config = shift || 'Release';
2020

2121

22-
my $solution = 'src/OrigoDB.sln';
22+
my $solution = 'OrigoDB.Modules.Protobuf.sln';
2323
my $output = "build";
2424

2525

26-
my $x = "src/OrigoDB.*/bin/$config/";
26+
my $x = "OrigoDB.Modules.Protobuf/bin/$config/";
2727

2828

2929
sub run;
@@ -44,16 +44,18 @@
4444
},
4545
copy => sub
4646
{
47-
system("cp -r $x/OrigoDB.* $output");
47+
system("cp -r $x/* $output");
4848
#remove test assemblies
4949
system("rm $output/*Test*");
5050
},
5151
zip => sub {
52-
system "\"$sevenZip\" a -r -tzip OrigoDB.Core.binaries.$version-$config.zip build/*";
52+
chdir "build";
53+
system "\"$sevenZip\" a -r -tzip ../OrigoDB.Modules.Protobuf.binaries.$version-$config.zip *";
54+
chdir "..";
5355
},
5456
pack => sub
5557
{
56-
system("$nuget pack OrigoDB.Core.nuspec -OutputDirectory build -version $version -symbols")
58+
system("$nuget pack OrigoDB.ProtoBuf.nuspec -OutputDirectory build -version $version -symbols")
5759
}
5860
};
5961

0 commit comments

Comments
 (0)