halite 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/CHANGELOG.md +6 -0
- data/halite.gemspec +1 -1
- data/lib/halite/gem.rb +1 -0
- data/lib/halite/rake_helper.rb +1 -1
- data/lib/halite/version.rb +1 -1
- data/spec/gem_spec.rb +9 -3
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981f308866fff19e433afa62920ba21893b0cc0b
|
4
|
+
data.tar.gz: d8cfdf7fb97b0b9fcd702bbd419ac470f7fb4042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6f6d87dfb5cf99505e26fa45f8bb08255af73991c4ba39842f9cc01cdc425c544a48e66e23d0c9f8a3622f917f538177eb40e542088943f2e0a303413cc724
|
7
|
+
data.tar.gz: a05e947ba5136384672b7b7456518a1c40fe52158f126ff375c03af10bb914103ac8fd272d08c62d2af4dd06316c0dc6db3517f49cb395d82c3d6c7655142488
|
data/.travis.yml
CHANGED
@@ -2,9 +2,9 @@ sudo: false
|
|
2
2
|
cache: bundler
|
3
3
|
language: ruby
|
4
4
|
rvm:
|
5
|
-
- "2.0"
|
6
5
|
- "2.1"
|
7
6
|
- "2.2"
|
7
|
+
- "2.3.0"
|
8
8
|
gemfile:
|
9
9
|
- gemfiles/chef-12.0.gemfile
|
10
10
|
- gemfiles/chef-12.1.gemfile
|
@@ -23,5 +23,8 @@ env:
|
|
23
23
|
- secure: bNxYOvi85lnPIPO1qR6NnhfqlREfMXSjmd+xCH01e/gg3x00D+3uyQIotQtglgHRItVIR36GqX70q2g/reudxBsCjfUhH2vDgbtmrWe1ow78rt1xZRlFMQs7JfBpfWKkox5i9mrdzZDekZACA0HUMI1pRM0MYQmkuol/oZw5H4A=
|
24
24
|
- secure: ecX52GLF7IHCiaPEDzPtztiEmu2mNPfyyPrM7aaNsufat7DdsZqPP9LKpCTOoJC+Jgz9sdbQ6Hf61CeZAsrqZ8sKKdiXUoBUXdcBhvuPdpIbfwq97hjOoqQV7rLSD4EW58fipJU8Rl5P1ijFJizHIyxNB+VWBow3niIMGjIEUSE=
|
25
25
|
before_install:
|
26
|
-
- if [[ $BUNDLE_GEMFILE == *master.gemfile ]]; then gem update --system
|
26
|
+
- if [[ $BUNDLE_GEMFILE == *master.gemfile ]]; then gem update --system 2.6.1; fi
|
27
|
+
- gem --version
|
28
|
+
- gem install bundler
|
29
|
+
- bundle --version
|
27
30
|
script: bundle exec rake integration
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Halite Changelog
|
2
2
|
|
3
|
+
## v1.3.0
|
4
|
+
|
5
|
+
* Include extended metadata with stove pushes.
|
6
|
+
* Fix `uninitialized constant Bundler::RemoteSpecification::MatchPlatform` when
|
7
|
+
using the Berkshelf extension with ChefDK.
|
8
|
+
|
3
9
|
## v1.2.1
|
4
10
|
|
5
11
|
* Compatibility with Foodcritic 6.0. `issues_url` will be added to the generated
|
data/halite.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.require_paths = %w{lib}
|
35
35
|
|
36
36
|
spec.add_dependency 'chef', '~> 12.0'
|
37
|
-
spec.add_dependency 'stove', '~>
|
37
|
+
spec.add_dependency 'stove', '~> 4.0'
|
38
38
|
spec.add_dependency 'bundler' # Used for Bundler.load_gemspec
|
39
39
|
spec.add_dependency 'thor' # Used for Thor::Shell
|
40
40
|
|
data/lib/halite/gem.rb
CHANGED
data/lib/halite/rake_helper.rb
CHANGED
@@ -132,7 +132,7 @@ module Halite
|
|
132
132
|
# To match the behavior of Bundler's release task w.r.t $gem_push.
|
133
133
|
return if %w{n no nil false off 0}.include?(ENV['cookbook_push'].to_s.downcase)
|
134
134
|
Dir.chdir(path) do
|
135
|
-
sh('stove --no-git')
|
135
|
+
sh('stove --no-git --extended-metadata')
|
136
136
|
shell.say("Pushed #{gemspec.name} #{gemspec.version} to supermarket.chef.io.", :green) unless options[:no_gem]
|
137
137
|
end
|
138
138
|
end
|
data/lib/halite/version.rb
CHANGED
data/spec/gem_spec.rb
CHANGED
@@ -23,11 +23,17 @@ describe Halite::Gem do
|
|
23
23
|
let(:gem_name) { 'halite' }
|
24
24
|
let(:gem_version) { nil }
|
25
25
|
|
26
|
+
# Because the default uses .inspect which is spammy.
|
27
|
+
RSpec::Matchers.define :quiet_be_a do |expected|
|
28
|
+
match {|actual| actual.is_a?(expected) }
|
29
|
+
description { "be a #{expected.name}" }
|
30
|
+
end
|
31
|
+
|
26
32
|
context 'when loading halite' do
|
27
33
|
its(:name) { is_expected.to eq 'halite' }
|
28
34
|
its(:cookbook_name) { is_expected.to eq 'halite' }
|
29
35
|
its(:version) { is_expected.to eq Halite::VERSION }
|
30
|
-
its(:spec) { is_expected.to
|
36
|
+
its(:spec) { is_expected.to quiet_be_a Gem::Specification }
|
31
37
|
its(:issues_url) { is_expected.to eq 'https://github.com/poise/halite/issues' }
|
32
38
|
end
|
33
39
|
|
@@ -36,13 +42,13 @@ describe Halite::Gem do
|
|
36
42
|
its(:name) { is_expected.to eq 'halite' }
|
37
43
|
its(:cookbook_name) { is_expected.to eq 'halite' }
|
38
44
|
its(:version) { is_expected.to eq Halite::VERSION }
|
39
|
-
its(:spec) { is_expected.to
|
45
|
+
its(:spec) { is_expected.to quiet_be_a Gem::Specification }
|
40
46
|
end
|
41
47
|
|
42
48
|
context 'when loading rspec' do
|
43
49
|
let(:gem_name) { 'rspec' }
|
44
50
|
its(:name) { is_expected.to eq 'rspec' }
|
45
|
-
its(:spec) { is_expected.to
|
51
|
+
its(:spec) { is_expected.to quiet_be_a Gem::Specification }
|
46
52
|
its(:is_halite_cookbook?) { is_expected.to be_falsey }
|
47
53
|
end
|
48
54
|
|
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.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Kantrowitz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -30,20 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
- - ">="
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 3.2.3
|
33
|
+
version: '4.0'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
38
|
- - "~>"
|
42
39
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
44
|
-
- - ">="
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 3.2.3
|
40
|
+
version: '4.0'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: bundler
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
231
|
version: '0'
|
238
232
|
requirements: []
|
239
233
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.
|
234
|
+
rubygems_version: 2.6.4
|
241
235
|
signing_key:
|
242
236
|
specification_version: 4
|
243
237
|
summary: A set of helpers to write Chef cookbooks as Ruby gems.
|