We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff43dca commit f6762baCopy full SHA for f6762ba
2 files changed
examples/deep_gem/hello_world/bin/hello_world
@@ -0,0 +1,8 @@
1
+#!/usr/bin/env ruby
2
+# frozen_string_literal: true
3
+
4
+require "hello_world"
5
6
+name = ARGV[0] || "World"
7
+speaker = HelloWorld::Speaker.new(name)
8
+puts speaker.message
examples/deep_gem/hello_world/hello_world.gemspec
@@ -14,7 +14,8 @@ Gem::Specification.new do |s|
14
15
s.summary = "Example"
16
s.description = "Example gem"
17
- s.files = Dir["lib/**/*"]
+ s.files = Dir["lib/**/*"] + Dir["bin/*"]
18
+ s.executables = ["hello_world"]
19
20
s.require_paths = ["lib"]
21
s.required_ruby_version = Gem::Requirement.new(">= 2.6")
0 commit comments