Skip to content

Commit 6aa55e8

Browse files
committed
feat: add rubyshell shell command
1 parent a3d045d commit 6aa55e8

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
require "bundler/setup"
5-
require "rubysh"
5+
require "rubyshell"
66

77
# You can add fixtures and/or initialization code here to make experimenting
88
# with your gem easier. You can also use a different console, if you like.

exe/rubyshell

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
require "rubyshell"
5+
6+
require "irb"
7+
8+
IRB.start(__FILE__)

lib/rubyshell/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module RubyShell
4-
VERSION = "1.1.1"
4+
VERSION = "1.2.0"
55
end

rubyshell.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ Gem::Specification.new do |spec|
2323

2424
# Specify which files should be added to the gem when it is released.
2525
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26-
spec.files = Dir["CHANGELOG.md", "{lib}/**/*", "LICENSE.md", "Rakefile", "README.md"]
26+
spec.files = Dir["CHANGELOG.md", "{lib,exe}/**/*", "LICENSE.md", "Rakefile", "README.md"]
2727

2828
spec.require_paths = ["lib"]
2929

30+
spec.bindir = "exe"
31+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32+
3033
# Uncomment to register a new dependency of your gem
3134
# spec.add_dependency "example-gem", "~> 1.0"
3235

0 commit comments

Comments
 (0)