Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perl-WebService-Redmine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
perl-WebService-Redmine
Commits
fd8b6237
Commit
fd8b6237
authored
11 years ago
by
Anton Soldatov
Browse files
Options
Downloads
Patches
Plain Diff
Updates in documentation and comments
parent
57d112c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+13
-9
13 additions, 9 deletions
README.md
lib/RedMiner/API.pm
+5
-3
5 additions, 3 deletions
lib/RedMiner/API.pm
with
18 additions
and
12 deletions
README.md
+
13
−
9
View file @
fd8b6237
redminer
#
redminer
Automating RedMine
(http://www.redmine.org) with Perl.
Automating
routine
[
RedMine
]
(
http://www.redmine.org
)
tasks
with Perl
5.10+
.
The script is equipped with an in-place RedMiner::API wrapper for RedMine REST API (http://www.redmine.org/projects/redmine/wiki/Rest_api).
Currently the project consists of two parts:
New calls and commands are supposed to be added on demand.
1.
`redminer`
script itself. For now it supports only creating projects with subprojects
from a given layout, but in the future it's aimed for various RedMine automation tasks
2.
`RedMiner::API`
module, a Perl binding to
[
RedMine REST API
](
http://www.redmine.org/projects/redmine/wiki/Rest_api
)
.
Please refer to
[
built-in POD documentation
](
../blob/master/lib/RedMiner/API.pm
)
for more details
Dependencies
## Non-core
Dependencies
*
Perl 5.10+
1.
[
LWP::UserAgent
](
https://metacpan.org/pod/LWP::UserAgent
)
*
Config::IniFiles
2.
[
URI
](
https://metacpan.org/pod/URI
)
*
LWP::UserAgent
3.
[
URI::QueryParam
](
https://metacpan.org/pod/URI::QueryParam
)
*
JSON::XS
4.
[
JSON::XS
](
https://metacpan.org/pod/JSON::XS
)
5.
[
Config::IniFiles
](
https://metacpan.org/pod/Config::IniFiles
)
(
`redminer`
only)
This diff is collapsed.
Click to expand it.
lib/RedMiner/API.pm
+
5
−
3
View file @
fd8b6237
...
@@ -454,7 +454,7 @@ sub _normalize_objects
...
@@ -454,7 +454,7 @@ sub _normalize_objects
my
$objects
=
shift
;
my
$objects
=
shift
;
$objects
=
ucfirst
$objects
;
$objects
=
ucfirst
$objects
;
# These are token that for a *single* entry in the resulting request path,
# These are token
s
that for
m
a *single* entry in the resulting request path,
# e.g.: PUT /time_entries/1.json
# e.g.: PUT /time_entries/1.json
# But it is natural to spell them like this:
# But it is natural to spell them like this:
# $api->updateTimeEntry(1, { ... });
# $api->updateTimeEntry(1, { ... });
...
@@ -479,7 +479,7 @@ sub _object
...
@@ -479,7 +479,7 @@ sub _object
return
$object
;
return
$object
;
}
}
# If an object is singular, pluralize to make its category name: user -> users
# If an object is singular, pluralize
it
to make its category name: user -> users
sub
_category
sub
_category
{
{
my
$self
=
shift
;
my
$self
=
shift
;
...
@@ -521,6 +521,8 @@ dispatch a single method name without using chains of interrim objects as Redmin
...
@@ -521,6 +521,8 @@ dispatch a single method name without using chains of interrim objects as Redmin
=back
=back
Fork this project on GitHub: https://github.com/igelhaus/redminer
=head1 AUTHOR
=head1 AUTHOR
Anton Soldatov, E<lt>igelhaus@gmail.comE<gt>
Anton Soldatov, E<lt>igelhaus@gmail.comE<gt>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment