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 +4 -4
- data/lib/puppetfile-resolver/spec_searchers/git/gclone.rb +4 -4
- data/lib/puppetfile-resolver/spec_searchers/git/github.rb +1 -1
- data/lib/puppetfile-resolver/spec_searchers/git/gitlab.rb +1 -1
- data/lib/puppetfile-resolver/version.rb +1 -1
- data/spec/unit/puppetfile-resolver/spec_searchers/git/gclone_spec.rb +2 -3
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda8bcaca5b127580d43f08c2a2952238cc9ffee2944676b7391ff185a0841c6
|
4
|
+
data.tar.gz: 472cb9b9cb4d0ada8fc04fb510f66a830f70a5c5153a9ce527f211c2b87b1ed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
51
|
-
err_msg += " with proxy #{config.
|
52
|
-
proxy = "--config \"http.proxy=#{config.
|
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.
|
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)
|
@@ -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::
|
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.
|
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-
|
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.
|
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/
|
138
|
-
- spec/
|
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
|