Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
View
3  .gitignore
@@ -27,4 +27,5 @@ obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
-*.orig
+*.orig
+LoveSeat.IntegrationTest/LoveSeat.IntegrationTest.pidb
View
BIN  Libraries/Newtonsoft.Json.dll
Binary file not shown
View
2  Libraries/Newtonsoft.Json.xml
@@ -3107,7 +3107,7 @@
</member>
<member name="P:Newtonsoft.Json.JsonTextReader.Culture">
<summary>
- Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.CurrentCulture"/>.
+ Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.InvariantCulture"/>.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonTextReader.LineNumber">
View
15 LoveSeat.IntegrationTest/NewtonSoftTests.cs
@@ -45,6 +45,14 @@ public void KeyOptions_Should_Produce_Squirley_Brackets_for_CouchValueMax()
var result = arry.ToString();
Assert.AreEqual("[{},1]", result);
}
+ [Test]
+ public void KeyOptions_Should_Produce_Squirley_Brackets_for_CouchValueMax2()
+ {
+ var arry = new KeyOptions(CouchValue.MaxValue, 1);
+ var result = arry.ToString();
+ Assert.AreEqual("[{},1]", result);
+ }
+
[Test]
public void KeyOptions_Should_Produce_IsoTime()
@@ -56,5 +64,12 @@ public void KeyOptions_Should_Produce_IsoTime()
Assert.AreEqual("[null,%222011-01-01T00%3a00%3a00%22]", result);
}
+
+ [Test]
+ public void KeyOptions_Constructor_Fails()
+ {
+ var arry = new KeyOptions(CouchValue.MinValue);
+ var result = arry.ToString();
+ }
}
}
View
3  LoveSeat.Repository/LoveSeat.Repositories.csproj
@@ -10,8 +10,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LoveSeat.Repositories</RootNamespace>
<AssemblyName>LoveSeat.Repositories</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
View
3  LoveSeat/CouchConfiguration.cs
@@ -6,6 +6,9 @@ namespace LoveSeat
{
public class CouchConfiguration
{
+ public CouchConfiguration()
+ {
+ }
public CouchConfiguration(string pathToCouchAppRc)
{
var fileContents = File.ReadAllText(pathToCouchAppRc);
View
2  LoveSeat/CouchDatabase.cs
@@ -129,7 +129,7 @@ public ViewResult GetDocuments(Keys keyLst)
/// <remarks>Here we assume you have either added the correct rev, id, or _deleted attribute to each document. The response will indicate if there were any errors.
/// Please note that the max_document_size configuration variable in CouchDB limits the maximum request size to CouchDB.</remarks>
/// <returns>JSON of updated documents in the BulkDocumentResponse class. </returns>
- public BulkDocumentResponses SaveDocuments(Documents docs, bool all_or_nothing = false)
+ public BulkDocumentResponses SaveDocuments(Documents docs, bool all_or_nothing)
{
string uri = databaseBaseUri + "/_bulk_docs";
View
1  LoveSeat/Support/CouchRequest.cs
@@ -26,6 +26,7 @@ public CouchRequest(string uri)
request.Headers.Add("If-None-Match", eTag);
request.Headers.Add("Accept-Charset", "utf-8");
request.Headers.Add("Accept-Language", "en-us");
+ request.Accept = "application/json";
request.Referer = uri;
request.ContentType = "application/json";
request.KeepAlive = true;
View
11 LoveSeat/Support/KeyOptions.cs
@@ -12,11 +12,14 @@ namespace LoveSeat
{
public class KeyOptions : IKeyOptions
{
- private JArray objects;
+ private JArray objects = new JArray();
- public KeyOptions(params object[] objects)
- {
- this.objects = new JArray(objects);
+ public KeyOptions(params object[] objects)
+ {
+ foreach (var obj in objects)
+ {
+ this.Add(obj);
+ }
}
public KeyOptions(JArray jArray)

No commit comments for this range

Something went wrong with that request. Please try again.