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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/halite/converter/metadata.rb +4 -0
- data/lib/halite/version.rb +1 -1
- data/spec/converter/metadata_spec.rb +9 -1
- data/spec/fixtures/cookbooks/test1/metadata.rb +4 -0
- data/spec/fixtures/cookbooks/test2/metadata.rb +4 -0
- data/spec/fixtures/cookbooks/test3/metadata.rb +4 -0
- data/spec/fixtures/gems/test1/test1.gemspec +1 -1
- data/spec/fixtures/gems/test2/test2.gemspec +1 -1
- data/spec/fixtures/gems/test3/test3.gemspec +1 -1
- data/spec/fixtures/gems/test4/test4.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66ab65e7c5063df1c488321abb0195686fbf0ca
|
4
|
+
data.tar.gz: e604f24d753db8d091b1b42657b2f74cf9574fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e86e39e18f6940f45392764754bf3b08464c7e48ba5c7a28f86f3c308d6dfd07a23312ab71e3e4e6bf46b33da67ce273fd8900b7e529c7b51d84ba999e8f04
|
7
|
+
data.tar.gz: 421b19411862494f282275d98f443676dc77c5d3aa35277205906b0aacf3c6e6300bfa65b9a8ed01b2ce9bb9f1cbc6bb7d72191f6a9e1fa5f6d791caf7462144
|
data/CHANGELOG.md
CHANGED
@@ -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'
|
data/lib/halite/version.rb
CHANGED
@@ -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',
|
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',
|
@@ -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.
|
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-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|