redmine_tasks_scheduler 0.3.3 → 0.3.5

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: ffcb5bc76a6bbf72e747ee8a41accddb63d04c5dd40b7d13118d7ba771255997
4
- data.tar.gz: a2fb50a397a756fd4b4c0b6445c48369a22aeabc3bdf3a23049547df5a5d8dcc
3
+ metadata.gz: db3d5a7b7eed1fd5e7293fca602d03228c618c696940c8f647b163b5864637bb
4
+ data.tar.gz: 8b3b6ff51b2ba28a2e545b9acfd9eaaf0636a2bdaaac0c08e4eb83f0834983d8
5
5
  SHA512:
6
- metadata.gz: 01c5ab03197b708c304b6d3c37f2cda91c62a6d9ffcd3ceca3ad9cd5c329435c419d84964fd135f82b18a20d000cb8367a9c1cb5cd9bda4252330dbbaa36afbb
7
- data.tar.gz: 38e7eee7783eb4a140e7d3da279d23246068d71d2616f4e076c6d2d2b5abe7d7232a3b88b888bf77220bba934ea0deb5e4ef86cd8a0f6103316de0351c74c3d9
6
+ metadata.gz: faeed3015651880ba97068ab8790a52377b1214bae4a9e2d76c41b014b97892e2fe163b698419935540fa2e232b14c3f1d86096dbbf413bee3afca64463aa941
7
+ data.tar.gz: 4ee28e6e5170d2879a3e6a6234de31350a62edd6e0a035e925719eefe0e910533bec48385228c7e9c093535b49a8ee8de4c8f4fe3621ec38cecbdb077242169b
@@ -1,23 +1,17 @@
1
1
  //= require 'tasks_scheduler'
2
2
 
3
- _A = TasksScheduler.Alert;
4
- _A.refresh = function () {
5
- $.ajax({
6
- url: _A.url,
7
- global: false,
8
- success: function (result) {
9
- var alert = $(_A.options.element_selector);
10
- var pattern = new RegExp('(^|\\s)' + _A.CSS_CLASSES_PREFIX + "\\S+", 'g');
11
- alert.removeClass(function (index, className) {
12
- return (className.match(pattern) || []).join(' ');
13
- });
14
- alert.addClass(_A.resultToCssClass(result));
15
- },
16
- complete: function (result) {
17
- _A.setNextRefresh();
18
- }
19
- });
20
- };
3
+ function addGlobalFalseToAjaxDataFunction(obj, functionName) {
4
+ var originalFunctionName = "original_" + functionName;
5
+ obj[originalFunctionName] = obj[functionName];
6
+ obj[functionName] = function() {
7
+ var result = obj[originalFunctionName]();
8
+ result.global = false;
9
+ return result;
10
+ };
11
+ }
12
+
13
+ addGlobalFalseToAjaxDataFunction(TasksScheduler.Alert, 'refreshAjaxData');
14
+ addGlobalFalseToAjaxDataFunction(TasksScheduler.Status, 'updateAjaxData');
21
15
 
22
16
  TasksScheduler.Alert.init({
23
17
  element_selector: '.tasks-scheduler-alert'
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_dependency 'redmine_tasks_scheduler/patches/tasks_scheduler_controller_patch'
4
- require_dependency 'redmine_tasks_scheduler/patches/tasks_scheduler_info_patch'
@@ -4,5 +4,5 @@ module RedmineTasksScheduler
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  HOMEPAGE = 'https://github.com/esquilo-azul/redmine_tasks_scheduler'
6
6
  SUMMARY = 'Scheduler for rake tasks on Redmine.'
7
- VERSION = '0.3.3'
7
+ VERSION = '0.3.5'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_tasks_scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
- - 0.3.3
7
+ - 0.3.5
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-15 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tasks_scheduler
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.6'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.6.10
22
+ version: 0.6.13
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.6'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.6.10
32
+ version: 0.6.13
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: eac_ruby_gem_support
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -63,7 +63,6 @@ files:
63
63
  - init.rb
64
64
  - lib/redmine_tasks_scheduler.rb
65
65
  - lib/redmine_tasks_scheduler/patches/tasks_scheduler_controller_patch.rb
66
- - lib/redmine_tasks_scheduler/patches/tasks_scheduler_info_patch.rb
67
66
  - lib/redmine_tasks_scheduler/settings.rb
68
67
  - lib/redmine_tasks_scheduler/version.rb
69
68
  homepage: https://github.com/esquilo-azul/redmine_tasks_scheduler
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # To-do: remove when fixed in gem "tasks_scheduler"
4
- require 'tasks_scheduler/info'
5
- const_name = 'TASKS_LIMIT_DEFAULT_VALUE'
6
- ::TasksScheduler::Info.send(:remove_const, const_name)
7
- ::TasksScheduler::Info.const_set(const_name, -1)