hobosupport 0.8.8 → 0.8.9

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/Rakefile CHANGED
@@ -1,4 +1,6 @@
1
- require 'echoe'
1
+ require 'activerecord'
2
+ ActiveRecord::ActiveRecordError # hack for https://rails.lighthouseapp.com/projects/8994/tickets/2577-when-using-activerecordassociations-outside-of-rails-a-nameerror-is-thrown
3
+ require File.dirname(__FILE__) + '/lib/hobo_support.rb'
2
4
 
3
5
  namespace "test" do
4
6
  desc "Run the doctests"
@@ -7,15 +9,23 @@ namespace "test" do
7
9
  end
8
10
  end
9
11
 
10
- Echoe.new('hobosupport') do |p|
11
- p.author = "Tom Locke"
12
- p.email = "tom@tomlocke.com"
13
- p.summary = "Core Ruby extensions from the Hobo project"
14
- p.url = "http://hobocentral.net/hobosupport"
15
- p.project = "hobo"
16
-
17
- p.changelog = "CHANGES.txt"
18
- p.version = "0.8.8"
19
-
20
- p.development_dependencies = []
12
+ # --- build gem via Jeweller --- #
13
+
14
+ begin
15
+ require 'jeweler'
16
+ Jeweler::Tasks.new do |gemspec|
17
+ gemspec.version = HoboSupport::VERSION
18
+ gemspec.name = "hobosupport"
19
+ gemspec.email = "tom@tomlocke.com"
20
+ gemspec.summary = "Core Ruby extensions from the Hobo project"
21
+ gemspec.homepage = "http://hobocentral.net/"
22
+ gemspec.authors = ["Tom Locke"]
23
+ gemspec.rubyforge_project = "hobosupport"
24
+ end
25
+ Jeweler::GemcutterTasks.new
26
+ Jeweler::RubyforgeTasks.new do |rubyforge|
27
+ rubyforge.doc_task = "rdoc"
28
+ end
29
+ rescue LoadError
30
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
21
31
  end
data/lib/hobo_support.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module HoboSupport
2
2
 
3
- VERSION = "0.8.8"
3
+ VERSION = "0.8.9"
4
4
 
5
5
  RAILS_VERSION_FLOAT = Object.const_defined?(:Rails) ? Rails::VERSION::STRING.match(/^\d+\.\d+/)[0].to_f : 0
6
6
 
@@ -8,14 +8,12 @@ module Enumerable
8
8
  not_found
9
9
  end
10
10
 
11
- def map_with_index
12
- res = []
11
+ def map_with_index(res=[])
13
12
  each_with_index {|x, i| res << yield(x, i)}
14
13
  res
15
14
  end
16
15
 
17
- def build_hash
18
- res = {}
16
+ def build_hash(res={})
19
17
  each do |x|
20
18
  pair = block_given? ? yield(x) : x
21
19
  res[pair.first] = pair.last if pair
@@ -23,8 +21,7 @@ module Enumerable
23
21
  res
24
22
  end
25
23
 
26
- def map_hash
27
- res = {}
24
+ def map_hash(res={})
28
25
  each do |x|
29
26
  v = yield x
30
27
  res[x] = v
@@ -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.8"
11
+ => "0.8.9"
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.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Locke
@@ -9,43 +9,30 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-24 00:00:00 -04:00
12
+ date: 2009-10-14 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Core Ruby extensions from the Hobo project
16
+ description:
17
17
  email: tom@tomlocke.com
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - lib/hobo_support/array.rb
24
- - lib/hobo_support/blankslate.rb
25
- - lib/hobo_support/enumerable.rb
26
- - lib/hobo_support/fixes/chronic.rb
27
- - lib/hobo_support/fixes/module.rb
28
- - lib/hobo_support/fixes/pp.rb
29
- - lib/hobo_support/fixes.rb
30
- - lib/hobo_support/hash.rb
31
- - lib/hobo_support/implies.rb
32
- - lib/hobo_support/metaid.rb
33
- - lib/hobo_support/methodcall.rb
34
- - lib/hobo_support/methodphitamine.rb
35
- - lib/hobo_support/module.rb
36
- - lib/hobo_support/string.rb
37
- - lib/hobo_support.rb
38
- - lib/hobosupport.rb
39
23
  - README.txt
40
24
  files:
41
25
  - CHANGES.txt
26
+ - README.txt
27
+ - Rakefile
28
+ - lib/hobo_support.rb
42
29
  - lib/hobo_support/array.rb
43
30
  - lib/hobo_support/blankslate.rb
44
31
  - lib/hobo_support/enumerable.rb
32
+ - lib/hobo_support/fixes.rb
45
33
  - lib/hobo_support/fixes/chronic.rb
46
34
  - lib/hobo_support/fixes/module.rb
47
35
  - lib/hobo_support/fixes/pp.rb
48
- - lib/hobo_support/fixes.rb
49
36
  - lib/hobo_support/hash.rb
50
37
  - lib/hobo_support/implies.rb
51
38
  - lib/hobo_support/metaid.rb
@@ -53,30 +40,21 @@ files:
53
40
  - lib/hobo_support/methodphitamine.rb
54
41
  - lib/hobo_support/module.rb
55
42
  - lib/hobo_support/string.rb
56
- - lib/hobo_support.rb
57
43
  - lib/hobosupport.rb
58
- - Manifest
59
- - Manifest.txt
60
- - Rakefile
61
- - README.txt
44
+ - test/hobosupport.rdoctest
62
45
  - test/hobosupport/enumerable.rdoctest
63
46
  - test/hobosupport/hash.rdoctest
64
47
  - test/hobosupport/implies.rdoctest
65
48
  - test/hobosupport/metaid.rdoctest
66
49
  - test/hobosupport/methodphitamine.rdoctest
67
50
  - test/hobosupport/module.rdoctest
68
- - test/hobosupport.rdoctest
69
- - hobosupport.gemspec
70
51
  has_rdoc: true
71
- homepage: http://hobocentral.net/hobosupport
52
+ homepage: http://hobocentral.net/
53
+ licenses: []
54
+
72
55
  post_install_message:
73
56
  rdoc_options:
74
- - --line-numbers
75
- - --inline-source
76
- - --title
77
- - Hobosupport
78
- - --main
79
- - README.txt
57
+ - --charset=UTF-8
80
58
  require_paths:
81
59
  - lib
82
60
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -89,14 +67,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
67
  requirements:
90
68
  - - ">="
91
69
  - !ruby/object:Gem::Version
92
- version: "1.2"
70
+ version: "0"
93
71
  version:
94
72
  requirements: []
95
73
 
96
- rubyforge_project: hobo
97
- rubygems_version: 1.3.1
74
+ rubyforge_project: hobosupport
75
+ rubygems_version: 1.3.5
98
76
  signing_key:
99
- specification_version: 2
77
+ specification_version: 3
100
78
  summary: Core Ruby extensions from the Hobo project
101
79
  test_files: []
102
80
 
data/Manifest DELETED
@@ -1,28 +0,0 @@
1
- CHANGES.txt
2
- lib/hobo_support/array.rb
3
- lib/hobo_support/blankslate.rb
4
- lib/hobo_support/enumerable.rb
5
- lib/hobo_support/fixes/chronic.rb
6
- lib/hobo_support/fixes/module.rb
7
- lib/hobo_support/fixes/pp.rb
8
- lib/hobo_support/fixes.rb
9
- lib/hobo_support/hash.rb
10
- lib/hobo_support/implies.rb
11
- lib/hobo_support/metaid.rb
12
- lib/hobo_support/methodcall.rb
13
- lib/hobo_support/methodphitamine.rb
14
- lib/hobo_support/module.rb
15
- lib/hobo_support/string.rb
16
- lib/hobo_support.rb
17
- lib/hobosupport.rb
18
- Manifest
19
- Manifest.txt
20
- Rakefile
21
- README.txt
22
- test/hobosupport/enumerable.rdoctest
23
- test/hobosupport/hash.rdoctest
24
- test/hobosupport/implies.rdoctest
25
- test/hobosupport/metaid.rdoctest
26
- test/hobosupport/methodphitamine.rdoctest
27
- test/hobosupport/module.rdoctest
28
- test/hobosupport.rdoctest
data/Manifest.txt DELETED
@@ -1,25 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- Rakefile
5
- lib/hobosupport.rb
6
- lib/hobosupport/array.rb
7
- lib/hobosupport/blankslate.rb
8
- lib/hobosupport/enumerable.rb
9
- lib/hobosupport/fixes.rb
10
- lib/hobosupport/fixes/chronic.rb
11
- lib/hobosupport/fixes/module.rb
12
- lib/hobosupport/fixes/pp.rb
13
- lib/hobosupport/hash.rb
14
- lib/hobosupport/implies.rb
15
- lib/hobosupport/metaid.rb
16
- lib/hobosupport/methodcall.rb
17
- lib/hobosupport/methodphitamine.rb
18
- lib/hobosupport/module.rb
19
- test/hobosupport.rdoctest
20
- test/hobosupport/enumerable.rdoctest
21
- test/hobosupport/hash.rdoctest
22
- test/hobosupport/implies.rdoctest
23
- test/hobosupport/metaid.rdoctest
24
- test/hobosupport/methodphitamine.rdoctest
25
- test/hobosupport/module.rdoctest
data/hobosupport.gemspec DELETED
@@ -1,31 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{hobosupport}
5
- s.version = "0.8.8"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Tom Locke"]
9
- s.date = %q{2009-06-24}
10
- s.description = %q{Core Ruby extensions from the Hobo project}
11
- s.email = %q{tom@tomlocke.com}
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"]
13
- s.files = ["CHANGES.txt", "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", "Manifest", "Manifest.txt", "Rakefile", "README.txt", "test/hobosupport/enumerable.rdoctest", "test/hobosupport/hash.rdoctest", "test/hobosupport/implies.rdoctest", "test/hobosupport/metaid.rdoctest", "test/hobosupport/methodphitamine.rdoctest", "test/hobosupport/module.rdoctest", "test/hobosupport.rdoctest", "hobosupport.gemspec"]
14
- s.has_rdoc = true
15
- s.homepage = %q{http://hobocentral.net/hobosupport}
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hobosupport", "--main", "README.txt"]
17
- s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{hobo}
19
- s.rubygems_version = %q{1.3.1}
20
- s.summary = %q{Core Ruby extensions from the Hobo project}
21
-
22
- if s.respond_to? :specification_version then
23
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
- s.specification_version = 2
25
-
26
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
- else
28
- end
29
- else
30
- end
31
- end