runcible 2.8.1 → 2.9.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
  SHA1:
3
- metadata.gz: 1752f5317fd0820a9fc61bb2979bc3530ef4c767
4
- data.tar.gz: ff37b83265fa1a199b684d3115f212ab6823f2cb
3
+ metadata.gz: 9e2f193d4c1747771c1c0a068f60e354ddf8c794
4
+ data.tar.gz: 935971e9a37f2e845aaa87e7b300055cd3165fec
5
5
  SHA512:
6
- metadata.gz: 380df650cafb5fecb9b64696934c5cc83a1e092743857b917fd3dd1f17b102187ee42578c008522d473a2f0994ff91ea65991a29321688275333618ebb111bc9
7
- data.tar.gz: acad017aa4ccff2a4c7744fcbc4f1b0d9c7eaaa4c5bd3333f62a51200bc02858a3b12072d34de379682f0ab72900d86a03a0535addb555acb2ae3b19f838b951
6
+ metadata.gz: 20d77d6070e550bb19894b750c03e5944862009f9fd000ec353ab1a5fd672c8bd1a66c143cc015c3e6088b1de782aa64491712346eb4f0aec28d630cdbb61b5f
7
+ data.tar.gz: a93b451268f131d91e81669dd7eb1e2bdc6ca95927927680e95052c7b572d88825a7f1f042be94b04eac55bd25732c777c14723a842ce93b41c7ea50ddb31890
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  group :test do
7
7
  gem 'rake', '0.9.2.2'
8
8
  gem 'vcr'
9
- gem 'webmock', '< 2.0.0' # https://github.com/vcr/vcr/issues/570
9
+ gem 'webmock'
10
10
  gem 'minitest', '~> 4.7'
11
11
  gem 'parseconfig'
12
12
  gem 'mocha', "~> 0.14.0"
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Exposing Pulp's juiciest parts. http://www.pulpproject.org/
7
7
 
8
- Latest Live Tested Version: **pulp-server-2.14.0-1.el7.noarch**
8
+ Latest Live Tested Version: **pulp-server-2.17.0-0.1.beta.el7.noarch**
9
9
 
10
10
  Current stable Runcible: https://github.com/Katello/runcible/tree/0.3
11
11
 
@@ -30,6 +30,7 @@ module Runcible
30
30
  end
31
31
 
32
32
  # rubocop:disable Metrics/AbcSize:
33
+ # rubocop:disable PerceivedComplexity
33
34
  def call(method, path, options = {})
34
35
  self.logs = []
35
36
  clone_config = self.config.clone
@@ -67,8 +68,9 @@ module Runcible
67
68
  args = [method]
68
69
  args << generate_payload(options) if [:post, :put].include?(method)
69
70
  args << headers
71
+ starting_arg = options[:no_log_payload] == true ? 2 : 1
72
+ self.logs << ([method.upcase, URI.join(client.url, path)] + args[starting_arg..-1]).join(': ')
70
73
 
71
- self.logs << ([method.upcase, URI.join(client.url, path)] + args[1..-1]).join(': ')
72
74
  response = get_response(client, path, *args)
73
75
  processed = process_response(response)
74
76
  self.logs << "Response: #{response.code}: #{response.body}"
@@ -0,0 +1,9 @@
1
+ module Runcible
2
+ module Extensions
3
+ class Module < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'modulemd'
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Runcible
2
+ module Extensions
3
+ class ModuleDefault < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'modulemd_defaults'
6
+ end
7
+ end
8
+ end
9
+ end
@@ -8,7 +8,8 @@ module Runcible
8
8
  DOWNLOAD_BACKGROUND = 'background'.freeze
9
9
  DOWNLOAD_POLICIES = [DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze
10
10
 
11
- attr_accessor 'download_policy', 'releases', 'components', 'architectures'
11
+ attr_accessor 'download_policy', 'releases', 'components', 'architectures', 'allowed_keys',
12
+ 'require_signature', 'gpg_keys'
12
13
 
13
14
  def id
14
15
  DebImporter::ID
@@ -4,7 +4,7 @@ module Runcible
4
4
  ID = 'docker_importer'.freeze
5
5
  REPO_TYPE = 'docker-repo'.freeze
6
6
 
7
- attr_accessor 'upstream_name', 'mask_id', 'enable_v1'
7
+ attr_accessor 'upstream_name', 'mask_id', 'enable_v1', 'tags'
8
8
 
9
9
  def id
10
10
  DockerImporter::ID
@@ -27,7 +27,7 @@ module Runcible
27
27
  # @param [File] content content of the file being uploaded to the server
28
28
  # @return [RestClient::Response] none
29
29
  def upload_bits(upload_id, offset, content)
30
- call(:put, upload_path("#{upload_id}/#{offset}/"), :payload => content)
30
+ call(:put, upload_path("#{upload_id}/#{offset}/"), :payload => content, :no_log_payload => true)
31
31
  end
32
32
 
33
33
  # Import into a repository
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '2.8.1'.freeze
2
+ VERSION = '2.9.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.1
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms, Justin Sherrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-21 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -141,6 +141,8 @@ files:
141
141
  - lib/runcible/extensions/docker_tag.rb
142
142
  - lib/runcible/extensions/errata.rb
143
143
  - lib/runcible/extensions/file.rb
144
+ - lib/runcible/extensions/module.rb
145
+ - lib/runcible/extensions/module_default.rb
144
146
  - lib/runcible/extensions/ostree_branch.rb
145
147
  - lib/runcible/extensions/package_category.rb
146
148
  - lib/runcible/extensions/package_group.rb