dockerapi 0.18.0 → 0.19.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: 4117775ffcd9a7ba657bbea943fd20e52de1907fcf3174850a48b8ede27a7acf
4
- data.tar.gz: 6d7a725d087401b8d1a2806e6deee5066ed6ad3bc8f195ffcda1321b3fc2252b
3
+ metadata.gz: 2edd0e23baece7608d646b30f453476e3badd792497234ef2ff91e639e234ac2
4
+ data.tar.gz: deba1315765257880eec881db91c4e71f286dc43f6e8f9e209b9f5ac551d864d
5
5
  SHA512:
6
- metadata.gz: 158707ec44efb0d7ac3123e988c670af94cd9ad054bf47dfbf6d75c2ffd516f87f85296f9732a98213913e1b827dc3de582fff7fabc25f4c359c50f704b6f1ea
7
- data.tar.gz: 62b262e3d7fcffaaa1cec28f6dd9246619abfecfcd88b85fd90e2f18fc46806135fc17c149dc26e5a5687b4e426b5a98ad60e87b8763af4949f096280d3b229c
6
+ metadata.gz: aaaceb91eb304a1a9be2de7e5562a0744eab641b066fdc0e7aebe5a9b8b22f5e6d5710676897099190bbb705baa8ba269641d5aaddc53086f145c1f585b30681
7
+ data.tar.gz: 6e46d59caa6f4069dbd17cd5a784ac71fb119af9b0a846e282ce2ed140c00a564c339a26aa359667079472f41c785eb769ae8bbf1a3924420c6b247aad1ddfec
@@ -30,6 +30,38 @@ jobs:
30
30
  - name: Install Docker
31
31
  run: curl https://get.docker.com | sh
32
32
  - name: Install dependencies
33
- run: bin/setup && sudo bin/setup
34
- - name: Run tests
35
- run: rake spec
33
+ run: |
34
+ bin/setup
35
+ sudo bin/setup
36
+ - name: Test misc
37
+ run: rspec spec/misc/*.rb
38
+ - name: Test Image
39
+ run: rspec spec/endpoints/image_spec.rb:1
40
+ - name: Test Image authentication
41
+ run: rspec spec/endpoints/image_spec.rb:194
42
+ continue-on-error: true
43
+ - name: Test Container
44
+ run: rspec spec/endpoints/container_spec.rb
45
+ - name: Test Volume
46
+ run: rspec spec/endpoints/volume_spec.rb
47
+ - name: Test Network
48
+ run: rspec spec/endpoints/network_spec.rb
49
+ - name: Test System
50
+ run: rspec spec/endpoints/system_spec.rb
51
+ - name: Test Exec
52
+ run: rspec spec/endpoints/exec_spec.rb
53
+ - name: Test Swarm
54
+ run: rspec spec/endpoints/swarm_spec.rb
55
+ - name: Test Node
56
+ run: rspec spec/endpoints/node_spec.rb
57
+ - name: Test Service
58
+ run: rspec spec/endpoints/service_spec.rb
59
+ - name: Test Task
60
+ run: rspec spec/endpoints/task_spec.rb
61
+ - name: Test Secret
62
+ run: rspec spec/endpoints/secret_spec.rb
63
+ - name: Test Config
64
+ run: rspec spec/endpoints/config_spec.rb
65
+ - name: Test Plugin
66
+ run: rspec spec/endpoints/plugin_spec.rb
67
+
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dockerapi (0.18.0)
5
- excon (~> 0.76)
4
+ dockerapi (0.19.0)
5
+ excon (~> 0.79)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.3)
11
- excon (0.76.0)
11
+ excon (0.79.0)
12
12
  rake (12.3.3)
13
13
  rspec (3.9.0)
14
14
  rspec-core (~> 3.9.0)
data/README.md CHANGED
@@ -567,7 +567,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
567
567
 
568
568
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
569
569
 
570
- ### Release nre version
570
+ ### Release new version
571
571
 
572
572
  * Update CHANGELOG.
573
573
  * Update README as needed.
data/bin/setup CHANGED
@@ -20,7 +20,7 @@ else
20
20
  bundle install
21
21
 
22
22
  echo "Creating self-signed certificate to use in tests"
23
- openssl req -newkey rsa:2048 -nodes -keyout resources/registry_authentication/registry_auth.key -x509 -days 365 -out resources/registry_authentication/registry_auth.crt -subj "/C=CL/ST=Santiago/L=Santiago/O=dockerapi/OU=dockerapi/CN=dockerapi"
23
+ openssl req -newkey rsa:2048 -nodes -keyout resources/registry_authentication/registry_auth.key -x509 -days 365 -out resources/registry_authentication/registry_auth.crt -subj "/C=CL/ST=Santiago/L=Santiago/O=dockerapi/OU=dockerapi/CN=localhost"
24
24
 
25
25
  echo "Creating htpasswd file to use in tests"
26
26
  docker run --rm --entrypoint htpasswd registry:2.7.0 -Bbn janedoe password > resources/registry_authentication/htpasswd
data/dockerapi.gemspec CHANGED
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency("excon", "~> 0.76")
29
+ spec.add_dependency("excon", "~> 0.79")
30
30
  end
@@ -10,7 +10,9 @@ class Docker::API::Connection
10
10
  #
11
11
  # @param params [Hash]: Request parameters.
12
12
  def request params
13
- Docker::API::Response.new(@connection.request(params).data)
13
+ response = Docker::API::Response.new(@connection.request(params).data)
14
+ p response if Docker::API::PRINT_RESPONSE_TO_STDOUT
15
+ response
14
16
  end
15
17
 
16
18
  ##
@@ -1,8 +1,8 @@
1
1
  module Docker
2
2
  module API
3
- GEM_VERSION = "0.18.0"
3
+ GEM_VERSION = "0.19.0"
4
4
 
5
- API_VERSION = "1.40"
5
+ API_VERSION = "1.41"
6
6
 
7
7
  VERSION = "Gem: #{Docker::API::GEM_VERSION} | API: #{Docker::API::API_VERSION}"
8
8
  end
data/lib/dockerapi.rb CHANGED
@@ -29,6 +29,10 @@ module Docker
29
29
  # This variable controls output verbosity.
30
30
  PRINT_TO_STDOUT = true
31
31
 
32
+ ##
33
+ # This variable controls output verbosity.
34
+ PRINT_RESPONSE_TO_STDOUT = false
35
+
32
36
  ##
33
37
  # Valid values for parameter validations.
34
38
  VALID_PARAMS = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alysson A. Costa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-09 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.76'
19
+ version: '0.79'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.76'
26
+ version: '0.79'
27
27
  description: Interact with Docker API directly from Ruby code. Comprehensive implementation
28
28
  (all available endpoints), no local Docker installation required, easily manipulated
29
29
  http responses.