-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
827 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
module OData | ||
# Raised when a user attempts to do something that is not supported | ||
class NotSupportedError < StandardError; end | ||
# Raised when the service returns an error | ||
class ServiceError < StandardError | ||
attr_reader :http_code | ||
def initialize(code) | ||
@http_code = code | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# The ruby_odata namespace | ||
module OData | ||
# The current version of ruby_odata | ||
VERSION = "0.1.4" | ||
VERSION = "0.1.5" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"> | ||
<edmx:DataServices m:DataServiceVersion="1.0" m:MaxDataServiceVersion="2.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> | ||
<Schema Namespace="Model" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"> | ||
<EntityType Name="Boat"> | ||
<Key> | ||
<PropertyRef Name="KeyId" /> | ||
</Key> | ||
<Property Name="KeyId" Type="Edm.Int64" Nullable="false" p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /> | ||
<Property Name="color" Type="Edm.String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" /> | ||
</EntityType> | ||
</Schema> | ||
<Schema Namespace="WebApp" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"> | ||
<EntityContainer Name="adoEntities" m:IsDefaultEntityContainer="true" p6:LazyLoadingEnabled="true" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation"> | ||
<EntitySet Name="Boats" EntityType="Model.Boat" /> | ||
</EntityContainer> | ||
</Schema> | ||
</edmx:DataServices> | ||
</edmx:Edmx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"> | ||
<edmx:DataServices m:DataServiceVersion="1.0" m:MaxDataServiceVersion="2.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> | ||
<Schema Namespace="Model" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"> | ||
<EntityType Name="Car"> | ||
<Key> | ||
<PropertyRef Name="id" /> | ||
</Key> | ||
<Property Name="id" Type="Edm.Int64" Nullable="false" p6:StoreGeneratedPattern="Identity" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation" /> | ||
<Property Name="color" Type="Edm.String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" /> | ||
<Property Name="num_spots" Type="Edm.Int32" /> | ||
<Property Name="striped" Type="Edm.Byte" /> | ||
</EntityType> | ||
</Schema> | ||
<Schema Namespace="WebApp" xmlns="http://schemas.microsoft.com/ado/2009/11/edm"> | ||
<EntityContainer Name="adoEntities" m:IsDefaultEntityContainer="true" p6:LazyLoadingEnabled="true" xmlns:p6="http://schemas.microsoft.com/ado/2009/02/edm/annotation"> | ||
<EntitySet Name="Cars" EntityType="Model.Car" /> | ||
</EntityContainer> | ||
</Schema> | ||
</edmx:DataServices> | ||
</edmx:Edmx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xml:base="http://test.com/test.svc/" | ||
xmlns="http://www.w3.org/2005/Atom" | ||
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" | ||
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> | ||
<id>http://test.com/test.svc/Boats</id> | ||
<title type="text">Boats</title> | ||
<updated>2013-10-28T19:59:15Z</updated> | ||
<link rel="self" title="Boats" href="Boats" /> | ||
<entry> | ||
<id>http://test.com/test.svc/Boats(213L)</id> | ||
<category term="Model.Boat" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> | ||
<link rel="edit" title="Boat" href="Boats(213L)" /> | ||
<title /> | ||
<updated>2013-10-28T19:59:15Z</updated> | ||
<author> | ||
<name /> | ||
</author> | ||
<content type="application/xml"> | ||
<m:properties> | ||
<d:KeyId m:type="Edm.Int64">213</d:KeyId> | ||
<d:color>blue</d:color> | ||
</m:properties> | ||
</content> | ||
</entry> | ||
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xml:base="http://test.com/test.svc/" | ||
xmlns="http://www.w3.org/2005/Atom" | ||
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" | ||
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> | ||
<id>http://test.com/test.svc/Cars</id> | ||
<title type="text">Cars</title> | ||
<updated>2013-10-28T19:59:15Z</updated> | ||
<link rel="self" title="Cars" href="Cars" /> | ||
<entry> | ||
<id>http://test.com/test.svc/Cars(213L)</id> | ||
<category term="Model.Car" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> | ||
<link rel="edit" title="Car" href="Cars(213L)" /> | ||
<title /> | ||
<updated>2013-10-28T19:59:15Z</updated> | ||
<author> | ||
<name /> | ||
</author> | ||
<content type="application/xml"> | ||
<m:properties> | ||
<d:id m:type="Edm.Int64">213</d:id> | ||
<d:color>peach</d:color> | ||
<d:num_spots m:type="Edm.Int32" m:null="true" /> | ||
<d:striped m:type="Edm.Byte" m:null="true" /> | ||
</m:properties> | ||
</content> | ||
</entry> | ||
</feed> |
Oops, something went wrong.