nexus_api 1.0.0 → 1.0.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/.github/workflows/gempush.yml +46 -0
- data/.github/workflows/ruby.yml +21 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -2
- data/README.md +2 -2
- data/bin/install +2 -0
- data/bin/release +2 -0
- data/bin/test +1 -1
- data/lib/nexus_api/version.rb +1 -1
- data/nexus_api.gemspec +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f6e3a83759d0f8ffff031d9d1125c5c436563cf331658faaf04ccfee7ece84c
|
|
4
|
+
data.tar.gz: 00063cc74e3d8738da1dc175e4091c1b30942ad03cc7b3e268dddbbebbe2a9dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16e8643ced13965e6b697d74b902f106b43902fcb8ef46d49ed48ed95cceb6c43ba6eb789901ebf86c1da23245b38d12d79f7e5ce6562837977a128ead67e7e8
|
|
7
|
+
data.tar.gz: 76d19505e343c156f2ee0cd40b85303225fa9af85f3b20fea42e5d472e13146bd0854843f1a5706e29b01d207f0c070bd32e429d446f8994223bae2820eae642
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Ruby Gem
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build + Publish
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@master
|
|
18
|
+
- name: Set up Ruby 2.6
|
|
19
|
+
uses: actions/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: 2.6.x
|
|
22
|
+
|
|
23
|
+
- name: Publish to GPR
|
|
24
|
+
run: |
|
|
25
|
+
mkdir -p $HOME/.gem
|
|
26
|
+
touch $HOME/.gem/credentials
|
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
|
28
|
+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
29
|
+
gem build *.gemspec
|
|
30
|
+
# TODO publishing the gem is commented out for now.
|
|
31
|
+
#gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
|
32
|
+
env:
|
|
33
|
+
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
|
34
|
+
OWNER: username
|
|
35
|
+
|
|
36
|
+
- name: Publish to RubyGems
|
|
37
|
+
run: |
|
|
38
|
+
mkdir -p $HOME/.gem
|
|
39
|
+
touch $HOME/.gem/credentials
|
|
40
|
+
chmod 0600 $HOME/.gem/credentials
|
|
41
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
42
|
+
gem build *.gemspec
|
|
43
|
+
# TODO publishing the gem is commented out for now.
|
|
44
|
+
#gem push *.gem
|
|
45
|
+
env:
|
|
46
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v1
|
|
12
|
+
- name: Set up Ruby 2.6
|
|
13
|
+
uses: actions/setup-ruby@v1
|
|
14
|
+
with:
|
|
15
|
+
ruby-version: 2.6.x
|
|
16
|
+
- name: Build and test with Rake
|
|
17
|
+
run: |
|
|
18
|
+
gem install bundler
|
|
19
|
+
bin/setup
|
|
20
|
+
bin/test
|
|
21
|
+
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
## [1.0.1](https://github.com/Cisco-AMP/nexus_api/compare/v1.0.0...v1.0.1) - 2020-01-15
|
|
9
|
+
### Security
|
|
10
|
+
- Use `excon` version `0.71.1` to avoid a [low severity vulnerability](https://github.com/excon/excon/security/advisories/GHSA-q58g-455p-8vw9)
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
## [1.0.0](https://github.com/Cisco-AMP/nexus_api/compare/master...v1.0.0) - 2019-12-04
|
|
9
14
|
### Added
|
|
10
15
|
- Released open source version of this project
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nexus_api (1.0.
|
|
4
|
+
nexus_api (1.0.1)
|
|
5
5
|
bundler (~> 2)
|
|
6
6
|
docker-api (~> 1.34.2)
|
|
7
7
|
dotenv (~> 2.7.5)
|
|
@@ -11,6 +11,7 @@ PATH
|
|
|
11
11
|
thor (~> 0.20.3)
|
|
12
12
|
|
|
13
13
|
GEM
|
|
14
|
+
remote: https://rubygems.org
|
|
14
15
|
specs:
|
|
15
16
|
coderay (1.1.2)
|
|
16
17
|
diff-lcs (1.3)
|
|
@@ -20,7 +21,7 @@ GEM
|
|
|
20
21
|
domain_name (0.5.20190701)
|
|
21
22
|
unf (>= 0.0.5, < 1.0.0)
|
|
22
23
|
dotenv (2.7.5)
|
|
23
|
-
excon (0.
|
|
24
|
+
excon (0.71.1)
|
|
24
25
|
http-accept (1.7.0)
|
|
25
26
|
http-cookie (1.0.3)
|
|
26
27
|
domain_name (~> 0.5)
|
data/README.md
CHANGED
|
@@ -172,9 +172,9 @@ api.get_asset_size(asset_url: URL)
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
## Development
|
|
175
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
|
175
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests.
|
|
176
176
|
|
|
177
|
-
To install this gem onto your local machine, run `
|
|
177
|
+
To install this gem onto your local machine, run `bin/install`. To release a new version, update the version number in `version.rb`, and then run `bin/release`, which will create a git tag for the version, push git commits and tags.
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
## Contributing
|
data/bin/install
ADDED
data/bin/release
ADDED
data/bin/test
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
rake test
|
|
2
|
+
bundle exec rake test
|
data/lib/nexus_api/version.rb
CHANGED
data/nexus_api.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ['Francis Levesque', 'Gavin Miller']
|
|
10
10
|
spec.email = ['francis.d.levesque@gmail.com', 'me@gavinmiller.io']
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{
|
|
12
|
+
spec.summary = %q{Provides API access to Sonatype Nexus through ruby!}
|
|
13
13
|
spec.homepage = "https://github.com/Cisco-AMP/nexus_api"
|
|
14
14
|
spec.license = 'MIT'
|
|
15
15
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexus_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francis Levesque
|
|
@@ -133,6 +133,8 @@ extensions: []
|
|
|
133
133
|
extra_rdoc_files: []
|
|
134
134
|
files:
|
|
135
135
|
- ".env.template"
|
|
136
|
+
- ".github/workflows/gempush.yml"
|
|
137
|
+
- ".github/workflows/ruby.yml"
|
|
136
138
|
- ".gitignore"
|
|
137
139
|
- ".rspec"
|
|
138
140
|
- ".ruby-version"
|
|
@@ -142,7 +144,9 @@ files:
|
|
|
142
144
|
- LICENSE.txt
|
|
143
145
|
- README.md
|
|
144
146
|
- Rakefile
|
|
147
|
+
- bin/install
|
|
145
148
|
- bin/nexus_api
|
|
149
|
+
- bin/release
|
|
146
150
|
- bin/setup
|
|
147
151
|
- bin/test
|
|
148
152
|
- lib/nexus_api.rb
|
|
@@ -185,5 +189,5 @@ requirements: []
|
|
|
185
189
|
rubygems_version: 3.0.3
|
|
186
190
|
signing_key:
|
|
187
191
|
specification_version: 4
|
|
188
|
-
summary:
|
|
192
|
+
summary: Provides API access to Sonatype Nexus through ruby!
|
|
189
193
|
test_files: []
|