active_scheduler 0.4.0 → 0.5.0

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: aacb194aabc4d58844c53d39ea5a6ea6e6874e78
4
- data.tar.gz: fa71108f500b8f327ed795bd9d1ff745585a3963
3
+ metadata.gz: 9445ea94c943115cbf2f6f9d4b1a02e97bd69d9d
4
+ data.tar.gz: bfb4eb364fcb2f50d43adb610d41c3f1f26cdcd7
5
5
  SHA512:
6
- metadata.gz: 79cf50db7912a468042094b3892175a32e34b237d7febf2954c8cccd4008ef4e8aac8853c58448d0d1b52f15bf6611ee8705bc7eb1fb2f6003852a058127cf8f
7
- data.tar.gz: a26920e8ee37167a7ad2e0a986cba4525afe9b5f57047a12fa11a1a689c1587ba9818aa9a07cb2df3f8ed17c71e585d6f64747a8ec69dd1b2a9481f89df22b0b
6
+ metadata.gz: 0ccde6b34bbdbc63627724aaf06c0ab312fa9e41156e0ee9a0bfd01191c87bc680e9af6178a5aa202eac2ad4a7fc3d5765a69f180ec0ca48b47520ff8f9f05b1
7
+ data.tar.gz: 4245e0cb345d9d9358c187a062292a9bae0325457f2347fc43b54749381f9e4b49716f75cb1e8e098e32b1b8dfcbda28de8d8df7beef9c5518230a536bd7c7a1
@@ -11,8 +11,27 @@ rvm:
11
11
  - 2.2.5
12
12
  - 2.3.0
13
13
  - 2.3.1
14
+ - 2.3.2
15
+ - 2.3.3
16
+ - 2.4.0
14
17
  env:
15
18
  - "RAILS_VERSION=4.2.0"
19
+ - "RAILS_VERSION=5.0.0"
20
+ matrix:
21
+ exclude:
22
+ - rvm: 2.0.0
23
+ env: "RAILS_VERSION=5.0.0"
24
+ - rvm: 2.1.0
25
+ env: "RAILS_VERSION=5.0.0"
26
+ - rvm: 2.1.5
27
+ env: "RAILS_VERSION=5.0.0"
28
+ - rvm: 2.2.0
29
+ env: "RAILS_VERSION=5.0.0"
30
+ - rvm: 2.2.1
31
+ env: "RAILS_VERSION=5.0.0"
32
+ - rvm: 2.4.0
33
+ env: "RAILS_VERSION=4.2.0"
34
+
16
35
  notifications:
17
36
  email:
18
37
  recipients:
@@ -1,3 +1,7 @@
1
+ # 0.5.0
2
+ - Expand Travis matrix to include Rails 5 and more ruby versions
3
+ - Allow `rails_env` option since [resque-scheduler](https://github.com/resque/resque-scheduler) does [#10](https://github.com/JustinAiken/active_scheduler/pull/10) (Thanks @blahutka)
4
+
1
5
  # 0.4.0
2
6
  - Use job's queue instead of hardcoded `default` [#9](https://github.com/JustinAiken/active_scheduler/pull/9) (Thanks @r3trofitted)
3
7
 
@@ -9,8 +9,9 @@ Currently only Resque is supported, but pull requests to add other queues (sidek
9
9
  ## Requirements/Support
10
10
 
11
11
  - Ruby 2.0+
12
- - Rails
13
- - ActiveJob 4.2+
12
+ - ActiveJob
13
+ - 4.2 is tested and used in production
14
+ - 5.0 is tested against CI, but I haven't tried it in production.
14
15
  - Resque
15
16
  - Resque Scheduler
16
17
 
@@ -80,10 +81,11 @@ simple_job:
80
81
  - Wrapper class idea by [@ryanwjackson](https://www.github.com/ryanwjackson)
81
82
  - Special thanks to [Rocketmade](https://www.rocketmade.com/) for development resources.
82
83
  - Other Contributors:
83
- - @jeremycrosbie
84
- - @ximus
85
- - @jdguzman
86
- - @r3trofitted
84
+ - [@jeremycrosbie](https://github.com/jeremycrosbie)
85
+ - [@ximus](https://github.com/ximus)
86
+ - [@jdguzman](https://github.com/jdguzman)
87
+ - [@r3trofitted](https://github.com/r3trofitted)
88
+ - [@blahutka](https://github.com/blahutka)
87
89
 
88
90
  ## License
89
91
 
@@ -54,6 +54,7 @@ module ActiveScheduler
54
54
  schedule[job][:description] = opts.fetch(:description, nil) if opts.fetch(:description, nil)
55
55
  schedule[job][:every] = opts.fetch(:every, nil) if opts.fetch(:every, nil)
56
56
  schedule[job][:cron] = opts.fetch(:cron, nil) if opts.fetch(:cron, nil)
57
+ schedule[job][:rails_env] = opts.fetch(:rails_env, nil) if opts.fetch(:rails_env, nil)
57
58
  end
58
59
  end
59
60
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveScheduler
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -15,6 +15,7 @@ describe ActiveScheduler::ResqueWrapper do
15
15
  "queue" => "simple",
16
16
  "description" => "It's a simple job.",
17
17
  "every" => "30s",
18
+ "rails_env" => "test",
18
19
  "args" => [{
19
20
  "job_class" => "SimpleJob",
20
21
  "queue_name" => "simple",
@@ -31,6 +32,7 @@ describe ActiveScheduler::ResqueWrapper do
31
32
  "queue" => "simple",
32
33
  "description" => "It's a simple job.",
33
34
  "every" => "30s",
35
+ "rails_env" => "test",
34
36
  "args" => ['foo-arg-1', 'foo-arg-2'],
35
37
  )
36
38
  end
@@ -2,6 +2,7 @@ simple_job:
2
2
  every: "30s"
3
3
  queue: "simple"
4
4
  class: "SimpleJob"
5
+ rails_env: "test"
5
6
  args:
6
7
  - foo-arg-1
7
8
  - foo-arg-2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Aiken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake