ra10ke 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/ra10ke/validate.rb +1 -1
- data/lib/ra10ke/version.rb +1 -1
- data/spec/fixtures/Puppetfile_with_commit +3 -0
- data/spec/ra10ke/validate_spec.rb +11 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18588b9b0b4eb792bfcc75c573a7d8107840baf321c20ca4d0ba26aabc03912
|
4
|
+
data.tar.gz: 1503a4fa9911f99ac01e12aebd8cbc7f8e3402aa385c411f0861fe082bcaacfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '078235ff75fc9d159333ef7e2eff5424e01e801e91480778fe035cd9aaba19a4073c0f0b48a2792f08afab4d1e9ac597a8ad4262b3afa220749862bdfb5e11ca'
|
7
|
+
data.tar.gz: 3820689a48c0df80436ab56c3b0e27093f5951753ac6997fbfbb27cbccb3c13d2f8151ac01d65f1b8732aebe0b24b002be8fcc6caf5677b089ebdeb94b83f2d5
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v1.2.0](https://github.com/voxpupuli/ra10ke/tree/v1.2.0) (2022-04-21)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v1.1.0...v1.2.0)
|
8
|
+
|
9
|
+
**Closed issues:**
|
10
|
+
|
11
|
+
- Add support for commit ref [\#67](https://github.com/voxpupuli/ra10ke/issues/67)
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- Fix \#67 - Add support for commit ref [\#68](https://github.com/voxpupuli/ra10ke/pull/68) ([logicminds](https://github.com/logicminds))
|
16
|
+
|
5
17
|
## [v1.1.0](https://github.com/voxpupuli/ra10ke/tree/v1.1.0) (2021-10-26)
|
6
18
|
|
7
19
|
[Full Changelog](https://github.com/voxpupuli/ra10ke/compare/v1.0.0...v1.1.0)
|
data/lib/ra10ke/validate.rb
CHANGED
@@ -47,7 +47,7 @@ module Ra10ke
|
|
47
47
|
r10k_branch = Ra10ke::GitRepo.current_branch(File.dirname(puppetfile))
|
48
48
|
git_modules(puppetfile).map do |mod|
|
49
49
|
repo = Ra10ke::GitRepo.new(mod[:args][:git])
|
50
|
-
ref = mod[:args][:ref] || mod[:args][:tag] || mod[:args][:branch]
|
50
|
+
ref = mod[:args][:ref] || mod[:args][:tag] || mod[:args][:branch] || mod[:args][:commit]
|
51
51
|
# If using control_branch, try to guesstimate what the target branch should be
|
52
52
|
if ref == ':control_branch'
|
53
53
|
ref = ENV['CONTROL_BRANCH'] \
|
data/lib/ra10ke/version.rb
CHANGED
@@ -18,6 +18,17 @@ RSpec.describe 'Ra10ke::Validate::Validation' do
|
|
18
18
|
allow_any_instance_of(Ra10ke::GitRepo).to receive(:valid_url?).and_return(true)
|
19
19
|
end
|
20
20
|
|
21
|
+
describe 'with commit' do
|
22
|
+
let(:puppetfile) do
|
23
|
+
File.join(fixtures_dir, 'Puppetfile_with_commit')
|
24
|
+
end
|
25
|
+
|
26
|
+
it '#data is a hash with values' do
|
27
|
+
keys = instance.all_modules.first.values
|
28
|
+
expect(keys).to eq(["ntp", "https://github.com/puppetlabs/puppetlabs-ntp", "81b34c6", true, true, "👍"])
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
21
32
|
describe 'bad url' do
|
22
33
|
let(:instance) do
|
23
34
|
Ra10ke::Validate::Validation.new(puppetfile)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ra10ke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Chatzimichos
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- spec/fixtures/Puppetfile
|
187
187
|
- spec/fixtures/Puppetfile_test
|
188
188
|
- spec/fixtures/Puppetfile_with_bad_refs
|
189
|
+
- spec/fixtures/Puppetfile_with_commit
|
189
190
|
- spec/fixtures/Puppetfile_with_control_branch
|
190
191
|
- spec/fixtures/Puppetfile_with_duplicates
|
191
192
|
- spec/fixtures/refs/debug.txt
|
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
220
|
- !ruby/object:Gem::Version
|
220
221
|
version: '0'
|
221
222
|
requirements: []
|
222
|
-
rubygems_version: 3.2.
|
223
|
+
rubygems_version: 3.2.33
|
223
224
|
signing_key:
|
224
225
|
specification_version: 4
|
225
226
|
summary: Syntax check for the Puppetfile, check for outdated installed puppet modules
|