Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bumped to v0.4.2

  • Loading branch information...
commit 6ae97d7489e758bf11f3d8d39d27328276ce9efe 1 parent d815384
Bernard Lambeau authored December 09, 2011
2  CHANGELOG.md
Source Rendered
... ...
@@ -1,4 +1,4 @@
1  
-# 0.4.2 / FIX ME
  1
+# 0.4.2 / 2011-12-09
2 2
 
3 3
 * Fix a bug when reacting to errors that do no define react!
4 4
 
2  Rakefile
@@ -19,5 +19,5 @@ task :default => :test
19 19
 # See .rake files there for complete documentation.
20 20
 #
21 21
 Dir["tasks/*.rake"].each do |taskfile|
22  
-  instance_eval File.read(taskfile), taskfile
  22
+  load taskfile
23 23
 end
2  lib/quickl/version.rb
@@ -3,7 +3,7 @@ module Version
3 3
 
4 4
     MAJOR = 0
5 5
     MINOR = 4
6  
-    TINY  = 1
  6
+    TINY  = 2
7 7
 
8 8
     def self.to_s
9 9
       [ MAJOR, MINOR, TINY ].join('.')
2  quickl.noespec
@@ -9,7 +9,7 @@ variables:
9 9
   upper:
10 10
     Quickl
11 11
   version:
12  
-    0.4.1
  12
+    0.4.2
13 13
   summary: |-
14 14
     Helper to create commandline ruby programs
15 15
   description: |-
71  tasks/debug_mail.rake
@@ -31,48 +31,45 @@
31 31
 #     tasks/debug_mail.txt:
32 32
 #       safe-override: false
33 33
 #
34  
-begin
35  
-  require 'wlang'
  34
+desc "Debug the release announcement mail"
  35
+task :debug_mail do
  36
+  begin
  37
+    require 'wlang'
  38
+  rescue LoadError
  39
+    abort "wlang is not available. Try 'gem install wlang'"
  40
+  end
36 41
   require 'yaml'
37 42
 
38  
-  desc "Debug the release announcement mail"
39  
-  task :debug_mail do
40  
-    # Check that a .noespec file exists
41  
-    noespec_file = File.expand_path('../../quickl.noespec', __FILE__)
42  
-    unless File.exists?(noespec_file)
43  
-      raise "Unable to find .noespec project file, sorry."
44  
-    end
45  
-
46  
-    # Load it as well as variables and options
47  
-    noespec = YAML::load(File.read(noespec_file))
48  
-    vars = noespec['variables'] || {}
  43
+  # Check that a .noespec file exists
  44
+  noespec_file = File.expand_path('../../quickl.noespec', __FILE__)
  45
+  unless File.exists?(noespec_file)
  46
+    raise "Unable to find .noespec project file, sorry."
  47
+  end
49 48
 
50  
-    # Changes are taken from CHANGELOG
51  
-    logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
52  
-    unless logs.size == 1
53  
-      abort "Unable to find a changelog file"
54  
-    end
  49
+  # Load it as well as variables and options
  50
+  noespec = YAML::load(File.read(noespec_file))
  51
+  vars = noespec['variables'] || {}
55 52
 
56  
-    # Load interesting changesets
57  
-    changes, end_found = [], 0
58  
-    File.readlines(logs.first).select{|line|
59  
-      if line =~ /^# /
60  
-        break if end_found >= 1
61  
-        end_found += 1
62  
-      end
63  
-      changes << line
64  
-    }
65  
-    vars['changes'] = changes.join
  53
+  # Changes are taken from CHANGELOG
  54
+  logs = Dir[File.expand_path("../../CHANGELOG.*", __FILE__)]
  55
+  unless logs.size == 1
  56
+    abort "Unable to find a changelog file"
  57
+  end
66 58
 
67  
-    # WLang template
68  
-    template = File.expand_path('../debug_mail.txt', __FILE__)
  59
+  # Load interesting changesets
  60
+  changes, end_found = [], 0
  61
+  File.readlines(logs.first).select{|line|
  62
+    if line =~ /^# /
  63
+      break if end_found >= 1
  64
+      end_found += 1
  65
+    end
  66
+    changes << line
  67
+  }
  68
+  vars['changes'] = changes.join
69 69
 
70  
-    # Let's go!
71  
-    $stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
72  
-  end
  70
+  # WLang template
  71
+  template = File.expand_path('../debug_mail.txt', __FILE__)
73 72
 
74  
-rescue LoadError
75  
-  task :debug_mail do
76  
-    abort "wlang is not available. Try 'gem install wlang'"
77  
-  end
  73
+  # Let's go!
  74
+  $stdout << WLang::file_instantiate(template, vars, "wlang/active-text")
78 75
 end

0 notes on commit 6ae97d7

Please sign in to comment.
Something went wrong with that request. Please try again.