refried 0.0.6.pre.rc3 → 0.0.6.pre.rc4
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 +4 -4
- data/lib/refried.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43105e6ae546762ab954fd3f9ef111058bcac9ac
|
4
|
+
data.tar.gz: f7a5651994df867f69b66d5547df63cd934eb297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 148422cb8db17cb63748463040a6b9f17b137e1006fe630d8d17e29507ce4c054dfa4788ea1764376703e6c2f823d79cda155ed4a0f5f5b3a1bbf2558bd9b9d8
|
7
|
+
data.tar.gz: fd82cea8eefffe841a7e2e37c7c433d925257f4caf88e2e5aec39588feb172054e82c8049f1f5b0dadd140cd9fd3b2dceb4db59624cb97bf901198f95d2a1528
|
data/lib/refried.rb
CHANGED
@@ -4,6 +4,7 @@ require 'refried/tubes'
|
|
4
4
|
require 'refried/puter'
|
5
5
|
require 'refried/getter'
|
6
6
|
require 'refried/tube'
|
7
|
+
require 'refried/jobs'
|
7
8
|
|
8
9
|
# Refried core API methods
|
9
10
|
# based in part on the design of backburner (https://github.com/nesquena/backburner MIT license)
|
@@ -17,7 +18,7 @@ module Refried
|
|
17
18
|
# @param block [Block] an optional configuration block
|
18
19
|
# @return [Configuration] the current configuration object
|
19
20
|
def configure(opts = {}, &block)
|
20
|
-
if opts.has_key?
|
21
|
+
if opts.has_key?(:reset) && opts[:reset]
|
21
22
|
@configuration = nil
|
22
23
|
end
|
23
24
|
yield(configuration) if block_given?
|
@@ -37,5 +38,12 @@ module Refried
|
|
37
38
|
def tubes
|
38
39
|
@tubes ||= Tubes.new
|
39
40
|
end
|
41
|
+
|
42
|
+
# Returns the Beaneater::Jobs object, which exposes methods the allow finding jobs
|
43
|
+
#
|
44
|
+
# @return [Beaneater::Jobs] the object for finding jobs
|
45
|
+
def jobs
|
46
|
+
@jobs ||= Jobs.new
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|