forked from zaius/spawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spawn.gemspec
28 lines (23 loc) · 1.04 KB
/
spawn.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{spawn}
s.version = "1.0.1"
s.required_rubygems_version = ">= 1.3.6"
s.authors = ['Tom Anderson']
s.email = ['[email protected]']
s.date = '2010-08-08'
s.homepage = %q{http://github.com/tra/spawn}
s.summary = %q{Easily fork OR thread long-running sections of code in Ruby}
s.description = %q{This plugin provides a 'spawn' method to easily fork OR
thread long-running sections of code so that your application can return
results to your users more quickly. This plugin works by creating new database
connections in ActiveRecord::Base for the spawned block.
The plugin also patches ActiveRecord::Base to handle some known bugs when using
threads (see lib/patches.rb).}
exclude_folders = 'spec/rails/{doc,lib,log,nbproject,tmp,vendor,test}'
exclude_files = Dir['**/*.log'] + Dir[exclude_folders+'/**/*'] + Dir[exclude_folders]
s.files = Dir['{examples,lib,tasks,spec}/**/*'] +
%w(CHANGELOG LICENSE README.markdown) -
exclude_files
s.require_paths = ["lib"]
end