Skip to content

Commit

Permalink
Merge pull request #32 from sparklemotion/flavorjones-ruby-3.4
Browse files Browse the repository at this point in the history
introduce a gemspec and add getoptlong as a dependency
  • Loading branch information
flavorjones authored May 23, 2024
2 parents e331a51 + 2031eaf commit 847e4a8
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 44 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
=== next / unrelesaed

==== Dependencies

- Added `getoptlong` as an explicit dependency since Ruby 3.4 removes it from the standard library.


=== 1.0.7 / 2019-08-06

* Security
Expand Down
129 changes: 129 additions & 0 deletions COPYING

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
source "https://rubygems.org"

gemspec

group :development do
gem "hoe"
gem "rake"
gem "minitest"
gem "rubocop"
end
14 changes: 10 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
PATH
remote: .
specs:
rexical (1.0.7)
getoptlong

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
hoe (4.2.1)
rake (>= 0.8, < 15.0)
getoptlong (0.2.1)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.23.0)
minitest (5.23.1)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -39,8 +44,9 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
hoe
minitest
rake
rexical!
rubocop

BUNDLED WITH
Expand Down
2 changes: 2 additions & 0 deletions Manifest.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CHANGELOG.rdoc
COPYING
DOCUMENTATION.en.rdoc
DOCUMENTATION.ja.rdoc
Manifest.txt
Expand All @@ -9,6 +10,7 @@ bin/rex
lib/rexical.rb
lib/rexical/generator.rb
lib/rexical/rexcmd.rb
lib/rexical/version.rb
sample/a.cmd
sample/b.cmd
sample/c.cmd
Expand Down
1 change: 1 addition & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ Public License version 2. Note that you do NOT need to follow
LGPL for your own parser (Rexical outputs). You can provide those
files under any licenses you want.

See COPYING for more details.
33 changes: 2 additions & 31 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
# -*- ruby -*-
require 'minitest/test_task'

require 'rubygems'
require 'hoe'

Hoe.plugin :debugging
Hoe.plugin :git
Hoe.plugins.delete :rubyforge

Hoe.spec 'rexical' do
self.readme_file = 'README.rdoc'
self.history_file = 'CHANGELOG.rdoc'
developer('Aaron Patterson', 'aaronp@rubyforge.org')
self.extra_rdoc_files = FileList['*.rdoc']
self.extra_dev_deps += [
["rubocop", "~> 0.74.0"]
]
self.license "LGPL-2.0"
end

namespace :gem do
namespace :spec do
task :dev do
File.open("#{HOE.name}.gemspec", 'w') do |f|
HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
f.write(HOE.spec.to_ruby)
end
end
end
end

# vim: syntax=Ruby
Minitest::TestTask.create
Empty file modified bin/rex
100644 → 100755
Empty file.
11 changes: 3 additions & 8 deletions lib/rexical.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
require "rexical/generator"
require "rexical/rexcmd"

module Rexical
VERSION = "1.0.7"
Copyright = "Copyright (c) 2005-2006 ARIMA Yasuhiro"
Mailto = "arima.yasuhiro@nifty.com"
end
require_relative "rexical/generator"
require_relative "rexical/rexcmd"
require_relative "rexical/version"
5 changes: 5 additions & 0 deletions lib/rexical/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Rexical
VERSION = "1.0.7"
Copyright = "Copyright (c) 2005-2006 ARIMA Yasuhiro"
Mailto = "arima.yasuhiro@nifty.com"
end
23 changes: 23 additions & 0 deletions rexical.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require_relative "lib/rexical/version"

Gem::Specification.new do |s|
s.name = "rexical"
s.version = Rexical::VERSION
s.homepage = "http://github.com/sparklemotion/rexical"

s.authors = ["Aaron Patterson"]

s.summary = "Rexical is a lexical scanner generator that is used with Racc to generate Ruby programs"
s.description = "Rexical is a lexical scanner generator that is used with Racc to generate Ruby programs. Rexical is written in Ruby."

s.executables = ["rex"]

s.rdoc_options = ["--main", "README.rdoc"]
s.extra_rdoc_files = ["CHANGELOG.rdoc", "DOCUMENTATION.en.rdoc", "DOCUMENTATION.ja.rdoc", "README.rdoc"]

s.files = File.read("Manifest.txt").split("\n")

s.licenses = ["LGPL-2.1-only"]

s.add_dependency "getoptlong"
end

0 comments on commit 847e4a8

Please sign in to comment.