redmine_remotes 0.15.1 → 0.15.4

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: f3c2514b43de6a3aca2a542e1231a07f52061cd5ca7a98640a00448937d1e9fe
4
- data.tar.gz: 63be070a70db543d4c400b88105f88efff9f05ed138b77ea42f83e61c900823e
3
+ metadata.gz: 0f38544d7fbde4e26f3009ddb4797e11c7998bfa74057f45ad4fe150a1aec633
4
+ data.tar.gz: 4e82fa2b04e341cef549c1a7f2c58412f12b271ab4b4cd1f517c663dfa75ad52
5
5
  SHA512:
6
- metadata.gz: '09aa40d59c72529810076b7291e9ecdf99e619c847edffd1278408d765413d662120472f3ce34b461757294e2ab32fc77a3c74bf15f8b3d157190f4dae664522'
7
- data.tar.gz: 130728f8cac9e183cabfb18dd26b98a1c636edeee6fc256801f356549490450c9443b7a58bb4ea8dfd35d7b66ac71b189fd959aba7145e4217bf4da5aaa4c900
6
+ metadata.gz: 425bbef66d7f2690ab0132075f00593ea6643e1802bd69c7eba2e811b0bf80ece6770437751f51b8e12ceb1e8345f528c57cdadedf0316f692daf47a3c1da92e
7
+ data.tar.gz: 5bed245c63e7918e764ce4369849f89a6006bbcf2cb34e3d95017552b01a6eeedc2f5451694f6d76d62fa2b3648bd77f4b0405990640df03e58c5d7f8f62a801
@@ -19,7 +19,8 @@ class RemoteTracker < ActiveRecord::Base
19
19
  dependent: :destroy
20
20
  has_many :remote_users, class_name: 'RemoteUser', inverse_of: :remote_tracker,
21
21
  dependent: :restrict_with_error
22
- belongs_to :default_local_user, class_name: 'User', inverse_of: :remote_trackers_as_default
22
+ belongs_to :default_local_user, class_name: 'User', inverse_of: :remote_trackers_as_default,
23
+ foreign_key: :default_local_user_id
23
24
 
24
25
  validates :profile, presence: true, inclusion: { in: lists.profile.values }
25
26
  validates :root_url, presence: true, uniqueness: { scope: [:username] }, url: true
@@ -6,7 +6,7 @@ class RemoteUser < ActiveRecord::Base
6
6
  downcase_columns :remote_login
7
7
 
8
8
  belongs_to :remote_tracker, class_name: 'RemoteTracker', inverse_of: :remote_users
9
- belongs_to :local_user, class_name: 'User', inverse_of: :remote_users
9
+ belongs_to :local_user, class_name: 'User', inverse_of: :remote_users, foreign_key: :local_user_id
10
10
 
11
11
  validates :remote_login, presence: true, uniqueness: { scope: [:remote_tracker] }
12
12
  validates :local_user, presence: true
@@ -2,5 +2,5 @@
2
2
 
3
3
  Redmine::Plugin.post_register ::RedmineRemotes::SLUG.to_sym do
4
4
  # Source: https://github.com/esquilo-azul/redmine_nonproject_modules
5
- requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.2.1')
5
+ requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.11')
6
6
  end
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ return unless ::RedminePluginsHelper::Available.model?(
4
+ ::RemoteIssue, ::RemoteIssueStatus, ::RemoteUser, ::RemoteTracker, ::RemoteTrackerSetting
5
+ )
6
+
3
7
  ::GroupPermission.add_permission(::RemoteTrackersController::READ_PERMISSION)
4
8
  ::GroupPermission.add_permission(
5
9
  ::RemoteTrackersController::WRITE_PERMISSION,
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateRemoteTrackers < ActiveRecord::Migration
3
+ class CreateRemoteTrackers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :remote_trackers do |t| # rubocop:disable Rails/CreateTableWithTimestamps
6
8
  t.string :profile
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateRemoteUsers < ActiveRecord::Migration
3
+ class CreateRemoteUsers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :remote_users do |t| # rubocop:disable Rails/CreateTableWithTimestamps
6
8
  t.references :remote_tracker, index: true
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateRemoteIssueStatuses < ActiveRecord::Migration
3
+ class CreateRemoteIssueStatuses < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :remote_issue_statuses do |t| # rubocop:disable Rails/CreateTableWithTimestamps
6
8
  t.references :remote_tracker, index: true
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class RenameIssueStatusIdToLocalIssueStatusIdInRemoteIssueStatuses < ActiveRecord::Migration
3
+ class RenameIssueStatusIdToLocalIssueStatusIdInRemoteIssueStatuses < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  rename_column :remote_issue_statuses, :issue_status_id, :local_issue_status_id
6
8
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateRemoteIssues < ActiveRecord::Migration
3
+ class CreateRemoteIssues < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :remote_issues do |t| # rubocop:disable Rails/CreateTableWithTimestamps
6
8
  t.references :remote_tracker, index: true
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddDefaultLocalUserIdToRemoteTrackers < ActiveRecord::Migration
3
+ class AddDefaultLocalUserIdToRemoteTrackers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_reference :remote_trackers, :default_local_user, index: true
6
8
 
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class CreateRemoteTrackerSettings < ActiveRecord::Migration
3
+ class CreateRemoteTrackerSettings < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  create_table :remote_tracker_settings do |t|
6
8
  t.references :remote_tracker, index: true
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddTimestampsToRedmineTrackers < ActiveRecord::Migration
3
+ class AddTimestampsToRedmineTrackers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  class RemoteTracker < ::ActiveRecord::Base; end
5
7
 
6
8
  def change
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddTimestampsToRemoteIssues < ActiveRecord::Migration
3
+ class AddTimestampsToRemoteIssues < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  class RemoteIssue < ::ActiveRecord::Base; end
5
7
 
6
8
  def change
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddTimestampsToRemoteUsers < ActiveRecord::Migration
3
+ class AddTimestampsToRemoteUsers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  class RemoteUser < ::ActiveRecord::Base; end
5
7
 
6
8
  def change
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddOutdatedAtToRemoteIssues < ActiveRecord::Migration
3
+ class AddOutdatedAtToRemoteIssues < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_column :remote_issues, :outdated_at, :datetime
6
8
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddFetchedAtToRemoteIssues < ActiveRecord::Migration
3
+ class AddFetchedAtToRemoteIssues < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_column :remote_issues, :fetched_at, :timestamp
6
8
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddFetchedAtToRemoteTrackers < ActiveRecord::Migration
3
+ class AddFetchedAtToRemoteTrackers < (
4
+ ::Rails.version < '5.1' ? ::ActiveRecord::Migration : ::ActiveRecord::Migration[4.2]
5
+ )
4
6
  def change
5
7
  add_column :remote_trackers, :fetched_at, :datetime
6
8
  end
@@ -7,10 +7,10 @@ module EacRedmineUsability
7
7
 
8
8
  included do
9
9
  has_many :remote_users, class_name: 'RemoteUser', inverse_of: :local_user,
10
- dependent: :destroy
10
+ dependent: :destroy, foreign_key: :local_user_id
11
11
  has_many :remote_trackers_as_default,
12
12
  class_name: 'RemoteTracker', inverse_of: :default_local_user,
13
- dependent: :restrict_with_error
13
+ dependent: :restrict_with_error, foreign_key: :default_local_user_id
14
14
  end
15
15
  end
16
16
  end
@@ -3,7 +3,7 @@
3
3
  module RedmineRemotes
4
4
  SLUG = 'redmine_remotes'
5
5
  NAME = 'Redmine Remotes'
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.4'
7
7
  AUTHOR = 'Eduardo Henrique Bogoni'
8
8
  SUMMARY = 'Integração do Redmine com trackers diversos.'
9
9
  end
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.15.1
4
+ version: 0.15.4
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: 2021-11-05 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -16,28 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.14'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.14.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0.4'
29
+ version: '0.14'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.14.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: avmtrf1-tools
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.29'
39
+ version: '0.38'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.38.2
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - "~>"
39
48
  - !ruby/object:Gem::Version
40
- version: '0.29'
49
+ version: '0.38'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.38.2
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: curb
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -64,28 +76,34 @@ dependencies:
64
76
  requirements:
65
77
  - - "~>"
66
78
  - !ruby/object:Gem::Version
67
- version: '0.11'
79
+ version: '0.15'
68
80
  type: :runtime
69
81
  prerelease: false
70
82
  version_requirements: !ruby/object:Gem::Requirement
71
83
  requirements:
72
84
  - - "~>"
73
85
  - !ruby/object:Gem::Version
74
- version: '0.11'
86
+ version: '0.15'
75
87
  - !ruby/object:Gem::Dependency
76
88
  name: eac_ruby_utils
77
89
  requirement: !ruby/object:Gem::Requirement
78
90
  requirements:
79
91
  - - "~>"
80
92
  - !ruby/object:Gem::Version
81
- version: '0.35'
93
+ version: '0.95'
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 0.95.1
82
97
  type: :runtime
83
98
  prerelease: false
84
99
  version_requirements: !ruby/object:Gem::Requirement
85
100
  requirements:
86
101
  - - "~>"
87
102
  - !ruby/object:Gem::Version
88
- version: '0.35'
103
+ version: '0.95'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 0.95.1
89
107
  - !ruby/object:Gem::Dependency
90
108
  name: validate_url
91
109
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +113,7 @@ dependencies:
95
113
  version: '1.0'
96
114
  - - ">="
97
115
  - !ruby/object:Gem::Version
98
- version: 1.0.8
116
+ version: 1.0.15
99
117
  type: :runtime
100
118
  prerelease: false
101
119
  version_requirements: !ruby/object:Gem::Requirement
@@ -105,27 +123,21 @@ dependencies:
105
123
  version: '1.0'
106
124
  - - ">="
107
125
  - !ruby/object:Gem::Version
108
- version: 1.0.8
126
+ version: 1.0.15
109
127
  - !ruby/object:Gem::Dependency
110
128
  name: eac_ruby_gem_support
111
129
  requirement: !ruby/object:Gem::Requirement
112
130
  requirements:
113
131
  - - "~>"
114
132
  - !ruby/object:Gem::Version
115
- version: '0.1'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 0.1.2
133
+ version: 0.5.1
119
134
  type: :development
120
135
  prerelease: false
121
136
  version_requirements: !ruby/object:Gem::Requirement
122
137
  requirements:
123
138
  - - "~>"
124
139
  - !ruby/object:Gem::Version
125
- version: '0.1'
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: 0.1.2
140
+ version: 0.5.1
129
141
  description:
130
142
  email:
131
143
  executables: []