Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Unreleased
==========

* Dual-license bibtex-ruby under GPL-3.0-or-later and BSD-2-Clause (see #154)
* Make test suite compatible with minitest 6
* Add official support for Ruby 4.0
* Remove official support for Ruby < 3.3, as they reached their End-of-Life
Expand Down
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
SPDX-License-Identifier: GPL-3.0-or-later OR BSD-2-Clause

Copyright (c) 2010-2026 The BibTeX-Ruby Contributors

BibTeX-Ruby is dual-licensed. You may use, modify and redistribute it under
the terms of either of the following licenses, at your option:

* the BSD 2-Clause License (reproduced below), or
* the GNU General Public License, version 3 or (at your option) any later
version (reproduced below).

---

BSD 2-Clause License

Copyright (c) 2010-2026 The BibTeX-Ruby Contributors

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,12 @@ non-zero status if a workload fails.
Credits
-------

Copyright 2011-2015 [Sylvester Keil](https://github.com/inukshuk).
Copyright (c) 2010-2026 The BibTeX-Ruby Contributors.

Kudos to all [contributors](https://github.com/inukshuk/bibtex-ruby/graphs/contributors)
who have made BibTeX-Ruby possible.

This software is distributed under the terms and conditions of the GNU GPL,
version 3 or later. See LICENSE for details.
This software is dual-licensed under the
[BSD 2-Clause License](https://opensource.org/license/bsd-2-clause) or the
[GNU GPL v3.0 or later](https://www.gnu.org/licenses/gpl-3.0.html), at your option
(SPDX: `GPL-3.0-or-later OR BSD-2-Clause`). See LICENSE for details.
7 changes: 3 additions & 4 deletions bibtex-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ Gem::Specification.new do |s|
s.version = BibTeX::Version::STRING.dup
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 3.3'
s.authors = ['Sylvester Keil']
s.email = ['sylvester@keil.or.at']
s.homepage = 'http://inukshuk.github.com/bibtex-ruby'
s.license = 'GPL-3.0-or-later'
s.authors = ['The BibTeX-Ruby Contributors']
s.homepage = 'https://github.com/inukshuk/bibtex-ruby'
s.licenses = ['GPL-3.0-or-later', 'BSD-2-Clause']

s.summary = 'A BibTeX parser, converter and API for Ruby.'
s.description = <<-END_DESCRIPTION.gsub(/^\s+/, '')
Expand Down
2 changes: 1 addition & 1 deletion features/entries.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feature: Parse BibTeX preambles
%% http://bibdesk.sourceforge.net/


%% Created for Sylvester Keil at 2010-08-05 10:07:07 +0200
%% Created at 2010-08-05 10:07:07 +0200


%% Saved with string encoding Unicode (UTF-8)
Expand Down
23 changes: 2 additions & 21 deletions lib/bibtex.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

require 'digest/md5'
require 'forwardable'
require 'logger'
Expand All @@ -33,9 +15,8 @@
# an API to the individual BibTeX objects: +String+,
# +Preamble+, +Comment+, and +Entry+.
#
# Author:: {Sylvester Keil}[http://sylvester.keil.or.at]
# Copyright:: Copyright (c) 2010-2014 Sylvester Keil
# License:: GNU GPL 3.0
# Copyright:: Copyright (c) 2010-2026 The BibTeX-Ruby Contributors
# License:: GPL-3.0-or-later OR BSD-2-Clause
#
module BibTeX
#
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/bibliography.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

require 'fileutils'
require 'tempfile'

Expand Down
17 changes: 0 additions & 17 deletions lib/bibtex/bibtex.y
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#--
# BibTeX-Ruby
# Copyright (C) 2010-2011 Sylvester Keil <http://sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++
#
# A BibTeX grammar for the parser generator +racc+
#
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/elements.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

module BibTeX
#
# The base class for BibTeX objects.
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/entry.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

module BibTeX
#
# Represents a regular BibTeX entry.
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/extensions.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2011 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

module BibTeX
# Namespace for optional extensions to BibTeX-Ruby.
module Extensions
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/lexer.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <http://sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

require 'strscan'

module BibTeX
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/names.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

require 'forwardable'

module BibTeX
Expand Down
17 changes: 0 additions & 17 deletions lib/bibtex/names.y
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
#--
# BibTeX-Ruby
# Copyright (C) 2010-2011 Sylvester Keil <http://sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++
#
# A BibTeX Names grammar for the parser generator +racc+
#
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/replaceable.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

module BibTeX
#
# The Replaceable module provides methods that expose a Value attribute
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/utilities.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2011 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

# Top-level convenience methods for opening and parsing bibliographies
# and names.
module BibTeX
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/value.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

require 'forwardable'

module BibTeX
Expand Down
18 changes: 0 additions & 18 deletions lib/bibtex/version.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# frozen_string_literal: true

#--
# BibTeX-Ruby
# Copyright (C) 2010-2015 Sylvester Keil <sylvester.keil.or.at>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#++

module BibTeX
module Version
MAJOR = 6
Expand Down
Loading
Loading