Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-yard for openSUSE:Factory checked in at 2022-02-02 22:41:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-yard (Old) and /work/SRC/openSUSE:Factory/.rubygem-yard.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-yard" Wed Feb 2 22:41:42 2022 rev:34 rq:950656 version:0.9.27 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-yard/rubygem-yard.changes 2021-06-25 15:02:21.984226848 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-yard.new.1898/rubygem-yard.changes 2022-02-02 22:42:37.679038024 +0100 @@ -1,0 +2,23 @@ +Tue Jan 25 07:43:53 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 0.9.27 + see installed CHANGELOG.md + + # 0.9.27 - November 29th, 2021 + + [0.9.27]: https://github.com/lsegal/yard/compare/v0.9.26...v0.9.27 + + - Add support for Ruby 3.0 endless method definitions. (#1376, #1381) + - Add existence check for README file (#1367) + - Support module_function decorator (#1365) + - Add CommonMarker markup support (`-m commonmarker`) (#1157, #1388) + - Fix nested array parsing (#1389) + - Add WEBrick as a runtime dependency for Ruby 3.0 support (#1400) + - Support `fail_on_warning` option in `yard stats` command (#1392) + - Better integration with Sorbet (#1401) + - Handle include mixins on complex paths (#1386) + - Fix `@!scope` maintaining state in lone comment blocks (#1411) + - Remove support for Travis CI + + +------------------------------------------------------------------- Old: ---- yard-0.9.26.gem New: ---- yard-0.9.27.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-yard.spec ++++++ --- /var/tmp/diff_new_pack.XgklvR/_old 2022-02-02 22:42:38.335033578 +0100 +++ /var/tmp/diff_new_pack.XgklvR/_new 2022-02-02 22:42:38.339033551 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-yard # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,32 +16,33 @@ # -%define mod_name yard -%define mod_full_name %{mod_name}-%{version} # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions # can be maintained in that file. Please consult this file before editing any # of those fields # + Name: rubygem-yard -Version: 0.9.26 +Version: 0.9.27 Release: 0 -Summary: Documentation tool for consistent and usable documentation in Ruby -License: MIT -Group: Development/Languages/Ruby -URL: http://yardoc.org -Source: https://rubygems.org/gems/%{mod_full_name}.gem -Source1: gem2rpm.yml +%define mod_name yard +%define mod_full_name %{mod_name}-%{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{rubygem gem2rpm} BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -# FIXME: use proper Requires(pre/post/preun/...) -PreReq: update-alternatives +URL: http://yardoc.org +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml # MANUAL Patch0: yard-do-not-record-timestamps.diff # /MANUAL +Summary: Documentation tool for consistent and usable documentation in Ruby +License: MIT +Group: Development/Languages/Ruby +PreReq: update-alternatives %description YARD is a documentation generation tool for the Ruby programming language. @@ -52,8 +53,8 @@ %prep %gem_unpack %patch0 -p1 -find -type f -print0 | xargs -0 touch -r %{SOURCE0} -%{gem_build} +find -type f -print0 | xargs -0 touch -r %{S:0} +%gem_build %build ++++++ yard-0.9.26.gem -> yard-0.9.27.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/ci.yml new/.github/workflows/ci.yml --- old/.github/workflows/ci.yml 2020-12-27 01:17:04.000000000 +0100 +++ new/.github/workflows/ci.yml 2021-11-29 23:07:06.000000000 +0100 @@ -1,6 +1,6 @@ name: Unit Tests -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] jobs: build: name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}" @@ -8,35 +8,23 @@ strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - ruby: ["2.4", "2.5", "2.6", "2.7"] + os: [ubuntu-20.04, macos-10.15, windows-2019] + # 3.0 is interpreted as 3 + ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7, "3.0"] + exclude: + - { os: windows-2019 , ruby: 2.2 } + - { os: windows-2019 , ruby: 2.3 } steps: - name: Checkout uses: actions/checkout@v2 - - name: Select Ruby Version - uses: eregon/use-ruby-action@master + - name: Install Ruby & 'bundle install' + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - base: update - - name: Update RubyGems & Bundler - run: gem update --system --no-document --conservative - - name: Install Dependencies - run: bundle install --jobs=3 --retry=3 + bundler-cache: true - name: Run Test run: | ruby -v bundle exec rake env: CI: true - build_ruby3: - name: "Ruby: 3.0 OS: Linux" - runs-on: ubuntu-latest - container: ruby:3.0-rc-alpine - steps: - - uses: actions/checkout@v2 - - run: apk add -U build-base - - run: gem update --system --no-document --conservative - - run: bundle install --jobs=3 --retry=3 - - run: ruby -v && bundle exec rake - env: - CI: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/gem.yml new/.github/workflows/gem.yml --- old/.github/workflows/gem.yml 2020-12-27 01:17:04.000000000 +0100 +++ new/.github/workflows/gem.yml 2021-11-29 23:07:06.000000000 +0100 @@ -9,18 +9,10 @@ release_version: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - id: tag - run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3) - - run: ruby -e 'tag=ENV["GITHUB_REF"].sub("refs/tags/", "").sub("v", "v?");puts File.read("CHANGELOG.md")[/#\s+#{tag}[^\r\n]+\r?\n(.+?)(^#|\Z)/mi,1].strip' > extracted_changelog.md - - name: Create Release - uses: actions/create-release@v1 + - uses: actions/checkout@v2 + - uses: lsegal/github-release-from-changelog-action@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.tag.outputs.TAG }} - release_name: Release ${{ steps.tag.outputs.TAG }} - body_path: extracted_changelog.md - name: Publish RubyGem uses: dawidd6/action-publish-gem@v1 with: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2020-12-27 01:17:04.000000000 +0100 +++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,49 +0,0 @@ -# Build for Ruby -language: ruby - -# Enables caching for bundler -cache: bundler - -# Specify which ruby versions you wish to run your tests on, each version will be used -rvm: - - "2.0" - - "2.1" - - "2.2" - - "2.3" - - "2.4" - - "2.5" - - "2.6" - - "2.7" - # - ruby-head - # - jruby - -# Define how to run your tests (defaults to `bundle exec rake` or `rake` depending on whether you have a `Gemfile`) -script: "bundle exec rake" - -# Define tasks to be completed before and after tests run . Will allow folding of content on frontend -#before_script: -# - command_1 -# - command_2 -# -#after_script: -# - command_1 -# - command_2 - -# Specify an ENV variable to run before: 'bundle install' and 'rake' (or your defined 'script') -env: - - CI=1 - -# Specify the recipients for email notification -#notifications: -# recipients: -# - email-address-1 -# - email-address-2 - -# Disable email notifications -#notifications: -# disabled: true - -# notifications: -# webhooks: -# urls: -# - https://webhooks.gitter.im/e/c6dbb9323007dfcf81df diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2020-12-27 01:17:04.000000000 +0100 +++ new/CHANGELOG.md 2021-11-29 23:07:06.000000000 +0100 @@ -1,5 +1,21 @@ # main +# 0.9.27 - November 29th, 2021 + +[0.9.27]: https://github.com/lsegal/yard/compare/v0.9.26...v0.9.27 + +- Add support for Ruby 3.0 endless method definitions. (#1376, #1381) +- Add existence check for README file (#1367) +- Support module_function decorator (#1365) +- Add CommonMarker markup support (`-m commonmarker`) (#1157, #1388) +- Fix nested array parsing (#1389) +- Add WEBrick as a runtime dependency for Ruby 3.0 support (#1400) +- Support `fail_on_warning` option in `yard stats` command (#1392) +- Better integration with Sorbet (#1401) +- Handle include mixins on complex paths (#1386) +- Fix `@!scope` maintaining state in lone comment blocks (#1411) +- Remove support for Travis CI + # 0.9.26 - December 26th, 2020 [0.9.26]: https://github.com/lsegal/yard/compare/v0.9.25...v0.9.26 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2020-12-27 01:17:04.000000000 +0100 +++ new/Gemfile 2021-11-29 23:07:06.000000000 +0100 @@ -18,6 +18,7 @@ group :markdown do gem 'redcarpet' + gem 'commonmarker' end group :textile do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2020-12-27 01:17:04.000000000 +0100 +++ new/README.md 2021-11-29 23:07:06.000000000 +0100 @@ -5,7 +5,7 @@ [](http://rubydoc.org/gems/yard/frames) [](http://github.com/lsegal/yard/releases) -[](https://travis-ci.org/lsegal/yard) +[](https://github.com/lsegal/yard/actions/workflows/ci.yml) [](https://coveralls.io/github/lsegal/yard) [](#license) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2020-12-27 01:17:04.000000000 +0100 +++ new/Rakefile 2021-11-29 23:07:06.000000000 +0100 @@ -2,7 +2,6 @@ require File.dirname(__FILE__) + '/lib/yard' require File.dirname(__FILE__) + '/lib/yard/rubygems/specification' require 'rbconfig' -require 'samus' YARD::VERSION.replace(ENV['YARD_VERSION']) if ENV['YARD_VERSION'] @@ -35,5 +34,3 @@ YARD::Rake::YardocTask.new do |t| t.options += ['--title', "YARD #{YARD::VERSION} Documentation"] end - -Samus::Rake::DockerReleaseTask.new Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/cli/stats.rb new/lib/yard/cli/stats.rb --- old/lib/yard/cli/stats.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/cli/stats.rb 2021-11-29 23:07:06.000000000 +0100 @@ -43,6 +43,8 @@ print_statistics print_undocumented_objects + + abort if fail_on_warning && log.warned end # Prints statistics for different object types diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/cli/yardoc.rb new/lib/yard/cli/yardoc.rb --- old/lib/yard/cli/yardoc.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/cli/yardoc.rb 2021-11-29 23:07:06.000000000 +0100 @@ -295,9 +295,10 @@ self.files = Parser::SourceParser::DEFAULT_PATH_GLOB if files.empty? files.delete_if {|x| x =~ /\A\s*\Z/ } # remove empty ones readme = Dir.glob('README{,*[^~]}'). + select {|f| extra_file_valid?(f)}. sort_by {|r| [r.count('.'), r.index('.'), r] }.first readme ||= Dir.glob(files.first).first if options.onefile && !files.empty? - options.readme ||= CodeObjects::ExtraFileObject.new(readme) if readme + options.readme ||= CodeObjects::ExtraFileObject.new(readme) if readme && extra_file_valid?(readme) options.files.unshift(options.readme).uniq! if options.readme Tags::Library.visible_tags -= hidden_tags diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/handlers/ruby/method_handler.rb new/lib/yard/handlers/ruby/method_handler.rb --- old/lib/yard/handlers/ruby/method_handler.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/handlers/ruby/method_handler.rb 2021-11-29 23:07:06.000000000 +0100 @@ -67,7 +67,7 @@ end def format_args - args = statement.parameters + return [] unless args = statement.parameters params = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/handlers/ruby/mixin_handler.rb new/lib/yard/handlers/ruby/mixin_handler.rb --- old/lib/yard/handlers/ruby/mixin_handler.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/handlers/ruby/mixin_handler.rb 2021-11-29 23:07:06.000000000 +0100 @@ -41,7 +41,9 @@ end def recipient(mixin) - if statement[0].type == :var_ref && statement[0][0] != s(:kw, "self") + if statement[0].type == :const_path_ref + Proxy.new(namespace, statement[0].source) + elsif statement[0].type == :var_ref && statement[0][0] != s(:kw, "self") statement[0][0].type == :const ? Proxy.new(namespace, statement.namespace.source) : nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/handlers/ruby/module_function_handler.rb new/lib/yard/handlers/ruby/module_function_handler.rb --- old/lib/yard/handlers/ruby/module_function_handler.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/handlers/ruby/module_function_handler.rb 2021-11-29 23:07:06.000000000 +0100 @@ -2,6 +2,8 @@ # Handles module_function calls to turn methods into public class methods. # Also creates a private instance copy of the method. class YARD::Handlers::Ruby::ModuleFunctionHandler < YARD::Handlers::Ruby::Base + include YARD::Handlers::Ruby::DecoratorHandlerMethods + handles method_call(:module_function) namespace_only @@ -13,15 +15,25 @@ when :fcall, :command statement[1].traverse do |node| case node.type + when :def + process_decorator do |instance_method| + make_module_function(instance_method, namespace) + end + break when :symbol; name = node.first.source when :string_content; name = node.source else next end + instance_method = MethodObject.new(namespace, name) - class_method = MethodObject.new(namespace, name, :module) - instance_method.copy_to(class_method) - class_method.visibility = :public + make_module_function(instance_method, namespace) end end end + + def make_module_function(instance_method, namespace) + class_method = MethodObject.new(namespace, instance_method.name, :module) + instance_method.copy_to(class_method) + class_method.visibility = :public + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/parser/ruby/ast_node.rb new/lib/yard/parser/ruby/ast_node.rb --- old/lib/yard/parser/ruby/ast_node.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/parser/ruby/ast_node.rb 2021-11-29 23:07:06.000000000 +0100 @@ -480,7 +480,7 @@ end def parameters(include_block_param = true) - params = self[1 + index_adjust] + return unless params = self[1 + index_adjust] params = params[0] if params.type == :paren include_block_param ? params : params[0...-1] end @@ -488,7 +488,7 @@ def signature params_src = '' params = self[1 + index_adjust] - if params.first + if params and params.first params_src = params.type == :paren ? '' : ' ' params_src += params.source.gsub(/\s+(\s|\))/m, '\1') end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/parser/ruby/ruby_parser.rb new/lib/yard/parser/ruby/ruby_parser.rb --- old/lib/yard/parser/ruby/ruby_parser.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/parser/ruby/ruby_parser.rb 2021-11-29 23:07:06.000000000 +0100 @@ -370,7 +370,7 @@ def on_aref(*args) @map[:lbracket].pop - ll, lc = *@map[:aref].pop + ll, lc = *@map[:aref].shift sr = args.first.source_range.first..lc lr = args.first.line_range.first..ll AstNode.new(:aref, args, :char => sr, :line => lr) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/server/commands/library_command.rb new/lib/yard/server/commands/library_command.rb --- old/lib/yard/server/commands/library_command.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/server/commands/library_command.rb 2021-11-29 23:07:06.000000000 +0100 @@ -31,7 +31,7 @@ # @abstract class LibraryCommand < Base begin - Process.fork { exit 0 } + Process.fork { } CAN_FORK = true rescue Exception # rubocop:disable Lint/RescueException CAN_FORK = false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/tags/directives.rb new/lib/yard/tags/directives.rb --- old/lib/yard/tags/directives.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/tags/directives.rb 2021-11-29 23:07:06.000000000 +0100 @@ -74,6 +74,13 @@ def after_parse; end protected :parser + + protected + + def inside_directive? + return true if parser.state.inside_directive + parser.directives.any? { |d| d.is_a?(MethodDirective) && d.tag.text.empty? } + end end # Ends a group listing definition. Group definition automatically end @@ -574,6 +581,8 @@ if %w(class instance module).include?(tag.text) if object.is_a?(CodeObjects::MethodObject) object.scope = tag.text.to_sym + elsif handler && !inside_directive? + handler.scope = tag.text.to_sym else parser.state.scope = tag.text.to_sym end @@ -604,7 +613,7 @@ if %w(public protected private).include?(tag.text) if object.is_a?(CodeObjects::Base) object.visibility = tag.text.to_sym - elsif handler && !parser.state.inside_directive + elsif handler && !inside_directive? handler.visibility = tag.text.to_sym else parser.state.visibility = tag.text.to_sym diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/templates/helpers/html_helper.rb new/lib/yard/templates/helpers/html_helper.rb --- old/lib/yard/templates/helpers/html_helper.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/templates/helpers/html_helper.rb 2021-11-29 23:07:06.000000000 +0100 @@ -78,9 +78,10 @@ def html_markup_markdown(text) # TODO: other libraries might be more complex provider = markup_class(:markdown) - if provider.to_s == 'RDiscount' + case provider.to_s + when 'RDiscount' provider.new(text, :autolink).to_html - elsif provider.to_s == 'RedcarpetCompat' + when 'RedcarpetCompat' provider.new(text, :autolink, :fenced_code, :gh_blockcode, @@ -88,6 +89,8 @@ :tables, :with_toc_data, :no_intraemphasis).to_html + when 'CommonMarker' + CommonMarker.render_html(text, %i[DEFAULT GITHUB_PRE_LANG], %i[autolink]) else provider.new(text).to_html end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/templates/helpers/markup_helper.rb new/lib/yard/templates/helpers/markup_helper.rb --- old/lib/yard/templates/helpers/markup_helper.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/templates/helpers/markup_helper.rb 2021-11-29 23:07:06.000000000 +0100 @@ -29,7 +29,8 @@ {:lib => :bluecloth, :const => 'BlueCloth'}, {:lib => :maruku, :const => 'Maruku'}, {:lib => :'rpeg-markdown', :const => 'PEGMarkdown'}, - {:lib => :rdoc, :const => 'YARD::Templates::Helpers::Markup::RDocMarkdown'} + {:lib => :rdoc, :const => 'YARD::Templates::Helpers::Markup::RDocMarkdown'}, + {:lib => :commonmarker, :const => 'CommonMarker'} ], :textile => [ {:lib => :redcloth, :const => 'RedCloth'} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard/version.rb new/lib/yard/version.rb --- old/lib/yard/version.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard/version.rb 2021-11-29 23:07:06.000000000 +0100 @@ -2,5 +2,5 @@ # frozen_string_literal: true module YARD - VERSION = '0.9.26' + VERSION = '0.9.27' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yard.rb new/lib/yard.rb --- old/lib/yard.rb 2020-12-27 01:17:04.000000000 +0100 +++ new/lib/yard.rb 2021-11-29 23:07:06.000000000 +0100 @@ -48,6 +48,9 @@ # @return [Boolean] whether YARD is being run in Ruby 2.0 def self.ruby2?; @ruby2 ||= (RUBY_VERSION >= '2.0.0') end + + # @return [Boolean] whether YARD is being run in Ruby 3.0 + def self.ruby3?; @ruby3 ||= (RUBY_VERSION >= '3.0.0') end end # Keep track of Ruby version for compatibility code diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2020-12-27 01:17:04.000000000 +0100 +++ new/metadata 2021-11-29 23:07:06.000000000 +0100 @@ -1,15 +1,29 @@ --- !ruby/object:Gem::Specification name: yard version: !ruby/object:Gem::Version - version: 0.9.26 + version: 0.9.27 platform: ruby authors: - Loren Segal autorequire: bindir: bin cert_chain: [] -date: 2020-12-27 00:00:00.000000000 Z -dependencies: [] +date: 2021-11-29 00:00:00.000000000 Z +dependencies: +- !ruby/object:Gem::Dependency + name: webrick + requirement: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: 1.7.0 + type: :runtime + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - "~>" + - !ruby/object:Gem::Version + version: 1.7.0 description: |2 YARD is a documentation generation tool for the Ruby programming language. It enables the user to generate consistent, usable documentation that can be @@ -33,7 +47,6 @@ - ".gitignore" - ".rspec" - ".rubocop.yml" -- ".travis.yml" - ".yardopts" - ".yardopts_guide" - ".yardopts_i18n" @@ -299,6 +312,7 @@ - lib/yard/version.rb - po/ja.po - samus.json +- tasks/prepare_tag.rake - tasks/update_error_map.rake - templates/default/class/dot/setup.rb - templates/default/class/dot/superklass.erb @@ -448,8 +462,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.6 +rubygems_version: 3.1.2 signing_key: specification_version: 4 summary: Documentation tool for consistent and usable documentation in Ruby. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tasks/prepare_tag.rake new/tasks/prepare_tag.rake --- old/tasks/prepare_tag.rake 1970-01-01 01:00:00.000000000 +0100 +++ new/tasks/prepare_tag.rake 2021-11-29 23:07:06.000000000 +0100 @@ -0,0 +1,45 @@ +require 'json' +require 'tempfile' + +namespace :release do + desc 'Updates repository and tags VERSION=X.Y.Z' + task :tag do + restore_file = Tempfile.new + restore_file.close + at_exit { restore_file.unlink } + + version = ENV['VERSION'] + build_path = File.expand_path(File.join(`gem which samus`.strip, '..', '..', 'commands', 'build')) + samus_contents = File.read(File.join(__dir__, '..', 'samus.json')) + samus_json = JSON.parse(samus_contents.gsub('$version', version)) + + samus_json['actions'].each do |action| + env = { + '_VERSION' => version, + '__ORIG_BRANCH' => `git rev-parse --abbrev-ref HEAD`.strip, + '__RESTORE_FILE' => restore_file.path, + } + (action['arguments'] || {}).each {|k, v| env["_#{k.upcase}"] = v } + cmd = [File.join(build_path, action['action']), *action['files']] + puts "[C] #{action['action']} #{(action['files'] || []).join(' ')}" + output = "" + IO.popen(env, cmd) {|io| output = io.read } + status = $? + unless status.success? + puts "[F] Last command failed with: #{status.to_i}" + puts output + exit(status.to_i) + end + end + + puts "" + puts "Tag v#{version} created. To publish, type the following:" + puts "" + puts " bundle exec rake release:push VERSION=#{version}" + end + + desc 'Pushes the main branch and tag for VERSION=X.Y.Z' + task :push do + sh "git push main v#{ENV['VERSION']}" + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yard.gemspec new/yard.gemspec --- old/yard.gemspec 2020-12-27 01:17:04.000000000 +0100 +++ new/yard.gemspec 2021-11-29 23:07:06.000000000 +0100 @@ -20,4 +20,6 @@ s.executables = ['yard', 'yardoc', 'yri'] s.license = 'MIT' if s.respond_to?(:license=) s.metadata['yard.run'] = 'yri' + + s.add_runtime_dependency 'webrick', '~> 1.7.0' end
