puppetfile-resolver 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d807afd376b1c9629ad909a4a3c9e17da809cb81bb217541408d5a93d0ee152
4
- data.tar.gz: 4a7713294a4932aa0dd0dafcd0af4fc3d4366ed6863f88b908619f51487d7fa3
3
+ metadata.gz: cda8bcaca5b127580d43f08c2a2952238cc9ffee2944676b7391ff185a0841c6
4
+ data.tar.gz: 472cb9b9cb4d0ada8fc04fb510f66a830f70a5c5153a9ce527f211c2b87b1ed3
5
5
  SHA512:
6
- metadata.gz: 9d063d94049d9e30b5ab7988c15ba5e95d05cda852b4df06d754938b47350de14d0b572331136bd25e52a5464c2e0ad0dd44fc596a4619d59fc5b690072a945e
7
- data.tar.gz: 5f5f2baf55fdcc4a113e21933db9162396160704d32d17f5b62f658c03108c4349dd75c6bf2feb06876b9832e6f8ace4dc2b98659c3f923a8a6450cc68a87173
6
+ metadata.gz: 0dbfe8585196e016d6d45d48768bb6b5a838c32367d69df1cd0a8849a9a94a8d96e06a9965789b4d1c154acfa501e4bfb7fd122493f450b0bc6d9f46924b7871
7
+ data.tar.gz: 1d89877b4c34563262ee8d1da85a7221c6d049bf8d4e99c8d7f87f9b18b4d03a6f7ddd857e93e5cff3eb988bdbb3a845d17ab2020ee8f829d95a9b02f91db502
@@ -47,13 +47,13 @@ module PuppetfileResolver
47
47
  def self.clone_and_read_file(url, ref, file, config)
48
48
  clone_cmd = ['git', 'clone', '--bare', '--depth=1', '--single-branch']
49
49
  err_msg = ''
50
- if config.git.proxy
51
- err_msg += " with proxy #{config.git.proxy}: "
52
- proxy = "--config \"http.proxy=#{config.git.proxy}\" --config \"https.proxy=#{config.proxy}\""
50
+ if config.proxy
51
+ err_msg += " with proxy #{config.proxy}: "
52
+ proxy = "--config \"http.proxy=#{config.proxy}\" --config \"https.proxy=#{config.proxy}\""
53
53
  clone_cmd.push(proxy)
54
54
  end
55
55
 
56
- Dir.mktmpdir(nil, config.git.clone_dir) do |dir|
56
+ Dir.mktmpdir(nil, config.clone_dir) do |dir|
57
57
  clone_cmd.push("--branch=#{ref}") if ref != 'HEAD'
58
58
  clone_cmd.push(url, dir)
59
59
  out, err_out, process = ::PuppetfileResolver::Util.run_command(clone_cmd)
@@ -43,7 +43,7 @@ module PuppetfileResolver
43
43
 
44
44
  if response.code != '200'
45
45
  resolver_ui.debug(err_msg + "Expected HTTP Code 200, but received #{response.code}")
46
- return ''
46
+ return nil
47
47
  end
48
48
  response.body
49
49
  end
@@ -45,7 +45,7 @@ module PuppetfileResolver
45
45
 
46
46
  if response.code != '200'
47
47
  resolver_ui.debug(err_msg + "Expected HTTP Code 200, but received #{response.code}")
48
- return ''
48
+ return nil
49
49
  end
50
50
  response.body
51
51
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetfileResolver
4
- VERSION ||= '0.6.0'
4
+ VERSION ||= '0.6.1'
5
5
  end
@@ -6,8 +6,7 @@ require 'json'
6
6
 
7
7
  describe PuppetfileResolver::SpecSearchers::Git::GClone do
8
8
  PuppetfileModule = Struct.new(:remote, :ref, :branch, :commit, :tag, keyword_init: true)
9
- config = PuppetfileResolver::SpecSearchers::Configuration.new
10
- config.local.puppet_module_paths = [File.join(FIXTURES_DIR, 'modulepath')]
9
+ config = PuppetfileResolver::SpecSearchers::GitConfiguration.new
11
10
 
12
11
  let(:url) do
13
12
  'https://github.com/puppetlabs/puppetlabs-powershell'
@@ -39,7 +38,7 @@ describe PuppetfileResolver::SpecSearchers::Git::GClone do
39
38
 
40
39
  context 'invalid url' do
41
40
  let(:url) do
42
- 'https://github.com/puppetlabs/puppetlabs-powershellbad'
41
+ 'https://user:password@github.com/puppetlabs/puppetlabs-powershellbad'
43
42
  end
44
43
 
45
44
  it 'throws exception' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetfile-resolver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Sarti
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: molinillo
@@ -111,7 +111,7 @@ homepage: https://glennsarti.github.io/puppetfile-resolver/
111
111
  licenses:
112
112
  - Apache-2.0
113
113
  metadata: {}
114
- post_install_message:
114
+ post_install_message:
115
115
  rdoc_options: []
116
116
  require_paths:
117
117
  - lib
@@ -126,19 +126,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.1.4
130
- signing_key:
129
+ rubygems_version: 3.0.3
130
+ signing_key:
131
131
  specification_version: 4
132
132
  summary: Dependency resolver for Puppetfiles
133
133
  test_files:
134
- - spec/fixtures/modulepath/test_module/metadata.json
135
- - spec/fixtures/modulepath/test_module/README.md
136
134
  - spec/fixtures/proxy.rb
137
- - spec/integration/deprecation_spec.rb
138
- - spec/integration/kitchensink_spec.rb
139
- - spec/integration/proxy_spec.rb
140
- - spec/spec_helper.rb
141
- - spec/unit/puppetfile-resolver/puppetfile/document_spec.rb
135
+ - spec/fixtures/modulepath/test_module/README.md
136
+ - spec/fixtures/modulepath/test_module/metadata.json
142
137
  - spec/unit/puppetfile-resolver/puppetfile/parser/r10k_eval_spec.rb
138
+ - spec/unit/puppetfile-resolver/puppetfile/document_spec.rb
143
139
  - spec/unit/puppetfile-resolver/resolver_spec.rb
144
140
  - spec/unit/puppetfile-resolver/spec_searchers/git/gclone_spec.rb
141
+ - spec/spec_helper.rb
142
+ - spec/integration/proxy_spec.rb
143
+ - spec/integration/kitchensink_spec.rb
144
+ - spec/integration/deprecation_spec.rb