hola_scieslak 0.0.1.beta → 0.0.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee0975567f98e3dc02f1cede4c73f177b7387f0d
4
- data.tar.gz: a7a911120e52bb34c369ee9129a2e8b851051d4d
3
+ metadata.gz: 293c05333156d3a24303659aa726a9da2dceee97
4
+ data.tar.gz: 3535d922bdf8e75153fc399e2992c335f6bb0bbb
5
5
  SHA512:
6
- metadata.gz: 7263ff7bff6bf1accd9a96535fd54e86576d4ba886609c725fcd2916fa80da648fd6e799d9eeb8fd321ce49250f55d325e9e41e160bf8a9b5029c554dc056782
7
- data.tar.gz: 907e61d39e5edb865b8ce572080d5180d0ce360adcfba5ff94061d156c3d75de91b9cbfe23e59dfa6450fe50aee2008fbd5c52be3f609dc7a00ed9cb098f36c5
6
+ metadata.gz: 2f4e11a75970bb4b3b3a650734582aaf0cbbdd8709e9c8d15c3f1fc27c8e2131d33abe99dff06ab6c7b0ba6801a6cc4c2725893bcebfb37c9e960952f1cbffa7
7
+ data.tar.gz: ea11d913d8b7c7367ee4c3b455c51f383af7b1b76f45b1701a7fc8a55b105ebabdcaffb7fa532bfb9e6fd2bd3924cecafa23a4d69313c856a07734f9da7419e7
data/bin/hola_scieslak ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_scieslak'
4
+ puts Hola_scieslak.hi(ARGV[0])
@@ -0,0 +1,14 @@
1
+ class Hola_scieslak::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
data/lib/hola_scieslak.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  class Hola_scieslak
2
- def self.hi
3
- puts "Hello world!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
6
  end
7
+
8
+ require 'hola/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_scieslak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta
4
+ version: 0.0.1.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - scieslak
@@ -11,11 +11,14 @@ cert_chain: []
11
11
  date: 2016-10-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem
14
- email: scieslak@scieslak.com
15
- executables: []
14
+ email: sciesla.comk@gmail.com
15
+ executables:
16
+ - hola_scieslak
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/hola_scieslak
21
+ - lib/hola/translator.rb
19
22
  - lib/hola_scieslak.rb
20
23
  homepage: http://rubygems.org/gems/hola_scieslak
21
24
  licenses: