web47core 0.4.2 → 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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0668289593ebb640039ea238c5d21c7a295c8a4bce44f8f6408f4a16a5c2de1
4
- data.tar.gz: 5ad884eade18f580dbc6fe4c6170e1c83ef86a48a94bc99234c99050e596b108
3
+ metadata.gz: 89cffd10d3be30ecbf86349ec79ac8f7677f8707a17346974d9b9aa487d763c6
4
+ data.tar.gz: 85a88d48c9edad7722c3b55848568529c250eeb521c6baecc0846f572ed7d5e7
5
5
  SHA512:
6
- metadata.gz: 5623f9e7e0116b31542a0b4a424390216b3c91d44952b73ec9652af18ebe510f9c317f0e8a87083608f402f9b20c3744abbf2cdcd72314db53c47f6d9f113e57
7
- data.tar.gz: 5876f57a15e5ad4c48622f3d5c9b635b8b970a60073b5f9596c058c7fecff83c4284492aeca4590a7fab21ceee8fcf947dcf3640c4f56eb7dc2b39180a39a20e
6
+ metadata.gz: 52ede132c5e9e3d60006a3491268ce716e5293389551a6da6a1dcfc1a179341c505c47a0b5ef47e03dce3ddc1be573d610a941d06f0da2f332149c13bb1a9661
7
+ data.tar.gz: 05f36ef9ba68f2e2006c7bab6539ddd5565214cba406769bb4223f01a1c620dfa6659be086e1e3d4fc7824d90d96099c03cd164e27a9df4c3289d748b4dee55e
data/README.md CHANGED
@@ -145,3 +145,38 @@ Before starting the server, you need to run the database command
145
145
  ```mongo
146
146
  db.cron_tabs.updateMany({_type: 'JobCronTab'}, {$set: {_type: 'Cron::JobTab'}});
147
147
  ```
148
+ #### Routes
149
+ The following routes should be added to the correct namespace for your applicaiton
150
+ ```ruby
151
+ #
152
+ # Cron job servers and Cron Tabs
153
+ # index - show both cron tabs and servers
154
+ # edit - edit a cron tab
155
+ # update - update a cron tab
156
+ # destroy - destroy a server
157
+ # demote - demote a server
158
+ # run_now - run a cron tab
159
+ #
160
+ resources :cron, only: %i[edit update destroy index] do
161
+ member do
162
+ get :run_now
163
+ get :demote
164
+ end
165
+ end
166
+ #
167
+ # System configuration
168
+ #
169
+ resource :system_configurations, only: %i[edit update show]
170
+ #
171
+ # Delayed jobs
172
+ #
173
+ resources :delayed_jobs, only: %i[index show destroy] do
174
+ collection do
175
+ get :resubmit_all
176
+ get :destroy_all
177
+ end
178
+ member do
179
+ get :resubmit
180
+ end
181
+ end
182
+ ```
@@ -49,9 +49,9 @@ module Cron
49
49
  def configure_cron_tab(tab, type)
50
50
  case type
51
51
  when :always
52
- tab.update! min: WILDCARD, hour: WILDCARD
52
+ tab.update! min: Cron::Tab::WILDCARD, hour: Cron::Tab::WILDCARD
53
53
  when :hourly
54
- tab.update! min: 0, hour: WILDCARD
54
+ tab.update! min: 0, hour: Cron::Tab::WILDCARD
55
55
  when :daily
56
56
  tab.update! min: 0, hour: 0
57
57
  when :weekly
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-31 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport