ric 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.yml +3 -1
- data/Manifest +1 -0
- data/README.md +5 -2
- data/VERSION +1 -1
- data/init.rb +0 -0
- data/lib/ric.rb +1 -9
- data/lib/ric/colors.rb +34 -52
- data/lib/ric/debug.rb +8 -4
- data/ric.gemspec +2 -2
- metadata +4 -4
data/HISTORY.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# would like to have this in YML format :)
|
2
|
+
2011-01-24 v0.11.1:
|
3
|
+
- 'trying to better link ric/debug, I hope God wants its the good one!!'
|
2
4
|
2011-01-24 v0.11.0:
|
3
|
-
|
5
|
+
- Moved 'riclib' to 'ric' in github!
|
4
6
|
2011-01-24 v0.10.7:
|
5
7
|
- Added Ric::Debug with deb and debug_on (and merged)
|
6
8
|
2011-01-16 v0.10.1:
|
data/Manifest
CHANGED
data/README.md
CHANGED
@@ -25,8 +25,11 @@ To use Ric in a Rails 3 application:
|
|
25
25
|
|
26
26
|
* [Riccardo Carlesso](http://github.com/palladius) ([website](http://www.palladius.it/))
|
27
27
|
* A few other projects:
|
28
|
-
|
29
|
-
|
28
|
+
|
29
|
+
- [Septober](http://septober.heroku.com/)
|
30
|
+
|
31
|
+
- [Addressbook](http://ricaddressbook.heroku.com/)
|
32
|
+
|
30
33
|
## Copyright & License
|
31
34
|
|
32
35
|
Ric is Copyright (c) 2010-11 [Riccardo Carlesso](http://www.palladius.it/), and is released under GPLv3 license.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.1
|
data/init.rb
CHANGED
File without changes
|
data/lib/ric.rb
CHANGED
@@ -1,18 +1,10 @@
|
|
1
1
|
|
2
2
|
# Riccardo New Stuff
|
3
3
|
require 'ric/colors'
|
4
|
+
require 'ric/debug'
|
4
5
|
require 'ric/html'
|
5
6
|
require 'ric/zibaldone'
|
6
7
|
|
7
|
-
# riccardo Old SVN repository...
|
8
|
-
# require 'ruby_classes/strings'
|
9
|
-
|
10
|
-
#if ActiveRecord::Base.respond_to?(:add_acts_as_carlesso_module)
|
11
|
-
# require 'rails/acts_as_carlesso'
|
12
|
-
# ActiveRecord::Base.send :include, Rails::ActsAsCarlesso
|
13
|
-
#end
|
14
|
-
|
15
|
-
#puts "Ric: lib/riccardo_includes.rb Test Welcome to Riccardo Carlesso first gem :)"
|
16
8
|
module Ric
|
17
9
|
#include Ric::Colors
|
18
10
|
|
data/lib/ric/colors.rb
CHANGED
@@ -1,7 +1,40 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
|
2
3
|
|
3
|
-
|
4
|
+
###################################################################################################################
|
5
|
+
# COLORS LIBRARY
|
6
|
+
=begin
|
7
|
+
Somewhere I took this for good terminal colors:
|
4
8
|
|
9
|
+
colour_codes = {
|
10
|
+
'black': '\033[0;30m',
|
11
|
+
'red': '\033[0;31m',
|
12
|
+
'green': '\033[0;32m',
|
13
|
+
'yellow': '\033[0;33m',
|
14
|
+
'blue': '\033[0;34m',
|
15
|
+
'magenta': '\033[0;35m',
|
16
|
+
'cyan': '\033[0;36m',
|
17
|
+
'white': '\033[0;37m',
|
18
|
+
'darkgray': '\033[1;30m',
|
19
|
+
'br-red': '\033[1;31m',
|
20
|
+
'br-green': '\033[1;32m',
|
21
|
+
'br-yellow': '\033[1;33m',
|
22
|
+
'br-blue': '\033[1;34m',
|
23
|
+
'br-magenta': '\033[1;35m',
|
24
|
+
'br-cyan': '\033[1;36m',
|
25
|
+
'br-white': '\033[1;37m',
|
26
|
+
'ul-black': '\033[4;30m',
|
27
|
+
'ul-red': '\033[4;31m',
|
28
|
+
'ul-green': '\033[4;32m',
|
29
|
+
'ul-yellow': '\033[4;33m',
|
30
|
+
'ul-blue': '\033[4;34m',
|
31
|
+
'ul-magenta': '\033[4;35m',
|
32
|
+
'ul-cyan': '\033[4;36m',
|
33
|
+
'ul-white': '\033[4;37m',
|
34
|
+
'default': '\033[0m'
|
35
|
+
}
|
36
|
+
=end
|
37
|
+
|
5
38
|
module Ric
|
6
39
|
module Colors
|
7
40
|
$version = 'Ric::Colors::v1.0.5'
|
@@ -218,57 +251,6 @@ module Ric
|
|
218
251
|
end
|
219
252
|
|
220
253
|
|
221
|
-
###################################################################################################################
|
222
|
-
# COLORS LIBRARY
|
223
|
-
=begin
|
224
|
-
nero) shift; echo -en "\033[0;30m$*\033[0m\n" ;;
|
225
|
-
rossone) shift; echo -en "\033[0;31m$*\033[0m\n" ;;
|
226
|
-
verdone) shift; echo -en "\033[0;32m$*\033[0m\n" ;;
|
227
|
-
marrone) shift; echo -en "\033[0;33m$*\033[0m\n" ;;
|
228
|
-
bluino) shift; echo -en "\033[0;34m$*\033[0m\n" ;;
|
229
|
-
porpora) shift; echo -en "\033[0;35m$*\033[0m\n" ;;
|
230
|
-
ciano) shift; echo -en "\033[0;36m$*\033[0m\n" ;;
|
231
|
-
grigino) shift; echo -en "\033[0;37m$*\033[0m\n" ;;
|
232
|
-
|
233
|
-
grigione) shift; echo -en "\033[1;30m$*\033[0m\n" ;;
|
234
|
-
rosso) shift; echo -en "\033[1;31m$*\033[0m\n" ;;
|
235
|
-
verde) shift; echo -en "\033[1;32m$*\033[0m\n" ;;
|
236
|
-
giallo) shift; echo -en "\033[1;33m$*\033[0m\n" ;;
|
237
|
-
blu) shift; echo -en "\033[1;34m$*\033[0m\n" ;;
|
238
|
-
viola) shift; echo -en "\033[1;35m$*\033[0m\n" ;;
|
239
|
-
azzurro) shift; echo -en "\033[1;36m$*\033[0m\n" ;;
|
240
|
-
bianco) shift; echo -en "\033[1;37m$*\033[0m\n" ;;
|
241
|
-
|
242
|
-
arancio) shift; echo -en "\033[5;31m$*\033[0m\n" ;;
|
243
|
-
|
244
|
-
colour_codes = {
|
245
|
-
'black': '\033[0;30m',
|
246
|
-
'red': '\033[0;31m',
|
247
|
-
'green': '\033[0;32m',
|
248
|
-
'yellow': '\033[0;33m',
|
249
|
-
'blue': '\033[0;34m',
|
250
|
-
'magenta': '\033[0;35m',
|
251
|
-
'cyan': '\033[0;36m',
|
252
|
-
'white': '\033[0;37m',
|
253
|
-
'darkgray': '\033[1;30m',
|
254
|
-
'br-red': '\033[1;31m',
|
255
|
-
'br-green': '\033[1;32m',
|
256
|
-
'br-yellow': '\033[1;33m',
|
257
|
-
'br-blue': '\033[1;34m',
|
258
|
-
'br-magenta': '\033[1;35m',
|
259
|
-
'br-cyan': '\033[1;36m',
|
260
|
-
'br-white': '\033[1;37m',
|
261
|
-
'ul-black': '\033[4;30m',
|
262
|
-
'ul-red': '\033[4;31m',
|
263
|
-
'ul-green': '\033[4;32m',
|
264
|
-
'ul-yellow': '\033[4;33m',
|
265
|
-
'ul-blue': '\033[4;34m',
|
266
|
-
'ul-magenta': '\033[4;35m',
|
267
|
-
'ul-cyan': '\033[4;36m',
|
268
|
-
'ul-white': '\033[4;37m',
|
269
|
-
'default': '\033[0m'
|
270
|
-
}
|
271
|
-
=end
|
272
254
|
|
273
255
|
class RicColor < String
|
274
256
|
attr :color
|
data/lib/ric/debug.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
|
2
|
-
## #!/usr/bin/env ruby
|
3
|
-
|
4
|
-
# $Id: ric_colors.rb 5438 2010-12-16 15:06:29Z rcarlesso $
|
5
|
-
|
6
2
|
module Ric
|
7
3
|
module Debug
|
8
4
|
# $DEBUG
|
5
|
+
$ric_debug_module = 'yes it was loaded'
|
9
6
|
|
10
7
|
def debug_on(comment='Debug Activated (some lazy guys didnt provide a description :P)')
|
11
8
|
$DEBUG = true
|
@@ -14,6 +11,13 @@ module Ric
|
|
14
11
|
def deb(str)
|
15
12
|
puts "#DEB# #{str}" if $DEBUG
|
16
13
|
end
|
14
|
+
|
15
|
+
class RicDebug
|
16
|
+
def self.help
|
17
|
+
puts 'TODO RicDebug. This is experimental, u shouldnt use this at all!'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
17
21
|
|
18
22
|
end # /module Colors
|
19
23
|
end # /module Ric
|
data/ric.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
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.1"
|
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"]
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
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", "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", "ric.gemspec", "sbin/reboot.rb", "sbin/ric_reboot.rb", "var/www/index.html"]
|
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: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 0.11.
|
9
|
+
- 1
|
10
|
+
version: 0.11.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Riccardo Carlesso
|
@@ -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
|
71
72
|
- sbin/reboot.rb
|
72
73
|
- sbin/ric_reboot.rb
|
73
74
|
- var/www/index.html
|
74
|
-
- ric.gemspec
|
75
75
|
has_rdoc: true
|
76
76
|
homepage: http://github.com/palladius/riclib
|
77
77
|
licenses: []
|