odata-model 0.5.3 → 0.5.4
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 +2 -2
- 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: 32a2ecc93adc5e66cfea77b8e7f16c2cc626ab86
|
4
|
+
data.tar.gz: f8d3cc234136cebe3c863ecb6806b4990d7688af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0640075413f1045ca123a7708cfb2133f64a89ed4f0502dc6acf9082ba8e8550895599a17d6640edd61c25dfbbbedef528cdc70a8d4c22d25d9341306ea9bf56
|
7
|
+
data.tar.gz: 2a0a5c13e380e8a3c910cb72d44e5ad4f780dc3e8667f74da4325b2f7c4c4da054b595099ecf2a8d26ce004b053bbaa5125f6facd1506ca6d216697910bb5b91
|
data/lib/odata/model/railtie.rb
CHANGED
@@ -15,13 +15,13 @@ module OData
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def parse_configuration(app)
|
18
|
-
config_file = File.open(File.join(
|
18
|
+
config_file = File.open(File.join(app.root, 'config/odata.yml')).read
|
19
19
|
parsed_config = YAML.load(config_file)
|
20
20
|
configuration = parsed_config.with_indifferent_access
|
21
21
|
end
|
22
22
|
|
23
23
|
def process_configuration(app)
|
24
|
-
configuration[
|
24
|
+
configuration[app.env].each do |service_name, service_details|
|
25
25
|
url = service_details[:url]
|
26
26
|
options = generate_options(service_name, service_details)
|
27
27
|
OData::Service.open(url, options)
|
data/lib/odata/model/version.rb
CHANGED