ngerpin 0.0.0 → 0.0.1

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: 885e0d991101948252551699d946071f5853f541
4
- data.tar.gz: 35ff4072983c48dcf3057997c9e8e206274519ca
3
+ metadata.gz: 1d46337080019b490d0009711960504a05f08aaf
4
+ data.tar.gz: e61dc522a1112fe64c3e602fbe390efcd36c5d62
5
5
  SHA512:
6
- metadata.gz: 3db30e5f5869409fbecebb24ccebfb6f4cc9aaec74bbe680b42afa3ed2d74a74882caae491933f32a2a590629b81e9ca59b59ff33636fe08341ad409c1a93f5c
7
- data.tar.gz: 755cf82a43f9c7c0b26dae0839506ca66bcba67416337ce2e4062b22af66a24993bf38c40021dcbb0515496f528cde326477136cac20e39d742bee5aba9d8065
6
+ metadata.gz: 8c478f54ca5ea6db62ed24d494aaedad6779640377b5ebb1a0c2f0e83034a62403cff59d93ba0584896d2abe5da9674f60b1fdf47c02303b533b8d30a7306910
7
+ data.tar.gz: eeb1ab73cd11de478ddbca3f620cc5168a7292c385202e9936f3d845b5e796dfeafcb0c9af653f97556532e4a9e43769124cf1ed8cb37c7b941127eb1c753d4c
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'ngerpin'
4
+ puts Ngerpin.hi(ARGV[0])
@@ -1,5 +1,8 @@
1
1
  class Ngerpin
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 'ngerpin/translator'
@@ -0,0 +1,14 @@
1
+ class Ngerpin::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 CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ngerpin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ervinismu
@@ -12,11 +12,14 @@ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A wtf hello world gem
14
14
  email: workhard.ervin@gmail.com
15
- executables: []
15
+ executables:
16
+ - ngerpin
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/ngerpin
19
21
  - lib/ngerpin.rb
22
+ - lib/ngerpin/translator.rb
20
23
  homepage: http://rubygems.org/gems/ngerpin
21
24
  licenses:
22
25
  - MIT