gem_hadar 1.15.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/bin/gem_hadar +5 -0
- data/gem_hadar.gemspec +10 -9
- data/lib/gem_hadar/version.rb +1 -1
- data/lib/gem_hadar.rb +51 -5
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 763c953e2340634cc5f65b807bc46a99aed3c6dffcfc065bb34014874b3a9c4f
|
4
|
+
data.tar.gz: 23132bf815ea2f481f86c6cadedea67e2a92e799b52386b60f4da5f6daa1b6d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33aa0f0dbe1959ca6274a26be1575844d7f6bc9fce73ed67ee2263d8f36992cd51a81006fe498f63e0b64874ebaed7398f21d1cb74094bc9e59ff37f2ad327db
|
7
|
+
data.tar.gz: f7bf3ab939e39f95f1d565c91e2ab1e4d49d0f0bf82a73e7193f7b5a8731aad3cbe3b055b4cae1862e5129fd8199466d0bade13d41ed28a50a6482890ce3e23e
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.1
|
data/bin/gem_hadar
ADDED
data/gem_hadar.gemspec
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: gem_hadar 1.
|
2
|
+
# stub: gem_hadar 1.16.1 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.16.1".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-07-23"
|
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
|
+
s.executables = ["gem_hadar".freeze]
|
14
15
|
s.extra_rdoc_files = ["README.md".freeze, "lib/gem_hadar.rb".freeze, "lib/gem_hadar/version.rb".freeze]
|
15
|
-
s.files = [".gitignore".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "gem_hadar.gemspec".freeze, "lib/gem_hadar.rb".freeze, "lib/gem_hadar/version.rb".freeze]
|
16
|
+
s.files = [".gitignore".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/gem_hadar".freeze, "gem_hadar.gemspec".freeze, "lib/gem_hadar.rb".freeze, "lib/gem_hadar/version.rb".freeze]
|
16
17
|
s.homepage = "https://github.com/flori/gem_hadar".freeze
|
17
18
|
s.licenses = ["MIT".freeze]
|
18
19
|
s.rdoc_options = ["--title".freeze, "GemHadar - Library for the development of Ruby Gems".freeze, "--main".freeze, "README.md".freeze]
|
19
|
-
s.rubygems_version = "3.
|
20
|
+
s.rubygems_version = "3.5.16".freeze
|
20
21
|
s.summary = "Library for the development of Ruby Gems".freeze
|
21
22
|
|
22
23
|
s.specification_version = 4
|
23
24
|
|
24
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.
|
25
|
-
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
|
26
|
-
s.add_runtime_dependency(%q<rake>.freeze, [">= 0"])
|
27
|
-
s.add_runtime_dependency(%q<yard>.freeze, [">= 0"])
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.16.0".freeze])
|
26
|
+
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0".freeze])
|
27
|
+
s.add_runtime_dependency(%q<rake>.freeze, [">= 0".freeze])
|
28
|
+
s.add_runtime_dependency(%q<yard>.freeze, [">= 0".freeze])
|
28
29
|
end
|
data/lib/gem_hadar/version.rb
CHANGED
data/lib/gem_hadar.rb
CHANGED
@@ -137,6 +137,10 @@ class GemHadar
|
|
137
137
|
FileList[File.join('lib/**/*.rb')] + FileList[File.join('ext/**/*.c')]
|
138
138
|
end
|
139
139
|
|
140
|
+
dsl_accessor :yard_dir do
|
141
|
+
'yard'
|
142
|
+
end
|
143
|
+
|
140
144
|
dsl_accessor :extensions do FileList['ext/**/extconf.rb'] end
|
141
145
|
|
142
146
|
dsl_accessor :make do
|
@@ -354,7 +358,7 @@ EOT
|
|
354
358
|
namespace :version do
|
355
359
|
desc m = "Displaying the diff from HEAD to the last version tag"
|
356
360
|
task :diff do
|
357
|
-
puts `git diff v#{version}..HEAD`
|
361
|
+
puts `git diff --color=always v#{version}..HEAD`
|
358
362
|
end
|
359
363
|
end
|
360
364
|
end
|
@@ -696,23 +700,23 @@ EOT
|
|
696
700
|
def yard_task
|
697
701
|
defined? YARD or return
|
698
702
|
namespace :yard do
|
699
|
-
|
703
|
+
my_yard_dir = Pathname.new(yard_dir)
|
700
704
|
|
701
705
|
desc 'Create yard documentation (including private)'
|
702
706
|
task :private do
|
703
|
-
sh "yardoc -o #{
|
707
|
+
sh "yardoc -o #{my_yard_dir}"
|
704
708
|
end
|
705
709
|
|
706
710
|
desc 'View the yard documentation'
|
707
711
|
task :view do
|
708
|
-
index_file =
|
712
|
+
index_file = my_yard_dir + 'index.html'
|
709
713
|
File.exist?(index_file)
|
710
714
|
sh "open #{index_file}"
|
711
715
|
end
|
712
716
|
|
713
717
|
desc 'Clean the yard documentation'
|
714
718
|
task :clean do
|
715
|
-
rm_rf
|
719
|
+
rm_rf my_yard_dir
|
716
720
|
end
|
717
721
|
|
718
722
|
desc 'List all undocumented classes/modules/methods'
|
@@ -795,6 +799,48 @@ EOT
|
|
795
799
|
end
|
796
800
|
end
|
797
801
|
end
|
802
|
+
|
803
|
+
class Setup
|
804
|
+
include FileUtils
|
805
|
+
|
806
|
+
def perform
|
807
|
+
mkdir_p 'lib'
|
808
|
+
unless File.exist?('VERSION')
|
809
|
+
File.open('VERSION', 'w') do |output|
|
810
|
+
output.puts '0.0.0'
|
811
|
+
end
|
812
|
+
end
|
813
|
+
unless File.exist?('Rakefile')
|
814
|
+
File.open('Rakefile', 'w') do |output|
|
815
|
+
output.puts <<~EOT
|
816
|
+
# vim: set filetype=ruby et sw=2 ts=2:
|
817
|
+
|
818
|
+
require 'gem_hadar'
|
819
|
+
|
820
|
+
GemHadar do
|
821
|
+
#developing true
|
822
|
+
#name 'TODO'
|
823
|
+
module_type :class
|
824
|
+
#author 'TODO'
|
825
|
+
#email 'todo@example.com'
|
826
|
+
#homepage "https://github.com/TODO/NAME"
|
827
|
+
#summary 'TODO'
|
828
|
+
description 'TODO'
|
829
|
+
test_dir 'spec'
|
830
|
+
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.bundle', '.yardoc', 'tags'
|
831
|
+
readme 'README.md'
|
832
|
+
|
833
|
+
#executables << 'bin/TODO'
|
834
|
+
|
835
|
+
#dependency 'TODO', '~>1.2.3'
|
836
|
+
|
837
|
+
#licenses << 'TODO
|
838
|
+
end
|
839
|
+
EOT
|
840
|
+
end
|
841
|
+
end
|
842
|
+
end
|
843
|
+
end
|
798
844
|
end
|
799
845
|
|
800
846
|
def template(pathname, &block)
|
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.16.1
|
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-07-23 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.16.0
|
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.16.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tins
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description: This library contains some useful functionality to support the development
|
70
70
|
of Ruby Gems
|
71
71
|
email: flori@ping.de
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- gem_hadar
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files:
|
75
76
|
- README.md
|
@@ -82,6 +83,7 @@ files:
|
|
82
83
|
- README.md
|
83
84
|
- Rakefile
|
84
85
|
- VERSION
|
86
|
+
- bin/gem_hadar
|
85
87
|
- gem_hadar.gemspec
|
86
88
|
- lib/gem_hadar.rb
|
87
89
|
- lib/gem_hadar/version.rb
|
@@ -108,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
110
|
- !ruby/object:Gem::Version
|
109
111
|
version: '0'
|
110
112
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
113
|
+
rubygems_version: 3.5.16
|
112
114
|
signing_key:
|
113
115
|
specification_version: 4
|
114
116
|
summary: Library for the development of Ruby Gems
|