puppet-library 0.14.0 → 0.15.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
  SHA1:
3
- metadata.gz: ce0573aac08832b970f50871291d13f4487e8495
4
- data.tar.gz: d5f1fd926455ca4fbb87c7570797b002b0cf4bca
3
+ metadata.gz: 292b403e591ad5a55e1de5fbc21d0f7d394caf56
4
+ data.tar.gz: 6883cd06bf2d986014cdc241037f776e6140d250
5
5
  SHA512:
6
- metadata.gz: 123f603ff5ec60ec88f41bb7120e338e83e349e4d566dd11a1be46be406ae5f170577203d7c21a46eb7ed426da02ef25f71304d843cfb3589d84465a6d038961
7
- data.tar.gz: 948cc9e9a048709d05ec1d53a9b2c0d90225d9b0026383fa48afc5f3ee442f1ebc08bcf62deaee591e7c50ca5e6218e0295007da0e57e140cce67c377590ba48
6
+ metadata.gz: 4f2a05f930e4366158173ca55695f8ac583d0209f21d4048ddf9222fb6f8b36c4882fbc5b6f2fdf6ec6e7367df76e3e096a9cf2dca238473c3590a70ad0e347c
7
+ data.tar.gz: c865ee5d0003e10df635629d45465629699dbf2715e5b9e149001181ef63238fc3fb56fea030231dd0d436c97b23815c40fbbc30f42ee23fdee903703e72f651
data/CHANGELOG.yml CHANGED
@@ -91,7 +91,7 @@
91
91
  - tag: v0.13.0
92
92
  changes:
93
93
  - Fixed "Invalid gemspec" error (#5)
94
- - tag: v0.14.0
94
+ - tag: v0.15.0
95
95
  changes:
96
96
  - Use `metadata.json` in place of `Modulefile` if it exists (and `Modulefile` doesn't exist)
97
97
  - Ignore corrupt module files on disk
@@ -109,6 +109,7 @@ module PuppetLibrary::Forge
109
109
  tags = tags.select do |tag|
110
110
  @git.file_exists?("metadata.json", tag) || @git.file_exists?("Modulefile", tag)
111
111
  end
112
+ tags.version_sort
112
113
  end
113
114
  end
114
115
 
@@ -16,5 +16,5 @@
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
18
  module PuppetLibrary
19
- VERSION = "0.14.0"
19
+ VERSION = "0.15.0"
20
20
  end
@@ -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" => "1.0.1",
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
- it "generates the metadata file and includes it in the archive" do
148
- buffer = forge.get_module("puppetlabs", "apache", "1.0.0")
149
- expect(buffer).to be_tgz_with "puppetlabs-apache-1.0.0/metadata.json", /"version":"1.0.0"/
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - drrb