frodo 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/frodo/config.rb +3 -0
- data/lib/frodo/schema.rb +2 -1
- data/lib/frodo/service.rb +1 -1
- data/lib/frodo/version.rb +1 -1
- data/spec/frodo/schema_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5fa07ab3ac2e97a2c07ffa65fd59b63066b309b7
|
4
|
+
data.tar.gz: e64aba8de072ec0a13da684d5f5a30ca73aca7dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e653d0e903b35949cf8408cfe4d5140c3cde2672e5545d6b0a5d0233b78622ddd277438463cf98a9395ffddadcb2c753862e15348391422486f0ee7ba8cd57
|
7
|
+
data.tar.gz: cee12775fc21f07ec59a4502198b23ef11a2cc99c7a7f1c24fb1f81cf65e57e1495a96fb3f33a6d4da6b3a6a776a2da8925c2cca49868e7540a4c0dcfd4b4f19
|
data/lib/frodo/config.rb
CHANGED
@@ -136,6 +136,9 @@ module Frodo
|
|
136
136
|
# Set a log level for logging when Frodo.log is set to true, defaulting to :debug
|
137
137
|
option :log_level, default: :debug
|
138
138
|
|
139
|
+
# Optionally set the navigation properties to improve performance of the client
|
140
|
+
option :navigation_properties
|
141
|
+
|
139
142
|
def options
|
140
143
|
self.class.options
|
141
144
|
end
|
data/lib/frodo/schema.rb
CHANGED
@@ -12,9 +12,10 @@ module Frodo
|
|
12
12
|
#
|
13
13
|
# @param schema_definition [Nokogiri::XML] The schema's XML definition
|
14
14
|
# @param service [Frodo::Service] The schema's parent service
|
15
|
-
def initialize(schema_definition, service)
|
15
|
+
def initialize(schema_definition, service, navigation_properties=nil)
|
16
16
|
@metadata = schema_definition
|
17
17
|
@service = service
|
18
|
+
@navigation_properties = navigation_properties
|
18
19
|
end
|
19
20
|
|
20
21
|
# Returns the schema's `Namespace` attribute (mandatory).
|
data/lib/frodo/service.rb
CHANGED
data/lib/frodo/version.rb
CHANGED
data/spec/frodo/schema_spec.rb
CHANGED
@@ -74,6 +74,12 @@ describe Frodo::Schema do
|
|
74
74
|
it { expect(subject.navigation_properties['email']['activitypointer_activity_parties']).to be_a(Frodo::NavigationProperty) }
|
75
75
|
end
|
76
76
|
|
77
|
+
context "with navigation properties provided during initialization" do
|
78
|
+
let(:navigation_properties) { { key: "value" } }
|
79
|
+
let(:subject) { Frodo::Schema.new(schema_xml, service, navigation_properties) }
|
80
|
+
|
81
|
+
it { expect(subject.navigation_properties).to eq(navigation_properties) }
|
82
|
+
end
|
77
83
|
end
|
78
84
|
|
79
85
|
describe '#referential_constraints_for_entity' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frodo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emmanuel Pinault
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -404,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
404
404
|
version: '0'
|
405
405
|
requirements: []
|
406
406
|
rubyforge_project:
|
407
|
-
rubygems_version: 2.
|
407
|
+
rubygems_version: 2.5.1
|
408
408
|
signing_key:
|
409
409
|
specification_version: 4
|
410
410
|
summary: Simple OData library
|