gettyimages-api 3.1.0 → 3.2.0

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
  SHA256:
3
- metadata.gz: 2243c89f894db5706ba46493d4950793ace1489afd5a7d713f7d849a54c7f772
4
- data.tar.gz: 5152952d3187909c52e0511326def10c73bec5f3c786ad73c379ef60b161985d
3
+ metadata.gz: 2a8ee53bb4ec7229bcebe8dcfaa801dbbad4e93d4445de51c2ec47a3e8bc0656
4
+ data.tar.gz: 62b5ea7d0b7026a00f96321809535169628f517ca93484198eb55ba036ca1abb
5
5
  SHA512:
6
- metadata.gz: f60f66c7147c1bd7745ee6fe99f196f9fd6770fc4d8aa63bf174c52b8917a6e79a16200a64f6a2a49ef589b934c89ce2ab1dbf6277180c24db0dad4e2f864555
7
- data.tar.gz: d03290c6c8c34dc5363d2aba180f3c686632b61c60192bef36292ad1d7803d9a4d37aa6190523c9e36b7ceb271b42c74bfe53f56cc5e1e1988fa6ab35251249b
6
+ metadata.gz: 932551fd6e8c14c213ed7c100a90b7ea142e246379e963dee94994659a7a465f79a94c80fcffe3e5b7e6f37aca98a6451a35748688c3e9d909da556d4dfe190f
7
+ data.tar.gz: c343f59aa09825053609d4600456caff381f2bc96d797b66971edcb271ec85ee5ebdf1103e25885b6d5ef01bd06c97ddd8fc1d043b249301b6e223e1e234c233
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gem 'rake'
4
4
  gem 'json'
5
5
  gem 'test-unit'
6
6
  gem 'webmock'
7
+ gem 'rexml'
data/Gemfile.lock CHANGED
@@ -10,6 +10,7 @@ GEM
10
10
  power_assert (1.1.6)
11
11
  public_suffix (4.0.6)
12
12
  rake (13.0.1)
13
+ rexml (3.2.5)
13
14
  safe_yaml (1.0.5)
14
15
  test-unit (3.3.5)
15
16
  power_assert
@@ -27,8 +28,9 @@ PLATFORMS
27
28
  DEPENDENCIES
28
29
  json
29
30
  rake
31
+ rexml
30
32
  test-unit
31
33
  webmock
32
34
 
33
35
  BUNDLED WITH
34
- 2.1.4
36
+ 2.2.22
data/Makefile CHANGED
@@ -4,7 +4,7 @@ GID := $(shell id -g)
4
4
 
5
5
  build:
6
6
  bundle config set --local path 'vendor/bundle'
7
- bundle install --path vendor/bundle
7
+ bundle install
8
8
  bundle exec rake
9
9
  gem build gettyimages-api.gemspec
10
10
 
data/README.md CHANGED
@@ -167,7 +167,7 @@ _Source code is only needed if you would like to contribute to the project. Othe
167
167
 
168
168
  ### Requirements
169
169
 
170
- - Ruby version >= 2.5
170
+ - Ruby version >= 3.0
171
171
  - [Bundler](http://bundler.io)
172
172
 
173
173
  Install bundler and all dependencies
data/lib/Credentials.rb CHANGED
@@ -21,7 +21,7 @@ class Credentials
21
21
  end
22
22
 
23
23
  def get_uri(path)
24
- return URI.parse "#{Api_Host::API_BASE_URL}#{path}"
24
+ return URI.parse "#{Api_Host::AUTH_BASE_URL}#{path}"
25
25
  end
26
26
 
27
27
  def token_has_expired()
@@ -1,3 +1,3 @@
1
1
  module GettyImagesApi
2
- VERSION = "3.1.0"
2
+ VERSION = "3.2.0"
3
3
  end
data/lib/HttpHelper.rb CHANGED
@@ -7,6 +7,8 @@ require_relative 'GettyImagesApi/version'
7
7
  class Api_Host
8
8
  API_HOST = "api.gettyimages.com"
9
9
  API_BASE_URL = "https://#{API_HOST}"
10
+ AUTH_HOST = "authentication.gettyimages.com"
11
+ AUTH_BASE_URL = "https://#{AUTH_HOST}"
10
12
  end
11
13
 
12
14
  class HttpHelper
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettyimages-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Getty Images
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler