ra10ke 1.1.0 → 1.2.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: 64e7e73cfb508697efd25e4aec36655c126a168a81fca44345f6564929be6bcd
4
- data.tar.gz: 2139cb8c668b255a04d975121014006bd94cc4a4b45d71008e37e9e1341c74d6
3
+ metadata.gz: c18588b9b0b4eb792bfcc75c573a7d8107840baf321c20ca4d0ba26aabc03912
4
+ data.tar.gz: 1503a4fa9911f99ac01e12aebd8cbc7f8e3402aa385c411f0861fe082bcaacfd
5
5
  SHA512:
6
- metadata.gz: d05765b4c95390301ec8c6e0917f251ee60333b09810174c643d1d6a5608824ee96c46d334f60232beb026ea28caa4c4c5ea0e1e6b72b0f12ff7c7fdda6783b4
7
- data.tar.gz: dc0317d3c47ce2e18e9c8818d7dd468f0acdd8e5a8047dad637938f40745196c66369ac4741293e092f8ab28e6a115aec70e936ea8845cb133c6f1f9108a0cd0
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)
@@ -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'] \
@@ -1,3 +1,3 @@
1
1
  module Ra10ke
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -0,0 +1,3 @@
1
+ mod 'ntp',
2
+ git: 'https://github.com/puppetlabs/puppetlabs-ntp',
3
+ commit: '81b34c6'
@@ -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.1.0
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: 2021-10-26 00:00:00.000000000 Z
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.22
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