hola_wazynski 0.0.1 → 0.0.2

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: d903c9df9c2df89954d68e872f87879fa8211e36
4
- data.tar.gz: de78dfc3680aa9dea60d5bfafb5dd4b605d35e75
3
+ metadata.gz: 0e68e9fdf0569df34130fd979ac0678b585df197
4
+ data.tar.gz: 3b29a6bf7aa6f29231ad807a0f6c782a36b952d7
5
5
  SHA512:
6
- metadata.gz: 9fe2aec48f8a09d6bfbf4532a002132692152d946a815041ff8345799b92cb1d7c180ad115db07cb949d16b144af4c5a26d5c10679e9f73e19c8d05629dd448d
7
- data.tar.gz: 4213793ca3da6ed32b93a5139c1947d7d8d0499e809845e41a50474fb9a39f183266312ec5fa4fa83da95a7cbd1aa3fea811b9451132d93c9c1bce4b615641d8
6
+ metadata.gz: be7dd862c3bedcedfb7d158158b1101996b540fa958a72de90ba2405d3c271e7a2f7c391880ed755bc0e204cf69ea52af9b80c3ce884a29fb6ccb7f6e3401fcd
7
+ data.tar.gz: 3b82f24c0a49cf09a260128ccb205f56623ab013e350e45c87f56e59b685b2d082003607897bfd55532a4a36f8702fc4ac2e25a21f57a3e747994f4701d2440d
data/bin/hola_wazynski ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_wazynski'
4
+ puts Hola_Wazynski.hi(ARGV[0])
data/lib/hola_wazynski.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  class Hola_Wazynski
2
- def self.hi
3
- puts "Hellos World!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ require 'hola_wazynski/translator'
9
+
@@ -0,0 +1,14 @@
1
+ class Hola_Wazynski::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mndo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_wazynski
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Skarbek-Wazynski
@@ -13,11 +13,14 @@ date: 2015-03-04 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple hello world gem
15
15
  email: wazynski@gmail.com
16
- executables: []
16
+ executables:
17
+ - hola_wazynski
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
21
+ - bin/hola_wazynski
20
22
  - lib/hola_wazynski.rb
23
+ - lib/hola_wazynski/translator.rb
21
24
  homepage: http://rubygems.org/gems/hola_wazynski
22
25
  licenses:
23
26
  - MIT