odata-model 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/odata/model/railtie.rb +7 -9
- data/lib/odata/model/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76a0d4aed6763046a06f1c9fe18d0fe93f0535fd
|
4
|
+
data.tar.gz: be20e7aebee8155aea7cd319db682025e76fe321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1855460c8b4ac183e3586ee9513df604e3ed3f12f0f4f7e24cf1d7c723f803af5a5f5815b9db664686e1362165cec362708f866c7245a95b186ccc6056daed1
|
7
|
+
data.tar.gz: 91372ab7c84cd5a07ef296d0fbd344ee8af3a15ecaf9956a0bbffae1c10756eb4ddcd46ee5eb76dcdbb8e59253efc6e8fa86a6117dc960b27b38e762a5a3fb65
|
data/lib/odata/model/railtie.rb
CHANGED
@@ -8,16 +8,14 @@ module OData
|
|
8
8
|
initializer('odata.load-config') do
|
9
9
|
config_file = Rails.root.join('config', 'odata.yml').read
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
self.configuration = parsed_config.with_indifferent_access
|
11
|
+
parsed_config = YAML.load(config_file)
|
12
|
+
self.configuration = parsed_config.with_indifferent_access
|
14
13
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
14
|
+
configuration[Rails.env].each do |service_name, service_details|
|
15
|
+
url = service_details[:url]
|
16
|
+
options = generate_options(service_name, service_details)
|
17
|
+
OData::Service.open(url, options)
|
18
|
+
validate_service_setup(service_name)
|
21
19
|
end
|
22
20
|
end
|
23
21
|
|
data/lib/odata/model/version.rb
CHANGED