Skip to content

Loading…

Throw the Hoe on the street and go with a regular gemspec setup and allow this to be used with Rails 4+ #19

Merged
merged 1 commit into from

2 participants

@dhh

What she said.

@xuanxu xuanxu merged commit 471a430 into tenderlove:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 31, 2012
  1. @dhh

    Throw the Hoe on the street and go with a regular gemspec setup and a…

    dhh committed
    …llow this to be used with Rails 4+
This page is out of date. Refresh to see the latest.
Showing with 106 additions and 30 deletions.
  1. +0 −2 Gemfile
  2. +89 −0 Gemfile.lock
  3. +0 −9 Manifest.txt
  4. +6 −19 Rakefile
  5. +11 −0 rails_autolink.gemspec
View
2 Gemfile
@@ -3,6 +3,4 @@ source 'http://rubygems.org'
gem 'rails'
gem 'arel'
gem 'rack'
-gem 'hoe'
gem 'minitest'
-
View
89 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
View
9 Manifest.txt
@@ -1,9 +0,0 @@
-.autotest
-CHANGELOG.rdoc
-Gemfile
-Manifest.txt
-README.rdoc
-Rakefile
-lib/rails_autolink.rb
-lib/rails_autolink/helpers.rb
-test/test_rails_autolink.rb
View
25 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
View
11 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
Something went wrong with that request. Please try again.