get_back 0.0.1-java → 0.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -2
- data/get_back.gemspec +1 -1
- metadata +43 -38
data/README.md
CHANGED
@@ -22,9 +22,18 @@ it could take too long. Make it get back!
|
|
22
22
|
|
23
23
|
end
|
24
24
|
|
25
|
-
Now the send_email method will *always* run in a separate thread.
|
25
|
+
Now the send_email method will *always* run in a separate thread. For example, this code:
|
26
26
|
|
27
|
-
|
27
|
+
u = User.new
|
28
|
+
u.send_email("joining")
|
29
|
+
puts 'done'
|
30
|
+
|
31
|
+
Might yield this output:
|
32
|
+
|
33
|
+
> done
|
34
|
+
> Thanks for joining my website
|
35
|
+
|
36
|
+
The background methods are run in a separate thread, which is pulled from a pool. If you need to limit the
|
28
37
|
concurrency of a method, you can fix the pool size:
|
29
38
|
|
30
39
|
get_back :send_email, :pool => 10
|
data/get_back.gemspec
CHANGED
metadata
CHANGED
@@ -1,55 +1,60 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: get_back
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.0
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
- Joe Kutner
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Joe Kutner
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
12
|
+
|
13
|
+
date: 2012-02-23 00:00:00 Z
|
14
14
|
dependencies: []
|
15
|
+
|
15
16
|
description: Easy Background Jobs for JRuby
|
16
|
-
email:
|
17
|
-
- jpkutner@gmail.com
|
17
|
+
email:
|
18
|
+
- jpkutner@gmail.com
|
18
19
|
executables: []
|
20
|
+
|
19
21
|
extensions: []
|
22
|
+
|
20
23
|
extra_rdoc_files: []
|
21
|
-
|
22
|
-
|
23
|
-
- lib/get_back
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
|
24
|
+
|
25
|
+
files:
|
26
|
+
- lib/get_back.rb
|
27
|
+
- lib/get_back/jojo.rb
|
28
|
+
- spec/happy_path_spec.rb
|
29
|
+
- README.md
|
30
|
+
- LICENSE.txt
|
31
|
+
- get_back.gemspec
|
29
32
|
homepage: http://github.com/jkutner/get_back
|
30
33
|
licenses: []
|
31
|
-
|
34
|
+
|
35
|
+
post_install_message:
|
32
36
|
rdoc_options: []
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
- - ! '>='
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0'
|
37
|
+
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
41
|
none: false
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
47
|
none: false
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: "0"
|
47
52
|
requirements: []
|
48
|
-
|
49
|
-
|
50
|
-
|
53
|
+
|
54
|
+
rubyforge_project:
|
55
|
+
rubygems_version: 1.8.15
|
56
|
+
signing_key:
|
51
57
|
specification_version: 3
|
52
58
|
summary: Easy Background Jobs for JRuby
|
53
|
-
test_files:
|
54
|
-
- spec/happy_path_spec.rb
|
55
|
-
...
|
59
|
+
test_files:
|
60
|
+
- spec/happy_path_spec.rb
|