redmine_remotes 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redmine_remotes/version.rb +1 -1
- data/lib/tasks/redmine_remotes.rake +10 -3
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 343286f5fb54a04c33b59308664f1fb19d5960ab77f19c80aa9c2a8b3da94e85
|
4
|
+
data.tar.gz: 78a45e88394bac180ff0de242d6f17e880e484d392a53fcac3a4838bb80f974f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 379381cf398f91adca7b21799ec5241a2eec84c8fce062669cc807ffe0ffd9a9d3d16b2116f5c1df645d6889fa16a3d5c09fee8cd7ddb5fd282a413456a5bf2d
|
7
|
+
data.tar.gz: 334e5e633e085a2324b974801ca79a64c9ce7778fcc7a5f31f9387e8a3923136e39d6060305ff3974001ef625a14db8e7b6f8f0f44d51792f8f5d2841075a8b1
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
namespace :redmine_remotes do
|
2
4
|
Rake::TestTask.new(test: 'db:test:prepare') do |t|
|
3
5
|
plugin_root = ::File.dirname(::File.dirname(__dir__))
|
@@ -11,14 +13,19 @@ namespace :redmine_remotes do
|
|
11
13
|
|
12
14
|
namespace :issues do
|
13
15
|
desc 'Adds a remote issue.'
|
14
|
-
task :add, [
|
16
|
+
task :add, %i[remote_tracker_id issue_remote_code project_identifier local_tracker_id] =>
|
17
|
+
:environment do |_t, args|
|
15
18
|
remote_tracker = ::RemoteTracker.find(args.remote_tracker_id)
|
16
19
|
::Rails.logger.info("Remote tracker: #{remote_tracker}")
|
17
20
|
|
18
|
-
project = ::Project.
|
21
|
+
project = ::Project.find_by(identifier: args.project_identifier)
|
19
22
|
::Rails.logger.info("Project: #{project}")
|
20
23
|
|
21
|
-
local_tracker =
|
24
|
+
local_tracker = if args.local_tracker_id
|
25
|
+
::Tracker.find(args.local_tracker_id)
|
26
|
+
else
|
27
|
+
project.trackers.first
|
28
|
+
end
|
22
29
|
::Rails.logger.info("Local tracker: #{local_tracker}")
|
23
30
|
|
24
31
|
add = ::RedmineRemotes::Tableless::AddRemoteIssue.new(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_remotes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo Henrique Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.1
|
19
|
+
version: '0.4'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.2.1
|
26
|
+
version: '0.4'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: curb
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|