Skip to content

Commit

Permalink
- Complete rebuild from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Jan 25, 2023
1 parent d14db81 commit 25e9b2f
Show file tree
Hide file tree
Showing 257 changed files with 2,091 additions and 2,467 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ jobs:
runs-on: ubuntu-latest

strategy:
matrix: { ruby: ['2.6', '2.7', '3.0', '3.1'] }
matrix: { ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', head] }

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install OS dependencies
run: sudo apt-get -y install libyaml-dev

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby }}'
bundler-cache: true

- name: Run tests
run: bundle exec cucumber
run: bundle exec rspec
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
*.gem
.yardoc
/coverage
/dev
/doc
/gems
/sandbox
Gemfile.lock
/spec/status.txt
/spec/tmp
/tmp
/yardoc
Gemfile.lock
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--require spec_helper
--color
--format documentation
--fail-fast
29 changes: 29 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require:
- rubocop-performance
- rubocop-rspec

inherit_gem:
rentacop:
- rentacop.yml
- rspec.yml

inherit_mode:
merge:
- Include
- Exclude

AllCops:
TargetRubyVersion: 2.7
Include:
- '**/runfile'
- '**/*.runfile'
Exclude:
- int/**/*
- debug.rb
- dev/**/*
- spec/integration/**/*
- spec/tmp/**/*

RSpec/ExampleLength:
Exclude:
- spec/behaviors/**/*
15 changes: 8 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
source "https://rubygems.org"
source 'https://rubygems.org'

gem 'runfile-tasks'
gem 'cucumber'
gem 'rspec-expectations'
gem 'rdoc'
gem 'similar_text'
# gem 'yard'
gem 'byebug'
gem 'colsole'
gem 'lp'
gem 'pretty_trace'
gem 'rspec'
gem 'rspec_approvals'
gem 'sample_import_gem', path: 'spec/fixtures/sample_import_gem'
gem 'simplecov'

gemspec
37 changes: 5 additions & 32 deletions Runfile
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
require "runfile-tasks"
require "yaml"
require "colsole"
require "byebug"

include Colsole
require 'yaml'
require 'byebug'

title "Runfile Runfile"
summary "Runfile tasks for building the Runfile gem"
version Runfile::VERSION

RunfileTasks::RubyGems.all 'runfile'
RunfileTasks::Testing.cucumber
RunfileTasks::Docs.rdoc

help "Download a fresh copy of clicumber stepdefs"
action :clicumber do
file = "features/step_definitions/clicumber.rb"
url = "https://raw.githubusercontent.com/DannyBen/clicumber/master/features/step_definitions/clicumber.rb"
exec "curl -o '#{file}' #{url}"
end

help "Rename (toggle) the ~/runfile folder so we can run tests"
action :pretest do
if File.directory? "#{Dir.home}/runfile"
File.rename "#{Dir.home}/runfile", "#{Dir.home}/runfile_"
say "Global runfiles !txtred!disabled"
elsif File.directory? "#{Dir.home}/runfile_"
File.rename "#{Dir.home}/runfile_", "#{Dir.home}/runfile"
say "Global runfiles !txtgrn!enabled"
end
end

help "Run YARD server"
action :yard do
system "yard server -p3000 -B0.0.0.0 -r"
end
# RunfileTasks::RubyGems.all 'runfile'
# RunfileTasks::Testing.cucumber
# RunfileTasks::Docs.rdoc

help "Generate changelog and append old changelog"
action :changelog do
Expand Down
10 changes: 0 additions & 10 deletions bin/run

This file was deleted.

16 changes: 0 additions & 16 deletions bin/run!

This file was deleted.

5 changes: 5 additions & 0 deletions bin/runn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env ruby
require 'runfile'

exit_code = Runfile::Entrypoint.new.run!
exit exit_code if exit_code.is_a? Integer
6 changes: 0 additions & 6 deletions cucumber.yml

This file was deleted.

20 changes: 6 additions & 14 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
Runfile Examples
================
# Examples

This folder contains various Runfile examples.
Each folder here contains a succinct example demonstrating one or two aspects
of how Runfile works.

Each folder contains a single Runfile that demonstrates one aspect of the
system.

To see how they work:

$ cd example_folder
$ run --help
$ vi Runfile


The examples in this folder are also used for testing purposes.
You can test these examples by copying / downloading these files, or by simply
running `run example --help` from the command line (in a folder that does not
already contain runfiles).
5 changes: 0 additions & 5 deletions examples/a_minimal/Runfile

This file was deleted.

13 changes: 0 additions & 13 deletions examples/a_minimal/output.txt

This file was deleted.

6 changes: 0 additions & 6 deletions examples/a_minimal/output2.txt

This file was deleted.

24 changes: 0 additions & 24 deletions examples/b_basic/Runfile

This file was deleted.

23 changes: 0 additions & 23 deletions examples/b_basic/output.txt

This file was deleted.

103 changes: 0 additions & 103 deletions examples/c_documented/Runfile

This file was deleted.

Loading

0 comments on commit 25e9b2f

Please sign in to comment.