Skip to content

Commit 9f3713e

Browse files
author
David Heinemeier Hansson
committed
Throw the Hoe on the street and go with a regular gemspec setup and allow this to be used with Rails 4+
1 parent 729daa8 commit 9f3713e

File tree

5 files changed

+106
-30
lines changed

5 files changed

+106
-30
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ source 'http://rubygems.org'
33
gem 'rails'
44
gem 'arel'
55
gem 'rack'
6-
gem 'hoe'
76
gem 'minitest'
8-

Gemfile.lock

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
actionmailer (3.2.7)
5+
actionpack (= 3.2.7)
6+
mail (~> 2.4.4)
7+
actionpack (3.2.7)
8+
activemodel (= 3.2.7)
9+
activesupport (= 3.2.7)
10+
builder (~> 3.0.0)
11+
erubis (~> 2.7.0)
12+
journey (~> 1.0.4)
13+
rack (~> 1.4.0)
14+
rack-cache (~> 1.2)
15+
rack-test (~> 0.6.1)
16+
sprockets (~> 2.1.3)
17+
activemodel (3.2.7)
18+
activesupport (= 3.2.7)
19+
builder (~> 3.0.0)
20+
activerecord (3.2.7)
21+
activemodel (= 3.2.7)
22+
activesupport (= 3.2.7)
23+
arel (~> 3.0.2)
24+
tzinfo (~> 0.3.29)
25+
activeresource (3.2.7)
26+
activemodel (= 3.2.7)
27+
activesupport (= 3.2.7)
28+
activesupport (3.2.7)
29+
i18n (~> 0.6)
30+
multi_json (~> 1.0)
31+
arel (3.0.2)
32+
builder (3.0.0)
33+
erubis (2.7.0)
34+
hike (1.2.1)
35+
i18n (0.6.0)
36+
journey (1.0.4)
37+
json (1.7.4)
38+
mail (2.4.4)
39+
i18n (>= 0.4.0)
40+
mime-types (~> 1.16)
41+
treetop (~> 1.4.8)
42+
mime-types (1.19)
43+
minitest (3.3.0)
44+
multi_json (1.3.6)
45+
polyglot (0.3.3)
46+
rack (1.4.1)
47+
rack-cache (1.2)
48+
rack (>= 0.4)
49+
rack-ssl (1.3.2)
50+
rack
51+
rack-test (0.6.1)
52+
rack (>= 1.0)
53+
rails (3.2.7)
54+
actionmailer (= 3.2.7)
55+
actionpack (= 3.2.7)
56+
activerecord (= 3.2.7)
57+
activeresource (= 3.2.7)
58+
activesupport (= 3.2.7)
59+
bundler (~> 1.0)
60+
railties (= 3.2.7)
61+
railties (3.2.7)
62+
actionpack (= 3.2.7)
63+
activesupport (= 3.2.7)
64+
rack-ssl (~> 1.3.2)
65+
rake (>= 0.8.7)
66+
rdoc (~> 3.4)
67+
thor (>= 0.14.6, < 2.0)
68+
rake (0.9.2.2)
69+
rdoc (3.12)
70+
json (~> 1.4)
71+
sprockets (2.1.3)
72+
hike (~> 1.2)
73+
rack (~> 1.0)
74+
tilt (~> 1.1, != 1.3.0)
75+
thor (0.15.4)
76+
tilt (1.3.3)
77+
treetop (1.4.10)
78+
polyglot
79+
polyglot (>= 0.3.1)
80+
tzinfo (0.3.33)
81+
82+
PLATFORMS
83+
ruby
84+
85+
DEPENDENCIES
86+
arel
87+
minitest
88+
rack
89+
rails

Manifest.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

Rakefile

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
# -*- ruby -*-
1+
# Setup some testing
2+
require 'rake'
3+
require 'rake/testtask'
24

3-
require 'rubygems'
4-
require 'hoe'
5-
6-
Hoe.plugins.delete :rubyforge
7-
Hoe.plugin :minitest
8-
Hoe.plugin :gemspec # `gem install hoe-gemspec`
9-
Hoe.plugin :git # `gem install hoe-git`
10-
11-
Hoe.spec 'rails_autolink' do
12-
developer('Aaron Patterson', '[email protected]')
13-
developer('Juanjo Bazan', '[email protected]')
14-
developer('Akira Matsuda', '[email protected]')
15-
self.readme_file = 'README.rdoc'
16-
self.history_file = 'CHANGELOG.rdoc'
17-
self.extra_rdoc_files = FileList['*.rdoc']
18-
self.extra_deps << ['rails', '~> 3.1']
5+
Rake::TestTask.new do |t|
6+
t.libs << 'test'
7+
t.pattern = 'test/test_*.rb'
198
end
20-
21-
# vim: syntax=ruby

rails_autolink.gemspec

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Gem::Specification.new do |s|
2+
s.name = 'rails_autolink'
3+
s.version = '1.0.10'
4+
s.authors = ['Aaron Patterson', 'Juanjo Bazan', 'Akira Matsuda']
5+
s.email = '[email protected]'
6+
s.summary = 'This is an extraction of the `auto_link` method from rails. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating.'
7+
8+
s.add_dependency 'rails', '> 3.1'
9+
10+
s.files = Dir["#{File.dirname(__FILE__)}/**/*"]
11+
end

0 commit comments

Comments
 (0)