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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -2
- data/bin/say_hello +9 -0
- data/lib/say_hello/version.rb +1 -1
- data/say_hello.gemspec +1 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9d25dd451694d24d03c34399f8111b4334c03e6508ca710612debafcc4ac5e7
|
4
|
+
data.tar.gz: 0a5f8c7bc555d49b01085646bcdfbe2b819e2558f1d4f041344d1002e5fd7639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c3ba76707a20d233bb5f37a3217720ee9121634742142f8167fcf3bcc05709224c535779a89e2560b50ee793d261ff070009868c0f037271b94642857a7c11
|
7
|
+
data.tar.gz: 25fc710aa49d2efff2f215c60769599a1bca601fa45c50a82eb885c31e20615e7cb4898143aec9f3d5c53a7132ff6c01c3001c784e1ede369727ac7e866bea66
|
data/Gemfile.lock
CHANGED
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
|
-
|
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
data/lib/say_hello/version.rb
CHANGED
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.
|
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:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cara Wang
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
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
|