redmine_api_helper 0.3.35
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of redmine_api_helper might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.gitattributes +2 -0
- data/.gitignore +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE +339 -0
- data/README.md +30 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/date_helper/date.rb +311 -0
- data/lib/odf_writer/bookmark.rb +110 -0
- data/lib/odf_writer/bookmark_reader.rb +77 -0
- data/lib/odf_writer/document.rb +371 -0
- data/lib/odf_writer/field.rb +174 -0
- data/lib/odf_writer/field_reader.rb +78 -0
- data/lib/odf_writer/image.rb +176 -0
- data/lib/odf_writer/image_reader.rb +76 -0
- data/lib/odf_writer/images.rb +89 -0
- data/lib/odf_writer/list_style.rb +336 -0
- data/lib/odf_writer/nested.rb +156 -0
- data/lib/odf_writer/odf_helper.rb +57 -0
- data/lib/odf_writer/parser/default.rb +691 -0
- data/lib/odf_writer/path_finder.rb +114 -0
- data/lib/odf_writer/section.rb +120 -0
- data/lib/odf_writer/section_reader.rb +61 -0
- data/lib/odf_writer/style.rb +483 -0
- data/lib/odf_writer/table.rb +135 -0
- data/lib/odf_writer/table_reader.rb +61 -0
- data/lib/odf_writer/template.rb +234 -0
- data/lib/odf_writer/text.rb +97 -0
- data/lib/odf_writer/text_reader.rb +77 -0
- data/lib/odf_writer/version.rb +29 -0
- data/lib/redmine_api_helper/api_helper.rb +333 -0
- data/lib/redmine_api_helper/args_helper.rb +106 -0
- data/lib/redmine_api_helper/attachments_api_helper.rb +52 -0
- data/lib/redmine_api_helper/define_api_helpers.rb +78 -0
- data/lib/redmine_api_helper/document_categories_api_helper.rb +38 -0
- data/lib/redmine_api_helper/groups_api_helper.rb +80 -0
- data/lib/redmine_api_helper/helpers.rb +50 -0
- data/lib/redmine_api_helper/issue_priorities_api_helper.rb +38 -0
- data/lib/redmine_api_helper/issue_relations_api_helper.rb +66 -0
- data/lib/redmine_api_helper/issue_statuses_api_helper.rb +36 -0
- data/lib/redmine_api_helper/issues_api_helper.rb +124 -0
- data/lib/redmine_api_helper/my_account_api_helper.rb +45 -0
- data/lib/redmine_api_helper/news_api_helper.rb +73 -0
- data/lib/redmine_api_helper/project_memberships_api_helper.rb +77 -0
- data/lib/redmine_api_helper/projects_api_helper.rb +73 -0
- data/lib/redmine_api_helper/roles_api_helper.rb +52 -0
- data/lib/redmine_api_helper/scripts_api_helper.rb +87 -0
- data/lib/redmine_api_helper/search_api_helper.rb +38 -0
- data/lib/redmine_api_helper/time_entries_api_helper.rb +73 -0
- data/lib/redmine_api_helper/time_entry_activities_api_helper.rb +38 -0
- data/lib/redmine_api_helper/trackers_api_helper.rb +38 -0
- data/lib/redmine_api_helper/users_api_helper.rb +73 -0
- data/lib/redmine_api_helper/version.rb +24 -0
- data/lib/redmine_api_helper/wiki_pages_api_helper.rb +66 -0
- data/lib/redmine_api_helper.rb +88 -0
- data/redmine_api_helper.gemspec +36 -0
- metadata +162 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright © 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module ScriptsAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads scripts_url from args
|
25
|
+
########################################################################################
|
26
|
+
def scripts_url(**params)
|
27
|
+
url_path(args.urls.Home, 'scripts', params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# reads project_scripts_url from args
|
32
|
+
########################################################################################
|
33
|
+
def project_scripts_url(project_id, **params)
|
34
|
+
url_path(project_url(project_id), 'scripts', params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
########################################################################################
|
38
|
+
# reads run_script_url from args
|
39
|
+
########################################################################################
|
40
|
+
def run_script_url(id, **params)
|
41
|
+
url_path(scripts_url, id, 'run', params)
|
42
|
+
end #def
|
43
|
+
|
44
|
+
########################################################################################
|
45
|
+
# reads run_project_script_url from args
|
46
|
+
########################################################################################
|
47
|
+
def run_project_script_url(project_id, id, **params)
|
48
|
+
url_path(project_scripts_url(project_id), id, 'run', params)
|
49
|
+
end #def
|
50
|
+
|
51
|
+
########################################################################################
|
52
|
+
# lists scripts, corresponds to controller#index
|
53
|
+
########################################################################################
|
54
|
+
def list_scripts(project_id, **params)
|
55
|
+
list_objects(:scripts, params)
|
56
|
+
end #def
|
57
|
+
|
58
|
+
########################################################################################
|
59
|
+
# lists scripts, corresponds to controller#index
|
60
|
+
########################################################################################
|
61
|
+
def list_project_scripts(project_id, **params)
|
62
|
+
list_project_objects(project_id, :scripts, params)
|
63
|
+
end #def
|
64
|
+
|
65
|
+
########################################################################################
|
66
|
+
# reads script having id, corresponds to controller#show
|
67
|
+
########################################################################################
|
68
|
+
def read_script(id, **params)
|
69
|
+
read_object(:script, id, params)
|
70
|
+
end #def
|
71
|
+
|
72
|
+
########################################################################################
|
73
|
+
# runs script having id, corresponds to controller#run
|
74
|
+
########################################################################################
|
75
|
+
def run_script(id, **params)
|
76
|
+
jget(:url => run_script_url(id), :params => params ).script
|
77
|
+
end #def
|
78
|
+
|
79
|
+
########################################################################################
|
80
|
+
# runs script having id, corresponds to controller#run
|
81
|
+
########################################################################################
|
82
|
+
def run_project_script(project_id, id, **params)
|
83
|
+
jget(:url => run_project_script_url(project_id, id), :params => params ).script
|
84
|
+
end #def
|
85
|
+
|
86
|
+
end #module
|
87
|
+
end #module
|
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module SearchAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads my_account_url from args
|
25
|
+
########################################################################################
|
26
|
+
def search_url(**params)
|
27
|
+
url_path(args.urls.Home, "search", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# list_search result, corresponds to controller#index
|
32
|
+
########################################################################################
|
33
|
+
def list_search(**params)
|
34
|
+
jget(:url => search_url, :params => params).results
|
35
|
+
end #def
|
36
|
+
|
37
|
+
end #module
|
38
|
+
end #module
|
@@ -0,0 +1,73 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module TimeEntriesAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads time_entries_url from args
|
25
|
+
########################################################################################
|
26
|
+
def time_entries_url(**params)
|
27
|
+
url_path(args.urls.Home, "time_entries", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# creates a time_entry_url
|
32
|
+
########################################################################################
|
33
|
+
def time_entry_url(id, **params)
|
34
|
+
url_path(time_entries_url, id, params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
########################################################################################
|
38
|
+
# lists time_entries, corresponds to controller#index
|
39
|
+
########################################################################################
|
40
|
+
def list_time_entries(**params)
|
41
|
+
list_objects(:time_entries, params)
|
42
|
+
end #def
|
43
|
+
|
44
|
+
########################################################################################
|
45
|
+
# reads time_entry having id, corresponds to controller#show
|
46
|
+
########################################################################################
|
47
|
+
def read_time_entry(id, **params)
|
48
|
+
read_object(:time_entry, id, params)
|
49
|
+
end #def
|
50
|
+
|
51
|
+
########################################################################################
|
52
|
+
# creates a new time_entry with params, corresponds to controller#create
|
53
|
+
########################################################################################
|
54
|
+
def create_time_entry(**params)
|
55
|
+
create_object(:time_entry, params)
|
56
|
+
end #def
|
57
|
+
|
58
|
+
########################################################################################
|
59
|
+
# updates an existing time_entry with params, corresponds to controller#update
|
60
|
+
########################################################################################
|
61
|
+
def update_time_entry(id, **params)
|
62
|
+
update_object(:time_entry, id, params)
|
63
|
+
end #def
|
64
|
+
|
65
|
+
########################################################################################
|
66
|
+
# deletes an existing time_entry with params, corresponds to controller#destroy
|
67
|
+
########################################################################################
|
68
|
+
def destroy_time_entry(id, **params)
|
69
|
+
destroy_object(:time_entry, id, params)
|
70
|
+
end #def
|
71
|
+
|
72
|
+
end #module
|
73
|
+
end #module
|
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module TimeEntryActivitiesAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads time_entry_activities_url from args
|
25
|
+
########################################################################################
|
26
|
+
def time_entry_activities_url(**params)
|
27
|
+
url_path(args.urls.Home, "enumerations", "time_entry_activities", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# lists time_entries, corresponds to controller#index
|
32
|
+
########################################################################################
|
33
|
+
def list_time_entry_activities(**params)
|
34
|
+
list_objects(:time_entry_activities, params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
end #module
|
38
|
+
end #module
|
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module TrackersAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads trackers_url from args
|
25
|
+
########################################################################################
|
26
|
+
def trackers_url(**params)
|
27
|
+
url_path(args.urls.Home, "trackers", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# lists trackers, corresponds to controller#index
|
32
|
+
########################################################################################
|
33
|
+
def list_trackers(**params)
|
34
|
+
list_objects(:tracker, params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
end #module
|
38
|
+
end #module
|
@@ -0,0 +1,73 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module UsersAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads users_url from args
|
25
|
+
########################################################################################
|
26
|
+
def users_url(**params)
|
27
|
+
url_path(args.urls.Home, "users", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# crerate user_url
|
32
|
+
########################################################################################
|
33
|
+
def user_url(id, **params)
|
34
|
+
url_path(users_url, id, **params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
########################################################################################
|
38
|
+
# lists users, corresponds to controller#index
|
39
|
+
########################################################################################
|
40
|
+
def list_users(**params)
|
41
|
+
list_objects(:users, params)
|
42
|
+
end #def
|
43
|
+
|
44
|
+
########################################################################################
|
45
|
+
# reads user having id, corresponds to controller#show
|
46
|
+
########################################################################################
|
47
|
+
def read_user(id, **params)
|
48
|
+
read_object(:user, id, params)
|
49
|
+
end #def
|
50
|
+
|
51
|
+
########################################################################################
|
52
|
+
# creates a new user with params, corresponds to controller#create
|
53
|
+
########################################################################################
|
54
|
+
def create_user(**params)
|
55
|
+
create_object(:user, params)
|
56
|
+
end #def
|
57
|
+
|
58
|
+
########################################################################################
|
59
|
+
# updates an existing user with params, corresponds to controller#update
|
60
|
+
########################################################################################
|
61
|
+
def update_user(id, **params)
|
62
|
+
update_object(:user, id, params)
|
63
|
+
end #def
|
64
|
+
|
65
|
+
########################################################################################
|
66
|
+
# deletes an existing user with params, corresponds to controller#destroy
|
67
|
+
########################################################################################
|
68
|
+
def destroy_user(id, **params)
|
69
|
+
destroy_object(:user, id, params)
|
70
|
+
end #def
|
71
|
+
|
72
|
+
end #module
|
73
|
+
end #module
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# aids creating fiddles for redmine_scripting_engine
|
4
|
+
#
|
5
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
6
|
+
#
|
7
|
+
# This program is free software; you can redistribute it and/or
|
8
|
+
# modify it under the terms of the GNU General Public License
|
9
|
+
# as published by the Free Software Foundation; either version 2
|
10
|
+
# of the License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program; if not, write to the Free Software
|
19
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
20
|
+
#
|
21
|
+
|
22
|
+
module RedmineAPIHelper
|
23
|
+
VERSION = "0.3.35"
|
24
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
##
|
2
|
+
# aids creating fiddles for redmine_scripting_engine
|
3
|
+
#
|
4
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
5
|
+
#
|
6
|
+
# This program is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU General Public License
|
8
|
+
# as published by the Free Software Foundation; either version 2
|
9
|
+
# of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with this program; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
#
|
20
|
+
module RedmineAPIHelper
|
21
|
+
module WikiPagesAPIHelper
|
22
|
+
|
23
|
+
########################################################################################
|
24
|
+
# reads wiki_pages_url from args
|
25
|
+
########################################################################################
|
26
|
+
def project_wiki_pages_url(project_id, **params)
|
27
|
+
url_path(project_url(project_id), "wiki", params)
|
28
|
+
end #def
|
29
|
+
|
30
|
+
########################################################################################
|
31
|
+
# creates wiki_page_url
|
32
|
+
########################################################################################
|
33
|
+
def project_wiki_page_url(project_id, id, **params)
|
34
|
+
url_path(project_wiki_pages_url(project_id), id, params)
|
35
|
+
end #def
|
36
|
+
|
37
|
+
########################################################################################
|
38
|
+
# lists wiki_pages, corresponds to controller#index
|
39
|
+
########################################################################################
|
40
|
+
def list_project_wiki_pages(project_id, **params)
|
41
|
+
jget(:url => url_path(project_wiki_pages_url(project_id), "index"), :params => params )
|
42
|
+
end #def
|
43
|
+
|
44
|
+
########################################################################################
|
45
|
+
# reads wiki_page having id, corresponds to controller#show
|
46
|
+
########################################################################################
|
47
|
+
def read_project_wiki_page(project_id, title, **params)
|
48
|
+
jget(:url => url_path(project_wiki_pages_url(project_id), title), :params => params ).wiki_page
|
49
|
+
end #def
|
50
|
+
|
51
|
+
########################################################################################
|
52
|
+
# updates or creates an existing wiki_page with params, corresponds to controller#update
|
53
|
+
########################################################################################
|
54
|
+
def create_or_update_project_wiki_page(project_id, title, **params)
|
55
|
+
jput({:wiki_page => params}, :url => url_path(project_wiki_pages_url(project_id), title))
|
56
|
+
end #def
|
57
|
+
|
58
|
+
########################################################################################
|
59
|
+
# deletes an existing wiki_page with params, corresponds to controller#destroy
|
60
|
+
########################################################################################
|
61
|
+
def destroy_project_wiki_page(project_id, id, **params)
|
62
|
+
jdel(:url => url_path(project_wiki_pages_url(project_id), id), :params => params )
|
63
|
+
end #def
|
64
|
+
|
65
|
+
end #module
|
66
|
+
end #module
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# aids creating fiddles for redmine_scripting_engine
|
4
|
+
#
|
5
|
+
# Copyright 2021 Stephan Wenzel <stephan.wenzel@drwpatent.de>
|
6
|
+
#
|
7
|
+
# This program is free software; you can redistribute it and/or
|
8
|
+
# modify it under the terms of the GNU General Public License
|
9
|
+
# as published by the Free Software Foundation; either version 2
|
10
|
+
# of the License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program; if not, write to the Free Software
|
19
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
20
|
+
#
|
21
|
+
|
22
|
+
require "deep_try"
|
23
|
+
require 'net/http'
|
24
|
+
require "active_support/json"
|
25
|
+
require 'active_support/core_ext/object/to_query'
|
26
|
+
|
27
|
+
require "redmine_api_helper/version"
|
28
|
+
require "redmine_api_helper/api_helper"
|
29
|
+
require "redmine_api_helper/args_helper"
|
30
|
+
require "redmine_api_helper/define_api_helpers"
|
31
|
+
|
32
|
+
require "redmine_api_helper/attachments_api_helper"
|
33
|
+
require "redmine_api_helper/document_categories_api_helper"
|
34
|
+
require "redmine_api_helper/groups_api_helper"
|
35
|
+
require "redmine_api_helper/issue_priorities_api_helper"
|
36
|
+
require "redmine_api_helper/issue_relations_api_helper"
|
37
|
+
require "redmine_api_helper/issue_statuses_api_helper"
|
38
|
+
require "redmine_api_helper/issues_api_helper"
|
39
|
+
require "redmine_api_helper/my_account_api_helper"
|
40
|
+
require "redmine_api_helper/news_api_helper"
|
41
|
+
require "redmine_api_helper/project_memberships_api_helper"
|
42
|
+
require "redmine_api_helper/projects_api_helper"
|
43
|
+
require "redmine_api_helper/roles_api_helper"
|
44
|
+
require "redmine_api_helper/scripts_api_helper"
|
45
|
+
require "redmine_api_helper/search_api_helper"
|
46
|
+
require "redmine_api_helper/time_entries_api_helper"
|
47
|
+
require "redmine_api_helper/time_entry_activities_api_helper"
|
48
|
+
require "redmine_api_helper/trackers_api_helper"
|
49
|
+
require "redmine_api_helper/users_api_helper"
|
50
|
+
require "redmine_api_helper/wiki_pages_api_helper"
|
51
|
+
|
52
|
+
require "redmine_api_helper/helpers"
|
53
|
+
|
54
|
+
# goodie: odf_writer
|
55
|
+
|
56
|
+
require "zip"
|
57
|
+
require "nokogiri"
|
58
|
+
require 'digest'
|
59
|
+
|
60
|
+
require "odf_writer/parser/default"
|
61
|
+
require "odf_writer/path_finder"
|
62
|
+
|
63
|
+
require "odf_writer/nested"
|
64
|
+
require "odf_writer/field"
|
65
|
+
require "odf_writer/field_reader"
|
66
|
+
require "odf_writer/text"
|
67
|
+
require "odf_writer/text_reader"
|
68
|
+
require "odf_writer/bookmark"
|
69
|
+
require "odf_writer/bookmark_reader"
|
70
|
+
require "odf_writer/image"
|
71
|
+
require "odf_writer/image_reader"
|
72
|
+
require "odf_writer/table"
|
73
|
+
require "odf_writer/table_reader"
|
74
|
+
require "odf_writer/section"
|
75
|
+
require "odf_writer/section_reader"
|
76
|
+
require "odf_writer/images"
|
77
|
+
require "odf_writer/template"
|
78
|
+
require "odf_writer/document"
|
79
|
+
require "odf_writer/style"
|
80
|
+
require "odf_writer/list_style"
|
81
|
+
|
82
|
+
require "odf_writer/odf_helper"
|
83
|
+
|
84
|
+
# goodie: date forward
|
85
|
+
|
86
|
+
require "date_helper/date"
|
87
|
+
|
88
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative 'lib/redmine_api_helper/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
|
5
|
+
spec.name = "redmine_api_helper"
|
6
|
+
spec.version = RedmineAPIHelper::VERSION
|
7
|
+
spec.authors = ["Stephan Wenzel"]
|
8
|
+
spec.email = ["stephan.wenzel@drwpatent.de"]
|
9
|
+
spec.license = 'GPL-2.0'
|
10
|
+
|
11
|
+
spec.summary = %q{redmine_api_helper aids creating fiddles for redmine_scripting_engine}
|
12
|
+
spec.description = %q{redmine_api_helper contains methods to ease handling Redmine API calls}
|
13
|
+
spec.homepage = "https://github.com/HugoHasenbein/redmine_api_helper"
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
15
|
+
|
16
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/HugoHasenbein/redmine_api_helper"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/HugoHasenbein/redmine_api_helper/Changelog.md"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }.reject{ |f| f.match(%r{\.gem\z})}
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_runtime_dependency 'deep_try'
|
33
|
+
spec.add_runtime_dependency 'rubyzip', "~> 2"
|
34
|
+
spec.add_runtime_dependency 'nokogiri'
|
35
|
+
spec.add_runtime_dependency 'rack'
|
36
|
+
end
|