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 CHANGED
@@ -1,4 +1,6 @@
1
1
  # would like to have this in YML format :)
2
+ 2011-01-24 v0.11.2:
3
+ - Added debug() alias
2
4
  2011-01-24 v0.11.1:
3
5
  - 'trying to better link ric/debug, I hope God wants its the good one!!'
4
6
  2011-01-24 v0.11.0:
data/Manifest CHANGED
@@ -19,7 +19,6 @@ lib/ric/zibaldone.rb
19
19
  lib/ruby_classes/strings.rb
20
20
  lib/tmp/uniquify.rb
21
21
  rails/init.rb
22
- ric.gemspec
23
22
  sbin/reboot.rb
24
23
  sbin/ric_reboot.rb
25
24
  var/www/index.html
data/README.md CHANGED
@@ -4,14 +4,15 @@
4
4
 
5
5
  Welcome to ''ric'' (formerly known as 'riclib').
6
6
 
7
- This is [my](http://www.palladius.it/) first public repository with icons code and stuff.
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>. On 24jan2011 I renamed the `riclib` repository to `ric`, to harmonize with GEM name. Updating VERSION soon as well.
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
- * <s>[Riclib](http://github.com/palladius/riclib)</s> (BROKEN!)
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
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.1"
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-24}
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", "ric.gemspec", "sbin/reboot.rb", "sbin/ric_reboot.rb", "var/www/index.html"]
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: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 1
10
- version: 0.11.1
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-24 00:00:00 +00:00
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: []