helloworld_victorp 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'helloworld_victorp'
4
+
5
+ puts Helloworld_Victorp.hi(ARGV[0])
6
+
@@ -0,0 +1,18 @@
1
+
2
+ class Helloworld_Victorp::Translator
3
+
4
+ def initialize(language)
5
+ @language = language
6
+ end
7
+
8
+ def hi
9
+ case @language
10
+ when "spanish"
11
+ "Hola Mundo!"
12
+ else
13
+ "Hello World!"
14
+ end
15
+ end
16
+
17
+ end
18
+
@@ -1,5 +1,12 @@
1
+
1
2
  class Helloworld_Victorp
2
- def self.hi
3
- puts "Hello World!"
3
+
4
+ def self.hi(language = "english")
5
+ translator = Translator.new(language)
6
+ puts translator.hi
4
7
  end
8
+
5
9
  end
10
+
11
+ require 'helloworld_victorp/translator'
12
+
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helloworld_victorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Victor P.
@@ -12,32 +13,36 @@ date: 2013-03-04 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: A simple hello world gem. (http://guides.rubygems.org/make-your-own-gem/)
14
15
  email: victorp-ml@att.net
15
- executables: []
16
+ executables:
17
+ - helloworld_victorp
16
18
  extensions: []
17
19
  extra_rdoc_files: []
18
20
  files:
19
21
  - lib/helloworld_victorp.rb
22
+ - lib/helloworld_victorp/translator.rb
23
+ - bin/helloworld_victorp
20
24
  homepage: http://rubygems.org/gems/hola
21
25
  licenses: []
22
- metadata: {}
23
26
  post_install_message:
24
27
  rdoc_options: []
25
28
  require_paths:
26
29
  - lib
27
30
  required_ruby_version: !ruby/object:Gem::Requirement
31
+ none: false
28
32
  requirements:
29
33
  - - ! '>='
30
34
  - !ruby/object:Gem::Version
31
35
  version: '0'
32
36
  required_rubygems_version: !ruby/object:Gem::Requirement
37
+ none: false
33
38
  requirements:
34
39
  - - ! '>='
35
40
  - !ruby/object:Gem::Version
36
41
  version: '0'
37
42
  requirements: []
38
43
  rubyforge_project:
39
- rubygems_version: 2.0.0
44
+ rubygems_version: 1.8.25
40
45
  signing_key:
41
- specification_version: 4
46
+ specification_version: 3
42
47
  summary: Hello Word!
43
48
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjU4Y2FmNDM5MTM4ZWRjNDhjNWJhNjU0NDY3NWIxNGY0ZmEwNDhlZg==
5
- data.tar.gz: !binary |-
6
- ODViZTZlN2FkM2E3OTllYmY5NGMzOTRkNWFlNjBkOWFiMzlmMzAxZg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YzA4YzIzMGRlNDdiMjI3OTFkYmIyOGRiZWM1NmVmMTZmNDg5ZGRkZjNhYmM1
10
- NThiNzE3MjVmM2M1NDc5OTRmMWRjYjMzZjRiN2Y3YWIzMzNiMTliOTBlNzdh
11
- ZDRiYTM4MWY1NjVhOGNlZTg0NTg2NTdiZDc3OWM0OTFhMTQ0MDU=
12
- data.tar.gz: !binary |-
13
- MDQ0ZDU5NjgxNzc0MGQzYTY1Y2E5MGM2M2YwZmI2MzliYWY1Yzc3ZTJiNDY4
14
- NDUzNzYzNzVkZTViOGI3YWE3NTM2ODY3M2E1YjM3MzBmNmI2Yzk0OTNmNjMw
15
- YjhkYzBmY2EwNGRjYjE5N2RmMjhhNTRmMDk0ZTExYWE0NTdjYWM=