Permalink
Browse files

Bumped to v0.4.2

  • Loading branch information...
1 parent d815384 commit 6ae97d7489e758bf11f3d8d39d27328276ce9efe @blambeau committed Dec 9, 2011
Showing with 38 additions and 41 deletions.
  1. +1 −1 CHANGELOG.md
  2. +1 −1 Rakefile
  3. +1 −1 lib/quickl/version.rb
  4. +1 −1 quickl.noespec
  5. +34 −37 tasks/debug_mail.rake
View
@@ -1,4 +1,4 @@
-# 0.4.2 / FIX ME
+# 0.4.2 / 2011-12-09
* Fix a bug when reacting to errors that do no define react!
View
@@ -19,5 +19,5 @@ task :default => :test
# See .rake files there for complete documentation.
#
Dir["tasks/*.rake"].each do |taskfile|
- instance_eval File.read(taskfile), taskfile
+ load taskfile
end
View
@@ -3,7 +3,7 @@ module Version
MAJOR = 0
MINOR = 4
- TINY = 1
+ TINY = 2
def self.to_s
[ MAJOR, MINOR, TINY ].join('.')
View
@@ -9,7 +9,7 @@ variables:
upper:
Quickl
version:
- 0.4.1
+ 0.4.2
summary: |-
Helper to create commandline ruby programs
description: |-
View
@@ -31,48 +31,45 @@
# tasks/debug_mail.txt:
# safe-override: false
#
-begin
- require 'wlang'
+desc "Debug the release announcement mail"
+task :debug_mail do
+ begin
+ require 'wlang'
+ rescue LoadError
+ abort "wlang is not available. Try 'gem install wlang'"
+ end
require 'yaml'
- desc "Debug the release announcement mail"
- task :debug_mail do
- # Check that a .noespec file exists
- noespec_file = File.expand_path('../../quickl.noespec', __FILE__)
- unless File.exists?(noespec_file)
- raise "Unable to find .noespec project file, sorry."
- end
-
- # Load it as well as variables and options
- noespec = YAML::load(File.read(noespec_file))
- vars = noespec['variables'] || {}
+ # Check that a .noespec file exists
+ noespec_file = File.expand_path('../../quickl.noespec', __FILE__)
+ unless File.exists?(noespec_file)
+ raise "Unable to find .noespec project file, sorry."
+ end
- # Changes are taken from CHANGELOG
- logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
- unless logs.size == 1
- abort "Unable to find a changelog file"
- end
+ # Load it as well as variables and options
+ noespec = YAML::load(File.read(noespec_file))
+ vars = noespec['variables'] || {}
- # Load interesting changesets
- changes, end_found = [], 0
- File.readlines(logs.first).select{|line|
- if line =~ /^# /
- break if end_found >= 1
- end_found += 1
- end
- changes << line
- }
- vars['changes'] = changes.join
+ # Changes are taken from CHANGELOG
+ logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
+ unless logs.size == 1
+ abort "Unable to find a changelog file"
+ end
- # WLang template
- template = File.expand_path('../debug_mail.txt', __FILE__)
+ # Load interesting changesets
+ changes, end_found = [], 0
+ File.readlines(logs.first).select{|line|
+ if line =~ /^# /
+ break if end_found >= 1
+ end_found += 1
+ end
+ changes << line
+ }
+ vars['changes'] = changes.join
- # Let's go!
- $stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
- end
+ # WLang template
+ template = File.expand_path('../debug_mail.txt', __FILE__)
-rescue LoadError
- task :debug_mail do
- abort "wlang is not available. Try 'gem install wlang'"
- end
+ # Let's go!
+ $stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
end

0 comments on commit 6ae97d7

Please sign in to comment.