resque-reports 0.4.1 → 0.4.3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2ViZTNjNGVmZDhiNGUwNzdlMWJhYTg4ZTgzYzJmMjdhODNiMTBhYQ==
4
+ OTcxNTEyM2E0ZWM4ODVlNGJiZmQwNmY1M2IwMTIyMzkwMWRkYjU5Mg==
5
5
  data.tar.gz: !binary |-
6
- OTJlNjA5ZTI3ZjAyYjhhNjg0NjQzYTM1M2ZhZWViOWI5OWI2MWI3Nw==
6
+ NGEyNmI5MTdlYzcwYjhjYjhiNzdmZWQ4YTk4MjRjNTRlZjM1MGMyOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGY2ZjgzZGM5ZDgyZjE2OWVjNWI0MjM5ZWY5ODJjOTdjZDQxZGQ4NTg4ODE5
10
- ODc1YjY1YWJmYWNlYTk4N2VhZWNlYzBjZmM5OTY4OTA4MzkzNGE5NmZjZjJm
11
- MTA0MWNjYTVlNjVjZDBlNmQ0Y2MxMDU4YWNiZDY3OWQxNzU3OWM=
9
+ YjQyZDNlODY5YzBhZTQzMzVkZjAzOTBkMjM5NTMxOTljMjVhYmU3MTJiODBj
10
+ YjllMWZhMWEzZmI0MDU0Y2Y2YzM0ZGY0ZTgzYjc5YWQ0M2NlNjgyNjliZmUz
11
+ Zjk2MDNiMDkwY2ZkYjFiOWRjZGJlMzVjMTUxZjVkZTQ4ZDQ1YmM=
12
12
  data.tar.gz: !binary |-
13
- NTNlOGE5OTcyZGQ4ODAwMzE1NWIzMGNiNjFkZjFiNWMwMDQyMmIyY2I2OGVi
14
- ZDJkY2QxMjVmZGU4NDc0MTI4ZjBiYzJjODY1NGZjZTQyZjczYWVmMzBjMDcx
15
- NzhiZmNiMDM4MGNiODkzZWExMWUzNGJjNmZlOWI5MDQ2Y2MyMTE=
13
+ N2E5ZWE1MTNiNzY1MDdlMGIxOWY2MjRiMWZjOGMyMjUzNTI4MDJkMzQ4NDdk
14
+ MmU5MDBkMWZmODQxOTMwNzEyZDJhZWExMjQ1OTI3YWViYjhlZTJkZTRkZWEw
15
+ NzkyMWQ0YmVhZGMwZDA2ZTIxNTBhOGQxNDg4ODg5MjEzNzcwYzQ=
@@ -31,8 +31,7 @@ module Resque
31
31
  args = JSON.parse(args_json)
32
32
  force = args.pop
33
33
 
34
- init_report(report_class, args)
35
- .build(force)
34
+ init_report(report_class, args).build(force)
36
35
  end
37
36
 
38
37
  private
@@ -13,7 +13,8 @@ module Resque
13
13
  module ClassMethods
14
14
  def enqueue_to(*args) #:nodoc:
15
15
  queue = args.shift
16
- meta = enqueued?(*args) and return meta
16
+ meta = enqueued?(*args)
17
+ return meta if meta.present?
17
18
 
18
19
  meta = Resque::Plugins::Meta::Metadata.new({'meta_id' => meta_id(args), 'job_class' => self.to_s})
19
20
  meta.save
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  module Resque
3
3
  module Reports
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.3'
5
5
  end
6
6
  end
7
7
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.add_dependency 'resque-integration', '~> 1.0.1'
21
+ gem.add_dependency 'resque-integration', '~> 1.1.0'
22
22
  gem.add_dependency 'activesupport' # избавиться от зависимости
23
23
 
24
24
  gem.add_development_dependency 'bundler', '~> 1.3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque-integration
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.1
19
+ version: 1.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.1
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement