access 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7267410376dbffe9631a1ac96dfe8a52891d5743
4
- data.tar.gz: 34593a241cd80c5bfdb7acba65c70d4dae63f534
3
+ metadata.gz: e1c5f52b28a9127e3d51ad4f176c2fe0435afdb1
4
+ data.tar.gz: e69e50198a6f0811ec88dead85a70d9d339240cc
5
5
  SHA512:
6
- metadata.gz: 97f8be53dfa1e4be76f64c97343a8d02f4346b3940c6fc8e4c801025c82c24898424cfe5ae410c364d4d733bd69c05c97bd327ace1d31e5f51fd1dec8b158f38
7
- data.tar.gz: d00a59f126ef2469db5ecf9080b3bb8530ffe80345916e0a8dd1a14c50644e2dd5d768a80e6553025f69de7f5647ac0effb7b4ab3c4d128cda6ca194ebc1601b
6
+ metadata.gz: ebe0faed4f4cd37100e0ead4bfd94159196d7f7eabcbafcb9e684a1f0d436de493871bff7b75cc132f53ffe33d0bb1188c24410185ae63e86f59c1ef94c01e34
7
+ data.tar.gz: 71c6a06f4ad1024c2b127843f619054bdffef1858dde0fa3aa0a14d8fe96fc3ab7d5e6499afa7529dd3b7a8a1581539b42584898218c71acf9040dd24961b1fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- access (2.0.30)
4
+ access (2.0.31)
5
5
  hashie (~> 3.3.1)
6
6
  httparty (~> 0.13.3)
7
7
 
data/lib/access/config.rb CHANGED
@@ -13,7 +13,7 @@ module Access
13
13
  end
14
14
 
15
15
  class Config
16
- DOMAINS = {'production' => '', 'demo' => '-demo', 'stage' => '-stage', 'staging' => '-stage' }
16
+ DOMAINS = {'production' => '', 'demo' => '-demo', 'stage' => '-stage', 'staging' => '-stage', 'development' => '' }
17
17
  attr_accessor :access_token, :api_environment, :return_json, :hashify, :access_timeout
18
18
 
19
19
  def initialize
@@ -71,11 +71,11 @@ module Access
71
71
  private
72
72
 
73
73
  def set_base(path, api_type, environment)
74
- if environment
75
- "https://#{ api_type }#{ Access::Config::DOMAINS[environment] }.adcrws.com/v1#{path}"
76
- else
77
- "https://#{ api_type }#{ Access::Config::DOMAINS[Access.config.api_environment] }.adcrws.com/v1#{path}"
78
- end
74
+ url = Access.config.api_environment == 'development' ? "http://" : "https://"
75
+ url += api_type
76
+ url += !!environment ? Access::Config::DOMAINS[environment] : Access::Config::DOMAINS[Access.config.api_environment]
77
+ url += Access.config.api_environment == 'development' ? ".rws-api.dev/v1" : ".adcrws.com/v1"
78
+ url += path
79
79
  end
80
80
 
81
81
  def set_headers(token_param)
@@ -1,4 +1,4 @@
1
1
  module Access
2
- VERSION = "2.0.30"
2
+ VERSION = "2.0.31"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.30
4
+ version: 2.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-30 00:00:00.000000000 Z
13
+ date: 2015-12-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler