ra10ke 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: 244a7664e31597a415668faaeb3cf43b3c0243cf6aed478183f91317230e68eb
4
- data.tar.gz: d241ae0aafcb1031dc1d6ef86a69796f79bcfefefe39622b22d5b165be34c696
3
+ metadata.gz: a3ddc7e78ba94bf27f04cbe9774ca834c2db7cf4039eea7733beca491f7a46d1
4
+ data.tar.gz: 17a62542c1afc9ce72db42c737469de497644a0e7c63fa773bf8826589d82927
5
5
  SHA512:
6
- metadata.gz: a889ad1d1f59c4781b895e7abc1f05b0b24776f7976f6c01bb6e45f258239908413f39d5e95def2cc032475243cb27aa39087b937fe6dd3e0a35147b28a6c0bb
7
- data.tar.gz: e4ee4b06d70659f4fc836b90eb73ce22b1fc28076076704da334db5e52ddcd5fe138a0cf95edf80a86afea4885d1fd7fe883621ee04c0fc975a3ac32047711f9
6
+ metadata.gz: 2c0f6088fddea172f01e49fa274c9936e3cc65471468e9c17911e7cbe8d14cceb90adf3e1c4a49962f754ca63eba71bd26aaa5292c0a83d040de4cc4cecce0ef
7
+ data.tar.gz: 8f2aca32d31ebdee6b704f7579d055f7f093fbedf6ccf050c5b3a225fe3947d5d782728e1f61a2e706537e2eb115c6e56c8b5adfec17580bf8752fcc0cddcadc
@@ -1,6 +1,23 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 0.6.1
5
+ -----
6
+
7
+ 2019-08-17
8
+
9
+ Closed Pull Requests:
10
+
11
+ * [#40](https://github.com/voxpupuli/ra10ke/pull/40) - Fix a fault in the mod handling behaviour
12
+
13
+ Closed Issues:
14
+
15
+ * [#25](https://github.com/voxpupuli/ra10ke/issues/25) - Consider making r10k:install have a default path of '.'
16
+
17
+ Many thanks to the following contributors for submitting PRs:
18
+
19
+ * [Alexander Olofsson](https://github.com/ananace)
20
+
4
21
  0.6.0
5
22
  -----
6
23
 
data/README.md CHANGED
@@ -79,6 +79,15 @@ runs faster.
79
79
 
80
80
  Reads the Puppetfile in the current directory and installs them under the `path` provided as an argument.
81
81
 
82
+ #### Limitations
83
+
84
+ * It works only with modules from the [Forge](https://forge.puppetlabs.com), and Git.
85
+ SVN modules will be ignored.
86
+ * Git support is explicitly SHA Ref and Tag supported. If tag is used it must follow
87
+ `v0.0.0` convention, other wise it will be ignored.
88
+ * The version has to be specified explicitly. If it is omitted, or it is
89
+ `:latest`, the module will be ignored.
90
+
82
91
  ### r10k:validate[path]
83
92
  The validate rake task will determine if the url is a valid url by connecting
84
93
  to the repository and verififying it actually exists and can be accessed.
@@ -114,11 +123,3 @@ gitlab | https://github.com/vshn/puppet-gitlab | 00397b86dfb3487d9df76
114
123
  👍👍 Puppetfile looks good.👍👍
115
124
  ```
116
125
 
117
- #### Limitations
118
-
119
- * It works only with modules from the [Forge](https://forge.puppetlabs.com), and Git.
120
- SVN modules will be ignored.
121
- * Git support is explicitly SHA Ref and Tag supported. If tag is used it must follow
122
- `v0.0.0` convention, other wise it will be ignored.
123
- * The version has to be specified explicitly. If it is omitted, or it is
124
- `:latest`, the module will be ignored.
@@ -23,8 +23,8 @@ module Ra10ke
23
23
 
24
24
  all_lines = File.read(puppetfile).lines.map(&:strip_comment)
25
25
  # remove comments from all the lines
26
- lines_without_comments = all_lines.reject { |line| line.match(/#.*\n/) }.join("\n").delete("\n")
27
- lines_without_comments.split('mod').map do |line|
26
+ lines_without_comments = all_lines.reject { |line| line.match(/#.*\n/) }.join("\n")
27
+ lines_without_comments.split(/^mod/).map do |line|
28
28
  next nil if line =~ /^forge/
29
29
  next nil if line.empty?
30
30
 
@@ -1,3 +1,3 @@
1
1
  module Ra10ke
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -5,8 +5,8 @@ require 'ra10ke/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "ra10ke"
7
7
  spec.version = Ra10ke::VERSION
8
- spec.authors = ["Theo Chatzimichos"]
9
- spec.email = ["tampakrap@gmail.com"]
8
+ spec.authors = ["Theo Chatzimichos", "Vox Pupuli"]
9
+ spec.email = ["voxpupuli@groups.io"]
10
10
  spec.description = %q{R10K and Puppetfile rake tasks}
11
11
  spec.summary = %q{Syntax check for the Puppetfile, check for outdated installed puppet modules}
12
12
  spec.homepage = "https://github.com/voxpupuli/ra10ke"
@@ -41,3 +41,7 @@ mod 'dotfiles',
41
41
  mod 'splunk',
42
42
  git: 'https://github.com/cudgel/splunk.git',
43
43
  branch: 'prod'
44
+
45
+ mod 'puppet',
46
+ git: 'https://github.com/voxpupuli/puppet-module.git',
47
+ branch: 'master'
@@ -45,6 +45,9 @@ RSpec.describe 'Ra10ke::PuppetfileParser' do
45
45
  :namespace=>nil},
46
46
  {:args=>{:branch=>"prod", :git=>"https://github.com/cudgel/splunk.git"},
47
47
  :name=>"splunk",
48
+ :namespace=>nil},
49
+ {:args=>{:branch=>"master", :git=>"https://github.com/voxpupuli/puppet-module.git"},
50
+ :name=>"puppet",
48
51
  :namespace=>nil}]
49
52
  end
50
53
 
@@ -85,6 +88,9 @@ RSpec.describe 'Ra10ke::PuppetfileParser' do
85
88
  :namespace=>nil},
86
89
  {:args=>{:branch=>"prod", :git=>"https://github.com/cudgel/splunk.git"},
87
90
  :name=>"splunk",
91
+ :namespace=>nil},
92
+ {:args=>{:branch=>"master", :git=>"https://github.com/voxpupuli/puppet-module.git"},
93
+ :name=>"puppet",
88
94
  :namespace=>nil}]
89
95
  expect(git_modules(puppetfile)).to eq(expected)
90
96
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ra10ke
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
  - Theo Chatzimichos
8
+ - Vox Pupuli
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
12
+ date: 2019-08-17 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
@@ -124,7 +125,7 @@ dependencies:
124
125
  version: '3.6'
125
126
  description: R10K and Puppetfile rake tasks
126
127
  email:
127
- - tampakrap@gmail.com
128
+ - voxpupuli@groups.io
128
129
  executables: []
129
130
  extensions: []
130
131
  extra_rdoc_files: []