active_job-query 1.0.0.alpha1 → 1.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c82ad0ec4ae81745ed629ac12dc71e72bd8c4a49
4
- data.tar.gz: 7b6cb8127d1923cdc34e942acbf0a91d76ec0d48
3
+ metadata.gz: fd1e3b339312b1825e501ad3307e318702df2baa
4
+ data.tar.gz: c0e7be45ea7cfa84d90cc2241a4d43e57c211517
5
5
  SHA512:
6
- metadata.gz: cea0396f776cbbc41a47a59a6612b5b0a4e297109d041aff464eef14c15912671e2bde089c5052c0b1717d4c833d5b2d78864783579a346567dd12e4e5fc706d
7
- data.tar.gz: 46f895fccf1896004a26d76dcb56fdd0eb6d6239cb8700616c59eebe24db970ff7f8d2b30dced06602b41ce7c70d4ad1166b3e3311aa9ed2d5ad216580c70e78
6
+ metadata.gz: eb678ade9d6243b9e2a010dbb0c0d7c440fdd1f2d2ae6d0546ca5f70c7d21484ef8cf5762f2facc30c81b269c0287b92163e6fdbb79b6639b8665f98fa0df7ef
7
+ data.tar.gz: 4716789171e3a361638f1fa64803b100ac791cea30617c72c6439225018186133404e1f43555ebb6b8c4489e8baf7c12ebd5bfa509c1beb5f00156b8ae603bc2
data/README.md CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  WARINING: This is alpha level release. Use it for testing only! (or if you want to contribute :) )
4
4
 
5
- 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/active_job/query`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- TODO: Delete this and the text above, and describe your gem
5
+ ActiveJob::Query is an wrapper around queueing adapter jobs query interface. It allows you to fetch jobs and manipulate the jobs.
8
6
 
9
7
  ## Installation
10
8
 
@@ -59,13 +57,7 @@ Fetching all jobs on a specific queue
59
57
  ActiveJob::Query.queues[0].jobs
60
58
  ```
61
59
 
62
- ## Development
63
-
64
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
65
-
66
- 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).
67
-
68
60
  ## Contributing
69
61
 
70
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/active_job-query.
62
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cristianbica/active_job-query.
71
63
 
@@ -9,9 +9,9 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Cristian Bica"]
10
10
  spec.email = ["cristian.bica@gmail.com"]
11
11
 
12
- spec.summary = %q{Write a short summary, because Rubygems requires one.}
13
- spec.description = %q{Write a longer description or delete this line.}
14
- spec.homepage = "http://github.com"
12
+ spec.summary = %q{ActiveJob query interface.}
13
+ spec.description = %q{ActiveJob::Query allows you query enqueued jobs and cancel jobs.}
14
+ spec.homepage = "https://github.com/cristianbica/active_job-query"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.require_paths = ["lib"]
@@ -13,7 +13,7 @@ module ActiveJob
13
13
  class Jobs
14
14
  attr_accessor :jobs, :queue, :adapter, :type, :klass
15
15
  include Enumerable
16
- delegate *Enumerable.public_instance_methods, to: :jobs
16
+ delegate :each, to: :jobs
17
17
  alias :size :count
18
18
 
19
19
  # Returns a collection of jobs.
@@ -13,7 +13,7 @@ module ActiveJob
13
13
  class Queues
14
14
  attr_accessor :queues, :adapter
15
15
  include Enumerable
16
- delegate *Enumerable.public_instance_methods, to: :queues
16
+ delegate :each, to: :queues
17
17
 
18
18
  # Returns a collection of queues an adapter is aware of.
19
19
  #
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module Query
3
- VERSION = "1.0.0.alpha1"
3
+ VERSION = "1.0.0.alpha2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_job-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha1
4
+ version: 1.0.0.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristian Bica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-16 00:00:00.000000000 Z
11
+ date: 2015-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- description: Write a longer description or delete this line.
55
+ description: ActiveJob::Query allows you query enqueued jobs and cancel jobs.
56
56
  email:
57
57
  - cristian.bica@gmail.com
58
58
  executables: []
@@ -75,7 +75,7 @@ files:
75
75
  - lib/active_job/query/queues.rb
76
76
  - lib/active_job/query/railtie.rb
77
77
  - lib/active_job/query/version.rb
78
- homepage: http://github.com
78
+ homepage: https://github.com/cristianbica/active_job-query
79
79
  licenses: []
80
80
  metadata: {}
81
81
  post_install_message:
@@ -97,5 +97,5 @@ rubyforge_project:
97
97
  rubygems_version: 2.4.5
98
98
  signing_key:
99
99
  specification_version: 4
100
- summary: Write a short summary, because Rubygems requires one.
100
+ summary: ActiveJob query interface.
101
101
  test_files: []