hola_adsteel 0.0.0 → 0.1.0

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: 322cefdc2f206264034c0006364114d51485be09
4
- data.tar.gz: b2af41a48a828e7e47273fb72640bc153913fcf2
3
+ metadata.gz: d174354dc4c63d205e4c17f4894cece72aee291c
4
+ data.tar.gz: 52890f154dc1a5b85b4124d4ff6454473061f506
5
5
  SHA512:
6
- metadata.gz: 0a92bdc0ffdfa1535d4d34679f0953e3ad3250b2e826a629229d96d2eeccb8915d12f9fb54f8d064ef3a1f3b65c47be132279cafff160c4a87fb5222fe3b6451
7
- data.tar.gz: 82c6f5814c33e0c15c43c08d81aa2d4ef00e3ad4eea68fec489b49d229fb7ef08b59e37ee2a760e2f7a70780cb70a192c1dd961f7d3691ba0ce4483d10fe8cf5
6
+ metadata.gz: 99f9af4329a148f27d0c7bdf74c555ec86a720dadad8d2a00e24b2646eee69484298906f3aab425a1f9f65b89d9bd09fe786efe904faf32852d7ac4447124d61
7
+ data.tar.gz: 5fe37ebe81e5c2174e76cb20ef3569d3372dd897cf97f4d516c713a5651ec49059729be980c15dd1bf52ed0fdc5e7e47b4aa8593f5b4fb292bdafd79122efd27
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_adsteel'
4
+
5
+ puts HolaAdsteel.hi(ARGV[0])
@@ -1,5 +1,7 @@
1
1
  class HolaAdsteel
2
- def self.hi
3
- puts "Hello world!"
2
+ def self.hi(language = "english")
3
+ Translator.new(language).hi
4
4
  end
5
- end
5
+ end
6
+
7
+ require 'hola_adsteel/translator'
@@ -0,0 +1,14 @@
1
+ class HolaAdsteel::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: hola_adsteel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Steel
@@ -10,13 +10,16 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A simple hello world gem
13
+ description: A simple hello world gem with a translator
14
14
  email: adsteel@notanemail.com
15
- executables: []
15
+ executables:
16
+ - hola_adsteel
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/hola_adsteel
19
21
  - lib/hola_adsteel.rb
22
+ - lib/hola_adsteel/translator.rb
20
23
  homepage: http://rubygems.org/gems/hola_adsteel
21
24
  licenses:
22
25
  - MIT
@@ -42,3 +45,4 @@ signing_key:
42
45
  specification_version: 4
43
46
  summary: Hola!
44
47
  test_files: []
48
+ has_rdoc: