Skip to content
Browse files

t

  • Loading branch information...
1 parent d746a3a commit a2353efb49b219856b108a9d24553256a2cd3700 @sinisterchipmunk committed Oct 31, 2010
View
11 acts_as_awesome.gemspec
@@ -32,10 +32,17 @@ Gem::Specification.new do |s|
"test/test_acts_as_awesome.rb",
"test/test_app/.gitignore",
"test/test_app/Gemfile",
+ "test/test_app/Gemfile.lock",
"test/test_app/README",
"test/test_app/Rakefile",
+ "test/test_app/app/controllers/another_controller.rb",
"test/test_app/app/controllers/application_controller.rb",
+ "test/test_app/app/controllers/awesome_controller.rb",
+ "test/test_app/app/helpers/another_helper.rb",
"test/test_app/app/helpers/application_helper.rb",
+ "test/test_app/app/helpers/awesome_helper.rb",
+ "test/test_app/app/views/another/index.html.erb",
+ "test/test_app/app/views/awesome/index.html.erb",
"test/test_app/app/views/layouts/application.html.erb",
"test/test_app/config.ru",
"test/test_app/config/application.rb",
@@ -70,8 +77,12 @@ Gem::Specification.new do |s|
"test/test_app/public/robots.txt",
"test/test_app/public/stylesheets/.gitkeep",
"test/test_app/script/rails",
+ "test/test_app/test/functional/another_controller_test.rb",
+ "test/test_app/test/functional/awesome_controller_test.rb",
"test/test_app/test/performance/browsing_test.rb",
"test/test_app/test/test_helper.rb",
+ "test/test_app/test/unit/helpers/another_helper_test.rb",
+ "test/test_app/test/unit/helpers/awesome_helper_test.rb",
"test/test_app/vendor/plugins/.gitkeep"
]
s.homepage = %q{http://github.com/sinisterchipmunk/acts_as_awesome}
View
2 lib/acts_as_awesome.rb
@@ -1,5 +1,5 @@
require 'active_support/core_ext'
-require File.join(File.dirname(__FILE__), "acts_as_awesome/railtie")
+p "loading main"
module ActsAsAwesome
autoload :Hook, File.join(File.dirname(__FILE__), "acts_as_awesome/hook")
View
18 lib/acts_as_awesome/railtie.rb
@@ -1,10 +1,18 @@
require 'rails'
require 'acts_as_awesome'
-class ActsAsAwesome::Railtie < Railtie
- config.to_prepare do
- p "hook added"
- ApplicationController.send(:extend, ActsAsAwesome::Hook)
+p "Railtie loaded"
+
+begin
+module ActsAsAwesome
+ class Railtie < Railtie
+ config.to_prepare do
+ p "hook added"
+ ApplicationController.send(:extend, ActsAsAwesome::Hook)
+ end
end
end
-
+rescue
+p $!, $!.message
+raise $!
+end
View
2 test/test_app/Gemfile
@@ -1,7 +1,7 @@
source 'http://rubygems.org'
gem 'rails', '3.0.0'
-gem 'acts_as_awesome', :git => "../.."
+gem 'acts_as_awesome', :git => File.expand_path("../..")
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
View
2 test/test_app/app/controllers/awesome_controller.rb
@@ -1,5 +1,5 @@
class AwesomeController < ApplicationController
-# acts_as_awesome
+ acts_as_awesome
def index

0 comments on commit a2353ef

Please sign in to comment.
Something went wrong with that request. Please try again.