threadless 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/threadless.rb +9 -10
  3. data/threadless.gemspec +1 -1
  4. metadata +1 -1
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('threadless', '0.1.0') do |p|
5
+ Echoe.new('threadless', '0.1.1') do |p|
6
6
  p.description = "run_later without threads"
7
7
  p.url = "http://github.com/pboy/threadless"
8
8
  p.author = "pboy"
data/lib/threadless.rb CHANGED
@@ -71,15 +71,14 @@ class Threadless
71
71
 
72
72
  [ status, headers, body ]
73
73
  end
74
- end
75
-
76
- #
77
- # -- activate instance methods and middleware, on Rails
78
-
79
- if defined?(ActionController)
80
- ActionController::Base.send(:include, Threadless::InstanceMethods)
81
- ActionController::Base.send(:helper, Threadless::InstanceMethods)
74
+
75
+ #
76
+ # -- activate instance methods and middleware, on Rails
77
+ def self.init
78
+ ActionController::Base.send(:include, Threadless::InstanceMethods)
79
+ ActionController::Base.send(:helper, Threadless::InstanceMethods)
82
80
 
83
- middleware = ActionController::MiddlewareStack::Middleware.new(self)
84
- ActionController::Dispatcher.middleware.push middleware
81
+ middleware = ActionController::MiddlewareStack::Middleware.new(self)
82
+ ActionController::Dispatcher.middleware.push middleware
83
+ end
85
84
  end
data/threadless.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{threadless}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["pboy"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threadless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pboy