adobe-campaign 0.1.0.1 → 0.1.1
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 +4 -4
- data/lib/adobe/campaign/base.rb +5 -1
- data/lib/adobe/campaign/configuration.rb +2 -0
- data/lib/adobe/campaign/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7743a9a35f627c6563ff1bf3bf1b146e4fc8740
|
|
4
|
+
data.tar.gz: 7672fa7f683da17085f6a52f0f49af1598297af9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61648fb2ea5c7e383ad6a74f69b28f3ddbbff7e93c5c5944dcac2cd33929d9294a078ebbb3c93ffaf5143eaa161557ee79d2413210c153964eef9c5224245826
|
|
7
|
+
data.tar.gz: abba9476f0850e1fccddb956827fb97369839a35f3749310788a6183ca3f1b7de68886bcb3a5d3013241321500af9d1d1f8a128e98d87ad72c46655f4aa48d96
|
data/lib/adobe/campaign/base.rb
CHANGED
|
@@ -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(
|
|
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 = ''
|
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.
|
|
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-
|
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|