czesc 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Czesc
2
2
 
3
- TODO: Write a gem description
3
+ Basic hello (czesc) gem
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,8 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ $ Czesc.hi
22
+ $ Czesc.hi(:spanish)
22
23
 
23
24
  ## Contributing
24
25
 
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'czesc'
4
+ puts Czesc.hi(ARGV[0])
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["jdawda@yahoo.com"]
7
7
  gem.description = "A simple hello world (czesc) gem."
8
8
  gem.summary = "Czesc!"
9
- gem.homepage = 'http://rubygems.org/gems/czesc'
9
+ gem.homepage = 'https://github.com/jdawda/czesc'
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -14,4 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "czesc"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Czesc::VERSION
17
+ gem.executables = ['czesc']
17
18
  end
@@ -0,0 +1,18 @@
1
+ class Czesc::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when :polish
9
+ "Czesc!"
10
+ when :spanish
11
+ "Hola!"
12
+ when :english
13
+ "Hello!"
14
+ else
15
+ "Hey!?"
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Czesc
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: czesc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,8 @@ dependencies: []
14
14
  description: A simple hello world (czesc) gem.
15
15
  email:
16
16
  - jdawda@yahoo.com
17
- executables: []
17
+ executables:
18
+ - czesc
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
@@ -25,8 +26,11 @@ files:
25
26
  - Rakefile
26
27
  - czesc.gemspec
27
28
  - lib/czesc.rb
29
+ - lib/czesc/translator.rb
28
30
  - lib/czesc/version.rb
29
- homepage: http://rubygems.org/gems/czesc
31
+ - !binary |-
32
+ YmluL2N6ZXNj
33
+ homepage: https://github.com/jdawda/czesc
30
34
  licenses: []
31
35
  post_install_message:
32
36
  rdoc_options: []