redmine_plugin_kit 1.0.0 → 1.0.3

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: f1ca2a8bc5bffe81e35eb4a4f5429914b90a47af862c234de0f19af6e767ef85
4
- data.tar.gz: 2db5c0fe2c3ffc6737f7022d695539299a7602da4066dab747ef31a1a46daff0
3
+ metadata.gz: f4535aea9c15c01d458e82d652b2a20e23724fe1e960dedb92353ce86c2b3ad4
4
+ data.tar.gz: 48ceea39bf2c15365b51e0a2e3af73fb02bc02862c0f3d98117ba8e50617bac7
5
5
  SHA512:
6
- metadata.gz: b4ea61b8eb25d27514dec076749921f7a0153f72f2844de446b657dee25001ab7bd2f97211afd7525fa0fe19f4fdbacb3b432607a52ae8f2cb3362e814d8e128
7
- data.tar.gz: 6f65d73453e5a4db73737c6c17ba5bebc0273067915490560b8121f4121538954f5b216a12aaf8789e4dd88da29eb7c1ad525bfb6edef84497024bbe640aac99
6
+ metadata.gz: 405b4b2a44b60d79062c0e3338cfde79719a6f4a96bc26e5fcb16541d79f37efaf1c0c6c66398a0d9f52250d3d41f8964c1cf1af9f4ff440d1c8a0e544cbd16c
7
+ data.tar.gz: 302f85f7e1f3fbda3bfb2a3427ba7b3846cb9cacf1edc89e190873a969b9cc7ab97bd1fe7082eab41dcc83fcdc80f34d9fa3ca6903eb3cafdf4ca67588b7ae58
@@ -22,6 +22,7 @@ jobs:
22
22
 
23
23
  - name: Setup gems
24
24
  run: |
25
+ cp test/support/gemfile.rb Gemfile
25
26
  bundle install --jobs 4 --retry 3
26
27
 
27
28
  - name: Run RuboCop
data/.rubocop.yml CHANGED
@@ -1,15 +1,23 @@
1
1
  require:
2
2
  - rubocop-performance
3
3
  - rubocop-rails
4
-
5
- Rails:
6
- Enabled: true
4
+ - rubocop-minitest
7
5
 
8
6
  AllCops:
9
7
  TargetRubyVersion: 2.6
10
8
  TargetRailsVersion: 5.2
11
9
  NewCops: enable
12
10
 
11
+ Rails:
12
+ Enabled: true
13
+
14
+ Minitest/MultipleAssertions:
15
+ Max: 15
16
+ Enabled: true
17
+
18
+ Minitest/AssertPredicate:
19
+ Enabled: false
20
+
13
21
  Metrics/AbcSize:
14
22
  Enabled: false
15
23
 
@@ -92,6 +100,12 @@ Style/OptionHash:
92
100
  - parameters
93
101
  - settings
94
102
 
103
+ # postgresql and mysql are supported
104
+ # autodetect does not work without database configuration
105
+ Rails/BulkChangeTable:
106
+ Enabled: true
107
+ Database: postgresql
108
+
95
109
  Style/ReturnNil:
96
110
  Enabled: true
97
111
 
@@ -17,9 +17,9 @@ module RedminePluginKit
17
17
  parts = url.split '://'
18
18
  name = if parts.count.positive?
19
19
  parts.shift
20
- parts.join
20
+ parts.join.chomp '/'
21
21
  else
22
- url
22
+ url.chomp '/'
23
23
  end
24
24
 
25
25
  link_to_external name, url, **options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedminePluginKit
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.3'
5
5
  end
@@ -8,7 +8,7 @@ namespace :redmine_plugin_kit do
8
8
  bundle exec rake redmine_plugin_kit:drop_settings RAILS_ENV=production plugin="redmine_plugin_example"
9
9
  DESCRIPTION
10
10
  task drop_settings: :environment do
11
- plugin = ENV['plugin']
11
+ plugin = ENV.fetch 'plugin', nil
12
12
 
13
13
  if plugin.blank?
14
14
  puts 'Parameter plugin is required.'
@@ -30,11 +30,11 @@ namespace :redmine_plugin_kit do
30
30
  DESCRIPTION
31
31
  task setting_set: :environment do
32
32
  name = ENV['name'] ||= 'redmine'
33
- setting = ENV['setting']
33
+ setting = ENV.fetch 'setting', nil
34
34
  value = if ENV['values'].present?
35
35
  ENV['values'].split ','
36
36
  else
37
- ENV['value']
37
+ ENV.fetch 'value', nil
38
38
  end
39
39
 
40
40
  if name.blank? || setting.blank? || value.blank?
@@ -64,7 +64,7 @@ namespace :redmine_plugin_kit do
64
64
  DESCRIPTION
65
65
  task setting_get: :environment do
66
66
  name = ENV['name'] ||= 'redmine'
67
- setting = ENV['setting']
67
+ setting = ENV.fetch 'setting', nil
68
68
 
69
69
  if setting.blank?
70
70
  puts 'Parameters setting is required'
@@ -24,13 +24,10 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ['lib']
25
25
  spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'deface', '1.8.1'
27
+ spec.add_dependency 'deface', '1.9.0'
28
28
  spec.add_runtime_dependency 'rails'
29
29
 
30
30
  spec.add_development_dependency 'bundler'
31
31
  spec.add_development_dependency 'rake'
32
- spec.add_development_dependency 'rubocop'
33
- spec.add_development_dependency 'rubocop-performance'
34
- spec.add_development_dependency 'rubocop-rails'
35
32
  spec.add_development_dependency 'sqlite3'
36
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_plugin_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlphaNodes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.8.1
19
+ version: 1.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.8.1
26
+ version: 1.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,48 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-performance
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
69
  - !ruby/object:Gem::Dependency
112
70
  name: sqlite3
113
71
  requirement: !ruby/object:Gem::Requirement
@@ -166,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
124
  - !ruby/object:Gem::Version
167
125
  version: '0'
168
126
  requirements: []
169
- rubygems_version: 3.1.6
127
+ rubygems_version: 3.3.7
170
128
  signing_key:
171
129
  specification_version: 4
172
130
  summary: Redmine plugin kit