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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f56aecd8c5071ce9f3b9acf1eca239c80bcfa9d8
4
- data.tar.gz: 216c750f323face4dd7313632dc6fed744c019d0
3
+ metadata.gz: 76a0d4aed6763046a06f1c9fe18d0fe93f0535fd
4
+ data.tar.gz: be20e7aebee8155aea7cd319db682025e76fe321
5
5
  SHA512:
6
- metadata.gz: 7674f7f9dd1d8827ce6e3c3f23e9cf263d6ab15dc77634ae4dc13db2720b6101dc5f1e54443133c6d8ccdeb56903bbb397b2628f614cd452774abbc9f38a1a05
7
- data.tar.gz: 19ecc7169b74298563c8824a5d789d12c53171d8a091a398ce5c631bf96af6bb719f42e0784a6585602beb2d514b401badb3e0f41b8674a9c4f38645eb878e1a
6
+ metadata.gz: d1855460c8b4ac183e3586ee9513df604e3ed3f12f0f4f7e24cf1d7c723f803af5a5f5815b9db664686e1362165cec362708f866c7245a95b186ccc6056daed1
7
+ data.tar.gz: 91372ab7c84cd5a07ef296d0fbd344ee8af3a15ecaf9956a0bbffae1c10756eb4ddcd46ee5eb76dcdbb8e59253efc6e8fa86a6117dc960b27b38e762a5a3fb65
@@ -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
- if config_file.file?
12
- parsed_config = YAML.load(config_file)
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
- configuration[Rails.env].each do |service_name, service_details|
16
- url = service_details[:url]
17
- options = generate_options(service_name, service_details)
18
- OData::Service.open(url, options)
19
- validate_service_setup(service_name)
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
 
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.5.7'
3
+ VERSION = '0.5.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odata-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson