gem_hadar 1.17.1 → 1.19.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 +5 -4
- data/lib/gem_hadar/version.rb +1 -1
- data/lib/gem_hadar.rb +24 -4
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 040403d6ff936fc93918a7b72ee41b7c06b0ffaf9b88cd5953c96458587513bc
|
4
|
+
data.tar.gz: ce6834549c29b47f6540e65a52b4d7967fc96ff05a2ef42b21187ea12fcf0aa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b85d777cdac8646cb462559ace1a6b7cb3ca0bae520f734431e3d0f8403313506ef0aa04800159f6a7692b506fba877286c52e512bced5a4b3a4a3f883c5d8
|
7
|
+
data.tar.gz: 91b9a1e72041b5e7231c88f09d99f197666226af7485fd8cb4c6702417c0e0896280eb5bf6c7e673efb748bc6ebacd939d8572ae55f023bd52c4a03e831e3911
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.19.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.19.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.19.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-10-14"
|
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]
|
@@ -22,8 +22,9 @@ Gem::Specification.new do |s|
|
|
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.19".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
|
@@ -288,7 +291,7 @@ class GemHadar
|
|
288
291
|
post_install_message.full? { |m| s.post_install_message = m }
|
289
292
|
|
290
293
|
required_ruby_version.full? { |v| s.required_ruby_version = v }
|
291
|
-
s.add_development_dependency('gem_hadar', "
|
294
|
+
s.add_development_dependency('gem_hadar', "~> #{VERSION[/\A\d+\.\d+/, 0]}")
|
292
295
|
for d in @development_dependencies
|
293
296
|
s.add_development_dependency(*d)
|
294
297
|
end
|
@@ -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.19.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-10-14 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.19'
|
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.19'
|
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
|