Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI configuration and gemspec #24

Merged
merged 2 commits into from
Jun 6, 2024
Merged
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
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, head, jruby, jruby-head, truffleruby, truffleruby-head]
runs-on: ubuntu-latest
Expand All @@ -11,5 +12,6 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- run: rake
- run: bundle exec rake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
TAGS
html
pkg
Gemfile.lock
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
source "https://rubygems.org"

# Specify your gem's dependencies in heap-profiler.gemspec
gemspec

gem "rake"
gem "minitest"
25 changes: 11 additions & 14 deletions builder.gemspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
# frozen_string_literal: true
require './lib/builder/version'

PKG_VERSION = Builder::VERSION

PKG_FILES = Dir[
'[A-Z]*',
'doc/**/*',
'lib/**/*.rb',
'test/**/*.rb',
'rakelib/**/*'
]

Gem::Specification.new do |s|

#### Basic information.

s.name = 'builder'
s.version = PKG_VERSION
s.version = Builder::VERSION
s.summary = "Builders for MarkUp."
s.description = %{\
Builder provides a number of builder objects that make creating structured data
Expand All @@ -26,12 +16,19 @@ simple to do. Currently the following builder objects are supported:
* XML Events
}

s.files = PKG_FILES
pkg_files = Dir[
'[A-Z]*',
'doc/**/*',
'lib/**/*.rb',
'test/**/*.rb',
'rakelib/**/*'
]

s.files = pkg_files
s.require_path = 'lib'

s.test_files = PKG_FILES.select { |fn| fn =~ /^test\/test/ }
s.test_files = pkg_files.select { |fn| fn =~ /^test\/test/ }

s.has_rdoc = true
# s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
s.rdoc_options <<
'--title' << 'Builder -- Easy XML Building' <<
Expand Down
2 changes: 1 addition & 1 deletion rakelib/tags.rake
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Tags
PROJECT_DIR = ['.']

RVM_GEMDIR = File.join(`rvm gemdir`.strip, "gems") rescue nil
SYSTEM_DIRS = RVM_GEMDIR && File.exists?(RVM_GEMDIR) ? RVM_GEMDIR : []
SYSTEM_DIRS = RVM_GEMDIR && File.exist?(RVM_GEMDIR) ? RVM_GEMDIR : []

module_function

Expand Down
Loading