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 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 ... or wherever
11
+ ## In your application.js (or wherever)
10
12
 
11
- new EventQueue("my_queue", {
12
- "console:log": function(options){
13
- console.log(options);
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
- def index
20
- enqueue_client_job("my_queue", "console:log", "Hello World")
21
- end
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
@@ -20,8 +20,9 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
22
22
 
23
-
24
-
23
+ require 'rspec/core/rake_task'
24
+ RSpec::Core::RakeTask.new(:spec)
25
+ task :default => :spec
25
26
 
26
27
  Bundler::GemHelper.install_tasks
27
28
 
@@ -1,3 +1,3 @@
1
1
  module ClientJobQueue
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: 2012-12-29 00:00:00.000000000 Z
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.9
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.9
29
+ version: '3.2'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: sqlite3
32
32
  requirement: !ruby/object:Gem::Requirement