resque-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ test_app
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in resque-rails.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ resque-rails
2
+ ====
3
+
4
+ The railtie for setup resque. It provides an initializer and rake tasks.
5
+
6
+ module Resque::Rails
7
+ class Railtie < Rails::Railtie
8
+ initializer 'resque.set_config' do
9
+ Resque.redis ||= 'localhost:6379'
10
+ end
11
+
12
+ rake_tasks do
13
+ require 'resque/tasks'
14
+ task "resque:setup" => :environment
15
+ end
16
+ end
17
+ end
18
+
19
+ That's it!
20
+
21
+ See also: [https://github.com/defunkt/resque](https://github.com/defunkt/resque)
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ require "resque"
2
+ require "resque-rails/version"
3
+ require "resque-rails/railtie"
@@ -0,0 +1,12 @@
1
+ module Resque::Rails
2
+ class Railtie < Rails::Railtie
3
+ initializer 'resque.set_config' do
4
+ Resque.redis ||= 'localhost:6379'
5
+ end
6
+
7
+ rake_tasks do
8
+ require 'resque/tasks'
9
+ task "resque:setup" => :environment
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ module Resque
2
+ module Rails
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "resque-rails/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "resque-rails"
7
+ s.version = Resque::Rails::VERSION
8
+ s.authors = ["jugyo"]
9
+ s.email = ["jugyo.org@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{The railtie for setup resque.}
12
+ s.description = %q{The railtie for setup resque. It provides an initializer and rake tasks.}
13
+
14
+ s.rubyforge_project = "resque-rails"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ s.add_runtime_dependency "resque"
24
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: resque-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - jugyo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: resque
16
+ requirement: &70290903243220 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70290903243220
25
+ description: The railtie for setup resque. It provides an initializer and rake tasks.
26
+ email:
27
+ - jugyo.org@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - README.md
35
+ - Rakefile
36
+ - lib/resque-rails.rb
37
+ - lib/resque-rails/railtie.rb
38
+ - lib/resque-rails/version.rb
39
+ - resque-rails.gemspec
40
+ homepage: ''
41
+ licenses: []
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project: resque-rails
60
+ rubygems_version: 1.8.10
61
+ signing_key:
62
+ specification_version: 3
63
+ summary: The railtie for setup resque.
64
+ test_files: []