ruby_odata 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.rdoc CHANGED
@@ -1,10 +1,13 @@
1
1
  = ruby_odata Change Log
2
2
 
3
- == 0.0.1
4
- * Basic CRUD Operations
5
- * Query: Filters
6
- * Query: Expands
7
-
8
- == 0.0.2
9
- * Query: Order By
10
-
3
+ === 0.0.1
4
+ * Basic CRUD Operations
5
+ * Query: Filters
6
+ * Query: Expands
7
+
8
+ === 0.0.2
9
+ * Query: Order By
10
+
11
+ === 0.0.3
12
+ * Rearranged code to match the gem name. Things were mismatched between odata_ruby and ruby_odata.
13
+
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
- = odata_ruby
1
+ = ruby_odata
2
2
 
3
- The <b>Open Data Protocol</b> (OData) is a fantastic way to query and update data over standard Web technologies. The odata_ruby library acts as a consumer of OData services.
3
+ The <b>Open Data Protocol</b> (OData) is a fantastic way to query and update data over standard Web technologies. The ruby_odata library acts as a consumer of OData services.
4
4
 
5
5
  == Usage
6
6
  The API is a work in progress. Notably, changes can't be bundled (through save_changes, only the last operation before save_changes is persisted).
@@ -8,7 +8,7 @@ The API is a work in progress. Notably, changes can't be bundled (through save_
8
8
  === Adding
9
9
  When you point at a service, an AddTo<EntityName> method is created for you. This method takes in the new entity to create. To commit the change, you need to call the save_changes method on the service. To add a new category for example, you would simply do the following:
10
10
 
11
- require 'lib/odata_ruby'
11
+ require 'lib/ruby_odata'
12
12
 
13
13
  svc = OData::Service.new "http://127.0.0.1:8888/SampleService/Entities.svc"
14
14
  new_category = Category.new
@@ -20,7 +20,7 @@ When you point at a service, an AddTo<EntityName> method is created for you. Th
20
20
  === Updating
21
21
  To update an object, simply pass the modified object to the update_object method on the service. Updating, like adding requires you to call save_changes in order to persist the change. For example:
22
22
 
23
- require 'lib/odata_ruby'
23
+ require 'lib/ruby_odata'
24
24
 
25
25
  svc = OData::Service.new "http://127.0.0.1:8888/SampleService/Entities.svc"
26
26
  new_category = Category.new
@@ -37,7 +37,7 @@ To update an object, simply pass the modified object to the update_object method
37
37
  === Deleting
38
38
  Deleting an object involves passing the tracked object to the delete_object method on the service. Deleting is another function that involves the save_changes method (to commit the change back to the server). In this example, we'll add a category and then delete it.
39
39
 
40
- require 'lib/odata_ruby'
40
+ require 'lib/ruby_odata'
41
41
 
42
42
  svc = OData::Service.new "http://127.0.0.1:8888/SampleService/Entities.svc"
43
43
  new_category = Category.new
@@ -53,7 +53,7 @@ Deleting an object involves passing the tracked object to the delete_object meth
53
53
  === Querying
54
54
  Querying is easy, for example to pull all the categories from the SampleService, you simply can run:
55
55
 
56
- require 'lib/odata_ruby'
56
+ require 'lib/ruby_odata'
57
57
 
58
58
  svc = OData::Service.new "http://127.0.0.1:8888/SampleService/Entities.svc"
59
59
  svc.Categories
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rake/rdoctask'
2
2
  Rake::RDocTask.new do |rd|
3
3
  rd.main = "README.rdoc"
4
- rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
4
+ rd.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc", "lib/**/*.rb")
5
5
  rd.rdoc_dir = 'doc'
6
6
  end
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,4 +1,4 @@
1
- require 'lib/odata_ruby'
1
+ require 'lib/ruby_odata'
2
2
  require 'machinist/object'
3
3
  require 'sham'
4
4
  require 'faker'
@@ -1,5 +1,5 @@
1
1
  lib = File.dirname(__FILE__)
2
- $: << lib + '/odata_ruby/'
2
+ $: << lib + '/ruby_odata/'
3
3
 
4
4
  require 'rubygems'
5
5
  require 'active_support' # Used for serializtion to JSON
@@ -9,7 +9,7 @@ require 'open-uri'
9
9
  require 'rest_client'
10
10
  require 'nokogiri'
11
11
 
12
- require lib + '/odata_ruby/query_builder'
13
- require lib + '/odata_ruby/class_builder'
14
- require lib + '/odata_ruby/operation'
15
- require lib + '/odata_ruby/service'
12
+ require lib + '/ruby_odata/query_builder'
13
+ require lib + '/ruby_odata/class_builder'
14
+ require lib + '/ruby_odata/operation'
15
+ require lib + '/ruby_odata/service'
File without changes
File without changes
File without changes
File without changes
data/ruby_odata.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby_odata}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Damien White"]
@@ -31,11 +31,11 @@ Gem::Specification.new do |s|
31
31
  "features/step_definitions/service_steps.rb",
32
32
  "features/support/env.rb",
33
33
  "features/support/hooks.rb",
34
- "lib/odata_ruby.rb",
35
- "lib/odata_ruby/class_builder.rb",
36
- "lib/odata_ruby/operation.rb",
37
- "lib/odata_ruby/query_builder.rb",
38
- "lib/odata_ruby/service.rb",
34
+ "lib/ruby_odata.rb",
35
+ "lib/ruby_odata/class_builder.rb",
36
+ "lib/ruby_odata/operation.rb",
37
+ "lib/ruby_odata/query_builder.rb",
38
+ "lib/ruby_odata/service.rb",
39
39
  "ruby_odata.gemspec",
40
40
  "test/Cassini x64.bat",
41
41
  "test/Cassini x86.bat",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_odata
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Damien White
@@ -90,11 +90,11 @@ files:
90
90
  - features/step_definitions/service_steps.rb
91
91
  - features/support/env.rb
92
92
  - features/support/hooks.rb
93
- - lib/odata_ruby.rb
94
- - lib/odata_ruby/class_builder.rb
95
- - lib/odata_ruby/operation.rb
96
- - lib/odata_ruby/query_builder.rb
97
- - lib/odata_ruby/service.rb
93
+ - lib/ruby_odata.rb
94
+ - lib/ruby_odata/class_builder.rb
95
+ - lib/ruby_odata/operation.rb
96
+ - lib/ruby_odata/query_builder.rb
97
+ - lib/ruby_odata/service.rb
98
98
  - ruby_odata.gemspec
99
99
  - test/Cassini x64.bat
100
100
  - test/Cassini x86.bat