midget_jobs 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 5b97d31874a18423a96d2ac76fa0137db3ba641cd02753138f1b75d6a59f830e
4
- data.tar.gz: 053f4aa574341fed2479523d8ca320f0e974c445fc4ceaeec39c49ad675da294
3
+ metadata.gz: cd462b43408ef974531fc39aad8048d0fc13c80de959c2665d9c8307ea7fc833
4
+ data.tar.gz: 00eaa7289f0c81232256e040b30cb32c52d5aa7504c85f8b51721199f0b28dc1
5
5
  SHA512:
6
- metadata.gz: 65507a94451f88790e18a4d692d19b971b02d476e62df55349775d09ea9c467d7c8749c2557d686f6fd6a3cb6d15881ab0fb764542df3f0833054df83a8f9c25
7
- data.tar.gz: 49615de063d22529e7bf1a08b132621e13d07b7e32772431a42e4fe7e3054cc194e983e2fa9b65dc388b66649e25489ff3ddf1959fca6f4b7485fc985a07b605
6
+ metadata.gz: 32d68434dc67f34b805075d750836f077114e1c5d5917270f49e9249369ee17ac04ce842b8496587562976a8bfeb2a7c4de510d28af8edde5077e4d087a02d01
7
+ data.tar.gz: a2ebc9c7d22ece3ff37ee6610d91594f41f4d209be8d6ba5eee7fdb8be0e5961bb293e33f6346b5205a21e58c757a2ca996cef0457e7552f59d0dc160979d1f4
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # MidgetJob
1
+ # MidgetJobs
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/midget_job`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ MidgetJobs is simple implementation of background jobs for [Ruby on Rails](https://rubyonrails.org). I does not meant to be used without it.
4
+ It is connected to [ActiveJob](https://github.com/rails/rails/tree/master/activejob) and [PostgreSQL](https://www.postgresql.org) using its triggers, notifications and listening.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
@@ -15,24 +15,26 @@ gem 'midget_job'
15
15
  And then execute:
16
16
 
17
17
  $ bundle
18
+
19
+ Then run
18
20
 
19
- Or install it yourself as:
20
-
21
- $ gem install midget_job
22
-
21
+ $ rails generate midget_jobs:install
22
+
23
+ This generator creates an initializer file at config/initializers and migrations to db/migrate
24
+
23
25
  ## Usage
24
26
 
25
- TODO: Write usage instructions here
27
+ Just use [ActiveJob](https://github.com/rails/rails/tree/master/activejob) as described in [Guides](https://guides.rubyonrails.org/active_job_basics.html)
26
28
 
27
29
  ## Development
28
30
 
29
31
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
32
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
+ To install this gem onto your local machine, run `bundle exec rake install`.
32
34
 
33
35
  ## Contributing
34
36
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/midget_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.
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jchsoft/midget_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
38
 
37
39
  ## License
38
40
 
@@ -25,7 +25,7 @@ module MidgetJobs
25
25
  when 'INSERT'
26
26
  @scheduler.wakeup!
27
27
  else
28
- raise "unknown action #{hash_data[:action]}"
28
+ raise ArgumentError, "unknown action #{hash_data[:action]}"
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module MidgetJobs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midget_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - josefchmel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler