tasks_scheduler 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: fdf51773f53357b26a3b5442f32351d5365829cdb2c30c5e7579029b62c9e0b8
4
- data.tar.gz: eb003ff171837d987d9a1a316914126915d6dc84d2b8082748b7998feb219333
3
+ metadata.gz: 3f63ec7f3af4774acdf10ae150c59e9c1648e1af25add8174b06ebf6344f9fe8
4
+ data.tar.gz: 257f1fd08f6785fcfb103df7a2f156d6d8303d4c740be38fb7bb557a036a2268
5
5
  SHA512:
6
- metadata.gz: d3a26e6ee7df33383594e9ea0fc117c11e176d9a0e71b8a4a465f57d96a0e498238313906d48c4985e3a269441840bbd496b96894ecd1b9058544a67c55c10cb
7
- data.tar.gz: da6715ac5a6c44923c3688a3c8e4561c434a969402ff80be05b4143c758e6d4aaafab1a778b394c61d2c1758bd1c4832f697110cd0cb0766fda3a70d291348d5
6
+ metadata.gz: fe750817b5ae625eb16b820a0c5cda8660ad73c2c2e7af171a662fe1c80eaa7f6e5255ee08323a77fc7be379a7b88275b8fa0a368866ba2eb47ccc3976cdb24c
7
+ data.tar.gz: 9d02c0ea57a4177cd6236221de176c8ab2fabd9fa2f891048c23b3041fddba693c442de6d5120952e109be7709fea8e12f040c6542f6f10727ecd665e42005db
@@ -1,4 +1,5 @@
1
1
  //= require active_scaffold
2
+ //= require js-routes
2
3
 
3
4
  function TasksScheduler() {
4
5
  }
@@ -66,7 +67,7 @@ _A = TasksScheduler.Alert;
66
67
  _A.DEFAULT_REFRESH_INTERVAL = 5000;
67
68
  _A.DEFAULT_ELEMENT_SELECTOR = '#tasks_scheduler_alert';
68
69
  _A.CSS_CLASSES_PREFIX = 'alert_';
69
- _A.url = '<%= ::Rails.application.class.routes.url_helpers.status_tasks_scheduler_daemon_path %>';
70
+ _A.url = Routes.status_tasks_scheduler_daemon_path();
70
71
 
71
72
  _A.init = function (options) {
72
73
  options = typeof options !== 'undefined' ? options : {};
@@ -1,5 +1,6 @@
1
1
  require 'tasks_scheduler/engine'
2
2
  require 'active_scaffold'
3
+ require 'js-routes'
3
4
  require 'parse-cron'
4
5
  require 'tasks_scheduler/cron_scheduling_validator'
5
6
  require 'tasks_scheduler/cron_parser_patch'
@@ -1,3 +1,3 @@
1
1
  module TasksScheduler
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tasks_scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_scaffold
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: js-routes
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: parse-cron
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +106,7 @@ files:
92
106
  - MIT-LICENSE
93
107
  - README.rdoc
94
108
  - Rakefile
95
- - app/assets/javascripts/tasks_scheduler.js.erb
109
+ - app/assets/javascripts/tasks_scheduler.js
96
110
  - app/assets/stylesheets/tasks_scheduler.scss
97
111
  - app/assets/stylesheets/tasks_scheduler/alert.scss
98
112
  - app/controllers/scheduled_tasks_controller.rb
@@ -195,39 +209,39 @@ summary: Scheduler for Rake tasks.
195
209
  test_files:
196
210
  - test/dummy/Rakefile
197
211
  - test/dummy/README.rdoc
198
- - test/dummy/bin/rails
199
- - test/dummy/bin/rake
200
- - test/dummy/bin/bundle
201
- - test/dummy/bin/setup
202
- - test/dummy/config/initializers/assets.rb
203
- - test/dummy/config/initializers/wrap_parameters.rb
204
- - test/dummy/config/initializers/session_store.rb
205
- - test/dummy/config/initializers/cookies_serializer.rb
206
- - test/dummy/config/initializers/inflections.rb
207
- - test/dummy/config/initializers/mime_types.rb
208
- - test/dummy/config/initializers/backtrace_silencers.rb
209
- - test/dummy/config/initializers/filter_parameter_logging.rb
212
+ - test/dummy/config.ru
210
213
  - test/dummy/config/boot.rb
211
- - test/dummy/config/locales/en.yml
212
- - test/dummy/config/secrets.yml
213
- - test/dummy/config/environment.rb
214
214
  - test/dummy/config/database.yml
215
- - test/dummy/config/routes.rb
215
+ - test/dummy/config/secrets.yml
216
+ - test/dummy/config/locales/en.yml
217
+ - test/dummy/config/application.rb
216
218
  - test/dummy/config/environments/development.rb
217
219
  - test/dummy/config/environments/test.rb
218
220
  - test/dummy/config/environments/production.rb
219
- - test/dummy/config/application.rb
220
- - test/dummy/app/assets/stylesheets/application.css
221
- - test/dummy/app/assets/javascripts/application.js
221
+ - test/dummy/config/environment.rb
222
+ - test/dummy/config/routes.rb
223
+ - test/dummy/config/initializers/assets.rb
224
+ - test/dummy/config/initializers/cookies_serializer.rb
225
+ - test/dummy/config/initializers/inflections.rb
226
+ - test/dummy/config/initializers/session_store.rb
227
+ - test/dummy/config/initializers/wrap_parameters.rb
228
+ - test/dummy/config/initializers/filter_parameter_logging.rb
229
+ - test/dummy/config/initializers/backtrace_silencers.rb
230
+ - test/dummy/config/initializers/mime_types.rb
231
+ - test/dummy/db/schema.rb
222
232
  - test/dummy/app/views/layouts/application.html.erb
223
- - test/dummy/app/helpers/application_helper.rb
224
233
  - test/dummy/app/controllers/application_controller.rb
225
- - test/dummy/db/schema.rb
226
- - test/dummy/public/favicon.ico
227
- - test/dummy/public/500.html
234
+ - test/dummy/app/helpers/application_helper.rb
235
+ - test/dummy/app/assets/stylesheets/application.css
236
+ - test/dummy/app/assets/javascripts/application.js
228
237
  - test/dummy/public/422.html
229
238
  - test/dummy/public/404.html
230
- - test/dummy/config.ru
231
- - test/models/scheduled_task_test.rb
239
+ - test/dummy/public/favicon.ico
240
+ - test/dummy/public/500.html
241
+ - test/dummy/bin/bundle
242
+ - test/dummy/bin/setup
243
+ - test/dummy/bin/rails
244
+ - test/dummy/bin/rake
232
245
  - test/test_helper.rb
233
246
  - test/fixtures/scheduled_tasks.yml
247
+ - test/models/scheduled_task_test.rb