miniric 0.3 → 0.6

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: eb72678204be2683c825b4df00d406554a391ab59b66d1669845444b754335b1
4
- data.tar.gz: c928d7bffadc4c1b9321beb7c9d91b35fd3e2f432db27bcbe3aa0c6f0aad6fda
3
+ metadata.gz: fe69fd7b848f44211bcce2a2c0bac63d5ea39c011b6234e11687a9dd42d1cd40
4
+ data.tar.gz: 5284f58014f7bc17586dd4cd262b8f5eb8caab8e64c6a05cef28264396c4ebd1
5
5
  SHA512:
6
- metadata.gz: 51546e7f64d26f4ac4d218ed480c2f0aab9eb0029840e90ee8b10b88695e812d200e6ff450136ba2cb740005c05ccefa91a78b73af7b7c298cb3fcdf24dadaf3
7
- data.tar.gz: 8adcf70d54c7418c1525ce85544b1040cb9f59f22651f49a2cb48b0615b7c33ab717c7c379e5a3d46cb04241a22b976ac3109f1642937d457fe4243bab199b6e
6
+ metadata.gz: 33ca8ccd331f16010de5dcfe5c04a287cbed02d2d1a44c2f58dadc129ef62e695f1427a6cfa1df3329b7c444e88a980e5f0c3cb043158f932cda8d2387024778
7
+ data.tar.gz: 35c1f90967f8e5be5f130fc51c6c7b42a7e278d253cae97cc300243acc00c8ee1293e80d47f8c09aaa75f31e5de851aabeae8cff42631dff0b07ee4e07c46e12
data/bin/camerlengize ADDED
File without changes
data/bin/camerlengo ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'miniric'
4
+ #puts Miniric.hi(ARGV[0])
5
+ puts Miniric.camerlengo()
data/lib/miniric.rb CHANGED
@@ -1,15 +1,29 @@
1
1
  class Miniric
2
+ VERSION = File.expand_path(File.dirname(__FILE__) + '../VERSION') rescue $!
2
3
 
3
4
  def self.hi
4
5
  puts "Hello world!"
5
6
  end
6
7
 
7
8
  # yellow
8
- def camerlengize(str)
9
- "\033[1;33m#{str}\033[0m"
9
+ def self.camerlengize(str=:no_word_given)
10
+ "\033[1;33m🪶#{str}\033[0m"
10
11
  end
11
- def camerlengo()
12
+ def self.camerlengo()
12
13
  camerlengize(:palladius)
13
14
  end
14
15
 
16
+ def self.about()
17
+ [
18
+ "Welcome to MiniRic gem. ",
19
+ "My version is: #{VERSION rescue $!}",
20
+ "Try out Miniric.camerlengo() or even camerlengo binary!",
21
+ "TODO(ricc): add a Module so you just include it and you have yellow, ... available.",
22
+ ].join('\n')
23
+ end
24
+
25
+ def self.version()
26
+ return VERSION
27
+ end
28
+
15
29
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miniric
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riccardo Carlesso
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-03-08 00:00:00.000000000 Z
@@ -21,13 +21,15 @@ executables: []
21
21
  extensions: []
22
22
  extra_rdoc_files: []
23
23
  files:
24
+ - bin/camerlengize
25
+ - bin/camerlengo
24
26
  - lib/hola.rb
25
27
  - lib/miniric.rb
26
28
  homepage: https://rubygems.org/gems/miniric
27
29
  licenses:
28
30
  - MIT
29
31
  metadata: {}
30
- post_install_message:
32
+ post_install_message:
31
33
  rdoc_options: []
32
34
  require_paths:
33
35
  - lib
@@ -43,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
45
  version: '0'
44
46
  requirements: []
45
47
  rubygems_version: 3.1.4
46
- signing_key:
48
+ signing_key:
47
49
  specification_version: 4
48
50
  summary: MiniRic - Colors as a Service!
49
51
  test_files: []