batch_manager 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzcyOGI4YjBhYTFjZmFjNGJhMWZiYTc4M2EyYmRiMjNmYjk0NTM1ZQ==
4
+ MDExOTIzMjEyZmFlZjkxMzBlZmMxYThjYzBjMDFkZWU5ZWU2YmZkMQ==
5
5
  data.tar.gz: !binary |-
6
- MDZlMDJjZjNiMDgwOTA2ZjYxMWQxM2NiOTM0NWI5ZmUyODZjZTNiOA==
6
+ ZjYxOTNkYzY0ZTQwOGY3NzU5ODIxZDQ2ZGNjNDc5ODRmYTdhZjllMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGQ3Y2I4NDA4NmVjYWVhNTJiMGQ2MjJkYWM1Y2IzNmU3Y2ZiNDQyZjkyNmFh
10
- OWE0ZjNkNDMyMjQzNjQ4NTdiMDkyNjYwOTE1YWFkMjE1YWEyZDNlNGFiZWY2
11
- MDcwYTNjZDg1YmZlYjAyYjg4MDllZjQzMzMxNzc3ODkwOTk3NDM=
9
+ OGEzNDRmNTdiYTU3Y2VjZWYzNDI4OTVkYTgxZjk4MDAyZWNhMWI1MGU2MjMw
10
+ ZjJlYjhjOWIwYjAwNDc0YTQ3Nzk0MGQ2MGUyZDZhNDRhZDA2NWQ3NzlhYjRl
11
+ NjIyZmVlMmVhNDIyZGEwMTExZGI3NWExMjRjNTlmZmU5YTY0MDY=
12
12
  data.tar.gz: !binary |-
13
- NGQxZmFhNjIzYjFhZWM5OGY4YmYyNDc1ZDk5NjI3ZDg2YjhlYzE3ZDk4MzBk
14
- MjFkN2RmYTczNTJmZGNhZGFkZTAxODQ3MGNhOTY0MzAyYzQ4MGZiMTRhNDNl
15
- Zjc0ZDI0NjcyZTczMWFhNDVmMDliYTU4NWIxMDdkZjI1YmFjMjQ=
13
+ YmFhYjA5MGY5Nzk2YTIxZDdjNDY4MzlhZGQ4ZGQyM2U5Mzg2ZWFlMzc3OTQ4
14
+ NDY1YWFmZGMxZjljNmY5MGE5NmJkYmYyNGY3MTljMDRmYmE2MWJmZjE2ZGJj
15
+ OWM3YjRkNDVmMjUwYWJhYmRlOTA0YTMxM2UyMTY2N2Q5YzA2YjI=
data/README.md CHANGED
@@ -80,7 +80,7 @@ Mount the web interface in the routes file.
80
80
 
81
81
  You can also use web interface to execute batches.
82
82
 
83
- If [resque](https://github.com/resque/resque) installed in you application, the batch script can be executed asynchronous. And the log can be checked on real time in the brower.
83
+ If [resque](https://github.com/resque/resque) installed in you application and the resque worker started, the batch script can be executed asynchronous through the worker. And the log can be checked on real time in the brower. Otherwise the batch script will be executed synchronous.
84
84
 
85
85
  The QUEUE's name will be **"batch_manager".**
86
86
 
@@ -8,7 +8,7 @@ module BatchManager
8
8
  begin
9
9
  require 'resque'
10
10
  defined?(Resque) && resque_worker
11
- rescue
11
+ rescue LoadError
12
12
  false
13
13
  end
14
14
  end
@@ -10,5 +10,9 @@ module BatchManager
10
10
  config.batch_manager.batch_dir = "script/batch"
11
11
  config.batch_manager.save_log = true
12
12
  config.batch_manager.log_dir = "log/batch"
13
+
14
+ initializer "batch_manager.assets.precompile" do |app|
15
+ app.config.assets.precompile += %w(batch_manager/editor.js)
16
+ end
13
17
  end
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module BatchManager
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -1,3 +1,6 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+
1
4
  module Rails
2
5
  module Generators
3
6
  class BatchGenerator < NamedBase
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batch_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weihu Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-14 00:00:00.000000000 Z
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails