adobe-campaign 0.4.0 → 0.4.2

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
  SHA256:
3
- metadata.gz: 8a2705fa21dd486987478dd1f1ae043e7b82af3200e43879d8774f09742486ca
4
- data.tar.gz: 1ff2a73149557944443551508f9b93bb9431b12f2397f49b6b97bba3cd0c9297
3
+ metadata.gz: 3e31be016bb93def610f762263bc419107cc2ca52778a49f44a9d55f554f4e8b
4
+ data.tar.gz: c384bb1e50a123b0eb84b32fc2ef7dfd55fadd813957c0c9dfbde021dc881623
5
5
  SHA512:
6
- metadata.gz: f5c8a13e6077abcd7be9b44745cc5d54872ca6566c337edb0d50b4837853f0689609f4162a2d6da32d1d2f578a625767e9908df3f19248c2e9072cd6231a72c3
7
- data.tar.gz: fa3f0f1df5f9fb82ccc4383e5b66c98acaa908461b7bd2e14c125b2fe252d4fc58b65734bcc76aad547e254ea16c6afe0e395def2d408d457a47b685ce2e3237
6
+ metadata.gz: 3ca8dcc115827458166052276df47e0c88eb47855d049372764be0e00d7408c96b2ce43e6a3bcab7c934c0b93064321dd412a5f78bfa1ad554c416a00c38fb8f
7
+ data.tar.gz: 857ac8242baed7038feee2541071c8b320bade03dec5c78a959d0310d6bf6a66540e5e59f3f2c305dd37a4a63968f7746f2e8b2d68937d5025979cab29c37f7f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.6.7
@@ -8,10 +8,10 @@ Gem::Specification.new do |spec|
8
8
  spec.name = 'adobe-campaign'
9
9
  spec.version = Adobe::Campaign::VERSION
10
10
  spec.authors = ['Spencer Oberstadt']
11
- spec.email = ['soberstadt@gmail.com']
11
+ spec.email = ['apps@cru.org']
12
12
 
13
13
  spec.summary = 'A ruby wrapper for connecting your Rails app with Adobe Campaign.'
14
- spec.homepage = 'https://github.com/soberstadt/adobe-campaign'
14
+ spec.homepage = 'https://github.com/CruGlobal/adobe-campaign'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = 'exe'
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency 'rails', '>= 3.1'
24
24
  spec.add_runtime_dependency 'rest-client', '>= 1.6.0'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.11'
26
+ spec.add_development_dependency 'bundler', '~> 2.2.10'
27
27
  spec.add_development_dependency 'guard-rubocop'
28
28
  spec.add_development_dependency 'rake', '>= 12.3.3'
29
29
  spec.add_development_dependency 'rspec', '~> 3.0'
@@ -51,11 +51,13 @@ module Adobe
51
51
  def load_access_token
52
52
  return @access_token if @access_token && @access_token_expires > Time.zone.now
53
53
 
54
- as_url = "https://#{Adobe::Campaign.configuration.ims_host}/ims/exchange/jwt"
54
+ as_url = "https://#{Adobe::Campaign.configuration.ims_host}/ims/token/v3"
55
55
  as_payload = {
56
56
  client_id: Adobe::Campaign.configuration.api_key,
57
57
  client_secret: Adobe::Campaign.configuration.api_secret,
58
- jwt_token: Adobe::Campaign.configuration.signed_jwt
58
+ grant_type: "client_credentials",
59
+ scope: "campaign_sdk, openid, deliverability_service_general, campaign_config_server_general, " +
60
+ "AdobeID, additional_info.projectedProductContext"
59
61
  }
60
62
  access_token_resp = RestClient.post(as_url, as_payload, {})
61
63
  json = JSON.parse(access_token_resp.body)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Adobe
4
4
  module Campaign
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.2'
6
6
  end
7
7
  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.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spencer Oberstadt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-18 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.11'
81
+ version: 2.2.10
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.11'
88
+ version: 2.2.10
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: guard-rubocop
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: 0.71.0
145
145
  description:
146
146
  email:
147
- - soberstadt@gmail.com
147
+ - apps@cru.org
148
148
  executables: []
149
149
  extensions: []
150
150
  extra_rdoc_files: []
@@ -170,7 +170,7 @@ files:
170
170
  - lib/adobe/campaign/service.rb
171
171
  - lib/adobe/campaign/version.rb
172
172
  - lib/tasks/adobe.rake
173
- homepage: https://github.com/soberstadt/adobe-campaign
173
+ homepage: https://github.com/CruGlobal/adobe-campaign
174
174
  licenses: []
175
175
  metadata: {}
176
176
  post_install_message:
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.0.3
191
+ rubygems_version: 3.0.3.1
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: A ruby wrapper for connecting your Rails app with Adobe Campaign.