ric 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +27 -0
- data/README +18 -0
- data/Rakefile +19 -0
- data/TODO +2 -0
- data/bin/ric +5 -0
- data/docs/journal.txt +17 -0
- data/images/desktop/linux-lightbulb.png +0 -0
- data/images/icons/database/db-commit.png +0 -0
- data/images/icons/development/grave.png +0 -0
- data/images/icons/development/iFuck.png +0 -0
- data/images/icons/development/ontology.png +0 -0
- data/images/icons/development/pointers.png +0 -0
- data/images/icons/development/svn.png +0 -0
- data/images/icons/development/tools.png +0 -0
- data/images/icons/disks/Ric 120GB.ico +0 -0
- data/images/icons/linux/ldap.png +0 -0
- data/images/icons/privacy.png +0 -0
- data/images/icons/social/facebook_64.png +0 -0
- data/images/icons/social/linkedin_64.png +0 -0
- data/images/icons/social/rss_64.png +0 -0
- data/images/icons/social/twitter_64.png +0 -0
- data/images/icons/tux/scientific.png +0 -0
- data/lib/helpers/rails_helper.rb +31 -0
- data/lib/ric/html.rb +5 -0
- data/lib/ric_colors.rb +301 -0
- data/lib/riclib.rb +30 -0
- data/ric.gemspec +33 -0
- data/var/www/index.html +5 -0
- metadata +109 -0
data/Manifest
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
Manifest
|
2
|
+
README
|
3
|
+
Rakefile
|
4
|
+
TODO
|
5
|
+
bin/ric
|
6
|
+
docs/journal.txt
|
7
|
+
images/desktop/linux-lightbulb.png
|
8
|
+
images/icons/database/db-commit.png
|
9
|
+
images/icons/development/grave.png
|
10
|
+
images/icons/development/iFuck.png
|
11
|
+
images/icons/development/ontology.png
|
12
|
+
images/icons/development/pointers.png
|
13
|
+
images/icons/development/svn.png
|
14
|
+
images/icons/development/tools.png
|
15
|
+
images/icons/disks/Ric 120GB.ico
|
16
|
+
images/icons/linux/ldap.png
|
17
|
+
images/icons/privacy.png
|
18
|
+
images/icons/social/facebook_64.png
|
19
|
+
images/icons/social/linkedin_64.png
|
20
|
+
images/icons/social/rss_64.png
|
21
|
+
images/icons/social/twitter_64.png
|
22
|
+
images/icons/tux/scientific.png
|
23
|
+
lib/helpers/rails_helper.rb
|
24
|
+
lib/ric/html.rb
|
25
|
+
lib/ric_colors.rb
|
26
|
+
lib/riclib.rb
|
27
|
+
var/www/index.html
|
data/README
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
= Synopsis =
|
3
|
+
This is my public repository with icons code and stuff.
|
4
|
+
|
5
|
+
Modern life is RUBYish, so am I ;-)
|
6
|
+
|
7
|
+
‘At the moment, this is a public place where I store shared resources such as icons and stuff.. Lets try to keep it well organized, for DHH sake!
|
8
|
+
|
9
|
+
|
10
|
+
== Usage ==
|
11
|
+
|
12
|
+
gem install riclib
|
13
|
+
|
14
|
+
Some code to take advantage of my script (are you sure?!?)
|
15
|
+
|
16
|
+
require 'riclib'
|
17
|
+
puts(red('This is a red sentence'))
|
18
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rake'
|
4
|
+
require 'echoe'
|
5
|
+
|
6
|
+
# from here: http://buzaz.com/index.php/2010/01/03/how-to-build-a-ruby-gem/
|
7
|
+
|
8
|
+
Echoe.new('ric', '0.9.0') do |p|
|
9
|
+
p.description = "My firstgem with various utilities (colors and tests now).
|
10
|
+
My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
|
11
|
+
with hence!)"
|
12
|
+
p.url = "http://github.com/palladius/riclib"
|
13
|
+
p.author = "Riccardo Carlesso"
|
14
|
+
p.email = "['p','ll','diusbonton].join('a') @ gmail.com"
|
15
|
+
p.ignore_pattern = ["tmp/*", "script/*",
|
16
|
+
"images/*/*/*jpg", "images/*/*jpg", "*.jpg" , 'images',
|
17
|
+
"private/*"]
|
18
|
+
p.development_dependencies = []
|
19
|
+
end
|
data/bin/ric
ADDED
data/docs/journal.txt
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
= GEMS HOWTO =
|
3
|
+
|
4
|
+
Copied from: http://buzaz.com/index.php/2010/01/03/how-to-build-a-ruby-gem/
|
5
|
+
|
6
|
+
== develop ==
|
7
|
+
|
8
|
+
- edit Rakefile
|
9
|
+
- rake -T # for a list
|
10
|
+
- rake manifest ; rake build_gemspec
|
11
|
+
|
12
|
+
== deploy ==
|
13
|
+
|
14
|
+
- gem push pkg/riclib-VER.gem
|
15
|
+
- # gem install riclib
|
16
|
+
|
17
|
+
# Its pushed on gemcutter, yay!
|
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
|
@@ -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
ADDED
@@ -0,0 +1,301 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# $Id: ric_colors.rb 5438 2010-12-16 15:06:29Z rcarlesso $
|
4
|
+
|
5
|
+
module RicColors
|
6
|
+
|
7
|
+
$colors_active = true # DEFAULT: active
|
8
|
+
$color_db = [
|
9
|
+
%w{ normal black dkblack red green brown blue purple cyan lgray gray lred lgreen yellow lblue violet azure white orange orangey magenta lyellow pink gold } , # english word
|
10
|
+
%w{ normale nero nerone rosso verde marrone blu porpora ciano grigino grigione rossino verdino giallo lblu viola azzurro bianco arancio arancino magenta giallino rosa oro } , # italian word
|
11
|
+
%w{ 0;37 0;30 38;5;236 0;31 1;32 38;5;94 0;34 1;35 0;36 0;37 1;30 1;31 1;32 1;33 1;34 1;35 1;36 1;37 38;5;208 38;5;222 0;35 38;5;229 38;5;203 38;5;214 } ,
|
12
|
+
%w{ 000 000 222 f00 0f0 00f ff0 0ff aaa 888 f00 afa ff0 eebb00 } # HEX RGB
|
13
|
+
]
|
14
|
+
# rifallo, e' piu' manutenibile...
|
15
|
+
$color_db2 = [
|
16
|
+
# [ ARR_COLORS , ]
|
17
|
+
%w{ black nero 0;30 000 },
|
18
|
+
%w{ dkblack nerone 38;5;236 222 },
|
19
|
+
]
|
20
|
+
|
21
|
+
# alias viola = fuxia
|
22
|
+
|
23
|
+
def colors_on
|
24
|
+
set_color :on #(true)
|
25
|
+
end
|
26
|
+
def colors_off
|
27
|
+
set_color :off #(false)
|
28
|
+
end
|
29
|
+
|
30
|
+
# TODO support a block (solo dentro l blocco fai il nocolor)
|
31
|
+
def set_color(bool)
|
32
|
+
b = bool ? true : false
|
33
|
+
deb "Setting color mode to: #{yellow bool} --> #{white b.to_s}"
|
34
|
+
b = false if bool.to_s.match( /(off|false)/ )
|
35
|
+
deb "Setting color mode to: #{yellow bool} --> #{white b.to_s}"
|
36
|
+
$colors_active = bool
|
37
|
+
end
|
38
|
+
alias :set_colors :set_color
|
39
|
+
|
40
|
+
def bash_color(n, str )
|
41
|
+
"\033[#{n}m#{str}\033[0m"
|
42
|
+
end
|
43
|
+
|
44
|
+
def pcolor(color_name='red',str='COLOR: please define a string')
|
45
|
+
if $colors_active
|
46
|
+
puts colora(color_name,str)
|
47
|
+
else
|
48
|
+
puts str
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def visible_color(s)
|
53
|
+
!( s.match(/nero|black/) )
|
54
|
+
end
|
55
|
+
|
56
|
+
def colora(color_name='greenpurpureo',str='colora_test_str2', opts={})
|
57
|
+
color_name = color_name.to_s
|
58
|
+
return str unless $colors_active
|
59
|
+
return str if opts[:nocolor]
|
60
|
+
if ix = $color_db[0].index(color_name)
|
61
|
+
bash_color($color_db[2][ix],str)
|
62
|
+
elsif ix = $color_db[1].index(color_name)
|
63
|
+
bash_color($color_db[2][ix],str)
|
64
|
+
else
|
65
|
+
debug "Sorry, unknown color '#{color_name}'. Available ones are: #{$color_db[0].join(',') }"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
alias :p :puts
|
70
|
+
|
71
|
+
def color_test(with_italian = false)
|
72
|
+
i=0
|
73
|
+
palette = $color_db[0].map { |c|
|
74
|
+
inglese = c
|
75
|
+
italiano = $color_db[1][i]
|
76
|
+
i = i+1
|
77
|
+
colora( c, with_italian ? [c,italiano].join(','): c )
|
78
|
+
}
|
79
|
+
puts( (1..257).map{|c| bash_color( "38;5;#{c}", c) }.join(', ') )
|
80
|
+
puts( palette.sort.join(' '))
|
81
|
+
_flag_nations.each{|nation|
|
82
|
+
puts "- Flag sample: " + flag("ThisIsAFlaggedPhraseBasedOnNation:#{nation}",nation)
|
83
|
+
}
|
84
|
+
end
|
85
|
+
alias :colortest :color_test
|
86
|
+
|
87
|
+
# carattere per carattere...
|
88
|
+
def rainbow(str)
|
89
|
+
i=0
|
90
|
+
ret = ''
|
91
|
+
str=str.to_s
|
92
|
+
while(i < str.length)
|
93
|
+
ch = str[i]
|
94
|
+
palette = $color_db[0][i % $color_db[0].length ]
|
95
|
+
ret << (colora(palette,str[i,1]))
|
96
|
+
i += 1
|
97
|
+
end
|
98
|
+
ret
|
99
|
+
end
|
100
|
+
alias :arcobaleno :rainbow
|
101
|
+
|
102
|
+
#assert(color_db[0].length == color_db[1].length,"English and italian colors must be the same cardinality!!!")
|
103
|
+
# TODO ripeti con , $color_db[1]
|
104
|
+
( $color_db[0] + $color_db[1] ).each { |colorname|
|
105
|
+
dyn_func = "
|
106
|
+
|
107
|
+
def get_#{colorname} (str='colors.rb: get_COLOR dynamically generated ENGLISH COLOR ')
|
108
|
+
return colora('#{colorname}',str)
|
109
|
+
end
|
110
|
+
|
111
|
+
def #{colorname} (str='colors.rb: COLOR dynamically generated ENGLISH COLOR TO BE COPIED TO GET')
|
112
|
+
return colora('#{colorname}',str) rescue
|
113
|
+
\"Errore #{colorname} con stringa '#"+"{str}' e classe #"+"{str.class} \"
|
114
|
+
end
|
115
|
+
|
116
|
+
def p#{colorname} (str='colors.rb: pCOLOR dynamically generated ENGLISH COLOR TO BE DESTROYED')
|
117
|
+
puts colora('#{colorname}',str)
|
118
|
+
end
|
119
|
+
|
120
|
+
"
|
121
|
+
#debug dyn_func
|
122
|
+
eval dyn_func unless method_defined?( "get_#{colorname}".to_sym )
|
123
|
+
#remove_method
|
124
|
+
}
|
125
|
+
|
126
|
+
def okno(bool,str=nil)
|
127
|
+
str ||= bool
|
128
|
+
bool = (bool == 0 ) if (bool.class == Fixnum) # so 0 is green, others are red :)
|
129
|
+
return bool ? green(str) : red(str)
|
130
|
+
end
|
131
|
+
|
132
|
+
def colors_flag(nation = 'it')
|
133
|
+
%w{ red white green }
|
134
|
+
end
|
135
|
+
|
136
|
+
# "\e[0;31m42\e[0m" --> "42"
|
137
|
+
# \e[38;5;28mXXXX -> "XXX"
|
138
|
+
def scolora(str)
|
139
|
+
str.to_s.
|
140
|
+
gsub(/\e\[1;33m/,''). # colori 16
|
141
|
+
gsub(/\e\[0m/,''). # colori 64k
|
142
|
+
gsub(/\e\[38;\d+;\d+m/,'') # end color
|
143
|
+
end
|
144
|
+
alias :uncolor :scolora
|
145
|
+
|
146
|
+
# italia: green white red
|
147
|
+
# ireland: green white orange
|
148
|
+
# france: green white orange
|
149
|
+
# UK: blue white red white blue
|
150
|
+
# google:
|
151
|
+
def _flag_nations
|
152
|
+
%w{cc it de ie fr es en goo br pt}
|
153
|
+
end
|
154
|
+
def flag(str, flag = '')
|
155
|
+
case flag.to_s
|
156
|
+
when 'br','pt'
|
157
|
+
return flag3(str, 'green', 'gold', 'green')
|
158
|
+
when 'cc'
|
159
|
+
return flag3(str, 'red', 'white', 'red') # switzerland
|
160
|
+
when 'de'
|
161
|
+
return flag3(str, 'dkblack', 'red', 'gold')
|
162
|
+
when 'ie','gd','ga'
|
163
|
+
return flag3(str, 'green', 'white', 'orange')# non so la differenza, sembrano entrambi gaelici!
|
164
|
+
when 'en'
|
165
|
+
return flag3(str, 'red', 'blue', 'red') # red white blue white red white blue white ... and again
|
166
|
+
when 'es'
|
167
|
+
return flag3(str, 'yellow', 'red', 'yellow')
|
168
|
+
when 'fr'
|
169
|
+
return flag3(str, 'blue', 'white', 'red')
|
170
|
+
when 'goo','google'
|
171
|
+
return flag_n(str, %w{ blue red yellow blue green red } )
|
172
|
+
when 'it'
|
173
|
+
return flag3(str, 'green', 'white', 'red')
|
174
|
+
when ''
|
175
|
+
return flag3(str + " (missing flag1, try 'it')")
|
176
|
+
end
|
177
|
+
return flag3(str + " (missing flag2, try 'it')")
|
178
|
+
end
|
179
|
+
|
180
|
+
# for simmetry padding
|
181
|
+
# m = length / 3
|
182
|
+
# 6: 2 2 2 m m m REST 0
|
183
|
+
# 5: 2 1 2 m+1 m m+1 2
|
184
|
+
# 4: 1 2 1 m m+1 m 1
|
185
|
+
def flag3(str,left_color='brown',middle_color='pink',right_color='red')
|
186
|
+
m = str.length / 3
|
187
|
+
remainder = str.length % 3
|
188
|
+
central_length = remainder == 1 ? m+1 : m
|
189
|
+
lateral_length = remainder == 2 ? m+1 : m
|
190
|
+
colora( left_color, str[ 0 .. lateral_length-1] ) +
|
191
|
+
colora( middle_color, str[ lateral_length .. lateral_length+central_length-1] ) +
|
192
|
+
colora( right_color, str[ lateral_length+central_length .. str.length ] )
|
193
|
+
end
|
194
|
+
|
195
|
+
def flag_n(str,colors)
|
196
|
+
size = colors.size
|
197
|
+
#debug_on :flag6
|
198
|
+
ret = ""
|
199
|
+
m = str.length / size # chunk size
|
200
|
+
deb m
|
201
|
+
(0 .. size-1).each{|i|
|
202
|
+
#deb "Passo #{i}"
|
203
|
+
chunk = str[m*(i),m*(i+1)]
|
204
|
+
#deb chunk
|
205
|
+
ret += colora(colors[i], chunk )
|
206
|
+
}
|
207
|
+
#deb str.split(/....../)
|
208
|
+
#remainder = str.length % 6
|
209
|
+
return ret + " (bacatino)"
|
210
|
+
# central_length = remainder == 1 ? m+1 : m
|
211
|
+
# lateral_length = remainder == 2 ? m+1 : m
|
212
|
+
# colora( left_color, str[ 0 .. lateral_length-1] ) +
|
213
|
+
# colora( middle_color, str[ lateral_length .. lateral_length+central_length-1] ) +
|
214
|
+
# colora( right_color, str[ lateral_length+central_length .. str.length ] )
|
215
|
+
# return ret
|
216
|
+
end
|
217
|
+
|
218
|
+
|
219
|
+
###################################################################################################################
|
220
|
+
# COLORS LIBRARY
|
221
|
+
=begin
|
222
|
+
nero) shift; echo -en "\033[0;30m$*\033[0m\n" ;;
|
223
|
+
rossone) shift; echo -en "\033[0;31m$*\033[0m\n" ;;
|
224
|
+
verdone) shift; echo -en "\033[0;32m$*\033[0m\n" ;;
|
225
|
+
marrone) shift; echo -en "\033[0;33m$*\033[0m\n" ;;
|
226
|
+
bluino) shift; echo -en "\033[0;34m$*\033[0m\n" ;;
|
227
|
+
porpora) shift; echo -en "\033[0;35m$*\033[0m\n" ;;
|
228
|
+
ciano) shift; echo -en "\033[0;36m$*\033[0m\n" ;;
|
229
|
+
grigino) shift; echo -en "\033[0;37m$*\033[0m\n" ;;
|
230
|
+
|
231
|
+
grigione) shift; echo -en "\033[1;30m$*\033[0m\n" ;;
|
232
|
+
rosso) shift; echo -en "\033[1;31m$*\033[0m\n" ;;
|
233
|
+
verde) shift; echo -en "\033[1;32m$*\033[0m\n" ;;
|
234
|
+
giallo) shift; echo -en "\033[1;33m$*\033[0m\n" ;;
|
235
|
+
blu) shift; echo -en "\033[1;34m$*\033[0m\n" ;;
|
236
|
+
viola) shift; echo -en "\033[1;35m$*\033[0m\n" ;;
|
237
|
+
azzurro) shift; echo -en "\033[1;36m$*\033[0m\n" ;;
|
238
|
+
bianco) shift; echo -en "\033[1;37m$*\033[0m\n" ;;
|
239
|
+
|
240
|
+
arancio) shift; echo -en "\033[5;31m$*\033[0m\n" ;;
|
241
|
+
|
242
|
+
colour_codes = {
|
243
|
+
'black': '\033[0;30m',
|
244
|
+
'red': '\033[0;31m',
|
245
|
+
'green': '\033[0;32m',
|
246
|
+
'yellow': '\033[0;33m',
|
247
|
+
'blue': '\033[0;34m',
|
248
|
+
'magenta': '\033[0;35m',
|
249
|
+
'cyan': '\033[0;36m',
|
250
|
+
'white': '\033[0;37m',
|
251
|
+
'darkgray': '\033[1;30m',
|
252
|
+
'br-red': '\033[1;31m',
|
253
|
+
'br-green': '\033[1;32m',
|
254
|
+
'br-yellow': '\033[1;33m',
|
255
|
+
'br-blue': '\033[1;34m',
|
256
|
+
'br-magenta': '\033[1;35m',
|
257
|
+
'br-cyan': '\033[1;36m',
|
258
|
+
'br-white': '\033[1;37m',
|
259
|
+
'ul-black': '\033[4;30m',
|
260
|
+
'ul-red': '\033[4;31m',
|
261
|
+
'ul-green': '\033[4;32m',
|
262
|
+
'ul-yellow': '\033[4;33m',
|
263
|
+
'ul-blue': '\033[4;34m',
|
264
|
+
'ul-magenta': '\033[4;35m',
|
265
|
+
'ul-cyan': '\033[4;36m',
|
266
|
+
'ul-white': '\033[4;37m',
|
267
|
+
'default': '\033[0m'
|
268
|
+
}
|
269
|
+
=end
|
270
|
+
|
271
|
+
class RicColor < String
|
272
|
+
attr :color
|
273
|
+
|
274
|
+
def initialize(mycol)
|
275
|
+
super
|
276
|
+
@color = mycol
|
277
|
+
end
|
278
|
+
|
279
|
+
def to_s
|
280
|
+
'RicColor: ' + self.send(@color)
|
281
|
+
end
|
282
|
+
|
283
|
+
def to_html
|
284
|
+
"<font color=\"#{@color}\" >#{self}</font>"
|
285
|
+
end
|
286
|
+
end #/Class RicColor
|
287
|
+
|
288
|
+
def terminal
|
289
|
+
ENV['TERM_PROGRAM'] || 'suppongo_ssh'
|
290
|
+
end
|
291
|
+
|
292
|
+
def daltonic_terminal?()
|
293
|
+
deb( "Terminal is: " + terminal )
|
294
|
+
return !! terminal.to_s.match( /Apple_Terminal/ )
|
295
|
+
end
|
296
|
+
|
297
|
+
end # /module
|
298
|
+
|
299
|
+
include RicColors
|
300
|
+
|
301
|
+
#$colors_active = ! RicColor.daltonic_terminal? # DEFAULT: active
|
data/lib/riclib.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
# RICLIB!
|
3
|
+
|
4
|
+
module Riclib
|
5
|
+
require File.expand_path('./ric_colors.rb', File.dirname( __FILE__) )
|
6
|
+
#include RicColors
|
7
|
+
|
8
|
+
def self.say_hello
|
9
|
+
puts 'Riclib: hello world'
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
def self.help
|
14
|
+
puts "Riclib: This is Riccardo library (my first gem!)"
|
15
|
+
end
|
16
|
+
|
17
|
+
def version
|
18
|
+
"Should be 0.9.0 -- but this is NOT dry! ;)"
|
19
|
+
end
|
20
|
+
|
21
|
+
def green(s)
|
22
|
+
"TODO_VERDE(#{s})"
|
23
|
+
end
|
24
|
+
|
25
|
+
def load_libs
|
26
|
+
green(:ok)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
data/ric.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{ric}
|
5
|
+
s.version = "0.9.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Riccardo Carlesso"]
|
9
|
+
s.date = %q{2011-01-16}
|
10
|
+
s.default_executable = %q{ric}
|
11
|
+
s.description = %q{My firstgem with various utilities (colors and tests now).
|
12
|
+
My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
|
13
|
+
with hence!)}
|
14
|
+
s.email = %q{['p','ll','diusbonton].join('a') @ gmail.com}
|
15
|
+
s.executables = ["ric"]
|
16
|
+
s.extra_rdoc_files = ["README", "TODO", "bin/ric", "lib/helpers/rails_helper.rb", "lib/ric/html.rb", "lib/ric_colors.rb", "lib/riclib.rb"]
|
17
|
+
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", "ric.gemspec"]
|
18
|
+
s.homepage = %q{http://github.com/palladius/riclib}
|
19
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ric", "--main", "README"]
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
s.rubyforge_project = %q{ric}
|
22
|
+
s.rubygems_version = %q{1.4.2}
|
23
|
+
s.summary = %q{My firstgem with various utilities (colors and tests now). My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence with hence!)}
|
24
|
+
|
25
|
+
if s.respond_to? :specification_version then
|
26
|
+
s.specification_version = 3
|
27
|
+
|
28
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
29
|
+
else
|
30
|
+
end
|
31
|
+
else
|
32
|
+
end
|
33
|
+
end
|
data/var/www/index.html
ADDED
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ric
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 59
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 0.9.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Riccardo Carlesso
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-01-16 00:00:00 +00:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: |-
|
23
|
+
My firstgem with various utilities (colors and tests now).
|
24
|
+
My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
|
25
|
+
with hence!)
|
26
|
+
email: "['p','ll','diusbonton].join('a') @ gmail.com"
|
27
|
+
executables:
|
28
|
+
- ric
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README
|
33
|
+
- TODO
|
34
|
+
- bin/ric
|
35
|
+
- lib/helpers/rails_helper.rb
|
36
|
+
- lib/ric/html.rb
|
37
|
+
- lib/ric_colors.rb
|
38
|
+
- lib/riclib.rb
|
39
|
+
files:
|
40
|
+
- Manifest
|
41
|
+
- README
|
42
|
+
- Rakefile
|
43
|
+
- TODO
|
44
|
+
- bin/ric
|
45
|
+
- docs/journal.txt
|
46
|
+
- images/desktop/linux-lightbulb.png
|
47
|
+
- images/icons/database/db-commit.png
|
48
|
+
- images/icons/development/grave.png
|
49
|
+
- images/icons/development/iFuck.png
|
50
|
+
- images/icons/development/ontology.png
|
51
|
+
- images/icons/development/pointers.png
|
52
|
+
- images/icons/development/svn.png
|
53
|
+
- images/icons/development/tools.png
|
54
|
+
- images/icons/disks/Ric 120GB.ico
|
55
|
+
- images/icons/linux/ldap.png
|
56
|
+
- images/icons/privacy.png
|
57
|
+
- images/icons/social/facebook_64.png
|
58
|
+
- images/icons/social/linkedin_64.png
|
59
|
+
- images/icons/social/rss_64.png
|
60
|
+
- images/icons/social/twitter_64.png
|
61
|
+
- images/icons/tux/scientific.png
|
62
|
+
- lib/helpers/rails_helper.rb
|
63
|
+
- lib/ric/html.rb
|
64
|
+
- lib/ric_colors.rb
|
65
|
+
- lib/riclib.rb
|
66
|
+
- var/www/index.html
|
67
|
+
- ric.gemspec
|
68
|
+
has_rdoc: true
|
69
|
+
homepage: http://github.com/palladius/riclib
|
70
|
+
licenses: []
|
71
|
+
|
72
|
+
post_install_message:
|
73
|
+
rdoc_options:
|
74
|
+
- --line-numbers
|
75
|
+
- --inline-source
|
76
|
+
- --title
|
77
|
+
- Ric
|
78
|
+
- --main
|
79
|
+
- README
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 11
|
97
|
+
segments:
|
98
|
+
- 1
|
99
|
+
- 2
|
100
|
+
version: "1.2"
|
101
|
+
requirements: []
|
102
|
+
|
103
|
+
rubyforge_project: ric
|
104
|
+
rubygems_version: 1.4.2
|
105
|
+
signing_key:
|
106
|
+
specification_version: 3
|
107
|
+
summary: My firstgem with various utilities (colors and tests now). My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence with hence!)
|
108
|
+
test_files: []
|
109
|
+
|