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 +4 -4
- data/README.md +35 -0
- data/lib/app/jobs/cron/job_tab.rb +2 -2
- data/lib/web47core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89cffd10d3be30ecbf86349ec79ac8f7677f8707a17346974d9b9aa487d763c6
|
4
|
+
data.tar.gz: 85a88d48c9edad7722c3b55848568529c250eeb521c6baecc0846f572ed7d5e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/web47core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|