rake-release 1.2.1 → 1.4.0
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 +4 -4
- data/.github/workflows/lint.yml +24 -0
- data/.rubocop.yml +6 -59
- data/Gemfile +2 -1
- data/lib/rake/release/spec.rb +3 -8
- data/lib/rake/release/task.rb +4 -4
- data/rake-release.gemspec +5 -3
- data/renovate.json +6 -0
- metadata +10 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a54d7676e961a39157877c4d66086b64b54ef63bce677386c814cc76dc4754a
|
|
4
|
+
data.tar.gz: cfb9a4bb2a0dc2d5fdad219d5e8a76d0fc4d2fc7224042764032e41cb8e2c4eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ed99a40aa8fb04a15ac08172f87eea221684d754eeda5d2f4c75bda719181331fe61e27df54b8a29064c12e3ce78ceb2d662c174e14fccc86c84c1e446ca3ea
|
|
7
|
+
data.tar.gz: c448d3264f5d3652dd2aae3f74cdecad106fea7df01b31eef1708d67719a8385f977e8b4c481501eebf73c1ceac94cb5e184125bd958ac07360ce38306d0dabc
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lint
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
rubocop:
|
|
10
|
+
name: rubocop
|
|
11
|
+
runs-on: ubuntu-24.04
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@master
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: 3.4.8
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
env:
|
|
20
|
+
BUNDLE_WITHOUT: development
|
|
21
|
+
BUNDLE_JOBS: 4
|
|
22
|
+
BUNDLE_RETRY: 3
|
|
23
|
+
|
|
24
|
+
- run: bundle exec rubocop --parallel --fail-level E
|
data/.rubocop.yml
CHANGED
|
@@ -1,60 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Layout/ArgumentAlignment:
|
|
6
|
-
EnforcedStyle: with_fixed_indentation
|
|
7
|
-
|
|
8
|
-
Layout/CaseIndentation:
|
|
9
|
-
EnforcedStyle: end
|
|
10
|
-
SupportedStyles:
|
|
11
|
-
- case
|
|
12
|
-
- end
|
|
13
|
-
IndentOneStep: true
|
|
14
|
-
|
|
15
|
-
Layout/LineLength:
|
|
16
|
-
Exclude:
|
|
17
|
-
- '*.gemspec'
|
|
18
|
-
|
|
19
|
-
Layout/SpaceInsideBlockBraces:
|
|
20
|
-
EnforcedStyle: space
|
|
21
|
-
EnforcedStyleForEmptyBraces: no_space
|
|
22
|
-
SpaceBeforeBlockParameters: false
|
|
23
|
-
|
|
24
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
25
|
-
EnforcedStyle: no_space
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Metrics/AbcSize:
|
|
29
|
-
Enabled: false
|
|
30
|
-
|
|
31
|
-
Metrics/ClassLength:
|
|
32
|
-
Enabled: false
|
|
1
|
+
inherit_gem:
|
|
2
|
+
rubocop-config: default.yml
|
|
33
3
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Style/ClassAndModuleChildren:
|
|
39
|
-
Enabled: false
|
|
40
|
-
|
|
41
|
-
Style/Documentation:
|
|
42
|
-
Enabled: false
|
|
43
|
-
|
|
44
|
-
Style/HashEachMethods:
|
|
45
|
-
Enabled: false
|
|
46
|
-
|
|
47
|
-
Style/HashTransformKeys:
|
|
48
|
-
Enabled: false
|
|
49
|
-
|
|
50
|
-
Style/HashTransformValues:
|
|
51
|
-
Enabled: false
|
|
52
|
-
|
|
53
|
-
Style/RaiseArgs:
|
|
54
|
-
EnforcedStyle: compact
|
|
55
|
-
|
|
56
|
-
Style/SignalException:
|
|
57
|
-
EnforcedStyle: only_raise
|
|
58
|
-
|
|
59
|
-
Style/TrivialAccessors:
|
|
60
|
-
AllowPredicates: true
|
|
4
|
+
AllCops:
|
|
5
|
+
TargetRubyVersion: 2.5
|
|
6
|
+
SuggestExtensions: False
|
|
7
|
+
NewCops: enable
|
data/Gemfile
CHANGED
data/lib/rake/release/spec.rb
CHANGED
|
@@ -13,14 +13,9 @@ module Rake
|
|
|
13
13
|
delegate name: :@gemspec
|
|
14
14
|
delegate version: :@gemspec
|
|
15
15
|
|
|
16
|
-
attr_reader :base
|
|
17
|
-
attr_reader :gemspec
|
|
18
|
-
attr_reader :gemspec_path
|
|
19
|
-
attr_reader :push_host
|
|
16
|
+
attr_reader :base, :gemspec, :gemspec_path, :push_host
|
|
20
17
|
|
|
21
|
-
attr_accessor :sign_tag
|
|
22
|
-
attr_accessor :namespace
|
|
23
|
-
attr_accessor :version_tag
|
|
18
|
+
attr_accessor :sign_tag, :namespace, :version_tag
|
|
24
19
|
|
|
25
20
|
def initialize(path = nil, namespace: nil, sign_tag: false)
|
|
26
21
|
path = Task.pwd.join(path.to_s).expand_path
|
|
@@ -89,7 +84,7 @@ module Rake
|
|
|
89
84
|
Pathname
|
|
90
85
|
.glob(path)
|
|
91
86
|
.map {|m| Rake::Release::Spec.load(m) }
|
|
92
|
-
.
|
|
87
|
+
.compact
|
|
93
88
|
end
|
|
94
89
|
end
|
|
95
90
|
end
|
data/lib/rake/release/task.rb
CHANGED
|
@@ -113,7 +113,7 @@ module Rake
|
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
def git_clean
|
|
116
|
-
clean? && committed? ||
|
|
116
|
+
(clean? && committed?) ||
|
|
117
117
|
raise('There are files that need to be committed first.')
|
|
118
118
|
end
|
|
119
119
|
|
|
@@ -151,7 +151,7 @@ module Rake
|
|
|
151
151
|
def already_tagged?
|
|
152
152
|
out, = sh 'git', 'tag'
|
|
153
153
|
|
|
154
|
-
return false unless out.split(
|
|
154
|
+
return false unless out.split("\n").include? @spec.version_tag
|
|
155
155
|
|
|
156
156
|
Task.ui.confirm "Tag #{@spec.version_tag} has already been created."
|
|
157
157
|
|
|
@@ -203,12 +203,12 @@ module Rake
|
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
class << self
|
|
206
|
-
def load_all(dir = pwd)
|
|
206
|
+
def load_all(dir = pwd, &block)
|
|
207
207
|
specs = Spec.scan dir.join('**/*.gemspec')
|
|
208
208
|
|
|
209
209
|
specs.each {|spec| spec.namespace = spec.name } if specs.size > 1
|
|
210
210
|
|
|
211
|
-
specs.each(&
|
|
211
|
+
specs.each(&block) if block
|
|
212
212
|
|
|
213
213
|
if specs.uniq {|s| s.namespace.to_s.strip }.size != specs.size
|
|
214
214
|
raise 'Non distinct release task namespaces'
|
data/rake-release.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'rake-release'
|
|
5
|
-
spec.version = '1.
|
|
5
|
+
spec.version = '1.4.0'
|
|
6
6
|
spec.authors = ['Jan Graichen']
|
|
7
7
|
spec.email = ['jgraichen@altimos.de']
|
|
8
8
|
spec.licenses = ['MIT']
|
|
@@ -11,11 +11,13 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.description = 'Configurable fork of bundlers release tasks.'
|
|
12
12
|
spec.homepage = 'https://github.com/jgraichen/rake-release'
|
|
13
13
|
|
|
14
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
15
|
+
|
|
14
16
|
spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
|
|
15
17
|
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
|
16
18
|
spec.require_paths = %w[lib]
|
|
17
19
|
|
|
18
|
-
spec.
|
|
20
|
+
spec.required_ruby_version = '>= 2.5'
|
|
19
21
|
|
|
20
|
-
spec.
|
|
22
|
+
spec.add_dependency 'bundler', '>= 1.11', '< 5'
|
|
21
23
|
end
|
data/renovate.json
ADDED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rake-release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Graichen
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -19,7 +18,7 @@ dependencies:
|
|
|
19
18
|
version: '1.11'
|
|
20
19
|
- - "<"
|
|
21
20
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
21
|
+
version: '5'
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,27 +28,7 @@ dependencies:
|
|
|
29
28
|
version: '1.11'
|
|
30
29
|
- - "<"
|
|
31
30
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
33
|
-
- !ruby/object:Gem::Dependency
|
|
34
|
-
name: bundler
|
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '1.11'
|
|
40
|
-
- - "<"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: '3'
|
|
43
|
-
type: :development
|
|
44
|
-
prerelease: false
|
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
46
|
-
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: '1.11'
|
|
50
|
-
- - "<"
|
|
51
|
-
- !ruby/object:Gem::Version
|
|
52
|
-
version: '3'
|
|
31
|
+
version: '5'
|
|
53
32
|
description: Configurable fork of bundlers release tasks.
|
|
54
33
|
email:
|
|
55
34
|
- jgraichen@altimos.de
|
|
@@ -58,6 +37,7 @@ extensions: []
|
|
|
58
37
|
extra_rdoc_files: []
|
|
59
38
|
files:
|
|
60
39
|
- ".editorconfig"
|
|
40
|
+
- ".github/workflows/lint.yml"
|
|
61
41
|
- ".gitignore"
|
|
62
42
|
- ".rubocop.yml"
|
|
63
43
|
- Gemfile
|
|
@@ -68,13 +48,14 @@ files:
|
|
|
68
48
|
- lib/rake/release/spec.rb
|
|
69
49
|
- lib/rake/release/task.rb
|
|
70
50
|
- rake-release.gemspec
|
|
51
|
+
- renovate.json
|
|
71
52
|
- scripts/console
|
|
72
53
|
- scripts/setup
|
|
73
54
|
homepage: https://github.com/jgraichen/rake-release
|
|
74
55
|
licenses:
|
|
75
56
|
- MIT
|
|
76
|
-
metadata:
|
|
77
|
-
|
|
57
|
+
metadata:
|
|
58
|
+
rubygems_mfa_required: 'true'
|
|
78
59
|
rdoc_options: []
|
|
79
60
|
require_paths:
|
|
80
61
|
- lib
|
|
@@ -82,15 +63,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
82
63
|
requirements:
|
|
83
64
|
- - ">="
|
|
84
65
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: '
|
|
66
|
+
version: '2.5'
|
|
86
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
68
|
requirements:
|
|
88
69
|
- - ">="
|
|
89
70
|
- !ruby/object:Gem::Version
|
|
90
71
|
version: '0'
|
|
91
72
|
requirements: []
|
|
92
|
-
rubygems_version:
|
|
93
|
-
signing_key:
|
|
73
|
+
rubygems_version: 4.0.3
|
|
94
74
|
specification_version: 4
|
|
95
75
|
summary: Configurable fork of bundlers release tasks.
|
|
96
76
|
test_files: []
|