client_job_queue 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -9
- data/Rakefile +3 -2
- data/lib/client_job_queue/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
# Introduction
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/starrhorne/client_job_queue.png?branch=master)](https://travis-ci.org/starrhorne/client_job_queue)
|
4
|
+
|
3
5
|
This rails engine lets you invoke client-side workers from your
|
4
6
|
controllers without having to do ugly things like dynamically build JS
|
5
7
|
in your views.
|
6
8
|
|
7
9
|
# Setup
|
8
10
|
|
9
|
-
## In your application.js
|
11
|
+
## In your application.js (or wherever)
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
new EventQueue("my_queue", {
|
14
|
+
"console:log": function(options){
|
15
|
+
console.log(options);
|
16
|
+
}
|
17
|
+
})
|
16
18
|
|
17
19
|
## In your controller
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
def index
|
22
|
+
enqueue_client_job("my_queue", "console:log", "Hello World")
|
23
|
+
end
|
22
24
|
|
23
25
|
# Warning
|
24
26
|
|
data/Rakefile
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_job_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2
|
21
|
+
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2
|
29
|
+
version: '3.2'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sqlite3
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|