redmine_with_git 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7d484eec77d79689405f8634591eb44a6fa6a84975d9791612602ae940effe1
4
- data.tar.gz: 750b7314644af67014ddbe58f27fb4b92aa34a4cc8ce97106970544c297b9beb
3
+ metadata.gz: '09049ae120faf0327f9524459ca4d3d125a5cafa77cc81e33e09ac039ac478bc'
4
+ data.tar.gz: 746a1d020b7e60af640eea1e673d1cbb2346382312b5cf9b6101ac7569938327
5
5
  SHA512:
6
- metadata.gz: b0def621627e1abb45ad3d9849fde4f7930cb224770d89e54004043e2380940d07363087b1b76cf391ce398557e6026d7d7e8fba0531a55430c4ae181d71320a
7
- data.tar.gz: 5048d17fdf1d178bbe193dbf04641535ea6f0bd728964a1c494c45e3a094c5dd431bc38d09a32e6971788d6102aba5f24ceda760782c66b65b5407053627bb8b
6
+ metadata.gz: 940536b9a396c62733b129d87ea29baa6105234608dd55fed3a68abfd3d995ab682169579990404e42174fa27ced8bbaeaca09aa50d868380663accad283a17a
7
+ data.tar.gz: 81a2354ad99967c37b2bc20dad7da6a27a65283bc5a4992a8de25a6605033153d9d7f9eebf46db69e84db38d071d7f65a67b7bb70159604a19adf12b6b1c6db2
@@ -43,7 +43,7 @@ class BackupController < ApplicationController
43
43
 
44
44
  def import_respond_to_html
45
45
  if @load.errors.empty?
46
- redirect_to backup_path, notice: 'Backup imported'
46
+ redirect_to backup_path, notice: 'Backup imported' # rubocop:disable Rails/I18nLocaleTexts
47
47
  else
48
48
  render :index
49
49
  end
@@ -4,7 +4,7 @@ Redmine::Plugin.post_register :redmine_with_git do
4
4
  # Source: https://github.com/esquilo-azul/redmine_nonproject_modules
5
5
  requires_redmine_plugin(:redmine_nonproject_modules, version_or_higher: '0.3.1')
6
6
 
7
- if ::Redmine::VERSION.to_s < '4'
7
+ if Redmine::VERSION.to_s < '4'
8
8
  # Source: https://github.com/jbox-web/redmine_bootstrap_kit.git
9
9
  # Note: redmine_bootstrap_kit is a redmine_git_hosting's dependency.
10
10
  requires_redmine_plugin(:redmine_bootstrap_kit, version_or_higher: '0.2.5')
@@ -19,7 +19,7 @@ Redmine::Plugin.post_register :redmine_with_git do
19
19
  end
20
20
 
21
21
  # Source: https://github.com/esquilo-azul/redmine_installer
22
- if ::Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
22
+ if Redmine::Plugin.registered_plugins.keys.include?(:redmine_installer)
23
23
  requires_redmine_plugin(:redmine_installer, version_or_higher: '0.21.0')
24
24
  end
25
25
  end
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'redmine_with_git/patches/redmine_git_hosting/gitolite_hook_patch'
4
4
 
5
- apply_patches_version_limit = ::Gem::Version.new('4.0.0')
6
- redmine_git_hosting_version = ::Gem::Version.new(
7
- ::Redmine::Plugin.registered_plugins[:redmine_git_hosting].version
5
+ apply_patches_version_limit = Gem::Version.new('4.0.0')
6
+ redmine_git_hosting_version = Gem::Version.new(
7
+ Redmine::Plugin.registered_plugins[:redmine_git_hosting].version
8
8
  )
9
9
 
10
10
  return unless redmine_git_hosting_version < apply_patches_version_limit
data/init.rb CHANGED
@@ -7,7 +7,7 @@ Redmine::Plugin.register :redmine_with_git do
7
7
  name 'RedmineWithGit'
8
8
  author 'Esquilo Azul Company'
9
9
  description 'Utilities for Redmine + plugin redmine_git_hosting.'
10
- version ::RedmineWithGit::VERSION
10
+ version RedmineWithGit::VERSION
11
11
  url 'https://github.com/esquilo-azul/redmine_with_git'
12
12
  author_url 'https://github.com/esquilo-azul'
13
13
  end
@@ -50,7 +50,7 @@ module RedmineWithGit
50
50
  Rails.logger.info("#{path}: #{number_to_human_size(::File.size(path))}, #{path_type}")
51
51
  end
52
52
 
53
- def run_if_overwrite_denied
53
+ def run_if_overwrite_denied # rubocop:disable Naming/PredicateMethod
54
54
  if ::File.exist?(path) && overwrite == OVERWRITE_DENIED
55
55
  Rails.logger.warn "File \"#{path}\" already exists"
56
56
  false
@@ -59,7 +59,7 @@ module RedmineWithGit
59
59
  end
60
60
  end
61
61
 
62
- def run_if_rotate
62
+ def run_if_rotate # rubocop:disable Naming/PredicateMethod
63
63
  if ::File.exist?(path) && overwrite == OVERWRITE_ROTATE
64
64
  rotate = ::Avm::Data::Rotate.new(path, space_limit: space_limit)
65
65
  ::Rails.logger.info "Rotating \"#{rotate.source_path}\"..."
@@ -18,6 +18,6 @@ module RedmineGitHosting
18
18
  end
19
19
  end
20
20
 
21
- patch = ::RedmineGitHosting::Cache::DatabasePatch
22
- target = ::RedmineGitHosting::Cache::Database
23
- target.send(:include, patch) unless target.included_modules.include? patch
21
+ patch = RedmineGitHosting::Cache::DatabasePatch
22
+ target = RedmineGitHosting::Cache::Database
23
+ target.send(:include, patch) unless target.include?(patch)
@@ -23,6 +23,6 @@ module RedmineWithGit
23
23
  end
24
24
  end
25
25
 
26
- patch = ::RedmineWithGit::Patches::RedmineGitHosting::Commands::GitPatch
27
- target = ::RedmineGitHosting::Commands::Git
28
- target.send(:include, patch) unless target.included_modules.include?(patch)
26
+ patch = RedmineWithGit::Patches::RedmineGitHosting::Commands::GitPatch
27
+ target = RedmineGitHosting::Commands::Git
28
+ target.send(:include, patch) unless target.include?(patch)
@@ -63,7 +63,7 @@ module RedmineWithGit
63
63
 
64
64
  # @return [String]
65
65
  def shebang_to
66
- "\#\!#{send("#{shebang_replacement}_shebang")}\n"
66
+ "#!#{send("#{shebang_replacement}_shebang")}\n"
67
67
  end
68
68
 
69
69
  # @return [String]
@@ -86,7 +86,7 @@ module RedmineWithGit
86
86
  end
87
87
  end
88
88
 
89
- ::EacRubyUtils.patch_module(
90
- ::RedmineGitHosting::GitoliteHook,
91
- ::RedmineWithGit::Patches::RedmineGitHosting::GitoliteHookPatch
89
+ EacRubyUtils.patch_module(
90
+ RedmineGitHosting::GitoliteHook,
91
+ RedmineWithGit::Patches::RedmineGitHosting::GitoliteHookPatch
92
92
  )
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.3'
5
5
 
6
6
  module Version
7
7
  end
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- namespace :redmine_with_git do
3
+ namespace :redmine_with_git do # rubocop:disable Metrics/BlockLength
4
4
  %w[database files git all].each do |a|
5
5
  namespace :dump do
6
6
  desc <<~DESCRIPTION
7
- Dump backup file for \"#{a}\" resource(s).
7
+ Dump backup file for "#{a}" resource(s).
8
8
 
9
9
  Arguments:
10
10
  * <path>: path to the dump.
@@ -12,14 +12,14 @@ namespace :redmine_with_git do
12
12
  * [space_limit]: limits the used space by all rotated files.
13
13
  DESCRIPTION
14
14
  task a, %i[path overwrite space_limit] => :environment do |_t, args|
15
- ::RedmineWithGit::Dump.const_get(a.camelize).new(args.path, overwrite: args.overwrite,
16
- space_limit: args.space_limit)
15
+ RedmineWithGit::Dump.const_get(a.camelize).new(args.path, overwrite: args.overwrite,
16
+ space_limit: args.space_limit)
17
17
  end
18
18
  end
19
19
  namespace :load do
20
20
  desc "Load backup file for \"#{a}\" resource(s)"
21
21
  task a, [:path] => :environment do |_t, args|
22
- ::RedmineWithGit::Load.const_get(a.camelize).new(args.path)
22
+ RedmineWithGit::Load.const_get(a.camelize).new(args.path)
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_with_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-11 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.98'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.98.5
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,53 +27,47 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.98'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.98.5
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: eac_rails_utils
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.26'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.26.1
39
+ version: '0.28'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '0.26'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.26.1
46
+ version: '0.28'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_ruby_utils
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.128'
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: 0.128.3
53
+ version: '0.130'
57
54
  type: :runtime
58
55
  prerelease: false
59
56
  version_requirements: !ruby/object:Gem::Requirement
60
57
  requirements:
61
58
  - - "~>"
62
59
  - !ruby/object:Gem::Version
63
- version: '0.128'
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: 0.128.3
60
+ version: '0.130'
67
61
  - !ruby/object:Gem::Dependency
68
- name: eac_ruby_gem_support
62
+ name: eac_rails_gem_support
69
63
  requirement: !ruby/object:Gem::Requirement
70
64
  requirements:
71
65
  - - "~>"
72
66
  - !ruby/object:Gem::Version
73
67
  version: '0.12'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 0.12.1
74
71
  type: :development
75
72
  prerelease: false
76
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -78,8 +75,11 @@ dependencies:
78
75
  - - "~>"
79
76
  - !ruby/object:Gem::Version
80
77
  version: '0.12'
81
- description:
82
- email:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 0.12.1
81
+ description:
82
+ email:
83
83
  executables: []
84
84
  extensions: []
85
85
  extra_rdoc_files: []
@@ -144,10 +144,10 @@ files:
144
144
  - lib/redmine_with_git/patches/redmine_git_hosting/gitolite_hook_patch.rb
145
145
  - lib/redmine_with_git/version.rb
146
146
  - lib/tasks/redmine_with_git.rake
147
- homepage:
147
+ homepage:
148
148
  licenses: []
149
149
  metadata: {}
150
- post_install_message:
150
+ post_install_message:
151
151
  rdoc_options: []
152
152
  require_paths:
153
153
  - lib
@@ -162,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.1.6
166
- signing_key:
165
+ rubygems_version: 3.4.19
166
+ signing_key:
167
167
  specification_version: 4
168
168
  summary: Additional features for RedmineGitHosting.
169
169
  test_files: []