guard-delayed_jobs 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 693d50885d06c376fbceb1e65d28a1c71bcd00c7
4
- data.tar.gz: 0651ddcc5618c159732f67fb0228af2df1bd5621
3
+ metadata.gz: 8ea4533d051a3bcd04a92147ab7abdbb3106d50a
4
+ data.tar.gz: 0b7219978cea7ce508d4bf1a048a730c76772978
5
5
  SHA512:
6
- metadata.gz: 66aee6c476f2a9f16749a8ccdf98731952a7cc2f3c89b65b2ac840bd40c6287d5d5dc6c523daf59a7ca51400c5faf938fdd94be095e6a23ead02ed7fbec32c6a
7
- data.tar.gz: e89f98fe880bcd7877844135dbf6452bfbcbb8c864d30f2b4f8345140f414ec693a942b4b8f16f927d86e72b78b061692a950c8698cd47822acc4d509f2e5581
6
+ metadata.gz: 0fee48541ce235a0052cee02a1cd371c664fe9471739f043e0354a331ea97ce969b56fd3c431f1a9694ab181dc7b0fef601356d924e5660e5f94f6bf46f5e916
7
+ data.tar.gz: e3ddee9ab2d45a900b734cd662391a15c95b304c1dd532f6ab14152aebed6adcdfeba68e71df3004191c0c1f538fde7310bfb3dc2e20f0b2ad526c619f2a2652
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /*.gem
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # Guard::Delayed::Job
1
+ [![Gem Version](https://badge.fury.io/rb/guard-delayed_jobs.png)](https://badge.fury.io/rb/guard-delayed_jobs)
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/guard/delayed/job`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ # Guard::DelayedJobs
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ A guard plugin to safely control `Delayed::Job` daemon.
6
6
 
7
7
  ## Installation
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'guard-delayed-job'
12
+ gem 'guard-delayed_jobs'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,11 +18,17 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install guard-delayed-job
21
+ $ gem install guard-delayed_jobs
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Run this line in your terminal:
26
+
27
+ ```shell
28
+ bundle exec guard init delayed_jobs
29
+ ```
30
+
31
+ And then modify your local `Guardfile` as needed
26
32
 
27
33
  ## Development
28
34
 
@@ -32,7 +38,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
38
 
33
39
  ## Contributing
34
40
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/guard-delayed-job. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/thelonelyghost/guard-delayed_jobs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
42
 
37
43
 
38
44
  ## License
@@ -6,12 +6,6 @@ module Guard
6
6
  class DelayedJobs < Plugin
7
7
  include DelayedJobsVersion
8
8
 
9
- # Allowed options are:
10
- #
11
- #
12
- #
13
- #
14
- #
15
9
  def initialize(opt = {})
16
10
  super
17
11
  @opt = opt
@@ -0,0 +1,14 @@
1
+ # Allowable options are:
2
+ # :environment defaults to 'test'
3
+ # :min_priority e.g. 2
4
+ # :max_priority e.g. 10
5
+ # :number_of_workers e.g. 2
6
+ # :pid_dir e.g. tmp/pids Specifies an alternate directory in which to store the process ids.
7
+ # :identifier A numeric identifier for the worker.
8
+ # :monitor Start monitor process.
9
+ # :sleep-delay N Amount of time to sleep in seconds when no jobs are found
10
+ # :prefix NAME String to be prefixed to worker process names
11
+ # :command defaults to 'bin/delayed_jobs'
12
+ guard 'delayed_jobs', environment: 'development' do
13
+ watch(%r{^app/(.+)\.rb})
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module DelayedJobsVersion
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-delayed_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alexander
@@ -130,6 +130,7 @@ files:
130
130
  - guard-delayed_jobs.gemspec
131
131
  - lib/guard-delayed_jobs.rb
132
132
  - lib/guard/delayed_jobs.rb
133
+ - lib/guard/delayed_jobs/templates/Guardfile
133
134
  - lib/guard/delayed_jobs/version.rb
134
135
  homepage: https://github.com/thelonelyghost/guard-delayed_jobs
135
136
  licenses: