say_hello 0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '094566e0587274fa2040f4026ab7661331ce5bc06e364614090e0d3b5de2ac17'
4
- data.tar.gz: e089201b8fb137abd7f285a8138f57e243f2dde3dc4121d1048777826356b3bf
3
+ metadata.gz: a9d25dd451694d24d03c34399f8111b4334c03e6508ca710612debafcc4ac5e7
4
+ data.tar.gz: 0a5f8c7bc555d49b01085646bcdfbe2b819e2558f1d4f041344d1002e5fd7639
5
5
  SHA512:
6
- metadata.gz: 6c761f1a6fe7a3472f7136689198be1019bc12594baa5d7ff4b29ec4e36c7e395fdc1ca4d2bfaceebf9f53cb82d75377556d5c3aa2d485bfa27275a55ffc8291
7
- data.tar.gz: 2ef5f9873e09803c6193ab38b2cd848fb1193973e9e08bd5dda96ee6e3d3d4ca48476b409b8d694eec9e6f5f2ee293578aeb802a8c789ba7278f5b68fa6a3ad8
6
+ metadata.gz: e1c3ba76707a20d233bb5f37a3217720ee9121634742142f8167fcf3bcc05709224c535779a89e2560b50ee793d261ff070009868c0f037271b94642857a7c11
7
+ data.tar.gz: 25fc710aa49d2efff2f215c60769599a1bca601fa45c50a82eb885c31e20615e7cb4898143aec9f3d5c53a7132ff6c01c3001c784e1ede369727ac7e866bea66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- say_hello (0.1.0)
4
+ say_hello (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -21,8 +21,20 @@ Or install it yourself as:
21
21
  $ gem install say_hello
22
22
 
23
23
  ## Usage
24
-
25
- TODO: Write usage instructions here
24
+ ```
25
+ [wlin@wlin ~]$ gem install say_hello
26
+ Successfully installed say_hello-0.1
27
+ Parsing documentation for say_hello-0.1
28
+ Done installing documentation for say_hello after 0 seconds
29
+ 1 gem installed
30
+ [wlin@wlin ~]$ irb
31
+ 2.2.4 :001 > require 'say_hello'
32
+ => true
33
+ 2.2.4 :002 > SayHello.say_to()
34
+ => "Hello, Cara"
35
+ 2.2.4 :003 > SayHello.say_to('Cara Wang')
36
+ => "Hello, Cara Wang"
37
+ ```
26
38
 
27
39
  ## Development
28
40
 
data/bin/say_hello ADDED
@@ -0,0 +1,9 @@
1
+ #!/bin/env ruby
2
+
3
+ require 'say_hello/hello.rb'
4
+
5
+ if ARGV.length < 1
6
+ puts Hello.say_to('My friend')
7
+ else
8
+ puts Hello.say_to(ARGV.join(''))
9
+ end
@@ -1,3 +1,3 @@
1
1
  module SayHello
2
- VERSION = "0.1"
2
+ VERSION = "0.1.1"
3
3
  end
data/say_hello.gemspec CHANGED
@@ -32,8 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
33
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
34
  end
35
- spec.bindir = "exe"
36
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.executables = "say_hello"
37
36
  spec.require_paths = ["lib"]
38
37
 
39
38
  spec.add_development_dependency "bundler", "~> 1.16"
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: say_hello
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cara Wang
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: The first Gem example. The gem just can say hello to someone!
56
56
  email:
57
57
  - wlin@redhat.com
58
- executables: []
58
+ executables:
59
+ - say_hello
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
@@ -68,6 +69,7 @@ files:
68
69
  - README.md
69
70
  - Rakefile
70
71
  - bin/console
72
+ - bin/say_hello
71
73
  - bin/setup
72
74
  - lib/say_hello.rb
73
75
  - lib/say_hello/hello.rb