Skip to content

Commit cb0cb3f

Browse files
authored
Merge pull request #7 from DannyBen/housekeeping
Housekeeping
2 parents edfc878 + e00903e commit cb0cb3f

30 files changed

+146
-155
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
/sample
99
/spec/tmp
1010
/tmp
11-
/toc.txt

.rubocop.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require:
2+
- rubocop-performance
3+
- rubocop-rspec
4+
5+
inherit_gem:
6+
rentacop:
7+
- rentacop.yml
8+
- rspec.yml
9+
10+
AllCops:
11+
TargetRubyVersion: 2.7
12+
Exclude:
13+
- dev/**/*
14+
- sample/**/*

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
source "https://rubygems.org"
1+
source 'https://rubygems.org'
22

33
gem 'byebug'
4+
gem 'lp'
45
gem 'rspec'
56
gem 'rspec_approvals'
67
gem 'runfile'

Runfile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
require "runfile-tasks"
21
require "byebug"
3-
require_relative 'lib/recode'
2+
require 'recode'
43

54
title "Recode Developer Toolbelt"
65
summary "Runfile tasks for building the Recode gem"
76
version Recode::VERSION
87

9-
RunfileTasks::RubyGems.all 'recode'
10-
RunfileTasks::Testing.rspec
8+
import_gem 'runfile-tasks/gem', gemname: 'recode'
9+
import 'dev/debug'
1110

12-
help "Run interactive console"
13-
action :console, :c do
14-
system "bundle exec bin/console"
15-
end
16-
17-
require_relative 'debug.rb' if File.exist? 'debug.rb'

bin/console

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env ruby
22

3-
require "irb"
4-
require "irb/completion"
5-
require "recode"
3+
require 'irb'
4+
require 'irb/completion'
5+
require 'recode'
66

77
include Recode
88

9-
IRB.start
9+
IRB.start

bin/recode

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ rescue => e
1313
puts e.backtrace.reverse if ENV['DEBUG']
1414
say! "r`#{e.class}: #{e.message}`"
1515
exit 1
16-
end
16+
end

debug.rb

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

demo/sample/people_controller.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
class PeopleController
22
def people
3-
"we are the people to rule the world"
3+
'we are the people to rule the world'
44
end
55

6-
def person
7-
end
8-
end
6+
def person; end
7+
end

lib/recode/change_variations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ def change_variations(old_string, new_string)
1212
result.uniq
1313
end
1414
end
15-
end
15+
end

lib/recode/cli.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'mister_bin'
22
require 'recode'
33
require 'recode/command'
4+
require 'recode/version'
45

56
module Recode
67
class CLI

0 commit comments

Comments
 (0)