ric 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.yml +2 -0
- data/Manifest +0 -1
- data/README.md +5 -4
- data/VERSION +1 -1
- data/lib/ric/debug.rb +18 -0
- data/ric.gemspec +3 -3
- metadata +5 -5
data/HISTORY.yml
CHANGED
data/Manifest
CHANGED
data/README.md
CHANGED
@@ -4,14 +4,15 @@
|
|
4
4
|
|
5
5
|
Welcome to ''ric'' (formerly known as 'riclib').
|
6
6
|
|
7
|
-
This is
|
7
|
+
This is my first public repository with icons code and stuff.
|
8
8
|
|
9
9
|
Modern life is RUBYish, so am I ;-)
|
10
10
|
|
11
|
-
<font color='red'>Notice</font>.
|
11
|
+
<font color='red'>Notice</font>.
|
12
|
+
On 24jan2011 I renamed the `riclib` repository to `ric`, to harmonize with GEM name. Updating VERSION soon as well.
|
12
13
|
|
13
|
-
* [ric](http://rubygems.org/gems/ric)
|
14
|
-
*
|
14
|
+
* [ric](http://rubygems.org/gems/ric) as a gem.
|
15
|
+
* [Ric](http://github.com/palladius/ric) on github.
|
15
16
|
|
16
17
|
## Installation
|
17
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.2
|
data/lib/ric/debug.rb
CHANGED
@@ -12,6 +12,24 @@ module Ric
|
|
12
12
|
puts "#DEB# #{str}" if $DEBUG
|
13
13
|
end
|
14
14
|
|
15
|
+
# shouldnt work right now yet..
|
16
|
+
def debug2(s, opts = {} )
|
17
|
+
out = opts.fetch(:out, $stdout)
|
18
|
+
tag = opts.fetch(:tag, '_DFLT_')
|
19
|
+
really_write = opts.fetch(:really_write, true) # you can prevent ANY debug setting this to false
|
20
|
+
write_always = opts.fetch(:write_always, false)
|
21
|
+
|
22
|
+
raise "ERROR: ':tags' must be an array in debug(), maybe you meant to use :tag?" if ( opts[:tags] && opts[:tags].class != Array )
|
23
|
+
final_str = "#RDeb#{write_always ? '!' : ''}[#{opts[:tag] || '-'}] #{s}"
|
24
|
+
final_str = "\033[1;30m" +final_str + "\033[0m" if opts.fetch(:coloured_debug, true) # color by gray by default
|
25
|
+
if (debug_tags_enabled? ) # tags
|
26
|
+
puts( final_str ) if debug_tag_include?( opts )
|
27
|
+
else # normal behaviour: if NOT tag
|
28
|
+
puts( final_str ) if ((really_write && $DEBUG) || write_always) && ! opts[:tag]
|
29
|
+
end
|
30
|
+
end #/debug2()
|
31
|
+
alias :deb :debug
|
32
|
+
|
15
33
|
class RicDebug
|
16
34
|
def self.help
|
17
35
|
puts 'TODO RicDebug. This is experimental, u shouldnt use this at all!'
|
data/ric.gemspec
CHANGED
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ric}
|
5
|
-
s.version = "0.11.
|
5
|
+
s.version = "0.11.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Riccardo Carlesso"]
|
9
|
-
s.date = %q{2011-01-
|
9
|
+
s.date = %q{2011-01-30}
|
10
10
|
s.description = %q{My first gem with various utilities (colors and tests now).
|
11
11
|
My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
|
12
12
|
with hence!)}
|
13
13
|
s.email = %q{['p','ll','diusbonton].join('a') @ gmail.com}
|
14
14
|
s.executables = ["itunes", "ric", "riclib-test"]
|
15
15
|
s.extra_rdoc_files = ["LICENSE", "README.md", "TODO", "bin/itunes", "bin/ric", "bin/riclib-test", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb"]
|
16
|
-
s.files = ["HISTORY.yml", "LICENSE", "Manifest", "README.md", "Rakefile", "TODO", "VERSION", "bin/itunes", "bin/ric", "bin/riclib-test", "init.rb", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb", "rails/init.rb", "
|
16
|
+
s.files = ["HISTORY.yml", "LICENSE", "Manifest", "README.md", "Rakefile", "TODO", "VERSION", "bin/itunes", "bin/ric", "bin/riclib-test", "init.rb", "lib/rails/acts_as_carlesso.rb", "lib/rails/helpers/rails_helper.rb", "lib/ric.rb", "lib/ric/colors.rb", "lib/ric/debug.rb", "lib/ric/html.rb", "lib/ric/zibaldone.rb", "lib/ruby_classes/strings.rb", "lib/tmp/uniquify.rb", "rails/init.rb", "sbin/reboot.rb", "sbin/ric_reboot.rb", "var/www/index.html", "ric.gemspec"]
|
17
17
|
s.homepage = %q{http://github.com/palladius/riclib}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ric", "--main", "README.md"]
|
19
19
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 2
|
10
|
+
version: 0.11.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Riccardo Carlesso
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-30 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -68,10 +68,10 @@ files:
|
|
68
68
|
- lib/ruby_classes/strings.rb
|
69
69
|
- lib/tmp/uniquify.rb
|
70
70
|
- rails/init.rb
|
71
|
-
- ric.gemspec
|
72
71
|
- sbin/reboot.rb
|
73
72
|
- sbin/ric_reboot.rb
|
74
73
|
- var/www/index.html
|
74
|
+
- ric.gemspec
|
75
75
|
has_rdoc: true
|
76
76
|
homepage: http://github.com/palladius/riclib
|
77
77
|
licenses: []
|