Skip to content

Commit 9b577a0

Browse files
committed
- Upgrade dependencies
1 parent c7e82ba commit 9b577a0

5 files changed

Lines changed: 26 additions & 25 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gemfile.lock
22

33
/coverage
4-
/debug.rb
4+
/debug.runfile
55
/dev
66
/doc
77
/gems

Gemfile

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
source 'https://rubygems.org'
22

3-
gem 'byebug'
4-
gem 'filewatcher-cli'
5-
gem 'lp'
6-
gem 'pretty_trace'
7-
gem 'rack-test'
8-
gem 'rspec'
9-
gem 'rspec_approvals'
10-
gem 'rspec-html-matchers'
11-
gem 'runfile'
12-
gem 'runfile-tasks'
13-
gem 'sasstool'
14-
gem 'simplecov'
15-
gem 'slim'
3+
group :development do
4+
gem 'byebug'
5+
gem 'filewatcher-cli', require: false
6+
gem 'lp'
7+
gem 'pretty_trace'
8+
gem 'runfile', '>= 1.0', require: false
9+
gem 'runfile-tasks', '>= 1.0', require: false
10+
gem 'sasstool', require: false
11+
end
12+
13+
group :test do
14+
gem 'rack-test'
15+
gem 'rspec'
16+
gem 'rspec-html-matchers'
17+
gem 'rspec_approvals'
18+
gem 'simplecov'
19+
end
1620

1721
gemspec

Runfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
require_relative 'lib/madness'
1+
require 'madness'
22
require "sasstool"
33
require "slim"
44
require "pretty_trace/enable-trim"
5-
require "runfile-tasks"
65

76
title "Madness Runfile"
87
summary "Runfile tasks for building the Madness gem"
98
version Madness::VERSION
109

11-
RunfileTasks::RubyGems.all 'madness'
12-
RunfileTasks::Testing.rspec
10+
import_gem 'runfile-tasks/gem'
11+
import 'debug'
1312

1413
help "Generate public CSS"
1514
usage 'css [--watch]'
16-
option '-w, --watch', 'Watch for changes and regenerate'
15+
option '--watch, -w', 'Watch for changes and regenerate'
1716
action :css do |args|
1817
if args['--watch']
1918
exec "filewatcher --immediate 'app/styles/*.scss' 'bundle exec run css'"
@@ -32,7 +31,7 @@ end
3231

3332
usage "(server|s) [--sample]"
3433
help "Run server with spec docroot or the sample docroot"
35-
option "-s, --sample", "Use the 'sample' folder instead of the fixture"
34+
option "--sample, -s", "Use the 'sample' folder instead of the fixture"
3635
action :server, :s do |args|
3736
folder = args['--sample'] ? 'sample' : 'spec/fixtures/docroot'
3837
exec "bundle exec bin/madness server #{folder}"
@@ -92,5 +91,3 @@ action :site do
9291
File.write 'docs/index.html', html
9392
puts 'Saved docs/index.html'
9493
end
95-
96-
require_relative 'debug.rb' if File.exist? 'debug.rb'

madness.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
1616
s.required_ruby_version = '>= 2.7'
1717

1818
s.add_runtime_dependency 'addressable', '~> 2.7'
19-
s.add_runtime_dependency 'colsole', '~> 0.8', '>= 0.8.1'
19+
s.add_runtime_dependency 'colsole', '>= 0.8.1', '< 2'
2020
s.add_runtime_dependency 'extended_yaml', '~> 0.2'
2121
s.add_runtime_dependency 'mister_bin', '~> 0.7'
2222
s.add_runtime_dependency 'naturally', '~> 2.2'
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
2626
s.add_runtime_dependency 'requires', '~> 1.0'
2727
s.add_runtime_dependency 'rouge', '~> 4.0'
2828
s.add_runtime_dependency 'sinatra', '~> 3.0'
29-
s.add_runtime_dependency 'slim', '~> 4.0'
29+
s.add_runtime_dependency 'slim', '>= 4.0', '< 6'
3030

3131
s.metadata = {
3232
'bug_tracker_uri' => 'https://github.com/DannyBen/madness/issues',

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Require the Gemfile
66
require 'rubygems'
77
require 'bundler'
8-
Bundler.require :default, :development
8+
Bundler.require :default, :development, :test
99

1010
# Sinatra testing with Rack::Test
1111
require 'rack/test'

0 commit comments

Comments
 (0)