riclib 0.0.5 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +3 -33
- data/Rakefile +5 -3
- data/docs/journal.txt +11 -1
- data/images/icons/tux/{tux scientific.png → scientific.png} +0 -0
- data/lib/helpers/rails_helper.rb +31 -0
- data/lib/ric/html.rb +5 -0
- data/lib/ric_colors.rb +1 -2
- data/lib/riclib.rb +13 -4
- data/riclib.gemspec +5 -5
- metadata +11 -40
- data/images/desktop/LodossWar.jpg +0 -0
- data/images/icons/chicche/joystick boobs.jpg +0 -0
- data/images/icons/linux/got root.jpg +0 -0
- data/images/icons/social/facebook painted.jpg +0 -0
- data/images/photos/Ireland/Dublin TCD tower.jpg +0 -0
- data/images/photos/Ireland/Giants causeways.jpg +0 -0
- data/images/photos/Ireland/I love Dublin.jpg +0 -0
- data/images/photos/Piano Yellow Rose.jpg +0 -0
- data/images/photos/Riccardo/Riccardo 1.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Bridge Dublin.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Cambridge.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Celtic Cross.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Developer in Dublin.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Fabio GuinnessDay.jpg +0 -0
- data/images/photos/Riccardo/Riccardo GuinessDay.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Highlander.jpg +0 -0
- data/images/photos/Riccardo/Riccardo Irish Breakfast.jpg +0 -0
- data/images/photos/Riccardo/Riccardo OK pizza.jpg +0 -0
- data/images/photos/Riccardo/Riccardo OnBedWithPenguin.jpg +0 -0
- data/images/photos/Riccardo/Riccardo U2 CrokePark.jpg +0 -0
- data/images/photos/Riccardo/Riccardo closeup by Karaoke.jpg +0 -0
- data/images/photos/Riccardo/Riccardo elegant at LABS.jpg +0 -0
- data/images/photos/Riccardo/Riccardo elegant smiling.jpg +0 -0
- data/images/photos/Riccardo/Riccardo enjoying new iMac.jpg +0 -0
- data/images/photos/Riccardo/Riccardo makes pizza.jpg +0 -0
- data/images/photos/Riccardo/Riccardo purple1.jpg +0 -0
- data/images/photos/Riccardo/Riccardo purple2.jpg +0 -0
- data/images/photos/Riccardo/Riccardo sunglasses IFSC.jpg +0 -0
- data/images/photos/Riccardo/Riccardo with Delgado.jpg +0 -0
- data/images/photos/Riccardo/Riccardo yellow with Mac.jpg +0 -0
- data/images/photos/ricarrabbiato.jpg +0 -0
- data/lib/ric_html.rb +0 -5
data/Manifest
CHANGED
@@ -4,9 +4,7 @@ Rakefile
|
|
4
4
|
TODO
|
5
5
|
bin/ric
|
6
6
|
docs/journal.txt
|
7
|
-
images/desktop/LodossWar.jpg
|
8
7
|
images/desktop/linux-lightbulb.png
|
9
|
-
images/icons/chicche/joystick boobs.jpg
|
10
8
|
images/icons/database/db-commit.png
|
11
9
|
images/icons/development/grave.png
|
12
10
|
images/icons/development/iFuck.png
|
@@ -15,43 +13,15 @@ images/icons/development/pointers.png
|
|
15
13
|
images/icons/development/svn.png
|
16
14
|
images/icons/development/tools.png
|
17
15
|
images/icons/disks/Ric 120GB.ico
|
18
|
-
images/icons/linux/got root.jpg
|
19
16
|
images/icons/linux/ldap.png
|
20
17
|
images/icons/privacy.png
|
21
|
-
images/icons/social/facebook painted.jpg
|
22
18
|
images/icons/social/facebook_64.png
|
23
19
|
images/icons/social/linkedin_64.png
|
24
20
|
images/icons/social/rss_64.png
|
25
21
|
images/icons/social/twitter_64.png
|
26
|
-
images/icons/tux/
|
27
|
-
|
28
|
-
|
29
|
-
images/photos/Ireland/I love Dublin.jpg
|
30
|
-
images/photos/Piano Yellow Rose.jpg
|
31
|
-
images/photos/Riccardo/Riccardo 1.jpg
|
32
|
-
images/photos/Riccardo/Riccardo Bridge Dublin.jpg
|
33
|
-
images/photos/Riccardo/Riccardo Cambridge.jpg
|
34
|
-
images/photos/Riccardo/Riccardo Celtic Cross.jpg
|
35
|
-
images/photos/Riccardo/Riccardo Developer in Dublin.jpg
|
36
|
-
images/photos/Riccardo/Riccardo Fabio GuinnessDay.jpg
|
37
|
-
images/photos/Riccardo/Riccardo GuinessDay.jpg
|
38
|
-
images/photos/Riccardo/Riccardo Highlander.jpg
|
39
|
-
images/photos/Riccardo/Riccardo Irish Breakfast.jpg
|
40
|
-
images/photos/Riccardo/Riccardo OK pizza.jpg
|
41
|
-
images/photos/Riccardo/Riccardo OnBedWithPenguin.jpg
|
42
|
-
images/photos/Riccardo/Riccardo U2 CrokePark.jpg
|
43
|
-
images/photos/Riccardo/Riccardo closeup by Karaoke.jpg
|
44
|
-
images/photos/Riccardo/Riccardo elegant at LABS.jpg
|
45
|
-
images/photos/Riccardo/Riccardo elegant smiling.jpg
|
46
|
-
images/photos/Riccardo/Riccardo enjoying new iMac.jpg
|
47
|
-
images/photos/Riccardo/Riccardo makes pizza.jpg
|
48
|
-
images/photos/Riccardo/Riccardo purple1.jpg
|
49
|
-
images/photos/Riccardo/Riccardo purple2.jpg
|
50
|
-
images/photos/Riccardo/Riccardo sunglasses IFSC.jpg
|
51
|
-
images/photos/Riccardo/Riccardo with Delgado.jpg
|
52
|
-
images/photos/Riccardo/Riccardo yellow with Mac.jpg
|
53
|
-
images/photos/ricarrabbiato.jpg
|
22
|
+
images/icons/tux/scientific.png
|
23
|
+
lib/helpers/rails_helper.rb
|
24
|
+
lib/ric/html.rb
|
54
25
|
lib/ric_colors.rb
|
55
|
-
lib/ric_html.rb
|
56
26
|
lib/riclib.rb
|
57
27
|
var/www/index.html
|
data/Rakefile
CHANGED
@@ -5,11 +5,13 @@ require 'echoe'
|
|
5
5
|
|
6
6
|
# from here: http://buzaz.com/index.php/2010/01/03/how-to-build-a-ruby-gem/
|
7
7
|
|
8
|
-
Echoe.new('riclib', '0.
|
9
|
-
p.description = "My first Riccardo gem
|
8
|
+
Echoe.new('riclib', '0.1.1') do |p|
|
9
|
+
p.description = "My first Riccardo gem with various utilities (colors and tests now)"
|
10
10
|
p.url = "http://github.com/palladius/riclib"
|
11
11
|
p.author = "Riccardo Carlesso"
|
12
12
|
p.email = "['p','ll','diusbonton].join('a') @ gmail.com"
|
13
|
-
p.ignore_pattern = ["tmp/*", "script/*",
|
13
|
+
p.ignore_pattern = ["tmp/*", "script/*",
|
14
|
+
"images/*/*/*jpg", "images/*/*jpg", "*.jpg" , 'images',
|
15
|
+
"private/*"]
|
14
16
|
p.development_dependencies = []
|
15
17
|
end
|
data/docs/journal.txt
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
|
2
2
|
= GEMS HOWTO =
|
3
3
|
|
4
|
-
|
4
|
+
== develop ==
|
5
|
+
|
6
|
+
- edit Rakefile
|
5
7
|
- rake -T # for a list
|
8
|
+
- rake manifest ; rake build_gemspec
|
9
|
+
|
10
|
+
== deploy ==
|
11
|
+
|
12
|
+
- gem push pkg/riclib-VER.gem
|
13
|
+
- # gem install riclib
|
14
|
+
|
15
|
+
# Its pushed on gemcutter, yay!
|
File without changes
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module RailsHelper
|
2
|
+
|
3
|
+
def anything_to_html(son,opts={})
|
4
|
+
ret = '(RailsHelper :: anything_to_html)' if opts.fetch(:verbose,true) # TODO change dflt to false
|
5
|
+
if opts != {}
|
6
|
+
ret << "(Options: " + anything_to_html(opts) + ")"
|
7
|
+
end
|
8
|
+
if son.class == Array
|
9
|
+
ret << "<ul class='subtopic' >"
|
10
|
+
son.each{|subtopic|
|
11
|
+
ret << content_tag(:li, anything_to_html(subtopic).html_safe ) # '- ' +
|
12
|
+
}
|
13
|
+
ret << "</ul>"
|
14
|
+
elsif son.class == Hash
|
15
|
+
#ret << hash_to_html(son)
|
16
|
+
ret += '<ul class="maintopic" >'
|
17
|
+
son.each{ |k,val|
|
18
|
+
ret << content_tag(:li, ( anything_to_html(k) + ' => ' + anything_to_html(val) ).html_safe )
|
19
|
+
}
|
20
|
+
ret << "</ul>"
|
21
|
+
elsif son.class == String
|
22
|
+
ret << "<font color='navy' class='ricclass_string' >#{son}</font>"
|
23
|
+
elsif son.class == Symbol
|
24
|
+
ret << "<i><font color='gray' class='ricclass_symbol' >:#{son}</font></i>"
|
25
|
+
else
|
26
|
+
ret << "(Unknown Class: #{son.class}) <b>#{son}</b>"
|
27
|
+
end
|
28
|
+
ret.html_safe
|
29
|
+
end
|
30
|
+
|
31
|
+
end #/RailsHelper
|
data/lib/ric_colors.rb
CHANGED
@@ -294,9 +294,8 @@ end
|
|
294
294
|
return !! terminal.to_s.match( /Apple_Terminal/ )
|
295
295
|
end
|
296
296
|
|
297
|
-
|
298
297
|
end # /module
|
299
298
|
|
300
299
|
include RicColors
|
301
300
|
|
302
|
-
|
301
|
+
#$colors_active = ! RicColor.daltonic_terminal? # DEFAULT: active
|
data/lib/riclib.rb
CHANGED
@@ -2,23 +2,32 @@
|
|
2
2
|
# RICLIB!
|
3
3
|
|
4
4
|
module Riclib
|
5
|
+
require File.expand_path('./ric_colors.rb', File.dirname( __FILE__) )
|
6
|
+
#include RicColors
|
5
7
|
|
6
8
|
def self.say_hello
|
7
|
-
puts 'hello world'
|
9
|
+
puts 'Riclib: hello world'
|
8
10
|
end
|
9
11
|
|
10
12
|
def amaranto(str)
|
11
|
-
|
13
|
+
"Riclib::Amaranto: '#{str}'"
|
12
14
|
end
|
13
15
|
|
14
16
|
def self.help
|
15
|
-
puts "This is
|
17
|
+
puts "Riclib: This is Riccardo library (my first gem!)"
|
16
18
|
end
|
17
19
|
|
18
20
|
def version
|
19
|
-
"
|
21
|
+
"Should be 0.1.1 -- but this is NOT dry! ;)"
|
20
22
|
end
|
21
23
|
|
24
|
+
def green(s)
|
25
|
+
"TODO_VERDE(#{s})"
|
26
|
+
end
|
27
|
+
|
28
|
+
def load_libs
|
29
|
+
green(:ok)
|
30
|
+
end
|
22
31
|
end
|
23
32
|
|
24
33
|
|
data/riclib.gemspec
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{riclib}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.1.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"]
|
9
9
|
s.date = %q{2011-01-16}
|
10
10
|
s.default_executable = %q{ric}
|
11
|
-
s.description = %q{My first Riccardo gem
|
11
|
+
s.description = %q{My first Riccardo gem with various utilities (colors and tests now)}
|
12
12
|
s.email = %q{['p','ll','diusbonton].join('a') @ gmail.com}
|
13
13
|
s.executables = ["ric"]
|
14
|
-
s.extra_rdoc_files = ["README", "TODO", "bin/ric", "lib/
|
15
|
-
s.files = ["Manifest", "README", "Rakefile", "TODO", "bin/ric", "docs/journal.txt", "images/desktop/
|
14
|
+
s.extra_rdoc_files = ["README", "TODO", "bin/ric", "lib/helpers/rails_helper.rb", "lib/ric/html.rb", "lib/ric_colors.rb", "lib/riclib.rb"]
|
15
|
+
s.files = ["Manifest", "README", "Rakefile", "TODO", "bin/ric", "docs/journal.txt", "images/desktop/linux-lightbulb.png", "images/icons/database/db-commit.png", "images/icons/development/grave.png", "images/icons/development/iFuck.png", "images/icons/development/ontology.png", "images/icons/development/pointers.png", "images/icons/development/svn.png", "images/icons/development/tools.png", "images/icons/disks/Ric 120GB.ico", "images/icons/linux/ldap.png", "images/icons/privacy.png", "images/icons/social/facebook_64.png", "images/icons/social/linkedin_64.png", "images/icons/social/rss_64.png", "images/icons/social/twitter_64.png", "images/icons/tux/scientific.png", "lib/helpers/rails_helper.rb", "lib/ric/html.rb", "lib/ric_colors.rb", "lib/riclib.rb", "var/www/index.html", "riclib.gemspec"]
|
16
16
|
s.homepage = %q{http://github.com/palladius/riclib}
|
17
17
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Riclib", "--main", "README"]
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.rubyforge_project = %q{riclib}
|
20
20
|
s.rubygems_version = %q{1.4.2}
|
21
|
-
s.summary = %q{My first Riccardo gem
|
21
|
+
s.summary = %q{My first Riccardo gem with various utilities (colors and tests now)}
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
24
24
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riclib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Riccardo Carlesso
|
@@ -19,7 +19,7 @@ date: 2011-01-16 00:00:00 +00:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: My first Riccardo gem
|
22
|
+
description: My first Riccardo gem with various utilities (colors and tests now)
|
23
23
|
email: "['p','ll','diusbonton].join('a') @ gmail.com"
|
24
24
|
executables:
|
25
25
|
- ric
|
@@ -29,8 +29,9 @@ extra_rdoc_files:
|
|
29
29
|
- README
|
30
30
|
- TODO
|
31
31
|
- bin/ric
|
32
|
+
- lib/helpers/rails_helper.rb
|
33
|
+
- lib/ric/html.rb
|
32
34
|
- lib/ric_colors.rb
|
33
|
-
- lib/ric_html.rb
|
34
35
|
- lib/riclib.rb
|
35
36
|
files:
|
36
37
|
- Manifest
|
@@ -39,9 +40,7 @@ files:
|
|
39
40
|
- TODO
|
40
41
|
- bin/ric
|
41
42
|
- docs/journal.txt
|
42
|
-
- images/desktop/LodossWar.jpg
|
43
43
|
- images/desktop/linux-lightbulb.png
|
44
|
-
- images/icons/chicche/joystick boobs.jpg
|
45
44
|
- images/icons/database/db-commit.png
|
46
45
|
- images/icons/development/grave.png
|
47
46
|
- images/icons/development/iFuck.png
|
@@ -50,44 +49,16 @@ files:
|
|
50
49
|
- images/icons/development/svn.png
|
51
50
|
- images/icons/development/tools.png
|
52
51
|
- images/icons/disks/Ric 120GB.ico
|
53
|
-
- images/icons/linux/got root.jpg
|
54
52
|
- images/icons/linux/ldap.png
|
55
53
|
- images/icons/privacy.png
|
56
|
-
- images/icons/social/facebook painted.jpg
|
57
54
|
- images/icons/social/facebook_64.png
|
58
55
|
- images/icons/social/linkedin_64.png
|
59
56
|
- images/icons/social/rss_64.png
|
60
57
|
- images/icons/social/twitter_64.png
|
61
|
-
- images/icons/tux/
|
62
|
-
-
|
63
|
-
-
|
64
|
-
- images/photos/Ireland/I love Dublin.jpg
|
65
|
-
- images/photos/Piano Yellow Rose.jpg
|
66
|
-
- images/photos/Riccardo/Riccardo 1.jpg
|
67
|
-
- images/photos/Riccardo/Riccardo Bridge Dublin.jpg
|
68
|
-
- images/photos/Riccardo/Riccardo Cambridge.jpg
|
69
|
-
- images/photos/Riccardo/Riccardo Celtic Cross.jpg
|
70
|
-
- images/photos/Riccardo/Riccardo Developer in Dublin.jpg
|
71
|
-
- images/photos/Riccardo/Riccardo Fabio GuinnessDay.jpg
|
72
|
-
- images/photos/Riccardo/Riccardo GuinessDay.jpg
|
73
|
-
- images/photos/Riccardo/Riccardo Highlander.jpg
|
74
|
-
- images/photos/Riccardo/Riccardo Irish Breakfast.jpg
|
75
|
-
- images/photos/Riccardo/Riccardo OK pizza.jpg
|
76
|
-
- images/photos/Riccardo/Riccardo OnBedWithPenguin.jpg
|
77
|
-
- images/photos/Riccardo/Riccardo U2 CrokePark.jpg
|
78
|
-
- images/photos/Riccardo/Riccardo closeup by Karaoke.jpg
|
79
|
-
- images/photos/Riccardo/Riccardo elegant at LABS.jpg
|
80
|
-
- images/photos/Riccardo/Riccardo elegant smiling.jpg
|
81
|
-
- images/photos/Riccardo/Riccardo enjoying new iMac.jpg
|
82
|
-
- images/photos/Riccardo/Riccardo makes pizza.jpg
|
83
|
-
- images/photos/Riccardo/Riccardo purple1.jpg
|
84
|
-
- images/photos/Riccardo/Riccardo purple2.jpg
|
85
|
-
- images/photos/Riccardo/Riccardo sunglasses IFSC.jpg
|
86
|
-
- images/photos/Riccardo/Riccardo with Delgado.jpg
|
87
|
-
- images/photos/Riccardo/Riccardo yellow with Mac.jpg
|
88
|
-
- images/photos/ricarrabbiato.jpg
|
58
|
+
- images/icons/tux/scientific.png
|
59
|
+
- lib/helpers/rails_helper.rb
|
60
|
+
- lib/ric/html.rb
|
89
61
|
- lib/ric_colors.rb
|
90
|
-
- lib/ric_html.rb
|
91
62
|
- lib/riclib.rb
|
92
63
|
- var/www/index.html
|
93
64
|
- riclib.gemspec
|
@@ -130,6 +101,6 @@ rubyforge_project: riclib
|
|
130
101
|
rubygems_version: 1.4.2
|
131
102
|
signing_key:
|
132
103
|
specification_version: 3
|
133
|
-
summary: My first Riccardo gem
|
104
|
+
summary: My first Riccardo gem with various utilities (colors and tests now)
|
134
105
|
test_files: []
|
135
106
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|