gettyimages-api 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +35 -0
- data/.github/workflows/publish.yml +40 -0
- data/.gitignore +2 -0
- data/Gemfile +1 -1
- data/Makefile +5 -0
- data/README.md +5 -2
- data/lib/GettyImagesApi/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997e7f50a48676a01163f288529a8e26129ff288e220593d4c33a240edad4ceb
|
4
|
+
data.tar.gz: a44a0e727ba765c23c4e44360088b27d9526283fd5b21dc230bb883a42542787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43ff3f1dbb02255792b2fc0dd6ef490a5de0a55975d249310cffb4d983efecef04654f962d14a171ae3d25dc29d9fb5152860a5513585c41d51a0ac0177bd19
|
7
|
+
data.tar.gz: 15bd7ce9133f5457429376fdbcf1db10127472224ff02ba9790dfb5f5f6c1c19a4ea2c8d1ed66657a5b1bcac4177910885b6de15698f755e26d4c7338fc09bab
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: Build
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master, actions ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby-version: [ 2.5, 2.6, 2.7 ]
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
with:
|
20
|
+
fetch-depth: 0
|
21
|
+
|
22
|
+
- uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
25
|
+
|
26
|
+
- name: 'Get Previous tag'
|
27
|
+
id: previoustag
|
28
|
+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
29
|
+
|
30
|
+
- name: Set version
|
31
|
+
run: |
|
32
|
+
sed -i -e "s/0.0.0/${{ steps.previoustag.outputs.tag }}/" lib/GettyImagesApi/version.rb
|
33
|
+
cat lib/GettyImagesApi/version.rb
|
34
|
+
|
35
|
+
- run: make build
|
@@ -0,0 +1,40 @@
|
|
1
|
+
name: Publish
|
2
|
+
|
3
|
+
on:
|
4
|
+
release:
|
5
|
+
types: [released]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
with:
|
15
|
+
fetch-depth: 0
|
16
|
+
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.5
|
20
|
+
|
21
|
+
- name: 'Get Previous tag'
|
22
|
+
id: previoustag
|
23
|
+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
24
|
+
|
25
|
+
- name: Set version
|
26
|
+
run: |
|
27
|
+
sed -i -e "s/0.0.0/${{ steps.previoustag.outputs.tag }}/" lib/GettyImagesApi/version.rb
|
28
|
+
cat lib/GettyImagesApi/version.rb
|
29
|
+
|
30
|
+
- run: make build
|
31
|
+
|
32
|
+
- name: Publish to RubyGems
|
33
|
+
run: |
|
34
|
+
mkdir -p $HOME/.gem
|
35
|
+
touch $HOME/.gem/credentials
|
36
|
+
chmod 0600 $HOME/.gem/credentials
|
37
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
38
|
+
gem push gettyimages-api-${{ steps.previoustag.outputs.tag }}.gem
|
39
|
+
env:
|
40
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/Gemfile
CHANGED
data/Makefile
ADDED
data/README.md
CHANGED
@@ -12,11 +12,14 @@ This SDK makes using the Getty Images [API](http://developers.gettyimages.com) e
|
|
12
12
|
## Help & Support
|
13
13
|
|
14
14
|
* [Getty Images API](http://developers.gettyimages.com/)
|
15
|
-
* [Contact API Support](mailto:apisupport@gettyimages.com)
|
16
15
|
* [Issue Tracker](https://github.com/gettyimages/gettyimages-api_ruby/issues)
|
17
16
|
|
18
17
|
## Getting started
|
19
18
|
|
19
|
+
### Obtain an API Key
|
20
|
+
|
21
|
+
If you don't already have an API key, fill out and submit the [contact form](http://engage.gettyimages.com/api-contact) to be connected to our Sales team.
|
22
|
+
|
20
23
|
### Installing the ruby gem package
|
21
24
|
|
22
25
|
The SDK is available as a [ruby gem](https://rubygems.org/gems/gettyimages-api) package. Install in your workspace with:
|
@@ -152,7 +155,7 @@ _Source code is only needed if you would like to contribute to the project. Othe
|
|
152
155
|
|
153
156
|
### Requirements
|
154
157
|
|
155
|
-
- Ruby version >= 2.
|
158
|
+
- Ruby version >= 2.5
|
156
159
|
- [Bundler](http://bundler.io)
|
157
160
|
|
158
161
|
Install bundler and all dependencies
|
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.0.
|
4
|
+
version: 3.0.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:
|
11
|
+
date: 2021-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -45,12 +45,15 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".github/workflows/build.yml"
|
49
|
+
- ".github/workflows/publish.yml"
|
48
50
|
- ".gitignore"
|
49
51
|
- ".vscode/launch.json"
|
50
52
|
- ".vscode/tasks.json"
|
51
53
|
- Gemfile
|
52
54
|
- Gemfile.lock
|
53
55
|
- LICENSE
|
56
|
+
- Makefile
|
54
57
|
- README.md
|
55
58
|
- Rakefile
|
56
59
|
- gettyimages-api.gemspec
|
@@ -91,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
94
|
version: '0'
|
92
95
|
requirements: []
|
93
96
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.7.
|
97
|
+
rubygems_version: 2.7.6.3
|
95
98
|
signing_key:
|
96
99
|
specification_version: 4
|
97
100
|
summary: Getty Images API SDK
|