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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b8f2665effc9f55bc3948b1dcde3f793a3b9a35
4
- data.tar.gz: 6a14da674d95a92dea7e0dbd5365d38e30ab71af
3
+ metadata.gz: e900187a5fdfbed5fb3712c249f00b23c66d05bc
4
+ data.tar.gz: 5024eaab5d4de0e7f30fd1f1839a2e690cb11fa3
5
5
  SHA512:
6
- metadata.gz: d492a36c3ff7537df17d7cb98e18e126d0eae79a223197961ced8bfb62682a5be6e4faf030f99477becab0e8b3187e13bafd59b5a74cb07da714845e89b2d5ff
7
- data.tar.gz: c6532f016fe551e84f3ff2290ac3344a4d4994db05c69e3753cad0e8abdee2e8e6ca0f78a71b360453d0da0deadf7016e383675b930c8e50a826aff84511b970
6
+ metadata.gz: 5f2d124d8a2e00c90e15a27de6a8c3db136e130b8cc9258790d22ae70a8f0269c1d6b5bde4144d51590a1e2e99aff6fd99a748a1ef83f22d3fd9a065ba24bfe1
7
+ data.tar.gz: 34f103cc2a3997dbc178589d29da4c6bac88056db49266483cac298be935a8985a58120dda521b7b7f20adf4ab52ef36e6d554dd5567166252d4a6296d3fed6f
@@ -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
- task :release => [:test, :obs]
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
@@ -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}
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro