hello_from_khalid 0.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c52dd1452b7e54c03dadd68481b9e7811a3b37255ca1f175aa1dc80bb2c4d733
4
+ data.tar.gz: 27deab9ecb6d367a15b307adf55205e7f8ca04332ca56efc2a734f867c404218
5
+ SHA512:
6
+ metadata.gz: ce871f7158197a944f3e21dab0ca66698b78fb4bb37451dce963cae9b46fe8b04a29272668231c4dc4c8d69ddbf1db4b7875536048fd7dbac4204361cc8b673b
7
+ data.tar.gz: a0e88c0ebb996bd258fb32027627f933699541f6a5ca49679a06f5fa1c094045aafe56743ef843c202a5086c73896341b5507807e0da99a5b0c969d802d8b5ae
data/bin/executable1 ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hello_from_khalid'
4
+ puts HelloFromKhalid.hi(ARGV[0])
@@ -0,0 +1,9 @@
1
+ require 'hello_from_khalid/translater.rb'
2
+
3
+ class HelloFromKhalid
4
+ def self.hi language='english'
5
+ translater = Translater.new language
6
+ translater.hi
7
+ end
8
+
9
+ end
@@ -0,0 +1,14 @@
1
+ class Translater
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "arabic"
9
+ "مرحبا!"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hello_from_khalid
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Khalid alsaadi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple greeting gem
14
+ email: kh.alsaady@gmail.com
15
+ executables:
16
+ - executable1
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/executable1
21
+ - lib/hello_from_khalid.rb
22
+ - lib/hello_from_khalid/translater.rb
23
+ homepage: ''
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.7.8
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Learn how to build a gem
47
+ test_files: []