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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f3848c44d4405013bdf8759766f32d0d7eed788
4
- data.tar.gz: 514c663ad8f2fe30635444b96eb38c00208dffbd
3
+ metadata.gz: 269ebaa9525c03bb34e59517fc8657e06a951383
4
+ data.tar.gz: a85b55e10c0381eda40d39a908b53e86d2f97379
5
5
  SHA512:
6
- metadata.gz: 92d82ecb0dec062b31c58eeb57698150e9d04a65eb766639bfa7f416fdb4813641a4b359d92693e5782f492bc1711164240a75ca093f7cb56602fdc6786c7002
7
- data.tar.gz: 26535f3f30778fea0a13daf60bee9d17c3e5192ab0ef7973c087736f36304505fae8e998fdb7dd71444acb5e3f5d21e6cf3fcfc69f985aa2b0d48d47ec1038ed
6
+ metadata.gz: 9057ff92d9540726feda14dd0714eed804c7742196d41b872560036e3bbdf306f45878b08dd583dab257be1c193067bbcd819627e9b07a2934e2bb0080366030
7
+ data.tar.gz: 581744635b90a28556ba50e1ee85bc2476b3ff90ed881b4929b1aca30e9708a76aa7d1e4820499e73d94ee99d1a9d82dbaaeae1e81f3d27be86bfea660c45b44
@@ -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).symbolize_keys[Rails.env]
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
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.4.1'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
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.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler