gem_hadar 1.8.0 → 1.9.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
  SHA1:
3
- metadata.gz: e923401b899de21996c45f8d5c313a9800482699
4
- data.tar.gz: 55f7ad8c0a7fecbb52dba55d0273ad3a51455c09
3
+ metadata.gz: 9a7ce0ae9f6ed5d277a785503c9b00cc6aadf601
4
+ data.tar.gz: e30346283eb7a5c77b16bf594d07078aba86c15a
5
5
  SHA512:
6
- metadata.gz: dd28dfaf25e156bff9d6b5a5aa616d6fa01f9d86c818ec7cb827aa3ec38a4a73876f2c94d453214e51ca881f1b07d065583753aa190aa8d20c3b132051a77f4b
7
- data.tar.gz: ec3bfa9486977bc1f281126e333f0b38dfaf056377e69f7ddab939be944b93d31dbfdb8720c6b02d6dae07f17fca15c0640710ae23b9ca87a77fdef80203bce6
6
+ metadata.gz: 1b0cbda067060f4fa45db279ff5567206a78d93e2c89f6674eee431eafea9212f4993bbe535d7854a78c7c63176892c5c60cf20e0ac04b7d7b951a35d676b452
7
+ data.tar.gz: 7d93ffbf078fe734d5638ebfca38194c6304837a09bc6081bedd2167adeddbee1db1e94574b4cfaa976bd291863e0cb28ca612ebc96f43b41b8b1483ff256887
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.9.0
@@ -1,42 +1,42 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: gem_hadar 1.8.0 ruby lib
2
+ # stub: gem_hadar 1.9.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "gem_hadar"
6
- s.version = "1.8.0"
5
+ s.name = "gem_hadar".freeze
6
+ s.version = "1.9.0"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["Florian Frank"]
11
- s.date = "2016-09-27"
12
- s.description = "This library contains some useful functionality to support the development of Ruby Gems"
13
- s.email = "flori@ping.de"
14
- s.extra_rdoc_files = ["README.md", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
15
- s.files = [".gitignore", "Gemfile", "LICENSE", "README.md", "Rakefile", "VERSION", "gem_hadar.gemspec", "lib/gem_hadar.rb", "lib/gem_hadar/version.rb"]
16
- s.homepage = "http://github.com/flori/gem_hadar"
17
- s.licenses = ["MIT"]
18
- s.rdoc_options = ["--title", "GemHadar - Library for the development of Ruby Gems", "--main", "README.md"]
19
- s.rubygems_version = "2.5.1"
20
- s.summary = "Library for the development of Ruby Gems"
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.require_paths = ["lib".freeze]
10
+ s.authors = ["Florian Frank".freeze]
11
+ s.date = "2016-10-12"
12
+ s.description = "This library contains some useful functionality to support the development of Ruby Gems".freeze
13
+ s.email = "flori@ping.de".freeze
14
+ 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.homepage = "http://github.com/flori/gem_hadar".freeze
17
+ s.licenses = ["MIT".freeze]
18
+ s.rdoc_options = ["--title".freeze, "GemHadar - Library for the development of Ruby Gems".freeze, "--main".freeze, "README.md".freeze]
19
+ s.rubygems_version = "2.6.7".freeze
20
+ s.summary = "Library for the development of Ruby Gems".freeze
21
21
 
22
22
  if s.respond_to? :specification_version then
23
23
  s.specification_version = 4
24
24
 
25
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_development_dependency(%q<gem_hadar>, ["~> 1.8.0"])
27
- s.add_runtime_dependency(%q<tins>, ["~> 1.0"])
28
- s.add_runtime_dependency(%q<rake>, [">= 0"])
29
- s.add_runtime_dependency(%q<yard>, [">= 0"])
26
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.0"])
27
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
28
+ s.add_runtime_dependency(%q<rake>.freeze, [">= 0"])
29
+ s.add_runtime_dependency(%q<yard>.freeze, [">= 0"])
30
30
  else
31
- s.add_dependency(%q<gem_hadar>, ["~> 1.8.0"])
32
- s.add_dependency(%q<tins>, ["~> 1.0"])
33
- s.add_dependency(%q<rake>, [">= 0"])
34
- s.add_dependency(%q<yard>, [">= 0"])
31
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.0"])
32
+ s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
33
+ s.add_dependency(%q<rake>.freeze, [">= 0"])
34
+ s.add_dependency(%q<yard>.freeze, [">= 0"])
35
35
  end
36
36
  else
37
- s.add_dependency(%q<gem_hadar>, ["~> 1.8.0"])
38
- s.add_dependency(%q<tins>, ["~> 1.0"])
39
- s.add_dependency(%q<rake>, [">= 0"])
40
- s.add_dependency(%q<yard>, [">= 0"])
37
+ s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.0"])
38
+ s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
39
+ s.add_dependency(%q<rake>.freeze, [">= 0"])
40
+ s.add_dependency(%q<yard>.freeze, [">= 0"])
41
41
  end
42
42
  end
@@ -15,6 +15,7 @@ require 'set'
15
15
  require 'pathname'
16
16
  require 'erb'
17
17
  require 'gem_hadar/version'
18
+ require_maybe 'yard'
18
19
  require_maybe 'simplecov'
19
20
  require_maybe 'rubygems/package_task'
20
21
  require_maybe 'rcov/rcovtask'
@@ -390,15 +391,14 @@ EOT
390
391
  end
391
392
 
392
393
  def spec_task
393
- if defined?(::RSpec::Core::RakeTask)
394
- st = RSpec::Core::RakeTask.new(:run_specs) do |t|
395
- t.ruby_opts ||= ''
396
- t.ruby_opts << ' -I' << ([ spec_dir ] + require_paths.to_a).uniq * ':'
397
- t.pattern = spec_pattern
398
- t.verbose = true
399
- end
400
- task :spec => [ (:compile if extensions.full?), st.name ].compact
394
+ defined? ::RSpec::Core::RakeTask or return
395
+ st = RSpec::Core::RakeTask.new(:run_specs) do |t|
396
+ t.ruby_opts ||= ''
397
+ t.ruby_opts << ' -I' << ([ spec_dir ] + require_paths.to_a).uniq * ':'
398
+ t.pattern = spec_pattern
399
+ t.verbose = true
401
400
  end
401
+ task :spec => [ (:compile if extensions.full?), st.name ].compact
402
402
  end
403
403
 
404
404
  def rcov_task
@@ -423,12 +423,11 @@ EOT
423
423
  end
424
424
 
425
425
  def self.start_simplecov
426
+ defined? SimpleCov or return
426
427
  filter = "#{File.basename(File.dirname(caller.first))}/"
427
- require_maybe 'simplecov'
428
- defined?(SimpleCov) and
429
- SimpleCov.start do
430
- add_filter filter
431
- end
428
+ SimpleCov.start do
429
+ add_filter filter
430
+ end
432
431
  end
433
432
 
434
433
  def write_ignore_file
@@ -644,6 +643,38 @@ EOT
644
643
  end
645
644
  end
646
645
 
646
+ def yard_task
647
+ defined? YARD or return
648
+ namespace :yard do
649
+ yard_dir = Pathname.new('yard')
650
+
651
+ desc 'Create yard documentation (including private)'
652
+ task :private do
653
+ sh "yardoc -o #{yard_dir}"
654
+ end
655
+
656
+ desc 'View the yard documentation'
657
+ task :view do
658
+ index_file = yard_dir + 'index.html'
659
+ File.exist?(index_file)
660
+ sh "open #{index_file}"
661
+ end
662
+
663
+ desc 'Clean the yard documentation'
664
+ task :clean do
665
+ rm_rf yard_dir
666
+ end
667
+
668
+ desc 'List all undocumented classes/modules/methods'
669
+ task :'list-undoc' do
670
+ sh "yard stats --list-undoc"
671
+ end
672
+ end
673
+
674
+ desc 'Create the yard documentation and view it'
675
+ task :yard => %i[ yard:private yard:view ]
676
+ end
677
+
647
678
  def ask?(prompt, pattern)
648
679
  STDOUT.print prompt
649
680
  answer = STDIN.gets.chomp
@@ -668,6 +699,7 @@ EOT
668
699
  end
669
700
  spec_task
670
701
  package_task
702
+ yard_task
671
703
  install_library_task
672
704
  version_bump_task
673
705
  version_tag_task
@@ -1,6 +1,6 @@
1
1
  class GemHadar
2
2
  # GemHadar version
3
- VERSION = '1.8.0'
3
+ VERSION = '1.9.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:
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.8.0
4
+ version: 1.9.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: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-12 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.8.0
19
+ version: 1.9.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.8.0
26
+ version: 1.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: tins
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.5.1
112
+ rubygems_version: 2.6.7
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Library for the development of Ruby Gems