Skip to content

Commit 25e9b2f

Browse files
committed
- Complete rebuild from scratch
1 parent d14db81 commit 25e9b2f

File tree

257 files changed

+2091
-2467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+2091
-2467
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13-
matrix: { ruby: ['2.6', '2.7', '3.0', '3.1'] }
13+
matrix: { ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', head] }
1414

1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
1818

19+
- name: Install OS dependencies
20+
run: sudo apt-get -y install libyaml-dev
21+
1922
- name: Setup Ruby
2023
uses: ruby/setup-ruby@v1
2124
with:
2225
ruby-version: '${{ matrix.ruby }}'
2326
bundler-cache: true
2427

2528
- name: Run tests
26-
run: bundle exec cucumber
29+
run: bundle exec rspec

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
*.gem
22
.yardoc
3+
/coverage
34
/dev
45
/doc
56
/gems
6-
/sandbox
7-
Gemfile.lock
7+
/spec/status.txt
8+
/spec/tmp
9+
/tmp
10+
/yardoc
11+
Gemfile.lock

.rspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--require spec_helper
2+
--color
3+
--format documentation
4+
--fail-fast

.rubocop.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
require:
2+
- rubocop-performance
3+
- rubocop-rspec
4+
5+
inherit_gem:
6+
rentacop:
7+
- rentacop.yml
8+
- rspec.yml
9+
10+
inherit_mode:
11+
merge:
12+
- Include
13+
- Exclude
14+
15+
AllCops:
16+
TargetRubyVersion: 2.7
17+
Include:
18+
- '**/runfile'
19+
- '**/*.runfile'
20+
Exclude:
21+
- int/**/*
22+
- debug.rb
23+
- dev/**/*
24+
- spec/integration/**/*
25+
- spec/tmp/**/*
26+
27+
RSpec/ExampleLength:
28+
Exclude:
29+
- spec/behaviors/**/*

Gemfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem 'runfile-tasks'
4-
gem 'cucumber'
5-
gem 'rspec-expectations'
6-
gem 'rdoc'
7-
gem 'similar_text'
3+
# gem 'yard'
84
gem 'byebug'
9-
gem 'colsole'
5+
gem 'lp'
6+
gem 'pretty_trace'
7+
gem 'rspec'
8+
gem 'rspec_approvals'
9+
gem 'sample_import_gem', path: 'spec/fixtures/sample_import_gem'
10+
gem 'simplecov'
1011

1112
gemspec

Runfile

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
1-
require "runfile-tasks"
2-
require "yaml"
3-
require "colsole"
4-
require "byebug"
5-
6-
include Colsole
1+
require 'yaml'
2+
require 'byebug'
73

84
title "Runfile Runfile"
95
summary "Runfile tasks for building the Runfile gem"
106
version Runfile::VERSION
117

12-
RunfileTasks::RubyGems.all 'runfile'
13-
RunfileTasks::Testing.cucumber
14-
RunfileTasks::Docs.rdoc
15-
16-
help "Download a fresh copy of clicumber stepdefs"
17-
action :clicumber do
18-
file = "features/step_definitions/clicumber.rb"
19-
url = "https://raw.githubusercontent.com/DannyBen/clicumber/master/features/step_definitions/clicumber.rb"
20-
exec "curl -o '#{file}' #{url}"
21-
end
22-
23-
help "Rename (toggle) the ~/runfile folder so we can run tests"
24-
action :pretest do
25-
if File.directory? "#{Dir.home}/runfile"
26-
File.rename "#{Dir.home}/runfile", "#{Dir.home}/runfile_"
27-
say "Global runfiles !txtred!disabled"
28-
elsif File.directory? "#{Dir.home}/runfile_"
29-
File.rename "#{Dir.home}/runfile_", "#{Dir.home}/runfile"
30-
say "Global runfiles !txtgrn!enabled"
31-
end
32-
end
33-
34-
help "Run YARD server"
35-
action :yard do
36-
system "yard server -p3000 -B0.0.0.0 -r"
37-
end
8+
# RunfileTasks::RubyGems.all 'runfile'
9+
# RunfileTasks::Testing.cucumber
10+
# RunfileTasks::Docs.rdoc
3811

3912
help "Generate changelog and append old changelog"
4013
action :changelog do

bin/run

Lines changed: 0 additions & 10 deletions
This file was deleted.

bin/run!

Lines changed: 0 additions & 16 deletions
This file was deleted.

bin/runn

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env ruby
2+
require 'runfile'
3+
4+
exit_code = Runfile::Entrypoint.new.run!
5+
exit exit_code if exit_code.is_a? Integer

cucumber.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
Runfile Examples
2-
================
1+
# Examples
32

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

6-
Each folder contains a single Runfile that demonstrates one aspect of the
7-
system.
8-
9-
To see how they work:
10-
11-
$ cd example_folder
12-
$ run --help
13-
$ vi Runfile
14-
15-
16-
The examples in this folder are also used for testing purposes.
6+
You can test these examples by copying / downloading these files, or by simply
7+
running `run example --help` from the command line (in a folder that does not
8+
already contain runfiles).

examples/a_minimal/Runfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/a_minimal/output.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/a_minimal/output2.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/b_basic/Runfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/b_basic/output.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

examples/c_documented/Runfile

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)