puppet-library 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.yml +1 -1
- data/lib/puppet_library/forge/git_repository.rb +1 -0
- data/lib/puppet_library/version.rb +1 -1
- data/spec/forge/git_repository_spec.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 292b403e591ad5a55e1de5fbc21d0f7d394caf56
|
4
|
+
data.tar.gz: 6883cd06bf2d986014cdc241037f776e6140d250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f2a05f930e4366158173ca55695f8ac583d0209f21d4048ddf9222fb6f8b36c4882fbc5b6f2fdf6ec6e7367df76e3e096a9cf2dca238473c3590a70ad0e347c
|
7
|
+
data.tar.gz: c865ee5d0003e10df635629d45465629699dbf2715e5b9e149001181ef63238fc3fb56fea030231dd0d436c97b23815c40fbbc30f42ee23fdee903703e72f651
|
data/CHANGELOG.yml
CHANGED
@@ -65,7 +65,7 @@ module PuppetLibrary::Forge
|
|
65
65
|
File.open(metadata_file_path, "w") do |metadata_file|
|
66
66
|
metadata = {
|
67
67
|
"name" => "puppetlabs-apache",
|
68
|
-
"version" =>
|
68
|
+
"version" => version,
|
69
69
|
"author" => "puppetlabs"
|
70
70
|
}
|
71
71
|
|
@@ -73,7 +73,7 @@ module PuppetLibrary::Forge
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
git "add ."
|
76
|
+
git "add . --all"
|
77
77
|
git "commit --message='Version #{version}'"
|
78
78
|
git "tag #{tag}"
|
79
79
|
end
|
@@ -144,9 +144,12 @@ module PuppetLibrary::Forge
|
|
144
144
|
buffer = forge.get_module("puppetlabs", "apache", "1.0.0")
|
145
145
|
expect(buffer).to be_tgz_with "puppetlabs-apache-1.0.0/Modulefile", /version '1.0.0'/
|
146
146
|
end
|
147
|
-
|
148
|
-
|
149
|
-
|
147
|
+
|
148
|
+
context "for a tag with a modulefile and no metadata file" do
|
149
|
+
it "generates the metadata file and includes it in the archive" do
|
150
|
+
buffer = forge.get_module("puppetlabs", "apache", "1.0.0")
|
151
|
+
expect(buffer).to be_tgz_with "puppetlabs-apache-1.0.0/metadata.json", /"version":"1.0.0"/
|
152
|
+
end
|
150
153
|
end
|
151
154
|
end
|
152
155
|
end
|