adrian 2.0.1 → 2.0.2

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
- SHA1:
3
- metadata.gz: 8f73a613da14daf5853a7cf3293d631206cccb95
4
- data.tar.gz: a334dbf9245a776ab4c8183ce2bd85ccb63b432c
2
+ SHA256:
3
+ metadata.gz: cd46c00d899348eb3e37cc40893fa9f1c213900e0f0c7117ffb21079106f3231
4
+ data.tar.gz: 6dc75b90b8596924e9acb8ac89433177c9d0f931291e32cdddc4dc2179f1e2e3
5
5
  SHA512:
6
- metadata.gz: 63b1f95bf533968cc32cb7f483af6747199c4d8b0623a55ffbbc5165b493166196a1571a3a651347ae9e1c3a291e1b6a5b40d8d54b84e28d8eaeba0e3e1badcf
7
- data.tar.gz: 1f874b8b498ac09771a4a11c2dad9cb3bbcfc890ca9d40d862d564b160a56ba03e1202460c8b21a96a15faa4c3869716291ab02b55fbcec5bd7aa5093af4eae0
6
+ metadata.gz: efdbca78ab844f55854b2df9dce5fd7af8d74bdfd3391c0e15ab36002879358b83a4f232c06ba369a18950501a9d41b54945cc42d75d891b8367f9b674fd123a
7
+ data.tar.gz: 9954277f4e2e0003bc7293bcdb4e03b4e33c5399fe8d284d23b85826e65902db736c3dcf61f6e8a27637d96d536b4ead433c53873913b571b8161590239a1673
@@ -12,12 +12,12 @@ module Adrian
12
12
  @options = options
13
13
  end
14
14
 
15
- def on_failure(*exceptions)
16
- @failure_handler.add_rule(*exceptions, &Proc.new)
15
+ def on_failure(*exceptions, &blk)
16
+ @failure_handler.add_rule(*exceptions, &blk)
17
17
  end
18
18
 
19
- def on_done
20
- @failure_handler.add_rule(nil, &Proc.new)
19
+ def on_done(&blk)
20
+ @failure_handler.add_rule(nil, &blk)
21
21
  end
22
22
 
23
23
  def start(queue, worker_class)
@@ -1,3 +1,3 @@
1
1
  module Adrian
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
data/lib/adrian.rb CHANGED
@@ -9,6 +9,7 @@ module Adrian
9
9
  autoload :FileItem, 'adrian/file_item'
10
10
  autoload :Filters, 'adrian/filters'
11
11
  autoload :GirlFridayDispatcher, 'adrian/girl_friday_dispatcher'
12
+ autoload :Queue, 'adrian/queue'
12
13
  autoload :QueueItem, 'adrian/queue_item'
13
14
  autoload :Worker, 'adrian/worker'
14
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adrian
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mick Staugaard
@@ -9,50 +9,64 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-22 00:00:00.000000000 Z
12
+ date: 2023-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '13'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '13'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: minitest
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: '5'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: '5'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: girl_friday
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: 0.11.0
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: 0.11.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: timecop
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.9'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.9'
56
70
  description: A work dispatcher and some queue implementations
57
71
  email:
58
72
  executables: []
@@ -83,17 +97,16 @@ require_paths:
83
97
  - lib
84
98
  required_ruby_version: !ruby/object:Gem::Requirement
85
99
  requirements:
86
- - - '>='
100
+ - - ">="
87
101
  - !ruby/object:Gem::Version
88
102
  version: '0'
89
103
  required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  requirements:
91
- - - '>='
105
+ - - ">="
92
106
  - !ruby/object:Gem::Version
93
107
  version: '0'
94
108
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.0.14
109
+ rubygems_version: 3.0.3.1
97
110
  signing_key:
98
111
  specification_version: 4
99
112
  summary: Adrian does not do any real work, but is really good at delegating it