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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9520f14afbdb893e412eb0147142ac2ceee118152436f62a8a2d2e9a6b0b48dd
4
- data.tar.gz: f388fd2ae10c72cec289ad779a994fd099748e991878e275bba9b2ed645adedc
3
+ metadata.gz: 343286f5fb54a04c33b59308664f1fb19d5960ab77f19c80aa9c2a8b3da94e85
4
+ data.tar.gz: 78a45e88394bac180ff0de242d6f17e880e484d392a53fcac3a4838bb80f974f
5
5
  SHA512:
6
- metadata.gz: d86ac7fb4ba1d2a0c687770f453645ee2738acc6c8110df8f5b85ea716c0ce53cfa744517a130e779183f666cdc2d4263215e229b1305828bddae1b895708c04
7
- data.tar.gz: 2477b10e006b1240faa0ddf2374def403e65878686a74f54fc1744e7df08327da7ed541cd1f49d7bd939a9e810f2b29964bfcbabdaed45c8119a8019da3bd868
6
+ metadata.gz: 379381cf398f91adca7b21799ec5241a2eec84c8fce062669cc807ffe0ffd9a9d3d16b2116f5c1df645d6889fa16a3d5c09fee8cd7ddb5fd282a413456a5bf2d
7
+ data.tar.gz: 334e5e633e085a2324b974801ca79a64c9ce7778fcc7a5f31f9387e8a3923136e39d6060305ff3974001ef625a14db8e7b6f8f0f44d51792f8f5d2841075a8b1
@@ -3,7 +3,7 @@
3
3
  module RedmineRemotes
4
4
  SLUG = 'redmine_remotes'
5
5
  NAME = 'Redmine Remotes'
6
- VERSION = '0.5.0'
6
+ VERSION = '0.5.1'
7
7
  AUTHOR = 'Eduardo Henrique Bogoni'
8
8
  SUMMARY = 'Integração do Redmine com trackers diversos.'
9
9
  end
@@ -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, [:remote_tracker_id, :issue_remote_code, :project_identifier, :local_tracker_id] => :environment do |t, args|
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.find_by_identifier(args.project_identifier)
21
+ project = ::Project.find_by(identifier: args.project_identifier)
19
22
  ::Rails.logger.info("Project: #{project}")
20
23
 
21
- local_tracker = args.local_tracker_id ? ::Tracker.find(args.local_tracker_id) : project.trackers.first
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.0
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: 2019-11-28 00:00:00.000000000 Z
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.2'
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.2'
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