berkshelf_ext 1.0.10 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.0.12
2
+ * Add proper support for metadata with missing name
3
+
1
4
  ## v1.0.10
2
5
  * Forcibly set name when uploading via knife
3
6
  * Only load sources of specified cookbooks when uploading with `--skip-dependencies`
@@ -40,6 +40,7 @@ class RidleyMocker
40
40
  loader.load_cookbooks
41
41
  cv = loader.cookbook_version
42
42
  cv.send(:generate_manifest)
43
+ cv.metadata.name cv.metadata.name.to_s.sub(/-#{Regexp.escape(cv.version)}$/, '').sub(/-[a-z0-9]{40}$/, '')
43
44
  cv.manifest['name'] = "#{cv.metadata.name}-#{cv.version}"
44
45
  cv.name = cv.manifest['cookbook_name'] = cv.metadata.name
45
46
  cv.freeze_version if upload_options.delete(:freeze)
@@ -2,6 +2,6 @@ module BerkshelfExt
2
2
  class Version < Gem::Version
3
3
  end
4
4
 
5
- VERSION = Version.new('1.0.10')
5
+ VERSION = Version.new('1.0.12')
6
6
  BERKSHELF_CONSTRAINT = '~> 1.3.1'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkshelf_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: berkshelf