openSUSE Commits
Threads by month
- ----- 2024 -----
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
April 2022
- 1 participants
- 2538 discussions
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-tzinfo-data for openSUSE:Factory checked in at 2022-04-30 22:52:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-tzinfo-data (Old)
and /work/SRC/openSUSE:Factory/.rubygem-tzinfo-data.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-tzinfo-data"
Sat Apr 30 22:52:56 2022 rev:20 rq:974081 version:1.2022.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-tzinfo-data/rubygem-tzinfo-data.changes 2022-02-02 22:45:02.698055080 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-tzinfo-data.new.1538/rubygem-tzinfo-data.changes 2022-04-30 22:53:09.656274834 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:53:27 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.2022.1
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
tzinfo-data-1.2021.5.gem
New:
----
tzinfo-data-1.2022.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-tzinfo-data.spec ++++++
--- /var/tmp/diff_new_pack.fLHFCL/_old 2022-04-30 22:53:11.276277025 +0200
+++ /var/tmp/diff_new_pack.fLHFCL/_new 2022-04-30 22:53:11.280277031 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-tzinfo-data
-Version: 1.2021.5
+Version: 1.2022.1
Release: 0
%define mod_name tzinfo-data
%define mod_full_name %{mod_name}-%{version}
++++++ tzinfo-data-1.2021.5.gem -> tzinfo-data-1.2022.1.gem ++++++
++++ 2207 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2022-04-30 22:52:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old)
and /work/SRC/openSUSE:Factory/.rubygem-slop.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-slop"
Sat Apr 30 22:52:55 2022 rev:29 rq:974080 version:4.9.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2021-07-02 13:28:52.828102604 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.1538/rubygem-slop.changes 2022-04-30 22:53:08.764273627 +0200
@@ -1,0 +2,13 @@
+Thu Apr 28 05:51:32 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 4.9.2
+ see installed CHANGELOG.md
+
+ v4.9.2 (2022-03-26)
+ -------------------
+
+ Bug fixes:
+ * Handle flag arguments that contain equals character [#275](https://github.com/leejarvis/slop/pull/275) (ConnorWGarvey)
+
+
+-------------------------------------------------------------------
Old:
----
slop-4.9.1.gem
New:
----
slop-4.9.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-slop.spec ++++++
--- /var/tmp/diff_new_pack.NqeRPL/_old 2022-04-30 22:53:09.352274422 +0200
+++ /var/tmp/diff_new_pack.NqeRPL/_new 2022-04-30 22:53:09.356274428 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-slop
#
-# Copyright (c) 2021 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
@@ -24,7 +24,7 @@
#
Name: rubygem-slop
-Version: 4.9.1
+Version: 4.9.2
Release: 0
%define mod_name slop
%define mod_full_name %{mod_name}-%{version}
++++++ slop-4.9.1.gem -> slop-4.9.2.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 1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/ci.yml 2022-03-26 10:01:48.000000000 +0100
@@ -0,0 +1,35 @@
+name: CI
+
+on:
+ push:
+ branches: [ master ]
+ paths:
+ - "lib/**"
+ - "test/**"
+ - ".github/**"
+ - "Rakefile"
+ pull_request:
+ branches: ["**"]
+ paths:
+ - "lib/**"
+ - "test/**"
+ - ".github/**"
+ - "Rakefile"
+
+jobs:
+ tests:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", head, jruby, truffleruby ]
+ name: Ruby ${{ matrix.ruby }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby }}
+ bundler: none
+ - name: Run tests
+ run: rake test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2021-05-28 20:25:35.000000000 +0200
+++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,30 +0,0 @@
-cache: bundler
-before_install:
- - |
- export RVM_CURRENT=`rvm current|cut -c6-8`
- if [ "${RVM_CURRENT}" = "2.0" ] || \
- [ "${RVM_CURRENT}" = "2.1" ] || \
- [ "${RVM_CURRENT}" = "2.2" ]; then
- gem install bundler -v '< 2'
- fi
-
-rvm:
- - 2.0.0
- - 2.1
- - 2.2
- - 2.3.4
- - 2.4.10
- - 2.5.9
- - 2.6.7
- - 2.7.3
- - 3.0.1
- - jruby-9.2.17.0
- - jruby-head
- - ruby-head
- - truffleruby-head
-jdk:
- - openjdk8
-notifications:
- email:
- on_success: change
- on_failure: always
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2021-05-28 20:25:35.000000000 +0200
+++ new/CHANGELOG.md 2022-03-26 10:01:48.000000000 +0100
@@ -1,6 +1,12 @@
Changelog
=========
+v4.9.2 (2022-03-26)
+-------------------
+
+Bug fixes:
+ * Handle flag arguments that contain equals character [#275](https://github.com/leejarvis/slop/pull/275) (ConnorWGarvey)
+
v4.9.1 (2021-05-28)
-------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2021-05-28 20:25:35.000000000 +0200
+++ new/README.md 2022-03-26 10:01:48.000000000 +0100
@@ -3,7 +3,7 @@
Slop is a simple option parser with an easy to remember syntax and friendly API.
-[![Build Status](https://travis-ci.org/leejarvis/slop.svg?branch=master)](http://tra…
+[![Build Status](https://github.com/leejarvis/slop/actions/workflows/ci.yml/badge.sv…
Installation
------------
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/parser.rb new/lib/slop/parser.rb
--- old/lib/slop/parser.rb 2021-05-28 20:25:35.000000000 +0200
+++ new/lib/slop/parser.rb 2022-03-26 10:01:48.000000000 +0100
@@ -52,7 +52,7 @@
# support `foo=bar`
orig_flag = flag.dup
- if match = flag.match(/([^=]+)=([^=]*)/)
+ if match = flag.match(/([^=]+)=(.*)/)
flag, arg = match.captures
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb
--- old/lib/slop.rb 2021-05-28 20:25:35.000000000 +0200
+++ new/lib/slop.rb 2022-03-26 10:01:48.000000000 +0100
@@ -6,7 +6,7 @@
require 'slop/error'
module Slop
- VERSION = '4.9.1'
+ VERSION = '4.9.2'
# Parse an array of options (defaults to ARGV). Accepts an
# optional hash of configuration options and block.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-05-28 20:25:35.000000000 +0200
+++ new/metadata 2022-03-26 10:01:48.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: slop
version: !ruby/object:Gem::Version
- version: 4.9.1
+ version: 4.9.2
platform: ruby
authors:
- Lee Jarvis
autorequire:
bindir: bin
cert_chain: []
-date: 2021-05-28 00:00:00.000000000 Z
+date: 2022-03-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -44,8 +44,8 @@
extensions: []
extra_rdoc_files: []
files:
+- ".github/workflows/ci.yml"
- ".gitignore"
-- ".travis.yml"
- CHANGELOG.md
- Gemfile
- LICENSE
@@ -86,7 +86,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.2.32
signing_key:
specification_version: 4
summary: Simple Lightweight Option Parsing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/parser_test.rb new/test/parser_test.rb
--- old/test/parser_test.rb 2021-05-28 20:25:35.000000000 +0200
+++ new/test/parser_test.rb 2022-03-26 10:01:48.000000000 +0100
@@ -17,16 +17,25 @@
assert_equal ["-v", "--name", "lee"], @parser.arguments
end
- it "parses flag=argument" do
- @options.integer "-p", "--port"
- @result.parser.parse %w(--name=bob -p=123)
- assert_equal "bob", @result[:name]
- assert_equal 123, @result[:port]
+ describe "for flag=argument" do
+ it "parses names and values" do
+ @options.integer "-p", "--port"
+ @result.parser.parse %w(--name=bob -p=123)
+ assert_equal "bob", @result[:name]
+ assert_equal 123, @result[:port]
+ end
- @options.string "--foo"
- @result.parser.parse %w(--foo = =)
- assert_equal "=", @result[:foo]
- assert_equal %w(=), @result.args
+ it "treats an = separated by a space as a value" do
+ @options.string "--foo"
+ @result.parser.parse %w(--foo = =)
+ assert_equal "=", @result[:foo]
+ assert_equal %w(=), @result.args
+ end
+
+ it "includes = in strings" do
+ @result.parser.parse(%w(--name=b=b))
+ assert_equal "b=b", @result[:name]
+ end
end
it "parses flag=''" do
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-sinatra for openSUSE:Factory checked in at 2022-04-30 22:52:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sinatra (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sinatra.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sinatra"
Sat Apr 30 22:52:54 2022 rev:11 rq:974079 version:2.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sinatra/rubygem-sinatra.changes 2020-10-05 19:33:51.701243363 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-sinatra.new.1538/rubygem-sinatra.changes 2022-04-30 22:53:06.472270526 +0200
@@ -1,0 +2,74 @@
+Thu Apr 28 05:51:20 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 2.2.0
+ see installed CHANGELOG.md
+
+ ## 2.2.0 / Unrealased
+
+ * Handle EOFError raised by Rack and return Bad Request 400 status. [#1743](https://github.com/sinatra/sinatra/pull/1743) by tamazon
+
+ * Update README.es.md with removal of Thin. [#1630](https://github.com/sinatra/sinatra/pull/1630) by Espartaco Palma
+
+ * Minor refactors in `base.rb`. [#1640](https://github.com/sinatra/sinatra/pull/1640) by ceclinux
+
+ * Fixed typos in german README.md. [#1648](https://github.com/sinatra/sinatra/pull/1648) by Juri
+
+ * Add escaping to the static 404 page. [#1645](https://github.com/sinatra/sinatra/pull/1645) by Chris Gavin
+
+ * Remove `detect_rack_handler` method. [#1652](https://github.com/sinatra/sinatra/pull/1652) by ceclinux
+
+ * Respect content type set in superclass before filter. Fixes [#1647](https://github.com/sinatra/sinatra/issues/1647) [#1649](https://github.com/sinatra/sinatra/pull/1649) by Jordan Owens
+
+ * Update README.ja.md with removal of Thin. [#1629](https://github.com/sinatra/sinatra/pull/1629) by Ryuichi KAWAMATA
+
+ * *Revert "Use prepend instead of include for helpers.* [#1662](https://github.com/sinatra/sinatra/pull/1662) by namusyaka
+
+ * Various minor fixes to README.md. [#1663](https://github.com/sinatra/sinatra/pull/1663) by Yanis Zafir��pulos
+
+ * Document when `dump_errors` is enabled. Fixes [#1664](https://github.com/sinatra/sinatra/issues/1664) [#1665](https://github.com/sinatra/sinatra/pull/1665) by Patrik Ragnarsson
+
+ * Update README.pt-br.md. [#1668](https://github.com/sinatra/sinatra/pull/1668) by Vitor Oliveira
+
+ * Fix usage of inherited `Sinatra::Base` classes keyword arguments. Fixes [#1669](https://github.com/sinatra/sinatra/issues/1669) [#1670](https://github.com/sinatra/sinatra/pull/1670) by Cadu Ribeiro
+
+ * Reduce RDoc generation time by not including every README. Fixes [#1578](https://github.com/sinatra/sinatra/issues/1578) [#1671](https://github.com/sinatra/sinatra/pull/1671) by Eloy P��rez
+
+ * Add support for per form csrf tokens. Fixes [#1616](https://github.com/sinatra/sinatra/issues/1616) [#1653](https://github.com/sinatra/sinatra/pull/1653) by Jordan Owens
+
+ * Update MAINTENANCE.md with the `stable` branch status. [#1681](https://github.com/sinatra/sinatra/pull/1681) by Fredrik Rubensson
+
+ * Validate expanded path matches `public_dir` when serving static files. [#1683](https://github.com/sinatra/sinatra/pull/1683) by cji-stripe
+
+ * Fix Delegator to pass keyword arguments for Ruby 3.0. [#1684](https://github.com/sinatra/sinatra/pull/1684) by andrewtblake
+
+ * Fix use with keyword arguments for Ruby 3.0. [#1701](https://github.com/sinatra/sinatra/pull/1701) by Robin Wallin
+
+ * Fix memory leaks for proc template. Fixes [#1704](https://github.com/sinatra/sinatra/issues/1714) [#1719](https://github.com/sinatra/sinatra/pull/1719) by Slevin
+
+ * Remove unnecessary `test_files` from the gemspec. [#1712](https://github.com/sinatra/sinatra/pull/1712) by Masataka Pocke Kuwabara
+
+ * Add `#select`, `#reject` and `#compact` methods to `Sinatra::IndifferentHash`. [#1711](https://github.com/sinatra/sinatra/pull/1711) by Olivier Bellone
+
+
+ ### CI
+
+ * Use latest JRuby 9.2.16.0 on CI. [#1682](https://github.com/sinatra/sinatra/pull/1682) by Olle Jonsson
+
+ * Switch CI from travis to Github actions. [#1691](https://github.com/sinatra/sinatra/pull/1691) by namusyaka
+
+ * Skip the Slack action if `secrets.SLACK_WEBHOOK` is not set. [#1705](https://github.com/sinatra/sinatra/pull/1705) by Robin Wallin
+
+ * Small CI improvements. [#1703](https://github.com/sinatra/sinatra/pull/1703) by Robin Wallin
+
+ * Drop auto-generated boilerplate comments from CI configuration file. [#1728](https://github.com/sinatra/sinatra/pull/1728) by Olle Jonsson
+
+ ### sinatra-contrib
+
+ * Do not raise when key is an enumerable. [#1619](https://github.com/sinatra/sinatra/pull/1619) by Ulysse Buonomo
+
+ ### Rack protection
+
+ * Fix broken `origin_whitelist` option. Fixes [#1641](https://github.com/sinatra/sinatra/issues/1641) [#1642](https://github.com/sinatra/sinatra/pull/1642) by Takeshi YASHIRO
+
+
+-------------------------------------------------------------------
Old:
----
sinatra-2.1.0.gem
New:
----
sinatra-2.2.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sinatra.spec ++++++
--- /var/tmp/diff_new_pack.TdghjS/_old 2022-04-30 22:53:08.268272956 +0200
+++ /var/tmp/diff_new_pack.TdghjS/_new 2022-04-30 22:53:08.272272961 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-sinatra
#
-# 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
@@ -24,7 +24,7 @@
#
Name: rubygem-sinatra
-Version: 2.1.0
+Version: 2.2.0
Release: 0
%define mod_name sinatra
%define mod_full_name %{mod_name}-%{version}
++++++ sinatra-2.1.0.gem -> sinatra-2.2.0.gem ++++++
++++ 1666 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-sexp_processor for openSUSE:Factory checked in at 2022-04-30 22:52:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sexp_processor (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sexp_processor"
Sat Apr 30 22:52:53 2022 rev:37 rq:974078 version:4.16.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sexp_processor/rubygem-sexp_processor.changes 2022-02-07 23:38:42.502190743 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.1538/rubygem-sexp_processor.changes 2022-04-30 22:53:05.656269422 +0200
@@ -1,0 +2,13 @@
+Thu Apr 28 05:50:13 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 4.16.1
+ see installed History.rdoc
+
+ === 4.16.1 / 2022-04-09
+
+ * 1 minor enhancement:
+
+ * Reworked ParseTreeTestCase's notion of versions to make it easier to extend.
+
+
+-------------------------------------------------------------------
Old:
----
sexp_processor-4.16.0.gem
New:
----
sexp_processor-4.16.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.R4rCeK/_old 2022-04-30 22:53:06.156270098 +0200
+++ /var/tmp/diff_new_pack.R4rCeK/_new 2022-04-30 22:53:06.160270104 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-sexp_processor
-Version: 4.16.0
+Version: 4.16.1
Release: 0
%define mod_name sexp_processor
%define mod_full_name %{mod_name}-%{version}
++++++ sexp_processor-4.16.0.gem -> sexp_processor-4.16.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc 2021-10-27 09:55:32.000000000 +0200
+++ new/History.rdoc 2022-04-10 00:16:30.000000000 +0200
@@ -1,3 +1,9 @@
+=== 4.16.1 / 2022-04-09
+
+* 1 minor enhancement:
+
+ * Reworked ParseTreeTestCase's notion of versions to make it easier to extend.
+
=== 4.16.0 / 2021-10-27
* 4 minor enhancements:
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pt_testcase.rb new/lib/pt_testcase.rb
--- old/lib/pt_testcase.rb 2021-10-27 09:55:32.000000000 +0200
+++ new/lib/pt_testcase.rb 2022-04-10 00:16:30.000000000 +0200
@@ -34,6 +34,12 @@
end
class ParseTreeTestCase < Minitest::Test
+ all_versions = %w[18 19 20 21 22 23 24 25 26 27 30 31]
+ most_versions = all_versions.drop(1)
+
+ TEST_SUFFIX = "_#{most_versions.join "_"}"
+ VER_RE = /(#{Regexp.union(*all_versions)})/
+
attr_accessor :processor # to be defined by subclass
def setup
@@ -77,7 +83,7 @@
end
def self.add_19tests name, hash
- add_tests "#{name}__19_20_21_22_23_24_25_26_27_30", hash # HACK?
+ add_tests "#{name}_#{TEST_SUFFIX}", hash # HACK?
end
def self.add_19edgecases ruby, sexp, cases
@@ -102,8 +108,6 @@
testcases[verbose][klass] = testcases[nonverbose][klass]
end
- VER_RE = "(1[89]|2[01234567]|3[0])"
-
def self.generate_test klass, node, data, input_name, output_name
klass.send :define_method, "test_#{node}" do
flunk "Processor is nil" if processor.nil?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sexp_processor.rb new/lib/sexp_processor.rb
--- old/lib/sexp_processor.rb 2021-10-27 09:55:32.000000000 +0200
+++ new/lib/sexp_processor.rb 2022-04-10 00:16:30.000000000 +0200
@@ -34,7 +34,7 @@
class SexpProcessor
# duh
- VERSION = "4.16.0"
+ VERSION = "4.16.1"
##
# Automatically shifts off the Sexp type before handing the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-10-27 09:55:32.000000000 +0200
+++ new/metadata 2022-04-10 00:16:30.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: sexp_processor
version: !ruby/object:Gem::Version
- version: 4.16.0
+ version: 4.16.1
platform: ruby
authors:
- Ryan Davis
@@ -10,9 +10,9 @@
cert_chain:
- |
-----BEGIN CERTIFICATE-----
- MIIDPjCCAiagAwIBAgIBBTANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
- GRYDY29tMB4XDTIwMTIyMjIwMzgzMFoXDTIxMTIyMjIwMzgzMFowRTETMBEGA1UE
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +22,14 @@
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
- AQAE3XRm1YZcCVjAJy5yMZvTOFrS7B2SYErc+0QwmKYbHztTTDY2m5Bii+jhpuxh
- H+ETcU1z8TUKLpsBUP4kUpIRowkVN1p/jKapV8T3Rbwq+VuYFe+GMKsf8wGZSecG
- oMQ8DzzauZfbvhe2kDg7G9BBPU0wLQlY25rDcCy9bLnD7R0UK3ONqpwvsI5I7x5X
- ZIMXR0a9/DG+55mawwdGzCQobDKiSNLK89KK7OcNTALKU0DfgdTkktdgKchzKHqZ
- d/AHw/kcnU6iuMUoJEcGiJd4gVCTn1l3cDcIvxakGslCA88Jubw0Sqatan0TnC9g
- KToW560QIey7SPfHWduzFJnV
+ AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
+ x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
+ zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
+ YsuyUzsMz6GQA4khyaMgKNSD
-----END CERTIFICATE-----
-date: 2021-10-27 00:00:00.000000000 Z
+date: 2022-04-09 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rdoc
@@ -57,14 +57,14 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.22'
+ version: '3.23'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '3.22'
+ version: '3.23'
description: |-
sexp_processor branches from ParseTree bringing all the generic sexp
processing tools with it. Sexp, SexpProcessor, Environment, etc... all
@@ -118,7 +118,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.16
+rubygems_version: 3.3.3
signing_key:
specification_version: 4
summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-sdoc for openSUSE:Factory checked in at 2022-04-30 22:52:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sdoc (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sdoc.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sdoc"
Sat Apr 30 22:52:52 2022 rev:7 rq:974077 version:2.3.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sdoc/rubygem-sdoc.changes 2021-07-02 13:28:50.260122529 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-sdoc.new.1538/rubygem-sdoc.changes 2022-04-30 22:53:03.844266970 +0200
@@ -1,0 +2,27 @@
+Thu Apr 28 05:49:47 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 2.3.2
+ see installed CHANGELOG.md
+
+ 2.3.2
+ =====
+
+ * #184 Add support for rdoc 6.4.0 [@p8](https://github.com/p8)
+
+ 2.3.1
+ =====
+
+ * #183 Remove unsupported browser detection [@p8](https://github.com/p8)
+ * #182 Use window.location instead of Turbolinks.visit if protocol is 'file:' [@p8](https://github.com/p8)
+
+ 2.3.0
+ =====
+
+ * #178 Don't use rdoc 6.4.0 for now [@p8](https://github.com/p8)
+ * #177 Remove rake version constraint for ruby head [@p8](https://github.com/p8)
+ * #176 Make sidepanel work with relative paths/URLs [@p8](https://github.com/p8)
+ * #175 Avoid displaying source toggler for ghost methods [Robin Dupret](https://github.com/robin850)
+ * #174 Suppress unused variable warnings [Masataka Pocke Kuwabara](https://github.com/pocke)
+
+
+-------------------------------------------------------------------
Old:
----
sdoc-2.2.0.gem
New:
----
sdoc-2.3.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sdoc.spec ++++++
--- /var/tmp/diff_new_pack.XuP7WP/_old 2022-04-30 22:53:05.212268821 +0200
+++ /var/tmp/diff_new_pack.XuP7WP/_new 2022-04-30 22:53:05.216268827 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-sdoc
#
-# Copyright (c) 2021 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
@@ -24,7 +24,7 @@
#
Name: rubygem-sdoc
-Version: 2.2.0
+Version: 2.3.2
Release: 0
%define mod_name sdoc
%define mod_full_name %{mod_name}-%{version}
++++++ sdoc-2.2.0.gem -> sdoc-2.3.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/test.yml new/.github/workflows/test.yml
--- old/.github/workflows/test.yml 2021-05-21 10:01:34.000000000 +0200
+++ new/.github/workflows/test.yml 2022-04-22 09:57:47.000000000 +0200
@@ -2,6 +2,8 @@
on:
push:
+ pull_request:
+ branches: [ master ]
schedule:
- cron: '0 0 * * *'
@@ -31,6 +33,7 @@
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
+ cache-version: 2
- name: Test
run: |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2021-05-21 10:01:34.000000000 +0200
+++ new/CHANGELOG.md 2022-04-22 09:57:47.000000000 +0200
@@ -1,6 +1,26 @@
Master
======
+2.3.2
+=====
+
+* #184 Add support for rdoc 6.4.0 [@p8](https://github.com/p8)
+
+2.3.1
+=====
+
+* #183 Remove unsupported browser detection [@p8](https://github.com/p8)
+* #182 Use window.location instead of Turbolinks.visit if protocol is 'file:' [@p8](https://github.com/p8)
+
+2.3.0
+=====
+
+* #178 Don't use rdoc 6.4.0 for now [@p8](https://github.com/p8)
+* #177 Remove rake version constraint for ruby head [@p8](https://github.com/p8)
+* #176 Make sidepanel work with relative paths/URLs [@p8](https://github.com/p8)
+* #175 Avoid displaying source toggler for ghost methods [Robin Dupret](https://github.com/robin850)
+* #174 Suppress unused variable warnings [Masataka Pocke Kuwabara](https://github.com/pocke)
+
2.2.0
=====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2021-05-21 10:01:34.000000000 +0200
+++ new/Gemfile 2022-04-22 09:57:47.000000000 +0200
@@ -2,9 +2,15 @@
gemspec
-gem "rake", "< 11"
-gem "minitest"
+gem "rack"
+gem "rake"
gem "hoe"
+gem "minitest"
+
+
+if RUBY_VERSION.to_f <= 2.5
+ gem "psych", "< 4.0"
+end
if ENV["rdoc"] == "master"
gem "rdoc", :github => "ruby/rdoc"
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rdoc/generator/template/rails/_context.rhtml new/lib/rdoc/generator/template/rails/_context.rhtml
--- old/lib/rdoc/generator/template/rails/_context.rhtml 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/rdoc/generator/template/rails/_context.rhtml 2022-04-22 09:57:47.000000000 +0200
@@ -195,12 +195,20 @@
else
false
end
+
+ ghost = method.instance_of?(RDoc::GhostMethod)
%>
<p class="source-link">
- Source:
- <a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
+ <% if !ghost || github %> Source: <% end %>
+
+ <% unless ghost %>
+ <a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
+ <% end %>
+
+ <% if !ghost && github %> | <% end %>
+
<% if github %>
- | <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
+ <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
<% end %>
</p>
<div id="<%= method.aref %>_source" class="dyn-source">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rdoc/generator/template/rails/_head.rhtml new/lib/rdoc/generator/template/rails/_head.rhtml
--- old/lib/rdoc/generator/template/rails/_head.rhtml 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/rdoc/generator/template/rails/_head.rhtml 2022-04-22 09:57:47.000000000 +0200
@@ -1,22 +1,14 @@
-<%
- # Turbolinks does not consider relative urls similar, resulting in page
- # reloads and losing the context of the panel. Emptying the rel_prefix makes
- # asset paths absolute. This breaks opening the docs locally. Maybe all
- # generated docs should be in the same folder?
- rel_prefix = ''
-%>
-<link rel="stylesheet" href="<%= "#{rel_prefix}/css/reset.css" %>" type="text/css" media="screen" data-turbolinks-track="reload" />
-<link rel="stylesheet" href="<%= "#{rel_prefix}/css/panel.css" %>" type="text/css" media="screen" data-turbolinks-track="reload" />
-<link rel="stylesheet" href="<%= "#{rel_prefix}/css/main.css" %>" type="text/css" media="screen" data-turbolinks-track="reload" />
-<link rel="stylesheet" href="<%= "#{rel_prefix}/css/github.css" %>" type="text/css" media="screen" data-turbolinks-track="reload" />
-<script src="<%= "#{rel_prefix}/js/jquery-3.5.1.min.js" %>" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= "#{rel_prefix}/js/main.js" %>" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= "#{rel_prefix}/js/highlight.pack.js" %>" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= rel_prefix %>/js/turbolinks.js" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= rel_prefix %>/js/search_index.js" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= rel_prefix %>/js/searcher.js" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= rel_prefix %>/panel/tree.js" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-<script src="<%= rel_prefix %>/js/searchdoc.js" type="text/javascript" charset="utf-8" data-turbolinks-track="reload"></script>
-
+<link rel="stylesheet" href="<%= rel_prefix %>/css/reset.css" type="text/css" media="screen" />
+<link rel="stylesheet" href="<%= rel_prefix %>/css/panel.css" type="text/css" media="screen" />
+<link rel="stylesheet" href="<%= rel_prefix %>/css/main.css" type="text/css" media="screen" />
+<link rel="stylesheet" href="<%= rel_prefix %>/css/github.css" type="text/css" media="screen" />
+<script src="<%= rel_prefix %>/js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/main.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/turbolinks.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/search_index.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/searcher.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/panel/tree.js" type="text/javascript" charset="utf-8"></script>
+<script src="<%= rel_prefix %>/js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
<meta name="data-rel-prefix" content="<%= rel_prefix %>/">
<meta name="data-tree-keys" content='<%= tree_keys %>'>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rdoc/generator/template/rails/resources/js/main.js new/lib/rdoc/generator/template/rails/resources/js/main.js
--- old/lib/rdoc/generator/template/rails/resources/js/main.js 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/rdoc/generator/template/rails/resources/js/main.js 2022-04-22 09:57:47.000000000 +0200
@@ -31,7 +31,7 @@
// Only initialize panel if not yet initialized
if(!$('#panel .tree ul li').length) {
$('#links').hide();
- var panel = new Searchdoc.Panel($('#panel'), search_data, tree, $('meta[name="data-rel-prefix"]').attr("content"));
+ var panel = new Searchdoc.Panel($('#panel'), search_data, tree);
var s = window.location.search.match(/\?q=([^&]+)/);
if (s) {
s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rdoc/generator/template/rails/resources/js/searchdoc.js new/lib/rdoc/generator/template/rails/resources/js/searchdoc.js
--- old/lib/rdoc/generator/template/rails/resources/js/searchdoc.js 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/rdoc/generator/template/rails/resources/js/searchdoc.js 2022-04-22 09:57:47.000000000 +0200
@@ -89,7 +89,6 @@
};
this.startMoveTimeout = function(isDown) {
- if (!$.browser.mozilla && !$.browser.opera) return;
if (this.moveTimeout) this.clearMoveTimeout();
var _this = this;
@@ -135,11 +134,10 @@
// panel.js -----------------------------------------------
-Searchdoc.Panel = function(element, data, tree, prefix) {
+Searchdoc.Panel = function(element, data, tree) {
this.$element = $(element);
this.$input = $('input', element).eq(0);
this.$result = $('.result ul', element).eq(0);
- this.prefix = prefix;
this.$current = null;
this.$view = this.$result.parent();
this.data = data;
@@ -232,12 +230,17 @@
};
this.open = function(src) {
- Turbolinks.visit(this.prefix + src);
+ var location = $('meta[name="data-rel-prefix"]').attr("content") + src;
+ if (window.location.protocol === "file:") {
+ window.location.href = location;
+ } else {
+ Turbolinks.visit(location);
+ }
if (this.highlight) this.highlight(src);
};
this.select = function() {
- this.open(this.$current.data('path'));
+ this.open(this.$current.attr('data-path'));
};
this.move = function(isDown) {
@@ -266,7 +269,7 @@
html += hlt(result.namespace) + '</p>';
if (result.snippet) html += '<p class="snippet">' + stripHTML(result.snippet) + '</p>';
li.innerHTML = html;
- jQuery.data(li, 'path', result.path);
+ $(li).attr('data-path', result.path)
return li;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rdoc/generator/template/sdoc/_context.rhtml new/lib/rdoc/generator/template/sdoc/_context.rhtml
--- old/lib/rdoc/generator/template/sdoc/_context.rhtml 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/rdoc/generator/template/sdoc/_context.rhtml 2022-04-22 09:57:47.000000000 +0200
@@ -195,12 +195,20 @@
else
false
end
+
+ ghost = method.instance_of?(RDoc::GhostMethod)
%>
<p class="source-link">
- Source:
- <a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
+ <% if !ghost || github %> Source: <% end %>
+
+ <% unless ghost %>
+ <a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
+ <% end %>
+
+ <% if !ghost && github %> | <% end %>
+
<% if github %>
- | <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
+ <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
<% end %>
</p>
<div id="<%= method.aref %>_source" class="dyn-source">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sdoc/generator.rb new/lib/sdoc/generator.rb
--- old/lib/sdoc/generator.rb 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/sdoc/generator.rb 2022-04-22 09:57:47.000000000 +0200
@@ -118,7 +118,7 @@
debug_msg "Generating index file in #@outputdir"
templatefile = @template_dir + 'index.rhtml'
outfile = @outputdir + 'index.html'
- rel_prefix = @outputdir.relative_path_from( outfile.dirname )
+ rel_prefix = rel_prefix = @outputdir.relative_path_from( outfile.dirname )
self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
end
@@ -131,7 +131,7 @@
@classes.each do |klass|
debug_msg " working on %s (%s)" % [ klass.full_name, klass.path ]
outfile = @outputdir + klass.path
- rel_prefix = @outputdir.relative_path_from( outfile.dirname )
+ rel_prefix = rel_prefix = @outputdir.relative_path_from( outfile.dirname )
debug_msg " rendering #{outfile}"
self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
@@ -146,7 +146,7 @@
@files.each do |file|
outfile = @outputdir + file.path
debug_msg " working on %s (%s)" % [ file.full_name, outfile ]
- rel_prefix = @outputdir.relative_path_from( outfile.dirname )
+ rel_prefix = rel_prefix = @outputdir.relative_path_from( outfile.dirname )
debug_msg " rendering #{outfile}"
self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sdoc/templatable.rb new/lib/sdoc/templatable.rb
--- old/lib/sdoc/templatable.rb 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/sdoc/templatable.rb 2022-04-22 09:57:47.000000000 +0200
@@ -28,7 +28,7 @@
### current context. Adds all +local_assigns+ to context
def include_template(template_name, local_assigns = {})
source = local_assigns.keys.map { |key| "#{key} = local_assigns[:#{key}];" }.join
- templatefile = @template_dir + template_name
+ templatefile = templatefile = @template_dir + template_name
eval("#{source};eval_template(templatefile, binding)")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/sdoc/version.rb new/lib/sdoc/version.rb
--- old/lib/sdoc/version.rb 2021-05-21 10:01:34.000000000 +0200
+++ new/lib/sdoc/version.rb 2022-04-22 09:57:47.000000000 +0200
@@ -1,3 +1,3 @@
module SDoc
- VERSION = '2.2.0'
+ VERSION = '2.3.2'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-05-21 10:01:34.000000000 +0200
+++ new/metadata 2022-04-22 09:57:47.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: sdoc
version: !ruby/object:Gem::Version
- version: 2.2.0
+ version: 2.3.2
platform: ruby
authors:
- Vladimir Kolesnikov
@@ -11,7 +11,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2021-05-21 00:00:00.000000000 Z
+date: 2022-04-22 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rdoc
@@ -27,20 +27,6 @@
- - ">="
- !ruby/object:Gem::Version
version: '5.0'
-- !ruby/object:Gem::Dependency
- name: rack
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
description: rdoc generator html with javascript search index.
email: voloko(a)gmail.com mail(a)zzak.io
executables:
@@ -137,7 +123,7 @@
- !ruby/object:Gem::Version
version: 1.3.6
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.0.3.1
signing_key:
specification_version: 4
summary: rdoc html with javascript search index.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sdoc.gemspec new/sdoc.gemspec
--- old/sdoc.gemspec 2021-05-21 10:01:34.000000000 +0200
+++ new/sdoc.gemspec 2022-04-22 09:57:47.000000000 +0200
@@ -24,8 +24,6 @@
s.add_runtime_dependency("rdoc", ">= 5.0")
- s.add_development_dependency("rack")
-
s.files = `git ls-files`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
end
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-ruby_parser for openSUSE:Factory checked in at 2022-04-30 22:52:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby_parser (Old)
and /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-ruby_parser"
Sat Apr 30 22:52:50 2022 rev:44 rq:974076 version:3.19.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ruby_parser/rubygem-ruby_parser.changes 2022-02-07 23:38:54.734107048 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new.1538/rubygem-ruby_parser.changes 2022-04-30 22:53:02.752265493 +0200
@@ -1,0 +2,35 @@
+Thu Apr 28 05:48:21 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 3.19.1
+ see installed History.rdoc
+
+ === 3.19.1 / 2022-04-05
+
+ * 2 bug fixes:
+
+ * Added comments to endless defn and defs. (mvz)
+ * Fixed endless method bug handling attrset names.
+
+ === 3.19.0 / 2022-03-29
+
+ * 1 major enhancement:
+
+ * Added tentative 3.1 support.
+
+ * 7 minor enhancements:
+
+ * 3.1: bare RHS assoc: { y: } => s(:hash, s(:lit, :y), nil)
+ * 3.1: calls w/ unnamed block args (bare &)
+ * 3.1: endless defn/defs w/ paren-less calls (aka commands)
+ * 3.1: pattern capture to nonlocal vars, eg: ^@a, ^$b, ^@@c
+ * 3.1: pattern: ^(expr) => expr
+ * Improved steps for adding new versions.
+ * Improved steps for running gauntlets.
+
+ * 2 bug fixes:
+
+ * Bumped 2.6+ cached versions for rake compare.
+ * Skip test_regexp_esc_C_slash on ruby 3.1.0 because of MRI bug.
+
+
+-------------------------------------------------------------------
Old:
----
ruby_parser-3.18.1.gem
New:
----
ruby_parser-3.19.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-ruby_parser.spec ++++++
--- /var/tmp/diff_new_pack.NOz1LQ/_old 2022-04-30 22:53:03.260266180 +0200
+++ /var/tmp/diff_new_pack.NOz1LQ/_new 2022-04-30 22:53:03.264266186 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-ruby_parser
-Version: 3.18.1
+Version: 3.19.1
Release: 0
%define mod_name ruby_parser
%define mod_full_name %{mod_name}-%{version}
@@ -64,7 +64,10 @@
* 1.8 parser is at 99.9739% accuracy, 3.651 sigma
* 1.9 parser is at 99.9940% accuracy, 4.013 sigma
* 2.0 parser is at 99.9939% accuracy, 4.008 sigma
-* 2.6 parser is at 99.9972% accuracy, 4.191 sigma.
+* 2.6 parser is at 99.9972% accuracy, 4.191 sigma
+* 3.0 parser has a 100% parse rate.
+* Tested against 2,672,412 unique ruby files across 167k gems.
+* As do all the others now, basically.
%prep
++++++ ruby_parser-3.18.1.gem -> ruby_parser-3.19.1.gem ++++++
++++ 96523 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rubocop-ast for openSUSE:Factory checked in at 2022-04-30 22:52:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop-ast (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rubocop-ast"
Sat Apr 30 22:52:48 2022 rev:18 rq:974075 version:1.17.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rubocop-ast/rubygem-rubocop-ast.changes 2022-03-11 11:35:31.406214995 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rubocop-ast.new.1538/rubygem-rubocop-ast.changes 2022-04-30 22:53:01.748264134 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:47:10 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.17.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
rubocop-ast-1.16.0.gem
New:
----
rubocop-ast-1.17.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rubocop-ast.spec ++++++
--- /var/tmp/diff_new_pack.oK9FUf/_old 2022-04-30 22:53:02.204264752 +0200
+++ /var/tmp/diff_new_pack.oK9FUf/_new 2022-04-30 22:53:02.212264763 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-rubocop-ast
-Version: 1.16.0
+Version: 1.17.0
Release: 0
%define mod_name rubocop-ast
%define mod_full_name %{mod_name}-%{version}
++++++ rubocop-ast-1.16.0.gem -> rubocop-ast-1.17.0.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/node.rb new/lib/rubocop/ast/node.rb
--- old/lib/rubocop/ast/node.rb 2022-02-22 03:41:59.000000000 +0100
+++ new/lib/rubocop/ast/node.rb 2022-04-09 11:20:37.000000000 +0200
@@ -57,7 +57,7 @@
# @api private
BASIC_CONDITIONALS = %i[if while until].to_set.freeze
# @api private
- CONDITIONALS = (BASIC_CONDITIONALS + [:case]).freeze
+ CONDITIONALS = (BASIC_CONDITIONALS + %i[case case_match]).freeze
# @api private
POST_CONDITION_LOOP_TYPES = %i[while_post until_post].to_set.freeze
# @api private
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/ast/version.rb new/lib/rubocop/ast/version.rb
--- old/lib/rubocop/ast/version.rb 2022-02-22 03:41:59.000000000 +0100
+++ new/lib/rubocop/ast/version.rb 2022-04-09 11:20:37.000000000 +0200
@@ -3,7 +3,7 @@
module RuboCop
module AST
module Version
- STRING = '1.16.0'
+ STRING = '1.17.0'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-02-22 03:41:59.000000000 +0100
+++ new/metadata 2022-04-09 11:20:37.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rubocop-ast
version: !ruby/object:Gem::Version
- version: 1.16.0
+ version: 1.17.0
platform: ruby
authors:
- Bozhidar Batsov
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2022-02-22 00:00:00.000000000 Z
+date: 2022-04-09 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: parser
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-04-30 22:52:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rubocop"
Sat Apr 30 22:52:47 2022 rev:36 rq:974074 version:1.28.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-03-11 11:35:30.558214000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538/rubygem-rubocop.changes 2022-04-30 22:53:00.884262966 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:46:56 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.28.2
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
rubocop-1.26.0.gem
New:
----
rubocop-1.28.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rubocop.spec ++++++
--- /var/tmp/diff_new_pack.oAYIKV/_old 2022-04-30 22:53:01.384263643 +0200
+++ /var/tmp/diff_new_pack.oAYIKV/_new 2022-04-30 22:53:01.388263648 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-rubocop
-Version: 1.26.0
+Version: 1.28.2
Release: 0
%define mod_name rubocop
%define mod_full_name %{mod_name}-%{version}
++++++ rubocop-1.26.0.gem -> rubocop-1.28.2.gem ++++++
++++ 3029 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rspec-rails for openSUSE:Factory checked in at 2022-04-30 22:52:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rspec-rails (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rspec-rails.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rspec-rails"
Sat Apr 30 22:52:46 2022 rev:9 rq:974073 version:5.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rspec-rails/rubygem-rspec-rails.changes 2022-03-11 21:42:03.162106822 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rspec-rails.new.1538/rubygem-rspec-rails.changes 2022-04-30 22:52:59.876261602 +0200
@@ -1,0 +2,12 @@
+Thu Apr 28 05:46:40 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 5.1.2
+ see installed Changelog.md
+
+ Bug Fixes:
+
+ * Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)
+ * Include generator specs in the inferred list of specs. (Jason Karns, #2597)
+
+
+-------------------------------------------------------------------
Old:
----
rspec-rails-5.1.1.gem
New:
----
rspec-rails-5.1.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rspec-rails.spec ++++++
--- /var/tmp/diff_new_pack.amisJV/_old 2022-04-30 22:53:00.328262213 +0200
+++ /var/tmp/diff_new_pack.amisJV/_new 2022-04-30 22:53:00.336262224 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-rspec-rails
-Version: 5.1.1
+Version: 5.1.2
Release: 0
%define mod_name rspec-rails
%define mod_full_name %{mod_name}-%{version}
++++++ rspec-rails-5.1.1.gem -> rspec-rails-5.1.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md 2022-03-07 11:44:08.000000000 +0100
+++ new/Changelog.md 2022-04-24 10:27:57.000000000 +0200
@@ -1,6 +1,11 @@
### Development
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.1...5-1-mainte…
+Bug Fixes:
+
+* Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)
+* Include generator specs in the inferred list of specs. (Jason Karns, #2597)
+
### 5.1.1 / 2022-03-07
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rspec/scaffold/templates/api_controller_spec.rb new/lib/generators/rspec/scaffold/templates/api_controller_spec.rb
--- old/lib/generators/rspec/scaffold/templates/api_controller_spec.rb 2022-03-07 11:44:08.000000000 +0100
+++ new/lib/generators/rspec/scaffold/templates/api_controller_spec.rb 2022-04-24 10:27:57.000000000 +0200
@@ -100,7 +100,7 @@
it "renders a JSON response with the <%= singular_table_name %>" do
<%= file_name %> = <%= class_name %>.create! valid_attributes
- put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: valid_attributes}, session: valid_session
+ put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: new_attributes}, session: valid_session
expect(response).to have_http_status(:ok)
expect(response.content_type).to eq('application/json')
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rspec/scaffold/templates/controller_spec.rb new/lib/generators/rspec/scaffold/templates/controller_spec.rb
--- old/lib/generators/rspec/scaffold/templates/controller_spec.rb 2022-03-07 11:44:08.000000000 +0100
+++ new/lib/generators/rspec/scaffold/templates/controller_spec.rb 2022-04-24 10:27:57.000000000 +0200
@@ -112,7 +112,7 @@
it "redirects to the <%= singular_table_name %>" do
<%= file_name %> = <%= class_name %>.create! valid_attributes
- put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: valid_attributes}, session: valid_session
+ put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: new_attributes}, session: valid_session
expect(response).to redirect_to(<%= file_name %>)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/rails/configuration.rb new/lib/rspec/rails/configuration.rb
--- old/lib/rspec/rails/configuration.rb 2022-03-07 11:44:08.000000000 +0100
+++ new/lib/rspec/rails/configuration.rb 2022-04-24 10:27:57.000000000 +0200
@@ -28,6 +28,7 @@
DIRECTORY_MAPPINGS = {
channel: %w[spec channels],
controller: %w[spec controllers],
+ generator: %w[spec generator],
helper: %w[spec helpers],
job: %w[spec jobs],
mailer: %w[spec mailers],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rspec/rails/version.rb new/lib/rspec/rails/version.rb
--- old/lib/rspec/rails/version.rb 2022-03-07 11:44:08.000000000 +0100
+++ new/lib/rspec/rails/version.rb 2022-04-24 10:27:57.000000000 +0200
@@ -3,7 +3,7 @@
# Version information for RSpec Rails.
module Version
# Current version of RSpec Rails, in semantic versioning format.
- STRING = '5.1.1'
+ STRING = '5.1.2'
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-03-07 11:44:08.000000000 +0100
+++ new/metadata 2022-04-24 10:27:57.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: rspec-rails
version: !ruby/object:Gem::Version
- version: 5.1.1
+ version: 5.1.2
platform: ruby
authors:
- David Chelimsky
@@ -44,7 +44,7 @@
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
F3MdtaDehhjC
-----END CERTIFICATE-----
-date: 2022-03-07 00:00:00.000000000 Z
+date: 2022-04-24 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: actionpack
@@ -308,7 +308,7 @@
- MIT
metadata:
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
- changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.1.1/Changelog.md
+ changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.1.2/Changelog.md
documentation_uri: https://rspec.info/documentation/
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
source_code_uri: https://github.com/rspec/rspec-rails
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-rouge for openSUSE:Factory checked in at 2022-04-30 22:52:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rouge (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rouge.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rouge"
Sat Apr 30 22:52:45 2022 rev:17 rq:974071 version:3.28.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rouge/rubygem-rouge.changes 2022-02-02 22:45:02.646055432 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-rouge.new.1538/rubygem-rouge.changes 2022-04-30 22:52:58.716260033 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:46:16 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 3.28.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
rouge-3.27.0.gem
New:
----
rouge-3.28.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rouge.spec ++++++
--- /var/tmp/diff_new_pack.rFAp3u/_old 2022-04-30 22:52:59.416260980 +0200
+++ /var/tmp/diff_new_pack.rFAp3u/_new 2022-04-30 22:52:59.420260985 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-rouge
-Version: 3.27.0
+Version: 3.28.0
Release: 0
%define mod_name rouge
%define mod_full_name %{mod_name}-%{version}
++++++ rouge-3.27.0.gem -> rouge-3.28.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2021-12-15 16:36:24.000000000 +0100
+++ new/Gemfile 2022-02-04 00:58:13.000000000 +0100
@@ -37,5 +37,8 @@
else
gem 'sinatra'
end
+
+ # Ruby 3 no longer ships with a web server
+ gem 'puma' if RUBY_VERSION >= '3'
gem 'shotgun'
end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/demos/fluent new/lib/rouge/demos/fluent
--- old/lib/rouge/demos/fluent 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/demos/fluent 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,13 @@
+# Simple things are simple.
+hello-user = Hello, {$userName}!
+
+# Complex things are possible.
+shared-photos =
+ {$userName} {$photoCount ->
+ [one] added a new photo
+ *[other] added {$photoCount} new photos
+ } to {$userGender ->
+ [male] his stream
+ [female] her stream
+ *[other] their stream
+ }.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/demos/stan new/lib/rouge/demos/stan
--- old/lib/rouge/demos/stan 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/demos/stan 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,13 @@
+data {
+ int<lower=0> N;
+ vector[N] x;
+ vector[N] y;
+}
+parameters {
+ real alpha;
+ real beta;
+ real<lower=0> sigma;
+}
+model {
+ y ~ normal(alpha + beta * x, sigma);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/demos/stata new/lib/rouge/demos/stata
--- old/lib/rouge/demos/stata 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/demos/stata 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,14 @@
+* Run a series of linear regressions
+sysuse auto, clear
+foreach v of varlist mpg weight-turn {
+ regress price `v', robust
+}
+
+regress price i.foreign
+local num_obs = e(N)
+global myglobal = 4
+
+* Generate and manipulate variables
+generate newvar1 = "string"
+generate newvar2 = 34 - `num_obs'
+replace newvar2 = $myglobal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/c.rb new/lib/rouge/lexers/c.rb
--- old/lib/rouge/lexers/c.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/c.rb 2022-02-04 00:58:13.000000000 +0100
@@ -170,12 +170,22 @@
end
state :macro do
- # NB: pop! goes back to :bol
- rule %r/\n/, Comment::Preproc, :pop!
+ mixin :include
rule %r([^/\n\\]+), Comment::Preproc
rule %r/\\./m, Comment::Preproc
mixin :inline_whitespace
rule %r(/), Comment::Preproc
+ # NB: pop! goes back to :bol
+ rule %r/\n/, Comment::Preproc, :pop!
+ end
+
+ state :include do
+ rule %r/(include)(\s*)(<[^>]+>)([^\n]*)/ do
+ groups Comment::Preproc, Text, Comment::PreprocFile, Comment::Single
+ end
+ rule %r/(include)(\s*)("[^"]+")([^\n]*)/ do
+ groups Comment::Preproc, Text, Comment::PreprocFile, Comment::Single
+ end
end
state :if_0 do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/console.rb new/lib/rouge/lexers/console.rb
--- old/lib/rouge/lexers/console.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/console.rb 2022-02-04 00:58:13.000000000 +0100
@@ -103,7 +103,7 @@
end
def line_regex
- /(\\.|[^\\])*?(\n|$)/m
+ /(.*?)(\n|$)/
end
def output_lexer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/cpp.rb new/lib/rouge/lexers/cpp.rb
--- old/lib/rouge/lexers/cpp.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/cpp.rb 2022-02-04 00:58:13.000000000 +0100
@@ -22,12 +22,14 @@
def self.keywords
@keywords ||= super + Set.new(%w(
- asm auto catch const_cast delete dynamic_cast explicit export friend
+ asm auto catch char8_t concept
+ consteval constexpr constinit const_cast co_await co_return co_yield
+ delete dynamic_cast explicit export friend
mutable namespace new operator private protected public
- reinterpret_cast restrict size_of static_cast this throw throws
+ reinterpret_cast requires restrict size_of static_cast this throw throws
typeid typename using virtual final override
- alignas alignof constexpr decltype noexcept static_assert
+ alignas alignof decltype noexcept static_assert
thread_local try
))
end
@@ -68,7 +70,7 @@
rule %r/#{dq}[lu]*/i, Num::Integer
rule %r/\bnullptr\b/, Name::Builtin
rule %r/(?:u8|u|U|L)?R"([a-zA-Z0-9_{}\[\]#<>%:;.?*\+\-\/\^&|~!=,"']{,16})\(.*?\)\1"/m, Str
- rule %r/::/, Operator
+ rule %r/(::|<=>)/, Operator
end
state :classname do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/cypher.rb new/lib/rouge/lexers/cypher.rb
--- old/lib/rouge/lexers/cypher.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/cypher.rb 2022-02-04 00:58:13.000000000 +0100
@@ -45,6 +45,7 @@
state :root do
rule %r/[\s]+/, Text
rule %r(//.*?$), Comment::Single
+ rule %r(/\*), Comment::Multiline, :multiline_comments
rule %r([*+\-<>=&|~%^]), Operator
rule %r/[{}),;\[\]]/, Str::Symbol
@@ -103,6 +104,13 @@
rule %r/'(\\\\|\\'|[^'])*'/, Str::Single
rule %r/`(\\\\|\\`|[^`])*`/, Str::Backtick
end
+
+ state :multiline_comments do
+ rule %r(/[*]), Comment::Multiline, :multiline_comments
+ rule %r([*]/), Comment::Multiline, :pop!
+ rule %r([^/*]+), Comment::Multiline
+ rule %r([/*]), Comment::Multiline
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/dart.rb new/lib/rouge/lexers/dart.rb
--- old/lib/rouge/lexers/dart.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/dart.rb 2022-02-04 00:58:13.000000000 +0100
@@ -5,25 +5,25 @@
module Lexers
class Dart < RegexLexer
title "Dart"
- desc "The Dart programming language (dartlang.com)"
+ desc "The Dart programming language (dart.dev)"
tag 'dart'
filenames '*.dart'
mimetypes 'text/x-dart'
keywords = %w(
- as assert break case catch continue default do else finally for
- if in is new rethrow return super switch this throw try while with
+ as assert await break case catch continue default do else finally for
+ if in is new rethrow return super switch this throw try while with yield
)
declarations = %w(
- abstract dynamic const external extends factory final get implements
- native operator set static typedef var
+ abstract async dynamic const covariant external extends factory final get
+ implements late native on operator required set static sync typedef var
)
- types = %w(bool double Dynamic enum int num Object Set String void)
+ types = %w(bool Comparable double Dynamic enum Function int List Map Never Null num Object Pattern Set String Symbol Type Uri void)
- imports = %w(import export library part\s*of part source)
+ imports = %w(import deferred export library part\s*of part source)
id = /[a-zA-Z_]\w*/
@@ -53,7 +53,7 @@
rule %r/(?:#{declarations.join('|')})\b/, Keyword::Declaration
rule %r/(?:#{types.join('|')})\b/, Keyword::Type
rule %r/(?:true|false|null)\b/, Keyword::Constant
- rule %r/(?:class|interface)\b/, Keyword::Declaration, :class
+ rule %r/(?:class|interface|mixin)\b/, Keyword::Declaration, :class
rule %r/(?:#{imports.join('|')})\b/, Keyword::Namespace, :import
rule %r/(\.)(#{id})/ do
groups Operator, Name::Attribute
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/fluent.rb new/lib/rouge/lexers/fluent.rb
--- old/lib/rouge/lexers/fluent.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/lexers/fluent.rb 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,74 @@
+# -*- coding: utf-8 -*- #
+# frozen_string_literal: true
+
+module Rouge
+ module Lexers
+ class Fluent < RegexLexer
+ title 'Fluent'
+ desc 'Fluent localization files'
+ tag 'fluent'
+ aliases 'ftl'
+ filenames '*.ftl'
+
+ state :root do
+ rule %r{( *)(\=)( *)} do
+ groups Text::Whitespace, Punctuation, Text::Whitespace
+ push :template
+ end
+
+ rule %r{(?:\s*\n)+}m, Text::Whitespace
+ rule %r{\#{1,3}(?: .*)?$}, Comment::Single
+ rule %r{[a-zA-Z][a-zA-Z0-9_-]*}, Name::Constant
+ rule %r{\-[a-zA-Z][a-zA-Z0-9_-]*}, Name::Entity
+ rule %r{\s*\.[a-zA-Z][a-zA-Z0-9_-]*}, Name::Attribute
+ rule %r{\s+(?=[^\s\.])}, Text::Whitespace, :template
+ end
+
+ state :template do
+ rule %r{\n}m, Text::Whitespace, :pop!
+ rule %r{[^\{\n\}\*]+}, Text
+ rule %r{\{}, Punctuation, :placeable
+ rule %r{(?=\})}, Punctuation, :pop!
+ end
+
+ state :placeable do
+ rule %r{\s+}m, Text::Whitespace
+ rule %r{\{}, Punctuation, :placeable
+ rule %r{\}}, Punctuation, :pop!
+ rule %r{\$[a-zA-Z][a-zA-Z0-9_-]*}, Name::Variable
+ rule %r{\-[a-zA-Z][a-zA-Z0-9_-]*}, Name::Entity
+ rule %r{\.[a-zA-Z][a-zA-Z0-9_-]*}, Name::Attribute
+ rule %r{[A-Z]+}, Name::Builtin
+ rule %r{[a-zA-Z][a-zA-Z0-9_-]*}, Name::Constant
+ rule %r{[\(\),\:]}, Punctuation
+ rule %r{->}, Punctuation
+ rule %r{\*}, Punctuation::Indicator
+ rule %r{\-?\d+\.\d+?}, Literal::Number::Float
+ rule %r{\-?\d+}, Literal::Number::Integer
+ rule %r{"}, Str::Double, :string
+
+ rule %r{(\[)(\-?\d+\.\d+)(\])} do
+ groups Punctuation, Literal::Number::Float, Punctuation
+ push :template
+ end
+
+ rule %r{(\[)(\-?\d+)(\])} do
+ groups Punctuation, Literal::Number::Integer, Punctuation
+ push :template
+ end
+
+ rule %r{(\[)([a-zA-Z][a-zA-Z0-9_-]+)(\])} do
+ groups Punctuation, Str::Symbol, Punctuation
+ push :template
+ end
+ end
+
+ state :string do
+ rule %r{\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{6}}, Str::Escape
+ rule %r{\\.}, Str::Escape
+ rule %r{[^\"\\]}, Str::Double
+ rule %r{"}, Str::Double, :pop!
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/hcl.rb new/lib/rouge/lexers/hcl.rb
--- old/lib/rouge/lexers/hcl.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/hcl.rb 2022-02-04 00:58:13.000000000 +0100
@@ -5,6 +5,7 @@
module Lexers
class Hcl < RegexLexer
tag 'hcl'
+ filenames '*.hcl', '*.nomad'
title 'Hashicorp Configuration Language'
desc 'Hashicorp Configuration Language, used by Terraform and other Hashicorp tools'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/jsx.rb new/lib/rouge/lexers/jsx.rb
--- old/lib/rouge/lexers/jsx.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/jsx.rb 2022-02-04 00:58:13.000000000 +0100
@@ -57,7 +57,7 @@
push :interpol
push :expr_start
end
- rule %r/\w+/, Name::Attribute
+ rule %r/\w[\w-]*/, Name::Attribute
rule %r/=/, Punctuation
rule %r/(["']).*?(\1)/, Str
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/kotlin.rb new/lib/rouge/lexers/kotlin.rb
--- old/lib/rouge/lexers/kotlin.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/kotlin.rb 2022-02-04 00:58:13.000000000 +0100
@@ -116,12 +116,14 @@
rule class_name, Name::Class
rule %r'(<)', Punctuation, :generic_parameters
rule %r'(reified|out|in)', Keyword
- rule %r'([,:])', Punctuation
+ rule %r'([,:.?])', Punctuation
rule %r'(\s+)', Text
rule %r'(>)', Punctuation, :pop!
end
state :property do
+ rule %r'(<)', Punctuation, :generic_parameters
+ rule %r'(\s+)', Text
rule name, Name::Property, :pop!
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/rust.rb new/lib/rouge/lexers/rust.rb
--- old/lib/rouge/lexers/rust.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/rust.rb 2022-02-04 00:58:13.000000000 +0100
@@ -22,10 +22,13 @@
def self.keywords
@keywords ||= %w(
- as assert async await break crate const continue copy do drop dyn else enum extern
- fail false fn for if impl let log loop macro match mod move mut priv pub pure
- ref return self Self static struct super true try trait type union unsafe use
- where while yield box
+ as async await break const continue crate dyn else enum extern false
+ fn for if impl in let log loop match mod move mut pub ref return self
+ Self static struct super trait true type unsafe use where while
+ abstract become box do final macro
+ override priv typeof unsized virtual
+ yield try
+ union
)
end
@@ -212,7 +215,8 @@
state :has_literals do
# constants
- rule %r/\b(?:true|false|nil)\b/, Keyword::Constant
+ rule %r/\b(?:true|false)\b/, Keyword::Constant
+
# characters/bytes
rule %r(
b?' (?: #{escapes} | [^\\] ) '
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/sparql.rb new/lib/rouge/lexers/sparql.rb
--- old/lib/rouge/lexers/sparql.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/sparql.rb 2022-02-04 00:58:13.000000000 +0100
@@ -41,16 +41,17 @@
rule %r('''), Str::Single, :string_single_literal
rule %r('), Str::Single, :string_single
- rule %r([$?]\w+), Name::Variable
- rule %r((\w*:)(\w+)?) do |m|
+ rule %r([$?][[:word:]]+), Name::Variable
+ rule %r(([[:word:]-]*)(:)([[:word:]-]+)?) do |m|
token Name::Namespace, m[1]
- token Str::Symbol, m[2]
+ token Operator, m[2]
+ token Str::Symbol, m[3]
end
rule %r(<[^>]*>), Name::Namespace
rule %r(true|false)i, Keyword::Constant
rule %r/a\b/, Keyword
- rule %r([A-Z]\w+\b)i do |m|
+ rule %r([A-Z][[:word:]]+\b)i do |m|
if self.class.builtins.include? m[0].upcase
token Name::Builtin
elsif self.class.keywords.include? m[0].upcase
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/stan.rb new/lib/rouge/lexers/stan.rb
--- old/lib/rouge/lexers/stan.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/lexers/stan.rb 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,451 @@
+# -*- coding: utf-8 -*- #
+# frozen_string_literal: true
+
+module Rouge
+ module Lexers
+ class Stan < RegexLexer
+ title "Stan"
+ desc 'Stan Modeling Language (mc-stan.org)'
+ tag 'stan'
+ filenames '*.stan', '*.stanfunctions'
+
+ # optional comment or whitespace
+ WS = %r((?:\s|//.*?\n|/[*].*?[*]/)+)
+ ID = /[a-zA-Z_][a-zA-Z0-9_]*/
+ RT = /(?:(?:[a-z_]\s*(?:\[[0-9, ]\])?)\s+)*/
+ OP = Regexp.new([
+ # Assigment operators
+ "=",
+
+ # Comparison operators
+ "<", "<=", ">", ">=", "==", "!=",
+
+ # Boolean operators
+ "!", "&&", "\\|\\|",
+
+ # Real-valued arithmetic operators
+ "\\+", "-", "\\*", "/", "\\^",
+
+ # Transposition operator
+ "'",
+
+ # Elementwise functions
+ "\\.\\+", "\\.-", "\\.\\*", "\\./", "\\.\\^",
+
+ # Matrix division operators
+ "\\\\",
+
+ # Compound assigment operators
+ "\\+=", "-=", "\\*=", "/=", "\\.\\*=", "\\./=",
+
+ # Sampling
+ "~",
+
+ # Conditional operator
+ "\\?", ":"
+ ].join("|"))
+
+ def self.keywords
+ @keywords ||= Set.new %w(
+ if else while for break continue print reject return
+ )
+ end
+
+ def self.types
+ @types ||= Set.new %w(
+ int real vector ordered positive_ordered simplex unit_vector
+ row_vector matrix cholesky_factor_corr cholesky_factor_cov corr_matrix
+ cov_matrix data void complex array
+ )
+ end
+
+ def self.reserved
+ @reserved ||= Set.new [
+ # Reserved words from Stan language
+ "for", "in", "while", "repeat", "until", "if", "then", "else", "true",
+ "false", "target", "functions", "model", "data", "parameters",
+ "quantities", "transformed", "generated",
+
+ # Reserved names from Stan implementation
+ "var", "fvar", "STAN_MAJOR", "STAN_MINOR", "STAN_PATCH",
+ "STAN_MATH_MAJOR", "STAN_MATH_MINOR", "STAN_MATH_PATCH",
+
+ # Reserved names from C++
+ "alignas", "alignof", "and", "and_eq", "asm", "auto", "bitand",
+ "bitor", "bool", "break", "case", "catch", "char", "char16_t",
+ "char32_t", "class", "compl", "const", "constexpr", "const_cast",
+ "continue", "decltype", "default", "delete", "do", "double",
+ "dynamic_cast", "else", "enum", "explicit", "export", "extern",
+ "false", "float", "for", "friend", "goto", "if", "inline", "int",
+ "long", "mutable", "namespace", "new", "noexcept", "not", "not_eq",
+ "nullptr", "operator", "or", "or_eq", "private", "protected",
+ "public", "register", "reinterpret_cast", "return", "short", "signed",
+ "sizeof", "static", "static_assert", "static_cast", "struct",
+ "switch", "template", "this", "thread_local", "throw", "true", "try",
+ "typedef", "typeid", "typename", "union", "unsigned", "using",
+ "virtual", "void", "volatile", "wchar_t", "while", "xor", "xor_eq"
+ ]
+ end
+
+ def self.builtin_functions
+ @builtin_functions ||= Set.new [
+ # Integer-Valued Basic Functions
+
+ ## Absolute functions
+ "abs", "int_step",
+
+ ## Bound functions
+ "min", "max",
+
+ ## Size functions
+ "size",
+
+ # Real-Valued Basic Functions
+
+ ## Log probability function
+ "target", "get_lp",
+
+ ## Logical functions
+ "step", "is_inf", "is_nan",
+
+ ## Step-like functions
+ "fabs", "fdim", "fmin", "fmax", "fmod", "floor", "ceil", "round",
+ "trunc",
+
+ ## Power and logarithm functions
+ "sqrt", "cbrt", "square", "exp", "exp2", "log", "log2", "log10",
+ "pow", "inv", "inv_sqrt", "inv_square",
+
+ ## Trigonometric functions
+ "hypot", "cos", "sin", "tan", "acos", "asin", "atan", "atan2",
+
+ ## Hyperbolic trigonometric functions
+ "cosh", "sinh", "tanh", "acosh", "asinh", "atanh",
+
+ ## Link functions
+ "logit", "inv_logit", "inv_cloglog",
+
+ ## Probability-related functions
+ "erf", "erfc", "Phi", "inv_Phi", "Phi_approx", "binary_log_loss",
+ "owens_t",
+
+ ## Combinatorial functions
+ "beta", "inc_beta", "lbeta", "tgamma", "lgamma", "digamma",
+ "trigamma", "lmgamma", "gamma_p", "gamma_q",
+ "binomial_coefficient_log", "choose", "bessel_first_kind",
+ "bessel_second_kind", "modified_bessel_first_kind",
+ "log_modified_bessel_first_kind", "modified_bessel_second_kind",
+ "falling_factorial", "lchoose", "log_falling_factorial",
+ "rising_factorial", "log_rising_factorial",
+
+ ## Composed functions
+ "expm1", "fma", "multiply_log", "ldexp", "lmultiply", "log1p",
+ "log1m", "log1p_exp", "log1m_exp", "log_diff_exp", "log_mix",
+ "log_sum_exp", "log_inv_logit", "log_inv_logit_diff",
+ "log1m_inv_logit",
+
+ ## Special functions
+ "lambert_w0", "lambert_wm1",
+
+ # Complex-Valued Basic Functions
+
+ ## Complex constructors and accessors
+ "to_complex", "get_real", "get_imag",
+
+ ## Complex special functions
+ "arg", "norm", "conj", "proj", "polar",
+
+ # Array Operations
+
+ ## Reductions
+ "sum", "prod", "log_sum_exp", "mean", "variance", "sd", "distance",
+ "squared_distance", "quantile",
+
+ ## Array size and dimension function
+ "dims", "num_elements",
+
+ ## Array broadcasting
+ "rep_array",
+
+ ## Array concatenation
+ "append_array",
+
+ ## Sorting functions
+ "sort_asc", "sort_desc", "sort_indices_asc", "sort_indices_desc",
+ "rank",
+
+ ## Reversing functions
+ "reverse",
+
+ # Matrix Operations
+
+ ## Integer-valued matrix size functions
+ "num_elements", "rows", "cols",
+
+ ## Dot products and specialized products
+ "dot_product", "columns_dot_product", "rows_dot_product", "dot_self",
+ "columns_dot_self", "rows_dot_self", "tcrossprod", "crossprod",
+ "quad_form", "quad_form_diag", "quad_form_sym", "trace_quad_form",
+ "trace_gen_quad_form", "multiply_lower_tri_self_transpose",
+ "diag_pre_multiply", "diag_post_multiply",
+
+ ## Broadcast functions
+ "rep_vector", "rep_row_vector", "rep_matrix",
+ "symmetrize_from_lower_tri",
+
+ ## Diagonal matrix functions
+ "add_diag", "diagonal", "diag_matrix", "identity_matrix",
+
+ ## Container construction functions
+ "linspaced_array", "linspaced_int_array", "linspaced_vector",
+ "linspaced_row_vector", "one_hot_int_array", "one_hot_array",
+ "one_hot_vector", "one_hot_row_vector", "ones_int_array",
+ "ones_array", "ones_vector", "ones_row_vector", "zeros_int_array",
+ "zeros_array", "zeros_vector", "zeros_row_vector", "uniform_simplex",
+
+ ## Slicing and blocking functions
+ "col", "row", "block", "sub_col", "sub_row", "head", "tail",
+ "segment",
+
+ ## Matrix concatenation
+ "append_col", "append_row",
+
+ ## Special matrix functions
+ "softmax", "log_softmax", "cumulative_sum",
+
+ ## Covariance functions
+ "cov_exp_quad",
+
+ ## Linear algebra functions and solvers
+ "mdivide_left_tri_low", "mdivide_right_tri_low", "mdivide_left_spd",
+ "mdivide_right_spd", "matrix_exp", "matrix_exp_multiply",
+ "scale_matrix_exp_multiply", "matrix_power", "trace", "determinant",
+ "log_determinant", "inverse", "inverse_spd", "chol2inv",
+ "generalized_inverse", "eigenvalues_sym", "eigenvectors_sym",
+ "qr_thin_Q", "qr_thin_R", "qr_Q", "qr_R", "cholseky_decompose",
+ "singular_values", "svd_U", "svd_V",
+
+ # Sparse Matrix Operations
+
+ ## Conversion functions
+ "csr_extract_w", "csr_extract_v", "csr_extract_u",
+ "csr_to_dense_matrix",
+
+ ## Sparse matrix arithmetic
+ "csr_matrix_times_vector",
+
+ # Mixed Operations
+ "to_matrix", "to_vector", "to_row_vector", "to_array_2d",
+ "to_array_1d",
+
+ # Higher-Order Functions
+
+ ## Algebraic equation solver
+ "algebra_solver", "algebra_solver_newton",
+
+ ## Ordinary differential equation
+ "ode_rk45", "ode_rk45_tol", "ode_ckrk", "ode_ckrk_tol", "ode_adams",
+ "ode_adams_tol", "ode_bdf", "ode_bdf_tol", "ode_adjoint_tol_ctl",
+
+ ## 1D integrator
+ "integrate_1d",
+
+ ## Reduce-sum function
+ "reduce_sum", "reduce_sum_static",
+
+ ## Map-rect function
+ "map_rect",
+
+ # Deprecated Functions
+ "integrate_ode_rk45", "integrate_ode", "integrate_ode_adams",
+ "integrate_ode_bdf",
+
+ # Hidden Markov Models
+ "hmm_marginal", "hmm_latent_rng", "hmm_hidden_state_prob"
+ ]
+ end
+
+ def self.distributions
+ @distributions ||= Set.new(
+ [
+ # Discrete Distributions
+
+ ## Binary Distributions
+ "bernoulli", "bernoulli_logit", "bernoulli_logit_glm",
+
+ ## Bounded Discrete Distributions
+ "binomial", "binomial_logit", "beta_binomial", "hypergeometric",
+ "categorical", "categorical_logit_glm", "discrete_range",
+ "ordered_logistic", "ordered_logistic_glm", "ordered_probit",
+
+ ## Unbounded Discrete Distributions
+ "neg_binomial", "neg_binomial_2", "neg_binomial_2_log",
+ "neg_binomial_2_log_glm", "poisson", "poisson_log",
+ "poisson_log_glm",
+
+ ## Multivariate Discrete Distributions
+ "multinomial", "multinomial_logit",
+
+ # Continuous Distributions
+
+ ## Unbounded Continuous Distributions
+ "normal", "std_normal", "normal_id_glm", "exp_mod_normal",
+ "skew_normal", "student_t", "cauchy", "double_exponential",
+ "logistic", "gumbel", "skew_double_exponential",
+
+ ## Positive Continuous Distributions
+ "lognormal", "chi_square", "inv_chi_square",
+ "scaled_inv_chi_square", "exponential", "gamma", "inv_gamma",
+ "weibull", "frechet", "rayleigh",
+
+ ## Positive Lower-Bounded Distributions
+ "pareto", "pareto_type_2", "wiener",
+
+ ## Continuous Distributions on [0, 1]
+ "beta", "beta_proportion",
+
+ ## Circular Distributions
+ "von_mises",
+
+ ## Bounded Continuous Distributions
+ "uniform",
+
+ ## Distributions over Unbounded Vectors
+ "multi_normal", "multi_normal_prec", "multi_normal_cholesky",
+ "multi_gp", "multi_gp_cholesky", "multi_student_t",
+ "gaussian_dlm_obs",
+
+ ## Simplex Distributions
+ "dirichlet",
+
+ ## Correlation Matrix Distributions
+ "lkj_corr", "lkj_corr_cholesky",
+
+ ## Covariance Matrix Distributions
+ "wishart", "inv_wishart"
+ ].product([
+ "", "_lpmf", "_lupmf", "_lpdf", "_lcdf", "_lccdf", "_rng", "_log",
+ "_cdf_log", "_ccdf_log"
+ ]).map {|s| "#{s[0]}#{s[1]}"}
+ )
+ end
+
+ def self.constants
+ @constants ||= Set.new [
+ # Mathematical constants
+ "pi", "e", "sqrt2", "log2", "log10",
+
+ # Special values
+ "not_a_number", "positive_infinity", "negative_infinity",
+ "machine_precision"
+ ]
+ end
+
+ state :root do
+ mixin :whitespace
+ rule %r/#include/, Comment::Preproc, :include
+ rule %r/#.*$/, Generic::Deleted
+ rule %r(
+ functions
+ |(?:transformed\s+)?data
+ |(?:transformed\s+)?parameters
+ |model
+ |generated\s+quantities
+ )x, Name::Namespace
+ rule %r(\{), Punctuation, :bracket_scope
+ mixin :scope
+ end
+
+ state :include do
+ rule %r((\s+)(\S+)(\s*)) do |m|
+ token Text, m[1]
+ token Comment::PreprocFile, m[2]
+ token Text, m[3]
+ pop!
+ end
+ end
+
+ state :whitespace do
+ rule %r(\n+)m, Text
+ rule %r(//(\\.|.)*?$), Comment::Single
+ mixin :inline_whitespace
+ end
+
+ state :inline_whitespace do
+ rule %r([ \t\r]+), Text
+ rule %r(/(\\\n)?[*].*?[*](\\\n)?/)m, Comment::Multiline
+ end
+
+ state :statements do
+ mixin :whitespace
+ rule %r/#include/, Comment::Preproc, :include
+ rule %r/#.*$/, Generic::Deleted
+ rule %r("), Str, :string
+ rule %r(
+ (
+ ((\d+[.]\d*|[.]?\d+)e[+-]?\d+|\d*[.]\d+|\d+)
+ (#{WS})[+-](#{WS})
+ ((\d+[.]\d*|[.]?\d+)e[+-]?\d+|\d*[.]\d+|\d+)i
+ )
+ |((\d+[.]\d*|[.]?\d+)e[+-]?\d+|\d*[.]\d+|\d+)i
+ |((\d+[.]\d*|[.]?\d+)e[+-]?\d+|\d*[.]\d+)
+ )mx, Num::Float
+ rule %r/\d+/, Num::Integer
+ rule %r(\*/), Error
+ rule OP, Operator
+ rule %r([\[\],.;]), Punctuation
+ rule %r([|](?![|])), Punctuation
+ rule %r(T\b), Keyword::Reserved
+ rule %r((lower|upper)\b), Name::Attribute
+ rule ID do |m|
+ name = m[0]
+
+ if self.class.keywords.include? name
+ token Keyword
+ elsif self.class.types.include? name
+ token Keyword::Type
+ elsif self.class.reserved.include? name
+ token Keyword::Reserved
+ else
+ token Name::Variable
+ end
+ end
+ end
+
+ state :scope do
+ mixin :whitespace
+ rule %r(
+ (#{RT}) # Return type
+ (#{ID}) # Function name
+ (?=\([^;]*?\)) # Signature or arguments
+ )mx do |m|
+ recurse m[1]
+
+ name = m[2]
+ if self.class.builtin_functions.include? name
+ token Name::Builtin, name
+ elsif self.class.distributions.include? name
+ token Name::Builtin, name
+ elsif self.class.constants.include? name
+ token Keyword::Constant
+ else
+ token Name::Function, name
+ end
+ end
+ rule %r(\{), Punctuation, :bracket_scope
+ rule %r(\(), Punctuation, :parens_scope
+ mixin :statements
+ end
+
+ state :bracket_scope do
+ mixin :scope
+ rule %r(\}), Punctuation, :pop!
+ end
+
+ state :parens_scope do
+ mixin :scope
+ rule %r(\)), Punctuation, :pop!
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/stata.rb new/lib/rouge/lexers/stata.rb
--- old/lib/rouge/lexers/stata.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/rouge/lexers/stata.rb 2022-02-04 00:58:13.000000000 +0100
@@ -0,0 +1,165 @@
+# -*- coding: utf-8 -*- #
+# frozen_string_literal: true
+
+module Rouge
+ module Lexers
+ class Stata < RegexLexer
+ title "Stata"
+ desc "The Stata programming language (www.stata.com)"
+ tag 'stata'
+ filenames '*.do', '*.ado'
+ mimetypes 'application/x-stata', 'text/x-stata'
+
+ ###
+ # Stata reference manual is available online at: https://www.stata.com/features/documentation/
+ ###
+
+ # Partial list of common programming and estimation commands, as of Stata 16
+ # Note: not all abbreviations are included
+ KEYWORDS = %w(
+ do run include clear assert set mata log
+ by bys bysort cap capt capture char class classutil which cdir confirm new existence creturn
+ _datasignature discard di dis disp displ displa display ereturn error _estimates exit file open read write seek close query findfile fvexpand
+ gettoken java home heapmax java_heapmax icd9 icd9p icd10 icd10cm icd10pcs initialize javacall levelsof
+ tempvar tempname tempfile macro shift uniq dups retokenize clean sizeof posof
+ makecns matcproc marksample mark markout markin svymarkout matlist
+ accum define dissimilarity eigenvalues get rowjoinbyname rownames score svd symeigen dir list ren rename
+ more pause plugin call postfile _predict preserve restore program define drop end python qui quietly noi noisily _return return _rmcoll rmsg _robust
+ serset locale_functions locale_ui signestimationsample checkestimationsample sleep syntax sysdir adopath adosize
+ tabdisp timer tokenize trace unab unabcmd varabbrev version viewsource
+ window fopen fsave manage menu push stopbox
+ net from cd link search install sj stb ado update uninstall pwd ssc ls
+ using insheet outsheet mkmat svmat sum summ summarize
+ graph gr_edit twoway histogram kdensity spikeplot
+ mi miss missing var varname order compress append
+ gen gene gener genera generat generate egen replace duplicates
+ estimates nlcom lincom test testnl predict suest
+ _regress reg regr regre regres regress probit logit ivregress logistic svy gmm ivprobit ivtobit
+ bsample assert codebook collapse compare contract copy count cross datasignature d ds desc describe destring tostring
+ drawnorm edit encode decode erase expand export filefilter fillin format frame frget frlink gsort
+ import dbase delimited excel fred haver sas sasxport5 sasxport8 spss infile infix input insobs inspect ipolate isid
+ joinby label language labelbook lookfor memory mem merge mkdir mvencode notes obs odbc order outfile
+ pctile xtile _pctile putmata range recast recode rename group reshape rm rmdir sample save saveold separate shell snapshot sort split splitsample stack statsby sysuse
+ type unicode use varmanage vl webuse xpose zipfile
+ number keep tab table tabulate stset stcox tsset xtset
+ )
+
+ # Complete list of functions by name, as of Stata 16
+ PRIMITIVE_FUNCTIONS = %w(
+ abbrev abs acos acosh age age_frac asin asinh atan atan2 atanh autocode
+ betaden binomial binomialp binomialtail binormal birthday bofd byteorder
+ c _caller cauchy cauchyden cauchytail Cdhms ceil char chi2 chi2den chi2tail Chms
+ chop cholesky clip Clock clock clockdiff cloglog Cmdyhms Cofc cofC Cofd cofd coleqnumb
+ collatorlocale collatorversion colnfreeparms colnumb colsof comb cond corr cos cosh
+ daily date datediff datediff_frac day det dgammapda dgammapdada dgammapdadx dgammapdxdx dhms
+ diag diag0cnt digamma dofb dofC dofc dofh dofm dofq dofw dofy dow doy dunnettprob e el epsdouble
+ epsfloat exp expm1 exponential exponentialden exponentialtail
+ F Fden fileexists fileread filereaderror filewrite float floor fmtwidth frval _frval Ftail
+ fammaden gammap gammaptail get hadamard halfyear halfyearly has_eprop hh hhC hms hofd hours
+ hypergeometric hypergeometricp
+ I ibeta ibetatail igaussian igaussianden igaussiantail indexnot inlist inrange int inv invbinomial invbinomialtail
+ invcauchy invcauchytail invchi2 invchi2tail invcloglog invdunnettprob invexponential invexponentialtail invF
+ invFtail invgammap invgammaptail invibeta invibetatail invigaussian invigaussiantail invlaplace invlaplacetail
+ invlogistic invlogistictail invlogit invnbinomial invnbinomialtail invnchi2 invnchi2tail invnF invnFtail invnibeta invnormal invnt invnttail
+ invpoisson invpoissontail invsym invt invttail invtukeyprob invweibull invweibullph invweibullphtail invweibulltail irecode islepyear issymmetric
+ J laplace laplaceden laplacetail ln ln1m ln1p lncauchyden lnfactorial lngamma lnigammaden lnigaussianden lniwishartden lnlaplaceden lnmvnormalden
+ lnnormal lnnormalden lnnormalden lnnormalden lnwishartden log log10 log1m log1p logistic logisticden logistictail logit
+ matmissing matrix matuniform max maxbyte maxdouble maxfloat maxint maxlong mdy mdyhms mi min minbyte mindouble minfloat minint minlong minutes
+ missing mm mmC mod mofd month monthly mreldif msofhours msofminutes msofseconds
+ nbetaden nbinomial nbinomialp nbinomialtail nchi2 nchi2den nchi2tail nextbirthday nextleapyear nF nFden nFtail nibeta
+ normal normalden npnchi2 npnF npnt nt ntden nttail nullmat
+ plural poisson poissonp poissontail previousbirthday previousleapyear qofd quarter quarterly r rbeta rbinomial rcauchy rchi2 recode
+ real regexm regexr regexs reldif replay return rexponential rgamma rhypergeometric rigaussian rlaplace rlogistic rnormal
+ round roweqnumb rownfreeparms rownumb rowsof rpoisson rt runiform runiformint rweibull rweibullph
+ s scalar seconds sign sin sinh smallestdouble soundex soundex_nara sqrt ss ssC strcat strdup string stritrim strlen strlower
+ strltrim strmatch strofreal strpos strproper strreverse strrpos strrtrim strtoname strtrim strupper subinstr subinword substr sum sweep
+ t tan tanh tC tc td tden th tin tm tobytes tq trace trigamma trunc ttail tukeyprob tw twithin
+ uchar udstrlen udsubstr uisdigit uisletter uniform ustrcompare ustrcompareex ustrfix ustrfrom ustrinvalidcnt ustrleft ustrlen ustrlower
+ ustrltrim ustrnormalize ustrpos ustrregexm ustrregexra ustrregexrf ustrregexs ustrreverse ustrright ustrrpos ustrrtrim ustrsortkey
+ ustrsortkeyex ustrtitle ustrto ustrtohex ustrtoname ustrtrim ustrunescape ustrupper ustrword ustrwordcount usubinstr usubstr
+ vec vecdiag week weekly weibull weibullden weibullph weibullphden weibullphtail weibulltail wofd word wordbreaklocale wordcount
+ year yearly yh ym yofd yq yw
+ )
+
+ # Note: types `str1-str2045` handled separately below
+ def self.type_keywords
+ @type_keywords ||= Set.new %w(byte int long float double str strL numeric string integer scalar matrix local global numlist varlist newlist)
+ end
+
+ # Stata commands used with braces. Includes all valid abbreviations for 'forvalues'.
+ def self.reserved_keywords
+ @reserved_keywords ||= Set.new %w(if else foreach forv forva forval forvalu forvalue forvalues to while in of continue break nobreak)
+ end
+
+ ###
+ # Lexer state and rules
+ ###
+ state :root do
+
+ # Pre-processor commands: #
+ rule %r/^\s*#.*$/, Comment::Preproc
+
+ # Hashbang comments: *!
+ rule %r/^\*!.*$/, Comment::Hashbang
+
+ # Single-line comment: *
+ rule %r/^\s*\*.*$/, Comment::Single
+
+ # Keywords: recognize only when they are the first word
+ rule %r/^\s*(#{KEYWORDS.join('|')})\b/, Keyword
+
+ # Whitespace. Classify `\n` as `Text` to avoid interference with `Comment` and `Keyword` above
+ rule(/[ \t]+/, Text::Whitespace)
+ rule(/[\n\r]+/, Text)
+
+ # In-line comment: //
+ rule %r/\/\/.*?$/, Comment::Single
+
+ # Multi-line comment: /* and */
+ rule %r(/(\\\n)?[*].*?[*](\\\n)?/)m, Comment::Multiline
+
+ # Strings indicated by compound double-quotes (`""') and double-quotes ("")
+ rule %r/`"(\\.|.)*?"'/, Str::Double
+ rule %r/"(\\.|.)*?"/, Str::Double
+
+ # Format locals (`') and globals ($) as strings
+ rule %r/`(\\.|.)*?'/, Str::Double
+ rule %r/(?<!\w)\$\w+/, Str::Double
+
+ # Display formats
+ rule %r/\%\S+/, Name::Property
+
+ # Additional string types: str1-str2045
+ rule %r/\bstr(204[0-5]|20[0-3][0-9]|[01][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[1-9])\b/, Keyword::Type
+
+ # Only recognize primitive functions when they are actually used as a function call, i.e. followed by an opening parenthesis
+ # `Name::Builtin` would be more logical, but is not usually highlighted, so use `Name::Function` instead
+ rule %r/\b(#{PRIMITIVE_FUNCTIONS.join('|')})(?=\()/, Name::Function
+
+ # Matrix operator `..` (declare here instead of with other operators, in order to avoid conflict with numbers below)
+ rule %r/\.\.(?=.*\])/, Operator
+
+ # Numbers
+ rule %r/[+-]?(\d+([.]\d+)?|[.]\d+)([eE][+-]?\d+)?/, Num
+
+ # Factor variable and time series operators
+ rule %r/\b[ICOicoLFDSlfds]\w*\./, Operator
+ rule %r/\b[ICOicoLFDSlfds]\w*(?=\(.*\)\.)/, Operator
+
+ rule %r/\w+/ do |m|
+ if self.class.reserved_keywords.include? m[0]
+ token Keyword::Reserved
+ elsif self.class.type_keywords.include? m[0]
+ token Keyword::Type
+ else
+ token Name
+ end
+ end
+
+ rule %r/[\[\]{}();,]/, Punctuation
+
+ rule %r([-<>?*+'^/\\!#.=~:&|]), Operator
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/lexers/toml.rb new/lib/rouge/lexers/toml.rb
--- old/lib/rouge/lexers/toml.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/lexers/toml.rb 2022-02-04 00:58:13.000000000 +0100
@@ -11,14 +11,15 @@
filenames '*.toml', 'Pipfile'
mimetypes 'text/x-toml'
- identifier = /\S+/
+ # bare keys and quoted keys
+ identifier = %r/(?:\S+|"[^"]+"|'[^']+')/
state :basic do
rule %r/\s+/, Text
rule %r/#.*?$/, Comment
rule %r/(true|false)/, Keyword::Constant
- rule %r/(\S+)(\s*)(=)(\s*)(\{)/ do |m|
+ rule %r/(#{identifier})(\s*)(=)(\s*)(\{)/ do
groups Name::Namespace, Text, Operator, Text, Punctuation
push :inline
end
@@ -48,6 +49,11 @@
state :content do
mixin :basic
+
+ rule %r/(#{identifier})(\s*)(=)/ do
+ groups Name::Property, Text, Punctuation
+ end
+
rule %r/"""/, Str, :mdq
rule %r/"/, Str, :dq
rule %r/'''/, Str, :msq
@@ -95,10 +101,6 @@
state :inline do
mixin :content
- rule %r/(#{identifier})(\s*)(=)/ do
- groups Name::Property, Text, Punctuation
- end
-
rule %r/\}/, Punctuation, :pop!
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rouge/version.rb new/lib/rouge/version.rb
--- old/lib/rouge/version.rb 2021-12-15 16:36:24.000000000 +0100
+++ new/lib/rouge/version.rb 2022-02-04 00:58:13.000000000 +0100
@@ -3,6 +3,6 @@
module Rouge
def self.version
- "3.27.0"
+ "3.28.0"
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-12-15 16:36:24.000000000 +0100
+++ new/metadata 2022-02-04 00:58:13.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: rouge
version: !ruby/object:Gem::Version
- version: 3.27.0
+ version: 3.28.0
platform: ruby
authors:
- Jeanine Adkisson
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2021-12-15 00:00:00.000000000 Z
+date: 2022-02-03 00:00:00.000000000 Z
dependencies: []
description: Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
email:
@@ -80,6 +80,7 @@
- lib/rouge/demos/erlang
- lib/rouge/demos/escape
- lib/rouge/demos/factor
+- lib/rouge/demos/fluent
- lib/rouge/demos/fortran
- lib/rouge/demos/freefem
- lib/rouge/demos/fsharp
@@ -199,6 +200,8 @@
- lib/rouge/demos/sqf
- lib/rouge/demos/sql
- lib/rouge/demos/ssh
+- lib/rouge/demos/stan
+- lib/rouge/demos/stata
- lib/rouge/demos/supercollider
- lib/rouge/demos/swift
- lib/rouge/demos/systemd
@@ -309,6 +312,7 @@
- lib/rouge/lexers/erlang.rb
- lib/rouge/lexers/escape.rb
- lib/rouge/lexers/factor.rb
+- lib/rouge/lexers/fluent.rb
- lib/rouge/lexers/fortran.rb
- lib/rouge/lexers/freefem.rb
- lib/rouge/lexers/fsharp.rb
@@ -440,6 +444,8 @@
- lib/rouge/lexers/sqf/keywords.rb
- lib/rouge/lexers/sql.rb
- lib/rouge/lexers/ssh.rb
+- lib/rouge/lexers/stan.rb
+- lib/rouge/lexers/stata.rb
- lib/rouge/lexers/supercollider.rb
- lib/rouge/lexers/swift.rb
- lib/rouge/lexers/systemd.rb
@@ -504,7 +510,7 @@
changelog_uri: https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md
documentation_uri: https://rouge-ruby.github.io/docs/
source_code_uri: https://github.com/rouge-ruby/rouge
-post_install_message:
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -519,8 +525,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
-signing_key:
+rubygems_version: 3.2.22
+signing_key:
specification_version: 4
summary: A pure-ruby colorizer based on pygments
test_files: []
1
0