hobosupport 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ Echoe.new('hobosupport') do |p|
15
15
  p.project = "hobo"
16
16
 
17
17
  p.changelog = "CHANGES.txt"
18
- p.version = "0.8.7"
18
+ p.version = "0.8.8"
19
19
 
20
20
  p.development_dependencies = []
21
21
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hobosupport}
5
- s.version = "0.8.7"
5
+ s.version = "0.8.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tom Locke"]
9
- s.date = %q{2009-05-14}
9
+ s.date = %q{2009-06-24}
10
10
  s.description = %q{Core Ruby extensions from the Hobo project}
11
11
  s.email = %q{tom@tomlocke.com}
12
12
  s.extra_rdoc_files = ["lib/hobo_support/array.rb", "lib/hobo_support/blankslate.rb", "lib/hobo_support/enumerable.rb", "lib/hobo_support/fixes/chronic.rb", "lib/hobo_support/fixes/module.rb", "lib/hobo_support/fixes/pp.rb", "lib/hobo_support/fixes.rb", "lib/hobo_support/hash.rb", "lib/hobo_support/implies.rb", "lib/hobo_support/metaid.rb", "lib/hobo_support/methodcall.rb", "lib/hobo_support/methodphitamine.rb", "lib/hobo_support/module.rb", "lib/hobo_support/string.rb", "lib/hobo_support.rb", "lib/hobosupport.rb", "README.txt"]
@@ -1,6 +1,10 @@
1
1
  module HoboSupport
2
2
 
3
- VERSION = "0.8.7"
3
+ VERSION = "0.8.8"
4
+
5
+ RAILS_VERSION_FLOAT = Object.const_defined?(:Rails) ? Rails::VERSION::STRING.match(/^\d+\.\d+/)[0].to_f : 0
6
+
7
+ RAILS_AT_LEAST_23 = (RAILS_VERSION_FLOAT >= 2.3)
4
8
 
5
9
  end
6
10
 
@@ -17,7 +17,7 @@ module Enumerable
17
17
  def build_hash
18
18
  res = {}
19
19
  each do |x|
20
- pair = yield x
20
+ pair = block_given? ? yield(x) : x
21
21
  res[pair.first] = pair.last if pair
22
22
  end
23
23
  res
@@ -8,7 +8,7 @@ HoboSupport is a mixed bag of core ruby extensions that have been extracted from
8
8
  {.hidden}
9
9
 
10
10
  >> HoboSupport::VERSION
11
- => "0.8.7"
11
+ => "0.8.8"
12
12
 
13
13
  ## Contents
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobosupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Locke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-14 00:00:00 +01:00
12
+ date: 2009-06-24 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15