knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
biberu has joined #ruby
Nicmavr is now known as Guest32388
dr3w_ has joined #ruby
aufi has quit [Ping timeout: 276 seconds]
dr3w_ has quit [Client Quit]
lxsameer has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
apeiros has quit [Remote host closed the connection]
arkaros has quit [Ping timeout: 264 seconds]
mikhael_k33hl has joined #ruby
<mikhael_k33hl>
Is there an article/documentation for best practices pertaining model creation in Ruby?
arkaros has joined #ruby
andikr has joined #ruby
nertzy has joined #ruby
amar_ has joined #ruby
nima_m has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
DEac-_ has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
Fizzik has joined #ruby
nima_m has quit [Client Quit]
nima_m has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
taylorzr has quit [Ping timeout: 245 seconds]
za1b1tsu has quit [Ping timeout: 260 seconds]
clemens3_ has quit [Ping timeout: 255 seconds]
sysvalve has joined #ruby
quiqua has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
yohji has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
suukim has joined #ruby
claudiuinberlin has joined #ruby
conta has joined #ruby
clemens3_ has joined #ruby
Burgestrand has joined #ruby
tty has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
tvw has quit [Remote host closed the connection]
Fizzik has quit [Ping timeout: 276 seconds]
amar_ has quit [Remote host closed the connection]
Venomen has joined #ruby
za1b1tsu has joined #ruby
arkaros has quit [Ping timeout: 245 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
za1b1tsu has quit [Ping timeout: 264 seconds]
<Bish>
mikhael_k33hl: you need to be more specific when saying "model creation"
<Bish>
atleast for me
amar has joined #ruby
nowhere_man has joined #ruby
guille-moe has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
amar has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
lightstalker has quit [Ping timeout: 245 seconds]
contradictioned has joined #ruby
contradictioned has quit [Client Quit]
p4p0l0 has joined #ruby
Lyubo1 has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Quit: Closing time!]
schleppel has joined #ruby
drale2k_ has joined #ruby
Burgestrand has joined #ruby
Lyubo1 has joined #ruby
aufi has joined #ruby
lxsameer has joined #ruby
wontruefree has quit [Quit: bye]
arkaros has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 256 seconds]
Bish has quit [Quit: leaving]
drale2k_ has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
VladGh has joined #ruby
alem0lars has joined #ruby
crankharder has joined #ruby
shinnya has joined #ruby
VladGh_ has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
nima_m has quit [Quit: nima_m]
blackmesa has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
nima_m has joined #ruby
za1b1tsu has joined #ruby
ellcs has joined #ruby
dr3w_ has joined #ruby
faces has joined #ruby
nima_m has quit [Client Quit]
agent_white has quit [Quit: night]
nima_m has joined #ruby
desperek has joined #ruby
amar_ has joined #ruby
stairmast0r_ has joined #ruby
dionysus69 has joined #ruby
andikr has quit [Remote host closed the connection]
stairmast0r has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
amar_ has quit [Ping timeout: 268 seconds]
pskosinski has quit [Ping timeout: 276 seconds]
tty has joined #ruby
pskosinski has joined #ruby
tty has quit [Read error: Connection reset by peer]
tvw has joined #ruby
tty has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
nima_m has quit [Ping timeout: 256 seconds]
t0xik has quit [Quit: Connection closed for inactivity]
nowhere_man has joined #ruby
arkaros has quit [Ping timeout: 248 seconds]
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arkaros has joined #ruby
amar_ has joined #ruby
amar_ has quit [Read error: No route to host]
tty has quit [Read error: Connection reset by peer]
tty has joined #ruby
amar_ has joined #ruby
jamesaxl has quit [Ping timeout: 264 seconds]
BloopMonster has quit [Ping timeout: 260 seconds]
dhollin3 has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
tty has quit [Read error: Connection reset by peer]
tty has joined #ruby
Emmanuel_Chanel has joined #ruby
Beams has joined #ruby
amar_ has quit [Ping timeout: 255 seconds]
tty has quit [Read error: Connection reset by peer]
tty has joined #ruby
dhollinger has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
nigthw0lf has joined #ruby
tty has quit [Ping timeout: 256 seconds]
jokke1 has quit [Ping timeout: 260 seconds]
amar_ has joined #ruby
aufi has quit [Ping timeout: 248 seconds]
drale2k_ has joined #ruby
Fizzik has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
jokke1 has joined #ruby
alex`` has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
arne has joined #ruby
arne is now known as Bish
<Bish>
o/
blackmesa has joined #ruby
nowhere_man has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
suukim has quit [Quit: Konversation terminated!]
Fizzik has quit [Ping timeout: 268 seconds]
suukim has joined #ruby
Fizzik has joined #ruby
grr12314 has joined #ruby
alem0lars has joined #ruby
<grr12314>
hello. how do you guys usually use ruby on ubuntu? there are ruby-somthing-or-other packages in apt-get repos for things that are installed with gem install on other distros... but they are often lower versions.
<grr12314>
so is there a ppa or something that lets me use apt-get or should i just ignore apt-get and install everything with gem?
<grr12314>
and if i already mixed both, how to check which version is actually used?
Fizzik has quit [Ping timeout: 255 seconds]
<cdunklau>
grr12314: i'm still a babe-in-the-woods with ruby, but ISTM sudo gem install is something to be avoided
<elomatreb>
The most common way to use Ruby if you want to do development instead of just running some packaged ruby software is to install a local ruby environment
<grr12314>
if i dont "sudo" it complains about permissions
<grr12314>
i need this for running "compass", not really for doing ruby development
Tempesta has quit [Quit: See ya!]
<grr12314>
the ruby-compass package from apt-get repo pulls an old ruby-chunky-png version
<grr12314>
which turns out to be buggy
karapetyan has joined #ruby
<elomatreb>
You can install a one-off gem to your user directory with `gem install --user-install <gemname>`
<elomatreb>
If you want to use an executable provided a gem you may also need to adjust your PATH variable
<grr12314>
will user-installed chunky_png get used by the apt version of compass tho? or do i need to install the whole compass as --user-install?
<cdunklau>
or just symlink it somewhere
<cdunklau>
(somewhere inside PATH)
karuna has joined #ruby
arkaros has quit [Ping timeout: 260 seconds]
<elomatreb>
Global gems probably won't pick up the user-local version, but if you're installing locally anyway there's no good reason not to install the entire gem and its dependencies locally
<elomatreb>
If there are gems with native extensions you may need to install some build dependencies with apt though
Beams has quit [Quit: .]
<grr12314>
its really confusing. ok i gem install compass --user-install. but now it probably sees the global chunky_png and doesnt pull a local one
Beams has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
<grr12314>
hm. ok installing both compass and chunky_png seems to have worked. as in, at least the original bug i was fighting is gone. now compass throws some new errors at me though
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<grr12314>
ill keep digging
<elomatreb>
OS-packaged gems are often trouble, sadly
<grr12314>
"`extname': no implicit conversion of nil into String" is the new error :(
<grr12314>
maybe i have t ocompletely remove the apt-get version of compass...
<grr12314>
ugh.. nevermind, the original but is there too
<grr12314>
bug*
yohji has quit [Ping timeout: 248 seconds]
<elomatreb>
At a certain point the method I mentioned above becomes a sensible option
<elomatreb>
ruby-install + https://github.com/postmodern/chruby gets you a really comfortable setup, the only downside is that your ruby is not shared across users
Beams has quit [Quit: .]
<Bish>
did writing ~{a:3}
<Bish>
ever make sense in ruby?
<Bish>
or rather ~{:a=>3}
<elomatreb>
~ is unary binary (lol) NOT, which I think you can override
<grr12314>
"can't find header files for ruby at /usr/lib/ruby/include/ruby.h" do you know what package i need so i have those header files?
<Bish>
grr12314: ruby-dev if you're one some lolbuntu
<grr12314>
thank you
<Bish>
yw
<Bish>
elomatreb: no worries, the library doesn't do it anymore that way
<Bish>
i guess he figured it's a stupid idea
<elomatreb>
Yeah that's being a little too DSL-y IMO
<Bish>
espeicially ~:p looks od and the hash ones
<Bish>
it looks like htis by now
<Bish>
ds.filter { Sequel.~(:a,:b) }
<Bish>
which makes more sense
arkaros has joined #ruby
karapetyan has quit [Remote host closed the connection]
<elomatreb>
At that point you might as well spell out the not IMO
karapetyan has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
arkaros has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
nigthw0lf has quit [Remote host closed the connection]
nigthw0lf has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
Tempesta has joined #ruby
vonfry has joined #ruby
donofrio has joined #ruby
drale2k_ has joined #ruby
vonfry has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 265 seconds]
blackmesa1 has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
chmurifree is now known as chmuri
conta has quit [Quit: conta]
megamos has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
Fernando-Basso_ has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
ciscam has joined #ruby
Fernando-Basso_ has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
modin has joined #ruby
Fizzik_ has joined #ruby
Burgestrand has joined #ruby
BloopMonster has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
Fernando-Basso_ has joined #ruby
Fizzik_ has quit [Ping timeout: 276 seconds]
aufi has joined #ruby
andikr has joined #ruby
blackmesa1 has quit [Ping timeout: 256 seconds]
<Bish>
does ruby have blocks from day 1?
jottr has joined #ruby
karapetyan has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<grr12314>
is there some gem command that can "clean" unneeded packages? i see there is gem cleanup but it seems it only removes older versions.
gheegh has quit [Ping timeout: 260 seconds]
<Bish>
what is uneeded? how does it know
<grr12314>
like if i 'gem install compass' it pulls a dozen gems, but 'gem uninstall compass' only removes the compass one
blackmesa1 has joined #ruby
<grr12314>
keep a list of "manually installed" gems vs ones that got pulled due to dependency i guess
<Bish>
i don't know if that exists
<grr12314>
ok. can i uninstall absolutely all that were installed with --user-install then?
<elomatreb>
It does not make a distinction between that, but if you want to start fresh you can just delete the gem folder in your home directory
<grr12314>
ok nice thanks
<Bish>
or, solve that problem by using docker :o *ducks*
karapetyan has joined #ruby
blackmesa1 has quit [Client Quit]
<elomatreb>
In German we have a saying "shooting sparrows with cannons"
<Bish>
ist halt noch kein meister vom himmel gefallen
<elomatreb>
:)
<Bish>
elomatreb: well, docker is always the cannon shooting sparrows, because if coding was done correctly from bottom up, there was no need for docker
<Bish>
or any container system that is
<elomatreb>
But certainly there is a more reasonable middle ground between "no containers" and "basically everything except the kernel", to install a single gem :)
<Bish>
well, ruby could be able to create virtual environments on it's own, that'd be cool
<Bish>
but then you still have filesystem, network,, etc which is all different
<Bish>
kernel as a docker container™
arkaros has joined #ruby
chmuri has quit [Excess Flood]
<arkaros>
Hello people. What are you guys working on?
<grr12314>
ok thanks all, i can say issues have been resolved. i had a globally installed alpha version of compass too that didnt work and confused me for a moment, but after cleaning that up all is well now
<cdunklau>
grr12314: this is why sudo gem install is bad yes :)
chmurifree has joined #ruby
<cdunklau>
sudo <anything besides apt/yum/etc> install is bad that is
<grr12314>
yea, but there are a ton of posts on the net that show it as a solution.
<grr12314>
i know better now
apeiros has joined #ruby
<grr12314>
speaking of, is there some tool that adds the locally-installed bin to PATH? i could do it manually but if i have to recommend this solution to others, it'd be good if there was some easier way
<elomatreb>
No specific tool per se, but Ruby environment managers like e.g. chruby (linked above somewhere) take care of the necessary variables for you
amar_ has quit [Remote host closed the connection]
VladGh has quit [Remote host closed the connection]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
yokel has quit [Remote host closed the connection]
VladGh has joined #ruby
yokel has joined #ruby
amar_ has joined #ruby
ldnunes has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
BloopMonster has quit [Ping timeout: 240 seconds]
amar_ has quit [Read error: Connection reset by peer]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
desperek has quit [Ping timeout: 256 seconds]
amar_ has joined #ruby
amar_ has quit [Remote host closed the connection]
amar_ has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
nowhere_man has joined #ruby
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
Bish has quit [Remote host closed the connection]
Fizzik_ has joined #ruby
za1b1tsu has joined #ruby
Fizzik_ has quit [Ping timeout: 240 seconds]
vondruch_ has joined #ruby
synthroid has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
jokke1 has quit [Ping timeout: 256 seconds]
AJA4350 has joined #ruby
Fizzik_ has joined #ruby
desperek has joined #ruby
jokke1 has joined #ruby
arkaros has quit [Ping timeout: 248 seconds]
BloopMonster has joined #ruby
<za1b1tsu>
can you use rvm to install multiple versions of rubies at once? from the same command?
Fizzik_ has quit [Ping timeout: 268 seconds]
<konsolebox>
za1b1tsu: check the documentation of the command
arkaros has joined #ruby
karuna has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
yohji has joined #ruby
conta has joined #ruby
anisha_ has quit [Read error: Connection reset by peer]
maiz has joined #ruby
maiz has quit [Max SendQ exceeded]
Fizzik_ has joined #ruby
alem0lars has quit [Ping timeout: 248 seconds]
anisha_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Ping timeout: 256 seconds]
BloopMonster has quit [Ping timeout: 264 seconds]
hays has joined #ruby
emerson has quit [Quit: leaving]
Fizzik_ has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
karapetyan has joined #ruby
mrv has joined #ruby
quobo has joined #ruby
<mrv>
hello
<mrv>
can we ask about rails here?
desperek has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 256 seconds]
<arkaros>
Isnät there a rails specific irc?
Asher has joined #ruby
<mrv>
I'll try there, I guess
andikr has quit [Remote host closed the connection]
bmurt has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
Asher has quit [Ping timeout: 245 seconds]
<arkaros>
I think you will get better answers there too
cschneid has joined #ruby
mrv has quit [Quit: Leaving]
cadillac_ has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
<grr12314>
if i use `gem install something --user-install --bindir somewritabledir` it installs a script that later looks for the gem bin in the global gem dir and not the user gem dir. wouldn't you say this seems like a bug?
<grr12314>
hm wait the plot is thicker than that
<arkaros>
The plot thickens
<grr12314>
after i ran hash -r it fixed itself
<grr12314>
i give up, i can probably never understand how ruby works
<grr12314>
but, at least it works
<grr12314>
it seems ubuntu has ~/bin and ~/.local/bin in my PATH already (3 times in fact, wtf) even tho those dirs didnt even exist
<grr12314>
so if i use one of them as --bindir it makes installing gems with bins easy
<konsolebox>
grr12314: that's more about how the shell works. command paths are cached, and the shell skips looking for executables when the command path is already known for a specific command. new executable files placed in paths that appear earlier in $PATH are skipped until the cache is cleared with `hash`, or until a new instance of the shell is instantiated.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
fluxAeon_ has joined #ruby
starseed0000 has joined #ruby
jottr has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 268 seconds]
schneider has quit [Quit: WeeChat 2.0.1]
synthroid has quit [Remote host closed the connection]
<havenwood>
cthulchu_: Usually `nil` is used to represent undefined.
<cthulchu_>
yeah, ok
<havenwood>
cthulchu_: When `nil` doesn't suffice, `Object.new` is a good standin.
<cthulchu_>
yes, I'll use nil
carnegie has joined #ruby
<cthulchu_>
thank you
carnegie has quit [Remote host closed the connection]
Venomen has quit [Ping timeout: 240 seconds]
carnegie has joined #ruby
mike11 has joined #ruby
<cthulchu_>
beautiful
carnegie has quit [Remote host closed the connection]
duckpuppy has quit [Quit: WeeChat 2.1]
c0ncealed2 has quit [Remote host closed the connection]
nicoulaj has quit [Quit: quit]
sameerynho has joined #ruby
akaiiro has joined #ruby
c0ncealed2 has joined #ruby
nicoulaj has joined #ruby
guille-moe has quit [Ping timeout: 245 seconds]
guille-moe has joined #ruby
BloopMonster has quit [Ping timeout: 268 seconds]
duckpuppy has joined #ruby
karapetyan has joined #ruby
duckpuppy has quit [Client Quit]
nicoulaj has quit [Quit: quit]
arkaros has joined #ruby
duckpuppy has joined #ruby
nicoulaj has joined #ruby
bmurt has joined #ruby
discopatrick has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
mike11 has quit [Quit: Leaving.]
TomyWork has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Client Quit]
beefjoe has joined #ruby
duckpupp1 has joined #ruby
beefjoe has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 245 seconds]
beefjoe has joined #ruby
beefjoe has quit [Max SendQ exceeded]
duckpupp1 has quit [Client Quit]
beefjoe has joined #ruby
karapetyan has quit [Ping timeout: 245 seconds]
duckpupp1 has joined #ruby
beefjoe has quit [Max SendQ exceeded]
duckpuppy has quit [Client Quit]
beefjoe has joined #ruby
duckpupp1 is now known as duckpuppy
arkaros has quit [Ping timeout: 260 seconds]
carnegie has joined #ruby
duckpuppy has quit [Client Quit]
sauvin has quit [Remote host closed the connection]
duckpuppy has joined #ruby
carnegie has quit [Read error: Connection reset by peer]
ebye has joined #ruby
nowhere_man has joined #ruby
<cthulchu_>
okay, spaces after commas are good
<cthulchu_>
but not after :
<ebye>
could someone help out with the code for TryRub lesson "All together now" on the website? it doesn't seem to work?
duckpuppy has quit [Quit: WeeChat 2.1]
roamingdog has joined #ruby
duckpuppy has joined #ruby
<cthulchu_>
ebye, debug
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
roamingdog has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
carnegie has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
carnegie has quit [Remote host closed the connection]
duckpuppy has quit [Quit: WeeChat 2.1]
duckpuppy has joined #ruby
aufi has quit [Quit: Leaving]
duckpuppy has quit [Client Quit]
duckpuppy has joined #ruby
tdy has joined #ruby
jottr has joined #ruby
pastorinni has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
jottr has quit [Ping timeout: 248 seconds]
Bira has quit [Ping timeout: 256 seconds]
Bira has joined #ruby
<cthulchu_>
hey folks! do we have a magic function thaaaat...
<cthulchu_>
I don't know how to express it
<cthulchu_>
that returns true when one of the </> arguments is nil :)
<cthulchu_>
hehe
<eam>
the what arguments?
<cthulchu_>
1<nil
Kris has quit [Ping timeout: 256 seconds]
<ebye>
cthulchu_: aye, it did work. i think i suffered from some kind of temporary numbers dyslexia
<cthulchu_>
:)
<cthulchu_>
I am working on a function that checks if a number is between two other numbers
<cthulchu_>
if one or both of the numbers are nil (which is the default), it will not do the check
<eam>
you mean like 55 6 77 # six is between fifty five and seventy seven?
<cthulchu_>
no
<cthulchu_>
so instead of having four ugly blocks for each combination I want to have one
<cthulchu_>
:)
<cthulchu_>
cuz first I have to describe what to do if both are nil (return true)
<cthulchu_>
then what if both are not nil - do the chack if it's >= min and <= max
<cthulchu_>
I feel there's a more elegant way to solve it
<cthulchu_>
maybe nil is not a good thing to use by default
<cthulchu_>
is there a minus infinity and a plus infinity numbers? :)
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cthulchu_>
oh we do have an infinity
<cthulchu_>
I'll use it to solve the thing
<cthulchu_>
Float::INFINITY
<cthulchu_>
woohooo
beefjoe has quit [Quit: Off to install Windows]
tolerablyjake has joined #ruby
nb_bez__________ has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
lunarkitty7 has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Quit: WeeChat 2.1]
duckpuppy has joined #ruby
jinie has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Client Quit]
eblip is now known as eb0t_
duckpuppy has joined #ruby
jinie has joined #ruby
ams__ has joined #ruby
jinie has quit [Client Quit]
lubekpl has joined #ruby
jinie has joined #ruby
jottr has joined #ruby
lubekpl has quit [Client Quit]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
lubekpl has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
lubekpl has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 268 seconds]
eb0t has quit [Quit: WeeChat 2.0.1]
lunarkitty7 has joined #ruby
cagomez has quit [Remote host closed the connection]
dviola has joined #ruby
eb0t has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herbmillerjr has joined #ruby
carnegie has joined #ruby
cagomez has joined #ruby
Venomen has joined #ruby
tty has joined #ruby
madh has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
nigthw0lf has quit []
Venomen has quit [Ping timeout: 256 seconds]
samosaphile has joined #ruby
bmurt has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
carnegie has quit [Remote host closed the connection]
jottr has joined #ruby
sysvalve has quit [Quit: Leaving]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
mcritchlow has joined #ruby
<Eiam>
cthulchu_: return if argsv.compact.length = 0 ?
<Eiam>
==
BloopMonster has joined #ruby
balr0g has joined #ruby
<balr0g>
hello im trying to excute the following command on Windows with error showed, is there any other way to pass command line arguments on windows? thanks. gem install iconv -v '1.0.5' --source 'http://rubygems.org/' --with-iconv-dir=C:\GnuWin32 ||| ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --with-iconv-dir=C:\GnuWin32
<balr0g>
konsolebox, any clue on how to install that gem?
carnegie has joined #ruby
jinie has quit [Ping timeout: 248 seconds]
<samosaphile>
also, does the term 'command' have special meaning in ruby? cuz i've found if i replace word with another word, it doesn't work .. or starts to show errors / warnings(?)
mikhael_k33hl has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
<konsolebox>
balr0g: i haven't really tried installing gems in windows yet; especially through gnuwin32
<konsolebox>
samosaphile: i don't think it has any special meaning
<balr0g>
konsolebox, "especially"? in which way have you installed gems in windows?
Fernando-Basso_ has quit [Quit: Page closed]
TvL2386_ has joined #ruby
<samosaphile>
ok, that is really wierd then...
jottr has joined #ruby
TvL2386 has quit [Ping timeout: 256 seconds]
<konsolebox>
balr0g: i might have tried devkit
jrm has quit [Remote host closed the connection]
<samosaphile>
had to change all my variable names from 'Talk' to 'command' to make warnings go away on repl.it... :S wtf
<balr0g>
konsolebox, is there DevKit for Windows with 2.3.0? i just see 2.3.3 ...
<havenwood>
Please tell me if you see anything that is dated!
<memo1>
hi friends. Im using rvm to ruby and gemset control. Im trying to control a ruby script suing unit file (systemd), but it fails, cant find require eventmachine. Is a problem with path?
crankharder has quit [Remote host closed the connection]
<havenwood>
memo1: Are you using RVM generated wrappers?
<memo1>
havenwood: no
<havenwood>
memo1: These RVM docs are from days long gone by, but they'd apply to SystemD as well: https://rvm.io/integration/init-d
<havenwood>
There should be an RVM docs section explaining wrappers. There isn't a dedicated section on it and I see people get confused all the time.
<havenwood>
I don't want to write it. Not it!
guille-moe has joined #ruby
mcritchlow has quit [Remote host closed the connection]
nightw0lf has joined #ruby
nightw0lf has quit [Max SendQ exceeded]
<memo1>
havenwood: what is the purpose of wrappers?, expose all the package to the path?
quobo has joined #ruby
<havenwood>
memo1: If you look at a generated wrapper, you can see it exports env vars.
cschne___ has quit [Remote host closed the connection]
BloopMonster has joined #ruby
ramfjord_ has joined #ruby
cschneid has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
nightw0lf has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
crankharder has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
carnegie has quit [Remote host closed the connection]
ellcs has joined #ruby
spiette has quit [Ping timeout: 276 seconds]
lucious has joined #ruby
<darix>
cthulchu_: binding.pry
jottr has quit [Ping timeout: 260 seconds]
<havenwood>
cthulchu_: but yeah, pry-byebug if i want to step - which is actually not all that often
<havenwood>
it can be handy from time to time
znz_jp has quit [Remote host closed the connection]
desperek has quit [Quit: xoxo]
shinnya has joined #ruby
znz_jp has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
guille-moe has quit [Ping timeout: 264 seconds]
Fizzik has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
cschneid has joined #ruby
<darix>
even without pry-byebug
Venomen has joined #ruby
nightw0lf has joined #ruby
<memo1>
havenwood: i have a question.
xenops has quit [Ping timeout: 245 seconds]
<memo1>
havenwood: rvm alias create my_app ruby-2.0.0-p247@my_app, this is the help you sent me. my_app is the script name=, and ruby2..@my_app is the gemset?
cschneid has quit [Ping timeout: 268 seconds]
clemens3_ has quit [Ping timeout: 248 seconds]
Venomen has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Ping timeout: 256 seconds]
mupt has joined #ruby
carnegie has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
memo1: yeah, after the @ is the gemset
Guest27547 has quit [Ping timeout: 255 seconds]
ellcs has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
subroot has joined #ruby
mupt has quit [Ping timeout: 264 seconds]
lubekpl has joined #ruby
eckhardt has joined #ruby
dmgk has left #ruby [#ruby]
za1b1tsu has joined #ruby
lubekpl has quit [Ping timeout: 265 seconds]
<memo1>
havenwood: it fails. Can you help me. Look, my script is name gps_tracker.rb. I create a ruby2.3.2@gps_tracker gemset. My script is located at /home/ubuntu/gps_tracker.rb.
carnegie has quit [Remote host closed the connection]
jottr has joined #ruby
Fizzik_ has joined #ruby
<memo1>
havenwood: i use the rvm alias gpstracker ruby2.3.1@gps_tracker. It creates the wrappers on .rvm/wrappers.
jcarl43 has quit [Quit: WeeChat 2.1]
<memo1>
havenwood: on the unifile, i set ExecStart=/home/.rvm/wrapper/gpstracker/gps_tracker.rb. But it fails
jottr has quit [Ping timeout: 260 seconds]
<havenwood>
memo1: is that an executable file? i don't have time to help you debug at the moment, but someone else might. what's the error? what are the systemd logs showing?
carnegie has joined #ruby
<memo1>
havenwood: is a executable file
<havenwood>
memo1: so it has a shebang, and executable permissions?
<havenwood>
memo1: Does it run if you try it without SystemD?
<havenwood>
memo1: You've said it "fails" but we need more to go off of. Try without SystemD, make sure the Ruby works. Try SystemD with a non-Ruby script, make sure that works. La méthode scientifique!
white_lilies has joined #ruby
amar has joined #ruby
caleBOT has joined #ruby
<memo1>
havenwood: sure, it has sheband, it runs alone ./gps_server.rb. But whre trying unit file, it can find the require packages i use.
caleBOT_ has joined #ruby
<memo1>
havenwood: it works!
<memo1>
havenwood: wrappers "wrappes" ruby enviroment. so in the unir file i have to set wrapper.ruby /path/to/script