storazzo 0.0.3 → 0.0.5

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: 63792a40e1f0416183c8522847f67b89514b5f5a64c9d7532fd1887de690ea68
4
- data.tar.gz: c859febfb0a88b7cbe160828c350e31e715ebac5af6901715b5d94fcd247ead6
3
+ metadata.gz: 3b6f11122ebdc242a695b25dee97fc6d09d2059df95f7318b42679a66ccfd9c3
4
+ data.tar.gz: '045047399e27b7b9bf55ae5230babb9443dd5903adbabcdf562f16eec1e1b258'
5
5
  SHA512:
6
- metadata.gz: 9fc27b51ba17693dbbbc030383f3c5ae5c17655c3e9bd78a53d997cfd33964f59769e5ea1873e8040a18059f4b01089ea99b5e2e84284bb5cf403f873197edfe
7
- data.tar.gz: 69d1ebeef668df51940f913b7ef0f8c47bf4ef584a0856cf9c9d0b78ad9fc17b9f6d679305d2fba24c1d555c0a4e827ddc3561cae2e2ae9b204b40d61eb7078b
6
+ metadata.gz: 618bfb7e3664ae8fe0f8429e1c8527aec76bdfd5c37f4cc1693ebfbc41ba94bd0235c13738479f3f2ea31da593d1483ca2c25881edd3be1a8757f2cf3b892fbf
7
+ data.tar.gz: 37e515b93523cc8b0b31791152edff586d3a8dfd5490b7b889b0595dbea31ac2a69a2b4b7cdd2c37187fbe545b133921333185ea1a1e48136aead9fc073df49a
@@ -1,10 +1,12 @@
1
- # TODO
1
+ # Use EXTEND vs INCLUDE and magically the Class will inherit instead of instance. Magical! :)
2
+ # http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
2
3
 
3
4
  module Storazzo::Colors
4
5
  # class Storazzo::Colors
5
6
  PREPEND_ME = "[Storazzo::Colors] "
6
7
 
7
- def deb(s); puts "#DEB #{s}" if $DEBUG; end
8
+ def deb(s); puts "#DEB #{gray(s)}" if $DEBUG; end
9
+
8
10
  # colors 16
9
11
  def yellow(s) "\033[1;33m#{s}\033[0m" ; end
10
12
  def gray(s) "\033[1;30m#{s}\033[0m" ; end
@@ -20,15 +22,15 @@ module Storazzo::Colors
20
22
 
21
23
  # i dont undertstand why i need self :/
22
24
  # SELF version because I'm just stupid or lazy or both.
23
- def self.yellow(s) "#{PREPEND_ME}\033[1;33m#{s}\033[0m" ; end
24
- def self.green(s) "#{PREPEND_ME}\033[1;32m#{s}\033[0m" ; end
25
- def self.gray(s) "#{PREPEND_ME}\033[1;30m#{s}\033[0m" ; end
26
- def self.green(s) "#{PREPEND_ME}\033[1;32m#{s}\033[0m" ; end
27
- def self.red(s) "#{PREPEND_ME}\033[1;31m#{s}\033[0m" ; end
28
- def self.blue(s) "#{PREPEND_ME}\033[1;34m#{s}\033[0m" ; end
29
- def self.purple(s) "#{PREPEND_ME}\033[1;35m#{s}\033[0m" ; end
30
- def self.azure(s) "#{PREPEND_ME}\033[1;36m#{s}\033[0m" ; end
31
- def self.white(s) "#{PREPEND_ME}\033[1;37m#{s}\033[0m" ; end
25
+ # def self.yellow(s) "#{PREPEND_ME}\033[1;33m#{s}\033[0m" ; end
26
+ # def self.green(s) "#{PREPEND_ME}\033[1;32m#{s}\033[0m" ; end
27
+ # def self.gray(s) "#{PREPEND_ME}\033[1;30m#{s}\033[0m" ; end
28
+ # def self.green(s) "#{PREPEND_ME}\033[1;32m#{s}\033[0m" ; end
29
+ # def self.red(s) "#{PREPEND_ME}\033[1;31m#{s}\033[0m" ; end
30
+ # def self.blue(s) "#{PREPEND_ME}\033[1;34m#{s}\033[0m" ; end
31
+ # def self.purple(s) "#{PREPEND_ME}\033[1;35m#{s}\033[0m" ; end
32
+ # def self.azure(s) "#{PREPEND_ME}\033[1;36m#{s}\033[0m" ; end
33
+ # def self.white(s) "#{PREPEND_ME}\033[1;37m#{s}\033[0m" ; end
32
34
 
33
35
  # p<COLOR> Carlessian functions..
34
36
  def pwhite(s) puts(white(s)); end
data/lib/storazzo.rb CHANGED
@@ -21,16 +21,20 @@ class Storazzo
21
21
 
22
22
  def self.all_tests
23
23
  # include vs extend: https://stackoverflow.com/questions/15097929/ruby-module-require-and-include
24
+ # => http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
24
25
  #include Storazzo::Colors
25
26
  extend Storazzo::Colors
26
27
 
27
28
  pwhite "All tests BEGIN"
29
+ deb "Maybe debug is enabled?"
28
30
  #puts "This is Storazzo v#{StorazzoMod::VERSION}"
29
31
  hi
32
+ # This works with EXTEND..
30
33
  puts(yellow "Just YELLOW 0")
34
+ # This reqwuires a INCLUDE.
31
35
  #puts(Storazzo::Colors.yellow "Test YELLOW 1 self")
32
- puts(Colors.yellow "Test YELLOW 1 self")
33
- puts(Colors.green "Test YELLOW 2 ohne self")
36
+ #puts(Colors.yellow "Test YELLOW 1 self")
37
+ #puts(Colors.green "Test YELLOW 2 ohne self")
34
38
  pwhite "All tests END"
35
39
  #puts "All tests END"
36
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storazzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riccardo Carlesso
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-10 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem.. for now. Then... more!
14
14
  email: name dot surname at popular Google-owned Mail
@@ -23,7 +23,7 @@ homepage: https://rubygems.org/gems/storazzo
23
23
  licenses:
24
24
  - MIT
25
25
  metadata: {}
26
- post_install_message:
26
+ post_install_message:
27
27
  rdoc_options: []
28
28
  require_paths:
29
29
  - lib
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubygems_version: 3.1.4
42
- signing_key:
42
+ signing_key:
43
43
  specification_version: 4
44
44
  summary: storazzo is an amazing gem. Code is in https://github.com/palladius/storazzo
45
45
  test_files: []