hen 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,5 +1,57 @@
1
1
  = Revision history for hen
2
2
 
3
+ == 0.2.4 [2011-01-06]
4
+
5
+ * Added support for RSpec 2
6
+ * Updated sample Rakefile to only warn about missing gem instead of bailing
7
+ out
8
+
9
+ == 0.2.3 [2010-07-01]
10
+
11
+ * Fixed syntax error
12
+
13
+ == 0.2.2 [2010-07-01]
14
+
15
+ * Set upstream branch when creating a Git-backed project from a remote repo
16
+ * Ignore Git remote fetch/push indicator (2)
17
+
18
+ == 0.2.1 [2010-03-15]
19
+
20
+ * Ignore Git remote fetch/push indicator
21
+
22
+ == 0.2.0 [2010-02-22]
23
+
24
+ * RubyGems/Gemcutter merge
25
+
26
+ == 0.1.9 [2009-12-29]
27
+
28
+ * Fixed Git proxy object
29
+
30
+ == 0.1.8 [2009-12-29]
31
+
32
+ * Added support for publishing documentation on GitHub's gh-pages
33
+
34
+ == 0.1.7 [2009-12-16]
35
+
36
+ * Added Gemcutter support
37
+ * Added Git support
38
+
39
+ == 0.1.6 [2009-01-26]
40
+
41
+ * Ignore nonexistent spec.opts file
42
+
43
+ == 0.1.5 [2009-01-22]
44
+
45
+ * Ruby 1.9 compatibility
46
+
47
+ == 0.1.4 [2008-12-19]
48
+
49
+ * Housekeeping
50
+
51
+ == 0.1.3 [2008-12-09]
52
+
53
+ * Moved to Git
54
+
3
55
  == 0.1.2 [2008-08-12]
4
56
 
5
57
  * Added task to update/create gemspec file (e.g., for github)
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to hen version 0.2.3
5
+ This documentation refers to hen version 0.2.4
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -17,7 +17,7 @@ Documentation:: <http://prometheus.rubyforge.org/hen>
17
17
  Source code (old):: <http://prometheus.rubyforge.org/svn/scratch/hen>
18
18
  Source code:: <http://github.com/blackwinter/hen>
19
19
  Rubyforge project:: <http://rubyforge.org/projects/prometheus>
20
- Gemcutter:: <http://gemcutter.org/gems/hen>
20
+ RubyGem:: <http://rubygems.org/gems/hen>
21
21
 
22
22
 
23
23
  == AUTHORS
@@ -27,7 +27,7 @@ Gemcutter:: <http://gemcutter.org/gems/hen>
27
27
 
28
28
  == LICENSE AND COPYRIGHT
29
29
 
30
- Copyright (C) 2007-2010 University of Cologne,
30
+ Copyright (C) 2007-2011 University of Cologne,
31
31
  Albertus-Magnus-Platz, 50923 Cologne, Germany
32
32
 
33
33
  hen is free software: you can redistribute it and/or modify it under the
@@ -14,7 +14,7 @@ begin
14
14
  }
15
15
  }}
16
16
  rescue LoadError
17
- abort "Please install the 'hen' gem first."
17
+ warn "Please install the `hen' gem."
18
18
  end
19
19
 
20
20
  ### Place your custom Rake tasks here.
@@ -4,7 +4,7 @@ class Hen
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 2
7
- TINY = 3
7
+ TINY = 4
8
8
 
9
9
  class << self
10
10
 
@@ -1,6 +1,10 @@
1
1
  Hen :spec do
2
2
 
3
- require 'spec/rake/spectask'
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+ rescue LoadError
6
+ require 'spec/rake/spectask'
7
+ end
4
8
 
5
9
  spec_options = config[:spec]
6
10
 
@@ -12,22 +16,33 @@ Hen :spec do
12
16
  spec_files.unshift(spec_helper)
13
17
  end
14
18
 
15
- spec_options.delete(:options) unless File.readable?(spec_options[:options])
19
+ opts_file = spec_options.delete(:options)
16
20
 
17
21
  spec_opts = spec_options.map { |option, value|
18
22
  option = '--' << option.to_s.tr('_', '-')
19
23
  value.is_a?(String) ? [option, value] : value ? option : nil
20
24
  }.compact.flatten
21
25
 
22
- spec_task = lambda { |t|
23
- t.spec_files = spec_files
24
- t.spec_opts = spec_opts
25
- }
26
+ if opts_file && File.readable?(opts_file)
27
+ File.readlines(opts_file).each { |l| spec_opts << l.chomp }
28
+ end
29
+
30
+ klass, spec_task = if defined?(RSpec::Core::RakeTask)
31
+ [RSpec::Core::RakeTask, lambda { |t|
32
+ t.pattern = spec_files
33
+ t.rspec_opts = spec_opts
34
+ }]
35
+ else
36
+ [Spec::Rake::SpecTask, lambda { |t|
37
+ t.spec_files = spec_files
38
+ t.spec_opts = spec_opts
39
+ }]
40
+ end
26
41
 
27
- Spec::Rake::SpecTask.new(&spec_task)
42
+ klass.new(&spec_task)
28
43
 
29
44
  #desc "Run specs with RCov"
30
- Spec::Rake::SpecTask.new('spec:rcov') do |t|
45
+ klass.new('spec:rcov') do |t|
31
46
  spec_task[t]
32
47
 
33
48
  t.rcov = true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jens Wille
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-01 00:00:00 +02:00
18
+ date: 2011-01-06 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -86,15 +86,15 @@ licenses: []
86
86
 
87
87
  post_install_message:
88
88
  rdoc_options:
89
- - --line-numbers
90
89
  - --inline-source
91
- - --main
92
- - README
90
+ - --all
93
91
  - --charset
94
92
  - UTF-8
93
+ - --main
94
+ - README
95
95
  - --title
96
96
  - hen Application documentation
97
- - --all
97
+ - --line-numbers
98
98
  require_paths:
99
99
  - lib
100
100
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements: []
119
119
 
120
120
  rubyforge_project: prometheus
121
- rubygems_version: 1.3.7
121
+ rubygems_version: 1.4.1
122
122
  signing_key:
123
123
  specification_version: 3
124
124
  summary: Hoe or Echoe? No, thanks! Just a Rake helper that fits my own personal style.