storazzo 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: a433e4e528abbf38896947399fedcd9c1076a4eeb8d7acd1a7d327fc5dbd8ab3
4
- data.tar.gz: 3030b75d7ea029c88c9bf238a94c71fdcd839ef1ba1dc710cd9e99e0554a4429
3
+ metadata.gz: 2104959f979d81e93afba43a3487ef3fa2750bb2122fc3e0d9eebf62b02cd483
4
+ data.tar.gz: 38b969cecbdcc6238f26684c52cc06217e4c1603f9b9cd2bfa6e1fcf1d2ad17a
5
5
  SHA512:
6
- metadata.gz: f84d349840017c769c637526d043f92f20a8b634623fb779dca711cb662ffe53a28f4f18379374a473c23598df6958dcb7a98c007f5c57e282edbc6e9d8c87f3
7
- data.tar.gz: f903a4c7bdc2706b6b108554df21f91dbc617b1fa9c04815e917d52b27ea61daede61a194ba0642ef9e01938e814180471b25104a8673b3a3002ccce45870aba
6
+ metadata.gz: 065243d722ee11269fa97dd12b41041233fe4d0bb8bd25e8d570c65d560213c7ac02dbe7c6695a55e208db046048e17600e48e3dfba8730426aa9db2bb090454
7
+ data.tar.gz: c0a6e3096a6d4b98d2bfdab33d3c97e30032b5f0d2d23a757d725a7eb9ed7719b3186321fd917a365dc6efbf45383255cbf3482b4e5440e9ab832c2af245227c
@@ -0,0 +1,19 @@
1
+ # TODO
2
+
3
+ # class Storazzo::Colors
4
+
5
+ # def deb(s); puts "#DEB #{s}" if $DEBUG; end
6
+ # # colors 16
7
+ # def gray(s) "\033[1;30m#{s}\033[0m" ; end
8
+ # def green(s) "\033[1;32m#{s}\033[0m" ; end
9
+ # def red(s) "\033[1;31m#{s}\033[0m" ; end
10
+ # def yellow(s) "\033[1;33m#{s}\033[0m" ; end
11
+ # def blue(s) "\033[1;34m#{s}\033[0m" ; end
12
+ # def purple(s) "\033[1;35m#{s}\033[0m" ; end
13
+ # def azure(s) "\033[1;36m#{s}\033[0m" ; end
14
+ # def white(s) "\033[1;37m#{s}\033[0m" ; end
15
+
16
+ # # colors 64k
17
+ # def orange(s) "\033[38;5;208m#{s}\033[0m" ; end
18
+
19
+ # end
@@ -0,0 +1,17 @@
1
+ # todo remove
2
+ class Storazzo::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
data/lib/storazzo.rb CHANGED
@@ -1,8 +1,21 @@
1
1
  # copied from https://guides.rubygems.org/make-your-own-gem/#introduction
2
2
 
3
+ #require 'storazzo/colors'
4
+
5
+ module StorazzoMod
6
+ VERSION = File.read('./VERSION').chomp # "10.0.0"
7
+ #require 'storazzo/translator'
8
+
9
+ def latest_version
10
+ "1.2"
11
+ end
12
+ end
13
+
3
14
  class Storazzo
4
15
  # version 1.2
5
16
  def self.hi
6
- puts "Hello storazzo!"
17
+ puts "Hello from Storazzo v#{StorazzoMod::VERSION rescue :ERROR}!"
7
18
  end
8
- end
19
+ end
20
+
21
+ require 'storazzo/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storazzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riccardo Carlesso
@@ -17,6 +17,8 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/storazzo.rb
20
+ - lib/storazzo/colors.rb
21
+ - lib/storazzo/translator.rb
20
22
  homepage: https://rubygems.org/gems/storazzo
21
23
  licenses:
22
24
  - MIT