odata-model 0.4.1 → 0.5.0
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 +4 -4
- data/lib/odata/model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 269ebaa9525c03bb34e59517fc8657e06a951383
|
4
|
+
data.tar.gz: a85b55e10c0381eda40d39a908b53e86d2f97379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9057ff92d9540726feda14dd0714eed804c7742196d41b872560036e3bbdf306f45878b08dd583dab257be1c193067bbcd819627e9b07a2934e2bb0080366030
|
7
|
+
data.tar.gz: 581744635b90a28556ba50e1ee85bc2476b3ff90ed881b4929b1aca30e9708a76aa7d1e4820499e73d94ee99d1a9d82dbaaeae1e81f3d27be86bfea660c45b44
|
data/lib/odata/model/railtie.rb
CHANGED
@@ -15,12 +15,12 @@ module OData
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def parse_configuration(app)
|
18
|
-
config_file = File.open(File.join(Rails.root, 'config/odata.yml'))
|
19
|
-
configuration = YAML.load(config_file).
|
18
|
+
config_file = File.open(File.join(Rails.root, 'config/odata.yml')).read
|
19
|
+
configuration = YAML.load(config_file).deep_symbolize_keys
|
20
20
|
end
|
21
21
|
|
22
22
|
def process_configuration(app)
|
23
|
-
configuration.each do |service_name, service_details|
|
23
|
+
configuration[Rails.env].each do |service_name, service_details|
|
24
24
|
url = service_details[:url]
|
25
25
|
options = generate_options(service_name, service_details)
|
26
26
|
OData::Service.open(url, options)
|
@@ -48,4 +48,4 @@ module OData
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
51
|
-
end
|
51
|
+
end
|
data/lib/odata/model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odata-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Thompson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|