adobe-campaign 0.1.0.1 → 0.1.1

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: de1679f1ea719170ca93ad2f55aee14d102f30a7
4
- data.tar.gz: d57b65eb5e6bd7e21574e84625eb4e201353c4c1
3
+ metadata.gz: c7743a9a35f627c6563ff1bf3bf1b146e4fc8740
4
+ data.tar.gz: 7672fa7f683da17085f6a52f0f49af1598297af9
5
5
  SHA512:
6
- metadata.gz: a34d6979b594397ddc4c87630f17666a693f38d071c3d282e773e129b7171502423e1fb9a6c57221362cb9a65f706a289a8024f1bca13172057c0812c8cd5198
7
- data.tar.gz: 0aece9875ca3c0ad716e88ce247fa36736412a326814b162be8bddc75207eaff63fb50e1c03d52e012166394e14d48614ad2641e7d94fd640dd859c05367c6ae
6
+ metadata.gz: 61648fb2ea5c7e383ad6a74f69b28f3ddbbff7e93c5c5944dcac2cd33929d9294a078ebbb3c93ffaf5143eaa161557ee79d2413210c153964eef9c5224245826
7
+ data.tar.gz: abba9476f0850e1fccddb956827fb97369839a35f3749310788a6183ca3f1b7de68886bcb3a5d3013241321500af9d1d1f8a128e98d87ad72c46655f4aa48d96
@@ -64,7 +64,11 @@ module Adobe
64
64
  protected
65
65
 
66
66
  def url_prefix(url)
67
- url.starts_with?('http') ? url : url_join('https://mc.adobe.io/cru/campaign/', url)
67
+ url.starts_with?('http') ? url : url_join(base_url, url)
68
+ end
69
+
70
+ def base_url
71
+ "https://mc.adobe.io/#{Adobe::Campaign.configuration.org_name}/campaign/"
68
72
  end
69
73
 
70
74
  def url_join(*args)
@@ -13,6 +13,7 @@ module Adobe
13
13
  class Configuration
14
14
  # Required. The issuer, your organization ID in the format org_ident@AdobeOrg.
15
15
  attr_accessor :org_id
16
+ attr_accessor :org_name
16
17
 
17
18
  # Required. The subject, your API client account ID in the format: id@techacct.adobe.com.
18
19
  attr_accessor :tech_acct
@@ -27,6 +28,7 @@ module Adobe
27
28
 
28
29
  def initialize
29
30
  @org_id = ''
31
+ @org_name = ''
30
32
  @tech_acct = ''
31
33
  @api_key = ''
32
34
  @api_secret = ''
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Adobe
3
3
  module Campaign
4
- VERSION = '0.1.0.1'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adobe-campaign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spencer Oberstadt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails