Skip to content

Commit

Permalink
Throw the Hoe on the street and go with a regular gemspec setup and a…
Browse files Browse the repository at this point in the history
…llow this to be used with Rails 4+
  • Loading branch information
dhh committed Jul 31, 2012
1 parent 729daa8 commit 9f3713e
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 30 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Expand Up @@ -3,6 +3,4 @@ source 'http://rubygems.org'
gem 'rails'
gem 'arel'
gem 'rack'
gem 'hoe'
gem 'minitest'

89 changes: 89 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,89 @@
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.7)
actionpack (= 3.2.7)
mail (~> 2.4.4)
actionpack (3.2.7)
activemodel (= 3.2.7)
activesupport (= 3.2.7)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.7)
activesupport (= 3.2.7)
builder (~> 3.0.0)
activerecord (3.2.7)
activemodel (= 3.2.7)
activesupport (= 3.2.7)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.7)
activemodel (= 3.2.7)
activesupport (= 3.2.7)
activesupport (3.2.7)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
builder (3.0.0)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.4)
json (1.7.4)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
minitest (3.3.0)
multi_json (1.3.6)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.7)
actionmailer (= 3.2.7)
actionpack (= 3.2.7)
activerecord (= 3.2.7)
activeresource (= 3.2.7)
activesupport (= 3.2.7)
bundler (~> 1.0)
railties (= 3.2.7)
railties (3.2.7)
actionpack (= 3.2.7)
activesupport (= 3.2.7)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)

PLATFORMS
ruby

DEPENDENCIES
arel
minitest
rack
rails
9 changes: 0 additions & 9 deletions Manifest.txt

This file was deleted.

25 changes: 6 additions & 19 deletions Rakefile
@@ -1,21 +1,8 @@
# -*- ruby -*-
# Setup some testing
require 'rake'
require 'rake/testtask'

require 'rubygems'
require 'hoe'

Hoe.plugins.delete :rubyforge
Hoe.plugin :minitest
Hoe.plugin :gemspec # `gem install hoe-gemspec`
Hoe.plugin :git # `gem install hoe-git`

Hoe.spec 'rails_autolink' do
developer('Aaron Patterson', 'aaron@tenderlovemaking.com')
developer('Juanjo Bazan', 'jjbazan@gmail.com')
developer('Akira Matsuda', 'ronnie@dio.jp')
self.readme_file = 'README.rdoc'
self.history_file = 'CHANGELOG.rdoc'
self.extra_rdoc_files = FileList['*.rdoc']
self.extra_deps << ['rails', '~> 3.1']
Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/test_*.rb'
end

# vim: syntax=ruby
11 changes: 11 additions & 0 deletions rails_autolink.gemspec
@@ -0,0 +1,11 @@
Gem::Specification.new do |s|
s.name = 'rails_autolink'
s.version = '1.0.10'
s.authors = ['Aaron Patterson', 'Juanjo Bazan', 'Akira Matsuda']
s.email = 'aaron@tenderlovemaking.com'
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.'

s.add_dependency 'rails', '> 3.1'

s.files = Dir["#{File.dirname(__FILE__)}/**/*"]
end

0 comments on commit 9f3713e

Please sign in to comment.