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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f77e0dffa1d45efee0ab34e2cbe3dcf87e2dd42
4
- data.tar.gz: b9f971d7ddd3453298f082d72647f3f9c0c27f30
3
+ metadata.gz: 32a2ecc93adc5e66cfea77b8e7f16c2cc626ab86
4
+ data.tar.gz: f8d3cc234136cebe3c863ecb6806b4990d7688af
5
5
  SHA512:
6
- metadata.gz: f2b4e97d909a8a5d164a63f7fe47d22160248a6101b9b9afd8eaa62b264e3690296cbcc24e324b192d386d9c4488d0048454e449de9fdda360b528e45c5bec07
7
- data.tar.gz: a71d58ec6e84106657a2df2b22d3e18298a02ec4da2cbc1dea298015ae98c98fcd5b978d292dc7ac597e90235c6287c0147ba5bf574689f726dd60be411a83bc
6
+ metadata.gz: 0640075413f1045ca123a7708cfb2133f64a89ed4f0502dc6acf9082ba8e8550895599a17d6640edd61c25dfbbbedef528cdc70a8d4c22d25d9341306ea9bf56
7
+ data.tar.gz: 2a0a5c13e380e8a3c910cb72d44e5ad4f780dc3e8667f74da4325b2f7c4c4da054b595099ecf2a8d26ce004b053bbaa5125f6facd1506ca6d216697910bb5b91
@@ -15,13 +15,13 @@ 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')).read
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[Rails.env].each do |service_name, service_details|
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)
@@ -1,5 +1,5 @@
1
1
  module OData
2
2
  module Model
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
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.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Thompson