hola_kapustka 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,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWE4OWJmZjQwOWRmMTE0NTdjODAyM2QzNDA4OGVhZjA4NDRlOTI2MQ==
5
+ data.tar.gz: !binary |-
6
+ ODEwNDRhMzBmYTEwYjFmZTVlNTVlMjAwZjhkNWQ0NzE0YzY4YTRkOA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YmQ1ODJkZWE2MjNjNmNiNDk4YjRhNDcwZWY4YThiYzdjN2RiM2NkYzIxNTA1
10
+ NTA0M2IwMGU2MjRkZTk0ZjFjNzE0ZTlkZjYyMjlkOTA3OGQyYjBhNGZmODMx
11
+ YzVhZDgxMzAyNTIzZjA3NDY3NjRhMTllZGE2YjhiZmM4M2E2ZWI=
12
+ data.tar.gz: !binary |-
13
+ YWM1ZWRlMmYzOGM3ODk4YmFiMTJjYzgzYzFhNDAxZmZjNGYyN2JmMGU0ODdj
14
+ NWIxOTQ4NGNkYjQ3OWFlNmM5ODY5YWQzZjY0ZjFjMWU3MmUzYWIxYzhkMDA1
15
+ ZTZiZWZkNTlkNGVjNGE4MjU2OGM1M2E5YWFjZTAwM2QxMDZiN2Y=
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'hola_kapustka'
3
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,14 @@
1
+ class 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
@@ -0,0 +1,8 @@
1
+ class Hola
2
+ def self.hi(language = 'english')
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'hola/translator'
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_kapustka
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Maciek Kasprzyk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2010-04-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: kapustka.maciek@gmail.com
15
+ executables:
16
+ - hola
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/hola_kapustka.rb
21
+ - lib/hola/translator.rb
22
+ - bin/hola
23
+ homepage: http://rubygems.org/gems/hola_kapustka
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.0.5
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Hola!
47
+ test_files: []