chake 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +11 -0
- data/Rakefile +12 -2
- data/chake.spec.erb +1 -1
- data/lib/chake.rb +2 -2
- data/lib/chake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e900187a5fdfbed5fb3712c249f00b23c66d05bc
|
4
|
+
data.tar.gz: 5024eaab5d4de0e7f30fd1f1839a2e690cb11fa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f2d124d8a2e00c90e15a27de6a8c3db136e130b8cc9258790d22ae70a8f0269c1d6b5bde4144d51590a1e2e99aff6fd99a748a1ef83f22d3fd9a065ba24bfe1
|
7
|
+
data.tar.gz: 34f103cc2a3997dbc178589d29da4c6bac88056db49266483cac298be935a8985a58120dda521b7b7f20adf4ab52ef36e6d554dd5567166252d4a6296d3fed6f
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
# 0.3.1
|
2
|
+
|
3
|
+
* Fix setting hostname when bootstrapping
|
4
|
+
* Rakefile: do not allow releases without a changelog entry
|
5
|
+
* Now *really* fix RPM builds, hopefully
|
6
|
+
|
7
|
+
# 0.3
|
8
|
+
|
9
|
+
* Fix RPM build
|
10
|
+
* bootstrap: set hostname
|
11
|
+
|
1
12
|
# 0.2.3
|
2
13
|
|
3
14
|
* No functional changes
|
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ end
|
|
26
26
|
desc 'Create source RPM package'
|
27
27
|
task 'build:rpmsrc' => [:build, 'pkg/chake.spec']
|
28
28
|
|
29
|
-
file 'pkg/chake.spec' => 'chake.spec.erb' do |t|
|
29
|
+
file 'pkg/chake.spec' => ['chake.spec.erb', 'lib/chake/version.rb'] do |t|
|
30
30
|
require 'erb'
|
31
31
|
pkg = Gem::Specification.load('chake.gemspec')
|
32
32
|
template = ERB.new(File.read('chake.spec.erb'))
|
@@ -80,6 +80,16 @@ task :changelog do
|
|
80
80
|
sh 'git', 'shortlog', last_tag + '..'
|
81
81
|
end
|
82
82
|
|
83
|
-
|
83
|
+
desc 'checks if the latest release is properly documented in ChangeLog.md'
|
84
|
+
task :check_changelog do
|
85
|
+
begin
|
86
|
+
sh 'grep', '^#\s*' + pkg.version.to_s, 'ChangeLog.md'
|
87
|
+
rescue
|
88
|
+
puts "Version #{pkg.version} not documented in ChangeLog.md!"
|
89
|
+
raise
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
task :release => [:check_changelog, :test, :obs]
|
84
94
|
|
85
95
|
task :default => :test
|
data/chake.spec.erb
CHANGED
@@ -31,7 +31,7 @@ Requires: ruby, rubygem-rake
|
|
31
31
|
%install
|
32
32
|
%{__rm} -rf %{buildroot}
|
33
33
|
mkdir -p %{gembuilddir}
|
34
|
-
sed -e 's#spec.files\s*=.*#spec.files = Dir.glob('**/*')#' %{name}.gemspec
|
34
|
+
sed -i -e 's#spec.files\s*=.*#spec.files = Dir.glob('**/*')#' %{name}.gemspec
|
35
35
|
rake build
|
36
36
|
gem install --local --install-dir %{gembuilddir} --force pkg/*.gem
|
37
37
|
mkdir -p %{buildroot}/%{_bindir}
|
data/lib/chake.rb
CHANGED
@@ -114,11 +114,11 @@ $nodes.each do |node|
|
|
114
114
|
File.open(t.name, 'w') do |f|
|
115
115
|
f.puts '#!/bin/sh'
|
116
116
|
f.puts 'set -eu'
|
117
|
+
f.puts "echo '#{hostname}' > /etc/hostname"
|
118
|
+
f.puts 'hostname --file /etc/hostname'
|
117
119
|
platforms.each do |platform|
|
118
120
|
f.puts(File.read(platform))
|
119
121
|
end
|
120
|
-
f.puts "echo '#{hostname}' > /etc/hostname"
|
121
|
-
f.puts 'hostname --file /etc/hostname'
|
122
122
|
end
|
123
123
|
chmod 0755, t.name
|
124
124
|
end
|
data/lib/chake/version.rb
CHANGED