gem_hadar 1.15.0 → 1.16.0

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: 11e03be95b2169fde436922ac9450c6061a231fe68321e6188f3429b0f624017
4
- data.tar.gz: e20c21eb215109a42e7f70338e6a6309068ebd6efe71d18176301debde2089a6
3
+ metadata.gz: f7157058e183f77f6bfd9ddc6b249d837a812b3b6daf12a287d7ebd2e6e14a89
4
+ data.tar.gz: a3e44fcc2b9f09639a4d4130f6de37571965744b4ffeae57e61ada893de31991
5
5
  SHA512:
6
- metadata.gz: 993d1eb4e109b63ed9e0966281c7cbea07193628808d64784dfab180ff9a5cc38acb944712861f6aa865cb26825fd74386df70524d633c51210e8010f36cc15b
7
- data.tar.gz: 20da6f90cb14996042bc755293e6d9e860975001b63b48cf99424bf6bfc0fcb13081f52e1defc5cb9fa4b615f988c5241dff7902bf0b26970666fa61079f303f
6
+ metadata.gz: 3fe066ef2dbedb8b2033f8c748bd0ac44154eff0b9d1ed50f6a8347d19314de656dbdd419859ee616aaf5d10e272435fb8564aa3bcfaa6a3987f41c8af30e62f
7
+ data.tar.gz: d8395c473258665a8fd3cbc758b9472deeb039f4626049af588ed58baceeb7da94b2dcada01e1b04f0bd81ad6ca9929ed044aa3854d93a49ea5e5d1ac25fb5d0
data/Rakefile CHANGED
@@ -13,6 +13,8 @@ GemHadar do
13
13
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.bundle', '.yardoc', 'tags'
14
14
  readme 'README.md'
15
15
 
16
+ executables << 'gem_hadar'
17
+
16
18
  dependency 'tins', '~>1.0'
17
19
  dependency 'rake'
18
20
  dependency 'yard'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
data/bin/gem_hadar ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gem_hadar'
4
+
5
+ GemHadar::Setup.new.perform
data/gem_hadar.gemspec CHANGED
@@ -1,28 +1,29 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem_hadar 1.15.0 ruby lib
2
+ # stub: gem_hadar 1.16.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gem_hadar".freeze
6
- s.version = "1.15.0"
6
+ s.version = "1.16.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-03-15"
11
+ s.date = "2024-07-15"
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.4.19".freeze
20
+ s.rubygems_version = "3.5.11".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.15.0"])
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
@@ -1,6 +1,6 @@
1
1
  class GemHadar
2
2
  # GemHadar version
3
- VERSION = '1.15.0'
3
+ VERSION = '1.16.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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
@@ -696,23 +700,23 @@ EOT
696
700
  def yard_task
697
701
  defined? YARD or return
698
702
  namespace :yard do
699
- yard_dir = Pathname.new('yard')
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 #{yard_dir}"
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 = yard_dir + 'index.html'
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 yard_dir
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.15.0
4
+ version: 1.16.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-03-15 00:00:00.000000000 Z
11
+ date: 2024-07-15 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.15.0
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.15.0
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.4.19
113
+ rubygems_version: 3.5.11
112
114
  signing_key:
113
115
  specification_version: 4
114
116
  summary: Library for the development of Ruby Gems