hola_mahjouri 0.0.112

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5fb5baf6b3263990497e16c94fd0f0558fe89b7f
4
+ data.tar.gz: bebc6598afe8d6fdef297b2e692b43a0acd26150
5
+ SHA512:
6
+ metadata.gz: b6a1d3405cedfc8e457738a70aaa2bcc7993412e7c39e0d4a925aa86319b4e9bdb99af7e590ba3de5083ace40b22bf5f02b5f2a203f65523589c234bbd914c26
7
+ data.tar.gz: 8625f15d4de639ec2ad6c0c1be14a416a260a8789f4428c188dfc169256ccbe4f6330b033599c1eb76153d73de8322eea9a111845cb2de433af15dd6030d50f1
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'lib/hola_mahjouri'
4
+ puts HolaMahjouri.hi(ARGV[0])
@@ -0,0 +1,17 @@
1
+ # The main Hola driver
2
+ class HolaMahjouri
3
+ # Say hi to the world!
4
+ #
5
+ # Example:
6
+ # >> Hola.hi("spanish")
7
+ # => hola mundo
8
+ #
9
+ # Arguments:
10
+ # language: (String)
11
+ def self.hi(language = "english")
12
+ translator = Translator.new(language)
13
+ translator.hi
14
+ end
15
+ end
16
+
17
+ require 'hola_mahjouri/translator'
@@ -0,0 +1,14 @@
1
+ class Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_mahjouri
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.112
5
+ platform: ruby
6
+ authors:
7
+ - Saamahn Mahjouri
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-08 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem clone
14
+ email: mahjouri.saamahn@gmail.com
15
+ executables:
16
+ - hola_mahjouri.rb
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/hola_mahjouri.rb
21
+ - lib/hola_mahjouri.rb
22
+ - lib/hola_mahjouri/translator.rb
23
+ homepage: https://github.com/mahjouri/hola
24
+ licenses:
25
+ - GPLv3
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.2.2
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Hola!
47
+ test_files: []