gem_hadar 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/gem_hadar.gemspec +6 -5
- data/lib/gem_hadar/version.rb +1 -1
- data/lib/gem_hadar.rb +23 -3
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6794b0adee840c26a5500e98334b3296c85e87d7ac0d99df19641aec32c916
|
4
|
+
data.tar.gz: ae9be32c33c97b1ca69efaf999cd76f205b7d4fa45e8b9a769e0e42502ce8308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b436b46e8f9590fb19c1cf3f0d19a9dbcd825f9821c725bfc8918374dd0cf4e710b6a60129b381e380940e9499fd439d274db6fb8672fca3553bf745ee1a3c26
|
7
|
+
data.tar.gz: 9e50ee8262c144aeed34d5bf3f2083512aa45b6f7eb0219bc5bbf1a95534182860a104524a2bbc56a496e7582089035f5fc67b5c728ab0eb1bdae2d689785c02
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.18.0
|
data/gem_hadar.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: gem_hadar 1.
|
2
|
+
# stub: gem_hadar 1.18.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "gem_hadar".freeze
|
6
|
-
s.version = "1.
|
6
|
+
s.version = "1.18.0".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2024-
|
11
|
+
s.date = "2024-09-25"
|
12
12
|
s.description = "This library contains some useful functionality to support the development of Ruby Gems".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["gem_hadar".freeze]
|
@@ -17,13 +17,14 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.homepage = "https://github.com/flori/gem_hadar".freeze
|
18
18
|
s.licenses = ["MIT".freeze]
|
19
19
|
s.rdoc_options = ["--title".freeze, "GemHadar - Library for the development of Ruby Gems".freeze, "--main".freeze, "README.md".freeze]
|
20
|
-
s.rubygems_version = "3.5.
|
20
|
+
s.rubygems_version = "3.5.18".freeze
|
21
21
|
s.summary = "Library for the development of Ruby Gems".freeze
|
22
22
|
|
23
23
|
s.specification_version = 4
|
24
24
|
|
25
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
|
26
26
|
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0".freeze])
|
27
|
+
s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.0".freeze])
|
27
28
|
s.add_runtime_dependency(%q<rake>.freeze, [">= 0".freeze])
|
28
29
|
s.add_runtime_dependency(%q<yard>.freeze, [">= 0".freeze])
|
29
30
|
end
|
data/lib/gem_hadar/version.rb
CHANGED
data/lib/gem_hadar.rb
CHANGED
@@ -17,6 +17,7 @@ require 'set'
|
|
17
17
|
require 'pathname'
|
18
18
|
require 'erb'
|
19
19
|
require 'gem_hadar/version'
|
20
|
+
require 'term/ansicolor'
|
20
21
|
require_maybe 'yard'
|
21
22
|
require_maybe 'simplecov'
|
22
23
|
require_maybe 'rubygems/package_task'
|
@@ -28,6 +29,8 @@ def GemHadar(&block)
|
|
28
29
|
end
|
29
30
|
|
30
31
|
class GemHadar
|
32
|
+
include Term::ANSIColor
|
33
|
+
|
31
34
|
if defined?(::RbConfig)
|
32
35
|
include ::RbConfig
|
33
36
|
else
|
@@ -338,7 +341,7 @@ EOT
|
|
338
341
|
|
339
342
|
def version_show_task
|
340
343
|
namespace :version do
|
341
|
-
desc
|
344
|
+
desc "Displaying the current version"
|
342
345
|
task :show do
|
343
346
|
require path_name
|
344
347
|
dir = File.join('lib', path_name)
|
@@ -354,11 +357,28 @@ EOT
|
|
354
357
|
end
|
355
358
|
end
|
356
359
|
|
360
|
+
def versions
|
361
|
+
`git tag`.lines.grep(/^v?\d+\.\d+\.\d+$/).map(&:chomp).map {
|
362
|
+
_1.sub(/\Av/, '')
|
363
|
+
}.sort_by(&:version)
|
364
|
+
end
|
365
|
+
|
357
366
|
def version_diff_task
|
358
367
|
namespace :version do
|
359
|
-
desc
|
368
|
+
desc "List all versions in order"
|
369
|
+
task :list do
|
370
|
+
system 'git fetch --tags'
|
371
|
+
$?.success? or exit $?.exitstatus
|
372
|
+
puts versions
|
373
|
+
end
|
374
|
+
|
375
|
+
desc "Displaying the diff from env var VERSION to the next version or HEAD"
|
360
376
|
task :diff do
|
361
|
-
|
377
|
+
arg_version = ENV.fetch('VERSION', version).dup.prepend(?v)
|
378
|
+
my_versions = versions.map { _1.prepend(?v) } + %w[ HEAD ]
|
379
|
+
start_version, end_version = my_versions[my_versions.index(arg_version), 2]
|
380
|
+
puts color(172) {"Showing diff from version %s to %s:" % [ start_version, end_version ]}
|
381
|
+
puts `git diff --color=always #{start_version}..#{end_version}`
|
362
382
|
end
|
363
383
|
end
|
364
384
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_hadar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.17.1
|
20
20
|
type: :development
|
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.
|
26
|
+
version: 1.17.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tins
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: term-ansicolor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
124
|
- !ruby/object:Gem::Version
|
111
125
|
version: '0'
|
112
126
|
requirements: []
|
113
|
-
rubygems_version: 3.5.
|
127
|
+
rubygems_version: 3.5.18
|
114
128
|
signing_key:
|
115
129
|
specification_version: 4
|
116
130
|
summary: Library for the development of Ruby Gems
|