gem_hadar 1.14.0 → 1.16.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 -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 +69 -14
- 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: f7157058e183f77f6bfd9ddc6b249d837a812b3b6daf12a287d7ebd2e6e14a89
|
4
|
+
data.tar.gz: a3e44fcc2b9f09639a4d4130f6de37571965744b4ffeae57e61ada893de31991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe066ef2dbedb8b2033f8c748bd0ac44154eff0b9d1ed50f6a8347d19314de656dbdd419859ee616aaf5d10e272435fb8564aa3bcfaa6a3987f41c8af30e62f
|
7
|
+
data.tar.gz: d8395c473258665a8fd3cbc758b9472deeb039f4626049af588ed58baceeb7da94b2dcada01e1b04f0bd81ad6ca9929ed044aa3854d93a49ea5e5d1ac25fb5d0
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
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.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.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-
|
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.
|
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.
|
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
@@ -48,6 +48,7 @@ class GemHadar
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def assert_valid_link(name, orig_url)
|
51
|
+
developing and return orig_url
|
51
52
|
url = orig_url
|
52
53
|
begin
|
53
54
|
response = Net::HTTP.get_response(URI.parse(url))
|
@@ -58,6 +59,8 @@ class GemHadar
|
|
58
59
|
orig_url
|
59
60
|
end
|
60
61
|
|
62
|
+
dsl_accessor :developing, false
|
63
|
+
|
61
64
|
dsl_accessor :name do
|
62
65
|
has_to_be_set :name
|
63
66
|
end
|
@@ -134,6 +137,10 @@ class GemHadar
|
|
134
137
|
FileList[File.join('lib/**/*.rb')] + FileList[File.join('ext/**/*.c')]
|
135
138
|
end
|
136
139
|
|
140
|
+
dsl_accessor :yard_dir do
|
141
|
+
'yard'
|
142
|
+
end
|
143
|
+
|
137
144
|
dsl_accessor :extensions do FileList['ext/**/extconf.rb'] end
|
138
145
|
|
139
146
|
dsl_accessor :make do
|
@@ -610,19 +617,25 @@ EOT
|
|
610
617
|
namespace :gem do
|
611
618
|
path = "pkg/#{name_version}.gem"
|
612
619
|
desc "Push gem file #{File.basename(path)} to rubygems"
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
+
if developing
|
621
|
+
task :push => :build do
|
622
|
+
puts "Skipping push to rubygems while developing mode is enabled."
|
623
|
+
end
|
624
|
+
else
|
625
|
+
task :push => :build do
|
626
|
+
if File.exist?(path)
|
627
|
+
if ask?("Do you really want to push #{path.inspect} to rubygems? "\
|
628
|
+
"(yes/NO) ", /\Ayes\z/i)
|
629
|
+
then
|
630
|
+
key = ENV['GEM_API_KEY'].full? { |k| "--key #{k} " }
|
631
|
+
sh "gem push #{key}#{path}"
|
632
|
+
else
|
633
|
+
exit 1
|
634
|
+
end
|
620
635
|
else
|
636
|
+
warn "Cannot push gem to rubygems: #{path.inspect} doesn't exist."
|
621
637
|
exit 1
|
622
638
|
end
|
623
|
-
else
|
624
|
-
warn "Cannot push gem to rubygems: #{path.inspect} doesn't exist."
|
625
|
-
exit 1
|
626
639
|
end
|
627
640
|
end
|
628
641
|
end
|
@@ -687,23 +700,23 @@ EOT
|
|
687
700
|
def yard_task
|
688
701
|
defined? YARD or return
|
689
702
|
namespace :yard do
|
690
|
-
|
703
|
+
my_yard_dir = Pathname.new(yard_dir)
|
691
704
|
|
692
705
|
desc 'Create yard documentation (including private)'
|
693
706
|
task :private do
|
694
|
-
sh "yardoc -o #{
|
707
|
+
sh "yardoc -o #{my_yard_dir}"
|
695
708
|
end
|
696
709
|
|
697
710
|
desc 'View the yard documentation'
|
698
711
|
task :view do
|
699
|
-
index_file =
|
712
|
+
index_file = my_yard_dir + 'index.html'
|
700
713
|
File.exist?(index_file)
|
701
714
|
sh "open #{index_file}"
|
702
715
|
end
|
703
716
|
|
704
717
|
desc 'Clean the yard documentation'
|
705
718
|
task :clean do
|
706
|
-
rm_rf
|
719
|
+
rm_rf my_yard_dir
|
707
720
|
end
|
708
721
|
|
709
722
|
desc 'List all undocumented classes/modules/methods'
|
@@ -786,6 +799,48 @@ EOT
|
|
786
799
|
end
|
787
800
|
end
|
788
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
|
789
844
|
end
|
790
845
|
|
791
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.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-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.
|
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.11
|
112
114
|
signing_key:
|
113
115
|
specification_version: 4
|
114
116
|
summary: Library for the development of Ruby Gems
|