allora 0.1.8 → 0.1.9

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.
@@ -1,3 +1,9 @@
1
+ ### head
2
+
3
+ ### 0.1.9
4
+
5
+ * New redis backend instances call `#reset!` conditionally [iamliamnorton]
6
+
1
7
  ### 0.1.8
2
8
 
3
9
  * Fix issue with redis backend not deleting all job keys on reset [chenkirk]
@@ -41,6 +41,7 @@ module Allora
41
41
  # host: the hostname of a Redis server
42
42
  # port: the port number of a Redis server
43
43
  # prefix: a namespace prefix to use
44
+ # reset: delete existing job timing keys in Redis
44
45
  #
45
46
  # @param [Hash] opts
46
47
  # options for the Redis backend
@@ -48,7 +49,7 @@ module Allora
48
49
  @redis = create_redis(opts)
49
50
  @prefix = opts.fetch(:prefix, "allora")
50
51
 
51
- reset!
52
+ reset! if opts.fetch(:reset, true)
52
53
  end
53
54
 
54
55
  def reschedule(jobs)
@@ -22,5 +22,5 @@
22
22
  ##
23
23
 
24
24
  module Allora
25
- VERSION = "0.1.8"
25
+ VERSION = "0.1.9"
26
26
  end
metadata CHANGED
@@ -1,43 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - d11wtq
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-12-03 00:00:00.000000000 Z
12
+ date: 2016-07-18 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: redis
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
- description: |-
28
- Allora (Italian for "at that time") provides a replacement for the classic UNIX
29
- cron, using nothing but ruby. It is very small, easy to follow and relatively
30
- feature-light. It does support a locking mechanism, backed by Redis, or any
31
- other custom implementation, which makes it possible to run the scheduler on
32
- more than one server, without worrying about jobs executing more than once per
33
- scheduled time.
30
+ description: ! "Allora (Italian for \"at that time\") provides a replacement for the
31
+ classic UNIX\n cron, using nothing but ruby. It is very small,
32
+ easy to follow and relatively\n feature-light. It does support
33
+ a locking mechanism, backed by Redis, or any\n other custom
34
+ implementation, which makes it possible to run the scheduler on\n more
35
+ than one server, without worrying about jobs executing more than once per\n scheduled
36
+ time."
34
37
  email:
35
38
  - chris@w3style.co.uk
36
39
  executables: []
37
40
  extensions: []
38
41
  extra_rdoc_files: []
39
42
  files:
40
- - ".gitignore"
43
+ - .gitignore
41
44
  - CHANGELOG.md
42
45
  - Gemfile
43
46
  - LICENSE
@@ -56,25 +59,26 @@ files:
56
59
  - lib/allora/version.rb
57
60
  homepage: https://github.com/flippa/allora
58
61
  licenses: []
59
- metadata: {}
60
62
  post_install_message:
61
63
  rdoc_options: []
62
64
  require_paths:
63
65
  - lib
64
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
65
68
  requirements:
66
- - - ">="
69
+ - - ! '>='
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0'
69
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
70
74
  requirements:
71
- - - ">="
75
+ - - ! '>='
72
76
  - !ruby/object:Gem::Version
73
77
  version: '0'
74
78
  requirements: []
75
79
  rubyforge_project: allora
76
- rubygems_version: 2.4.5.1
80
+ rubygems_version: 1.8.23
77
81
  signing_key:
78
- specification_version: 4
82
+ specification_version: 3
79
83
  summary: A ruby scheduler that keeps it simple, with support for distributed schedules
80
84
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 5e9d1fd2f7a039af598e1f54b1ffcaf1fc5ccd4f
4
- data.tar.gz: 7097d18700b29ea793bde0482b2c73d9828139c4
5
- SHA512:
6
- metadata.gz: 41742cfa147dfb24f00ec14153a837a6b6c05beffafb160658aa23af64b8dc07ddacf66d9b320a308642847b41a17354832d020ca6e65b38dcebbcbb6181141e
7
- data.tar.gz: 8db9cba926aa1c9b32f85f3c75a7ff560f6c3cd30da62184e95b68c0e41551ed7a6c4018152ffa27698670233837fccec52ea2d4db1a085a71d41b0709ce5662