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 +4 -4
- data/app/models/remote_tracker.rb +2 -1
- data/app/models/remote_user.rb +1 -1
- data/config/initializers/000_dependencies.rb +1 -1
- data/config/initializers/nonproject_modules.rb +4 -0
- data/db/migrate/20190531171641_create_remote_trackers.rb +3 -1
- data/db/migrate/20190910182842_create_remote_users.rb +3 -1
- data/db/migrate/20190910203552_create_remote_issue_statuses.rb +3 -1
- data/db/migrate/20190911165556_rename_issue_status_id_to_local_issue_status_id_in_remote_issue_statuses.rb +3 -1
- data/db/migrate/20190912000000_create_remote_issues.rb +3 -1
- data/db/migrate/20190913195930_add_default_local_user_id_to_remote_trackers.rb +3 -1
- data/db/migrate/20200504183142_create_remote_tracker_settings.rb +3 -1
- data/db/migrate/20200505153200_add_timestamps_to_redmine_trackers.rb +3 -1
- data/db/migrate/20200505160938_add_timestamps_to_remote_issues.rb +3 -1
- data/db/migrate/20200505161002_add_timestamps_to_remote_users.rb +3 -1
- data/db/migrate/20200602192120_add_outdated_at_to_remote_issues.rb +3 -1
- data/db/migrate/20200602194753_add_fetched_at_to_remote_issues.rb +3 -1
- data/db/migrate/20200602203020_add_fetched_at_to_remote_trackers.rb +3 -1
- data/lib/redmine_remotes/patches/user.rb +2 -2
- data/lib/redmine_remotes/version.rb +1 -1
- metadata +32 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f38544d7fbde4e26f3009ddb4797e11c7998bfa74057f45ad4fe150a1aec633
|
4
|
+
data.tar.gz: 4e82fa2b04e341cef549c1a7f2c58412f12b271ab4b4cd1f517c663dfa75ad52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/app/models/remote_user.rb
CHANGED
@@ -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.
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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 <
|
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
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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: []
|