halite 1.0.12 → 1.0.13

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
  SHA1:
3
- metadata.gz: a32ffa4e0a96cf74ec3e4c2eaf14e18d97e5f188
4
- data.tar.gz: f26f3f8827a642bf22640492f1cc7913e69a42a6
3
+ metadata.gz: e66ab65e7c5063df1c488321abb0195686fbf0ca
4
+ data.tar.gz: e604f24d753db8d091b1b42657b2f74cf9574fc6
5
5
  SHA512:
6
- metadata.gz: 6ec20625b11bfdfd99e5abd01f56f58981401caa365c4a58e3ea0f23c556d8984b4c5bdd52d14d27691d9b65fc34cd95e5b84431f8be13d189e792bef2f06f99
7
- data.tar.gz: ee470b6eca6fe68cb078f7d08a5a1708a20c550a5301104656e41ed9fb712da26296b3d896e4888afe0f91440611353b1cbc1fc45c1a5c3731800460e4a048e8
6
+ metadata.gz: e3e86e39e18f6940f45392764754bf3b08464c7e48ba5c7a28f86f3c308d6dfd07a23312ab71e3e4e6bf46b33da67ce273fd8900b7e529c7b51d84ba999e8f04
7
+ data.tar.gz: 421b19411862494f282275d98f443676dc77c5d3aa35277205906b0aacf3c6e6300bfa65b9a8ed01b2ce9bb9f1cbc6bb7d72191f6a9e1fa5f6d791caf7462144
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # Changelog
1
+ # Halite Changelog
2
+
3
+ ## v1.0.13
4
+
5
+ * Additional cookbook metadata to work with Foodcritic 5.1.
2
6
 
3
7
  ## v1.0.12
4
8
 
@@ -37,6 +37,10 @@ module Halite
37
37
  if readme_path = gem_data.find_misc_path('Readme') # rubocop:disable Lint/AssignmentInCondition
38
38
  buf << "long_description #{IO.read(readme_path).inspect}\n"
39
39
  end
40
+ buf << "maintainer #{gem_data.spec.authors.join(', ').inspect}\n" unless gem_data.spec.authors.empty?
41
+ buf << "maintainer_email #{Array(gem_data.spec.email).join(',').inspect}\n" if gem_data.spec.email
42
+ buf << "source_url #{gem_data.spec.homepage.inspect} if defined?(source_url)\n" if gem_data.spec.homepage
43
+ buf << "license #{gem_data.spec.licenses.join(', ').inspect}\n" unless gem_data.spec.licenses.empty?
40
44
  gem_data.cookbook_dependencies.each do |dep|
41
45
  buf << "depends #{dep.name.inspect}"
42
46
  buf << ", #{dep.requirement.inspect}" if dep.requirement != '>= 0'
@@ -17,5 +17,5 @@
17
17
 
18
18
  module Halite
19
19
  # Halite version.
20
- VERSION = '1.0.12'
20
+ VERSION = '1.0.13'
21
21
  end
@@ -24,7 +24,15 @@ describe Halite::Converter::Metadata do
24
24
  let(:cookbook_version) { version }
25
25
  let(:cookbook_dependencies) { [] }
26
26
  let(:spec) do
27
- instance_double('Gem::Specification', description: '')
27
+ instance_double('Gem::Specification',
28
+ author: nil,
29
+ authors: [],
30
+ description: '',
31
+ email: nil,
32
+ homepage: nil,
33
+ license: nil,
34
+ licenses: [],
35
+ )
28
36
  end
29
37
  let(:gem_data) do
30
38
  instance_double('Halite::Gem',
@@ -2,3 +2,7 @@
2
2
  # Awesome license
3
3
  name "test1"
4
4
  version "1.2.3"
5
+ maintainer "Noah Kantrowitz"
6
+ maintainer_email "noah@coderanger.net"
7
+ source_url "http://example.com/" if defined?(source_url)
8
+ license "Apache 2.0"
@@ -1,4 +1,8 @@
1
1
  # coding: utf-8
2
2
  name "test2"
3
3
  version "4.5.6"
4
+ maintainer "Noah Kantrowitz"
5
+ maintainer_email "noah@coderanger.net"
6
+ source_url "http://example.com/" if defined?(source_url)
7
+ license "Apache 2.0"
4
8
  depends "testdep"
@@ -1,4 +1,8 @@
1
1
  # coding: utf-8
2
2
  name "test3"
3
3
  version "7.8.9"
4
+ maintainer "Noah Kantrowitz"
5
+ maintainer_email "noah@coderanger.net"
6
+ source_url "http://example.com/" if defined?(source_url)
7
+ license "Apache 2.0"
4
8
  depends "test2", "~> 4.5.6"
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = %w{noah@coderanger.net}
12
12
  spec.description = %q||
13
13
  spec.summary = %q||
14
- spec.homepage = ''
14
+ spec.homepage = 'http://example.com/'
15
15
  spec.license = 'Apache 2.0'
16
16
 
17
17
  spec.files = `cd #{File.expand_path('..', __FILE__)} && git ls-files`.split($/)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = %w{noah@coderanger.net}
11
11
  spec.description = %q||
12
12
  spec.summary = %q||
13
- spec.homepage = ''
13
+ spec.homepage = 'http://example.com/'
14
14
  spec.license = 'Apache 2.0'
15
15
 
16
16
  spec.files = `cd #{File.expand_path('..', __FILE__)} && git ls-files`.split($/)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = %w{noah@coderanger.net}
11
11
  spec.description = %q||
12
12
  spec.summary = %q||
13
- spec.homepage = ''
13
+ spec.homepage = 'http://example.com/'
14
14
  spec.license = 'Apache 2.0'
15
15
  spec.metadata['halite_entry_point'] = 'test3/dsl'
16
16
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = %w{noah@coderanger.net}
11
11
  spec.description = %q||
12
12
  spec.summary = %q||
13
- spec.homepage = ''
13
+ spec.homepage = 'http://example.com/'
14
14
  spec.license = 'Apache 2.0'
15
15
 
16
16
  spec.files = `cd #{File.expand_path('..', __FILE__)} && git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-07 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef