hen 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  = Revision history for hen
2
2
 
3
+ == 0.3.4 [2011-03-09]
4
+
5
+ * Some minor changes/fixes.
6
+
3
7
  == 0.3.3 [2011-02-15]
4
8
 
5
9
  * Added <tt>release:tag</tt> task.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to hen version 0.3.3
5
+ This documentation refers to hen version 0.3.4
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/lib/hen.rb CHANGED
@@ -194,18 +194,11 @@ class Hen
194
194
  # environment variable +HENRC+ and in each directory named in RCDIRS.
195
195
  # If +must_exist+ is false, no readability checks will be performed.
196
196
  def find_henrc(must_exist = true)
197
- found = []
198
-
199
- if env_henrc = ENV['HENRC']
200
- found << env_henrc if !must_exist || File.readable?(env_henrc)
201
- end
202
-
203
- RCDIRS.each { |dir|
204
- dir_henrc = File.join(dir, HENRC_NAME)
205
- found << dir_henrc if !must_exist || File.readable?(dir_henrc)
206
- }
207
-
208
- found
197
+ RCDIRS.map { |dir|
198
+ File.join(dir, HENRC_NAME)
199
+ }.unshift(ENV['HENRC']).compact.map { |file|
200
+ File.expand_path(file) if !must_exist || File.readable?(file)
201
+ }.compact.uniq
209
202
  end
210
203
 
211
204
  # call-seq:
data/lib/hen/dsl.rb CHANGED
@@ -255,7 +255,7 @@ class Hen
255
255
  end
256
256
 
257
257
  def url_for_remote(remote) # :nodoc:
258
- run(:remote, '-v')[%r{\A#{Regexp.escape(remote)}\s+(\S+)}, 1]
258
+ run(:remote, '-v')[%r{^#{Regexp.escape(remote)}\s+(\S+)}, 1]
259
259
  end
260
260
 
261
261
  def find_remote(regexp) # :nodoc:
data/lib/hen/version.rb CHANGED
@@ -4,7 +4,7 @@ class Hen
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 3
7
- TINY = 3
7
+ TINY = 4
8
8
 
9
9
  class << self
10
10
 
data/lib/hens/gem.rake CHANGED
@@ -70,6 +70,7 @@ Hen :gem => :rdoc do
70
70
  if homepage = gem_options[:homepage]
71
71
  homepage = "github.com/#{homepage}/#{gem_name}" if homepage.is_a?(Symbol)
72
72
  homepage.insert(0, 'http://') unless homepage.empty? || homepage =~ %r{://}
73
+ gem_options[:homepage] = homepage
73
74
  end
74
75
 
75
76
  ### extra_rdoc_files, files, extensions, executables, bindir
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: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.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: 2011-02-15 00:00:00 +01:00
18
+ date: 2011-03-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -87,14 +87,14 @@ licenses: []
87
87
 
88
88
  post_install_message:
89
89
  rdoc_options:
90
- - --charset
91
- - UTF-8
92
- - --all
90
+ - --line-numbers
93
91
  - --main
94
92
  - README
93
+ - --all
94
+ - --charset
95
+ - UTF-8
95
96
  - --title
96
- - hen Application documentation (v0.3.3)
97
- - --line-numbers
97
+ - hen Application documentation (v0.3.4)
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.5.2
121
+ rubygems_version: 1.6.2
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.