gettyimages-api 3.1.0 → 3.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2243c89f894db5706ba46493d4950793ace1489afd5a7d713f7d849a54c7f772
4
- data.tar.gz: 5152952d3187909c52e0511326def10c73bec5f3c786ad73c379ef60b161985d
3
+ metadata.gz: 46d8176c4ecdab22e5aecd26dc6d1a7467299bd0e00ac855c871af5d2147132b
4
+ data.tar.gz: 4334411fbe9537abe1fb1e2c5ecf22c41a19040ec4edc2feec7b95cb9398b0a4
5
5
  SHA512:
6
- metadata.gz: f60f66c7147c1bd7745ee6fe99f196f9fd6770fc4d8aa63bf174c52b8917a6e79a16200a64f6a2a49ef589b934c89ce2ab1dbf6277180c24db0dad4e2f864555
7
- data.tar.gz: d03290c6c8c34dc5363d2aba180f3c686632b61c60192bef36292ad1d7803d9a4d37aa6190523c9e36b7ceb271b42c74bfe53f56cc5e1e1988fa6ab35251249b
6
+ metadata.gz: f6e412b19bfe62bc685aaa50f270f6bde08618bddf41c29a240b85600375d4cd99bb9fb7f1b685da8fa7033fa82801e2c06dba8d69c92af010b92b9b20fd4cc1
7
+ data.tar.gz: 396f17a03b1c7a162755cec91fce68f9aa7a1379f5b1101afbdbe7bbb0931e0456ea47b78ff1eb6c78f244f20d07eeb1ec10e456aa6a70a37f135ce5fb3bed67
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,7 +10,10 @@ GEM
10
10
  power_assert (1.1.6)
11
11
  public_suffix (4.0.6)
12
12
  rake (13.0.1)
13
+ rexml (3.3.2)
14
+ strscan
13
15
  safe_yaml (1.0.5)
16
+ strscan (3.1.0)
14
17
  test-unit (3.3.5)
15
18
  power_assert
16
19
  webmock (3.8.2)
@@ -27,8 +30,9 @@ PLATFORMS
27
30
  DEPENDENCIES
28
31
  json
29
32
  rake
33
+ rexml
30
34
  test-unit
31
35
  webmock
32
36
 
33
37
  BUNDLED WITH
34
- 2.1.4
38
+ 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.1"
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.1
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: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler