Rollabunna has quit [Remote host closed the connection]
danzilio has quit [Quit: My computer has fallen asleep!]
rbowlby has quit [Ping timeout: 240 seconds]
danzilio has joined #ruby
pietr0 has quit [Ping timeout: 246 seconds]
juanpablo_______ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpablo_______ has quit [Ping timeout: 240 seconds]
_seanc_ has quit [Quit: _seanc_]
graydot has quit [Quit: graydot]
SuMo_D has joined #ruby
jesseherrick has quit [Ping timeout: 260 seconds]
tno has joined #ruby
Rickmasta has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jtdoncas has quit [Ping timeout: 265 seconds]
bb010g has joined #ruby
benlovell has joined #ruby
SuMo_D has quit [Ping timeout: 246 seconds]
bodgix has quit [Ping timeout: 255 seconds]
tuelz1 has joined #ruby
_seanc_ has joined #ruby
srid-erc has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
benlovell has quit [Ping timeout: 264 seconds]
TeresaP has joined #ruby
SuMo_D has joined #ruby
OrbitalKitten has joined #ruby
charliesome has joined #ruby
SuMo_D_ has joined #ruby
SuMo_D has quit [Remote host closed the connection]
NeverDie has joined #ruby
_blizzy_ has joined #ruby
OrbitalKitten has quit [Client Quit]
<TeresaP>
I have another question about Arrays/Hashes :-|. If I have an array of hashes (some are nested), and I want to use a key to look up something that is in one hash and get the value from something that matches that key and is nested inside a different hash, what's the best way to go about that?
<shevy>
I'd use a method that does that
tuelz1 has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
<shevy>
or if you can get away, to use a hash
mleung has joined #ruby
<shevy>
the method can ensure that you always get the desired result reliably
Lucky___ has joined #ruby
benlieb has joined #ruby
ivanf has quit [Ping timeout: 256 seconds]
ivanf has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
<TeresaP>
shevy -- are you saying there's nothing out there that can do lookups so I should just write something
<shevy>
you can always apply .select
<shevy>
I like methods
JimmyNeutron has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
dorei has quit []
tuelz1 has joined #ruby
danzilio has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
nofxx has joined #ruby
jeremy04 has quit [Remote host closed the connection]
<Ox0dea>
It really feels like these shouldn't all be in the same collection.
<TeresaP>
For each article, I want to say match the article id with a given value to a "children" hash with that id, then get its title
tuelz1 has quit [Client Quit]
scripore has joined #ruby
<shevy>
scary data
<TeresaP>
haha
<TeresaP>
It's proprietary so I had to mask some stuff
<TeresaP>
But yes, rather annoying
<shevy>
is the id unique?
abdulrehman has quit [Quit: AbdulRehman]
Musashi007 has quit [Quit: Musashi007]
<TeresaP>
yep
<TeresaP>
Sorry, getting called away. I'll be back in a bit
pengin has quit [Remote host closed the connection]
<shevy>
I'd re-do the hash for id-based keys; I use that for my video collection... I number from 1 to ... dunno... 300 or so so far, and access via the number alone
benlieb has quit [Quit: benlieb]
drewo has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bodgix has joined #ruby
neoseeker has joined #ruby
bufferloss has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
tno has quit [Remote host closed the connection]
schaerli has joined #ruby
dgutierrez1287 has joined #ruby
lwu has joined #ruby
baweaver has joined #ruby
neoseeker has quit [Ping timeout: 244 seconds]
bufferloss has quit [Quit: Leaving]
rdema has quit [Ping timeout: 256 seconds]
rbowlby has joined #ruby
schaerli has quit [Ping timeout: 246 seconds]
neoseeker has joined #ruby
casadei_ has joined #ruby
Phrogz has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
werelivi_ has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 246 seconds]
rbowlby__ has quit [Ping timeout: 265 seconds]
RegulationD has quit [Remote host closed the connection]
neoseeker has quit [Client Quit]
casadei_ has quit [Ping timeout: 265 seconds]
j3r0 has quit [Quit: Leaving]
rdema has joined #ruby
lwu has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
drewo has joined #ruby
bodgix has quit [Ping timeout: 240 seconds]
Azure has quit [Excess Flood]
michael_mbp has joined #ruby
Azure has joined #ruby
mase-chatter has quit [Remote host closed the connection]
woodruffw has quit [Remote host closed the connection]
<havenwood>
aiesec: I think that's right at least, I don't actually use rbenv.
eggoez has joined #ruby
<aiesec>
havenwood thanx
<havenwood>
aiesec: I'd confirm that `rbenv --version` and `ruby-build` version are latest.
<havenwood>
`ruby-build --version` i mean
blue_deref has quit [Quit: bbn]
<havenwood>
that you're not getting an old install of one or the other
<havenwood>
the error doesn't look familiar to me
kljk has quit [Client Quit]
casadei_ has quit [Ping timeout: 272 seconds]
<havenwood>
aiesec: I'd just use ruby-install to install 2.2.2 for rbenv if I had to use rbenv: ruby-install --install-dir ~/.rbenv/versions/2.2.2 ruby 2.2.2
hahuang61 has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 250 seconds]
<havenwood>
aiesec: Or if you want to get to the bottom of the issue, try the install directly with ruby-build.
<arup_r>
any better way of this ?
<arup_r>
>> require 'date'; p 1.upto(12).map { |n| [ "%02d" % n, Date::ABBR_MONTHNAMES[ n ] ] }
<ruboto>
arup_r # => [["01", "Jan"], ["02", "Feb"], ["03", "Mar"], ["04", "Apr"], ["05", "May"], ["06", "Jun"], ["07", "J ...check link for more (https://eval.in/409937)
<arup_r>
to produce the same output
Sembei has joined #ruby
curses has joined #ruby
jesseherrick has joined #ruby
juanpablo_______ has joined #ruby
curses has quit [Client Quit]
xcesariox has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Jester13 has joined #ruby
<havenwood>
arup_r: One way: '01'.upto('12').zip Date::ABBR_MONTHNAMES.drop(1)
MyMind has joined #ruby
<arup_r>
havenwood, I'll use your code.. as it is short code
<arup_r>
thanks
hahuang61 has quit [Ping timeout: 256 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
juanpablo_______ has quit [Ping timeout: 244 seconds]
MyMind has quit [Read error: No route to host]
simplyianm has joined #ruby
theery has joined #ruby
MyMind has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MyMind has quit [Read error: Connection reset by peer]
<havenwood>
aiesec: ^ see what you get from a traceroute?
serivichi has joined #ruby
serivich has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: No route to host]
Kyuujitsu has joined #ruby
modern has quit [Ping timeout: 244 seconds]
MyMind has joined #ruby
<havenwood>
aiesec: You might make a Gist of the traceroute and paste a link for #rubygems, though I'm not sure if anyone will be around before tomorrow.
modern has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
fedexo has quit [Ping timeout: 244 seconds]
MyMind has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
Pisuke has joined #ruby
_seanc_ has quit [Client Quit]
<havenwood>
aiesec: Also check?: mtr rubygems.global.ssl.fastly.net
<havenwood>
aiesec: If not already installed: sudo apt-get -y install mtr-tiny
Pisuke has quit [Read error: No route to host]
<havenwood>
aiesec: If you have a chance you might check if it works on another network.
Pisuke has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Kyuujitsu has joined #ruby
bufferloss has quit [Quit: Leaving]
tubuliferous has joined #ruby
Pisuke has quit [Read error: No route to host]
Sembei has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
theery has quit [Remote host closed the connection]
Sembei has quit [Read error: No route to host]
tubuliferous has quit [Ping timeout: 265 seconds]
fedexo has joined #ruby
Sembei has joined #ruby
arescorpio has quit [Quit: Leaving.]
Kyuujitsu has quit [Ping timeout: 265 seconds]
schaerli has quit [Ping timeout: 244 seconds]
niiamon has joined #ruby
hahuang61 has joined #ruby
Kyuujitsu has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
lennae has joined #ruby
Sembei has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sembei has quit [Read error: No route to host]
serivichi has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
hahuang61 has quit [Ping timeout: 265 seconds]
whippythellama has quit [Quit: WeeChat 1.2]
charliesome has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Sembei has joined #ruby
Kyuujitsu has joined #ruby
riotjones has joined #ruby
hahuang61 has joined #ruby
tmtwd has quit [Ping timeout: 252 seconds]
htmldrum has joined #ruby
Sembei has quit [Read error: No route to host]
MyMind has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
Kyuujitsu has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
MyMind has quit [Read error: No route to host]
ledestin_ has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
MyMind has joined #ruby
ledestin has quit [Ping timeout: 252 seconds]
s1kx has quit [Read error: Connection reset by peer]
<havenwood>
!unmute agent_white
s1kx has joined #ruby
MyMind has quit [Read error: No route to host]
sross_work|2 has joined #ruby
MyMind has joined #ruby
charliesome has quit [Quit: zzz]
sross07 has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
Kyuujitsu has joined #ruby
MyMind has quit [Read error: No route to host]
M-_mis has joined #ruby
Pisuke has joined #ruby
riffraff has joined #ruby
bronson has joined #ruby
Zai00 has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Pisuke has quit [Read error: No route to host]
Kyuujitsu has quit [Ping timeout: 250 seconds]
Pisuke has joined #ruby
Kyuujitsu has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
konsolebox has quit [Remote host closed the connection]
Pisuke has quit [Read error: No route to host]
juanpablo_______ has joined #ruby
mistermo_ has quit [Ping timeout: 256 seconds]
mhrc has joined #ruby
Pisuke has joined #ruby
i8igmac has joined #ruby
hahuang61 has joined #ruby
RegulationD has joined #ruby
Kyuujitsu has quit [Ping timeout: 260 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
juanpablo_______ has quit [Ping timeout: 255 seconds]
Sembei has joined #ruby
Pisuke has quit [Read error: No route to host]
riffraff has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 265 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
chinmay_dd has quit [Quit: See ya!]
Zai00 has quit [Quit: Zai00]
hahuang61 has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
safeforge has joined #ruby
towski_ has quit [Remote host closed the connection]
MyMind has quit [Read error: No route to host]
last_staff has joined #ruby
nikhgupta has joined #ruby
Kyuujitsu has joined #ruby
MyMind has joined #ruby
davedev24 has quit []
MyMind has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
rehat has quit [Remote host closed the connection]
casadei_ has joined #ruby
Pisuke has quit [Read error: No route to host]
fedexo has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
Pisuke has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
hahuang61 has joined #ruby
TeresaP has quit [Quit: Page closed]
casadei_ has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
dfockler has joined #ruby
dvb_ua has joined #ruby
texasmade has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
lennae has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
towski_ has joined #ruby
user1138 has joined #ruby
dfockler has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
Kyuujitsu has joined #ruby
hahuang61 has joined #ruby
chris2 has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
nikhgupta has quit [Remote host closed the connection]
arup_r has joined #ruby
RobertBirnie has joined #ruby
Musashi007 has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
ruby-lang851 has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
doodleha_ has joined #ruby
towski_ has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 256 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
Anne has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
goldfax has quit [Client Quit]
lkba has joined #ruby
htmldrum has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
jenrzzz has joined #ruby
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
quimrstorres has joined #ruby
casadei_ has joined #ruby
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
hahuang61 has joined #ruby
Anne has joined #ruby
Kyuujitsu has joined #ruby
Anne has quit [Max SendQ exceeded]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
DJSpies has quit [Ping timeout: 246 seconds]
Anne has joined #ruby
Anne has quit [Max SendQ exceeded]
Anne has joined #ruby
bodgix has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
i8igmac has quit [Quit: Leaving]
skade has joined #ruby
hahuang61 has joined #ruby
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 246 seconds]
craysiii has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
Jester13 has quit [Ping timeout: 272 seconds]
doublemalt_ has joined #ruby
Mendenhall has quit [Ping timeout: 246 seconds]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 256 seconds]
doodleh__ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
serivich has joined #ruby
schaerli has joined #ruby
doodleh__ has quit [Read error: Connection reset by peer]
TomyLobo has joined #ruby
<TomyLobo>
hi
<TomyLobo>
i installed ruby using rvm and it's all working nicely
michael_mbp has quit [Excess Flood]
funfunctor has joined #ruby
bodgix has quit [Ping timeout: 265 seconds]
<TomyLobo>
i can install most gems fine, but installing the "rerun" gem results in the error "/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)"
<TomyLobo>
i dont get why it's going to ruby 1.9.1 there
jenrzzz has quit [Ping timeout: 255 seconds]
<TomyLobo>
maybe sudo filters out whatever rvm adds
Kyuujitsu has joined #ruby
michael_mbp has joined #ruby
bodgix has joined #ruby
htmldrum has joined #ruby
doodleha_ has joined #ruby
sevenseacat has joined #ruby
<shevy>
TomyLobo that sounds as if you have a debian ruby
doodleha_ has quit [Read error: Connection reset by peer]
<TomyLobo>
shevy, close, ubuntu :)
k3asd` has joined #ruby
<shevy>
yeah debian-base
<TomyLobo>
hmm i'll try sudo rvm do gem install
houhoulis has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 256 seconds]
<shevy>
if you don't need the debian ruby you could remove it
<shevy>
it apparently finds the wrong ruby version, can you invoke the rvm "gem env" command?
Kyuujitsu has joined #ruby
<TomyLobo>
i probably need it for some base system stuff
skade has quit [Read error: Connection reset by peer]
doodleha_ has quit [Read error: Connection reset by peer]
doodleha_ has joined #ruby
tvw has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
<apeiros>
TomyLobo: no sudo with rvm
<TomyLobo>
apeiros, so how do i install gems globally?
doodleha_ has quit [Read error: Connection reset by peer]
niiamon has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
niiamon has joined #ruby
niiamon has quit [Remote host closed the connection]
doodleha_ has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
zz_Outlastsheep has quit [Ping timeout: 246 seconds]
<apeiros>
TomyLobo: with rvm you usually do a user install of ruby and hence don't install gems globally either
Kyuujitsu has joined #ruby
<TomyLobo>
i see
<TomyLobo>
ok, i'll try that
hahuang61 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros>
and yes, if you do `sudo gem` instead of just `gem`, it'll not use your rvm's ruby
ttilley has quit [Quit: Leaving...]
<apeiros>
that "/usr/lib/ruby" path is a tell. it should be something like "/home/YOURNAME/.rvm/rubies/ruby-VERSION/…"
Trynemjoel has quit [Quit: Quitting]
<firoxer>
What about rvmsudo?
<firoxer>
Is it evil or...?
<apeiros>
I haven't used it, so can't tell you anything about it
<apeiros>
#rvm can tell you more
<TomyLobo>
oh great, now my part of my .rvm dir belongs to root
tubuliferous has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
doodleha_ has joined #ruby
<TomyLobo>
however i managed to do that :)
Trynemjoel has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
<firoxer>
I only have systems where I am the only user so to me it makes sense to use rvmsudo
lkba has quit [Ping timeout: 272 seconds]
<firoxer>
Since I never hear of people using it I thought it was bad or something
<apeiros>
firoxer: on systems with only one user, there's no need to use sudo at all just for using ruby
<TomyLobo>
apeiros, i think he means the only person using the system
<apeiros>
except maybe for interaction with your package manager for external dependencies like imagemagick etc.
<TomyLobo>
not the only unix user
<firoxer>
TomyLobo, that's right
doodleha_ has quit [Read error: Connection reset by peer]
<apeiros>
TomyLobo: yes? that's how I understood it.
<firoxer>
I like to have both my personal user and www-data be able to use the gems
chrisco has joined #ruby
<shevy>
I think you can use/require the gems anyway
tubuliferous has quit [Ping timeout: 240 seconds]
<firoxer>
shevy: without changing PATHs?
hahuang61 has joined #ruby
<shevy>
well, if you have more than one ruby version then you may also have a different set of gems
doublemalt_ is now known as DoubleMalt
<shevy>
such as TomyLobo seems to have :)
christiandsg has quit [Read error: Connection reset by peer]
<firoxer>
Oh, right
<firoxer>
Good point :)
<TomyLobo>
shevy, with little intention :)
chrisco has left #ruby [#ruby]
serivichi has joined #ruby
ponga has quit [Quit: Leaving...]
hahuang61 has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
bruno- has joined #ruby
leafybasil has joined #ruby
Aleserche has quit [Ping timeout: 256 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
Elbichejo has joined #ruby
schaerli has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
bizportal has joined #ruby
leafybasil has quit [Ping timeout: 260 seconds]
lordkryss has joined #ruby
drizz has quit [Remote host closed the connection]
hahuang61 has joined #ruby
drizz has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
Elbichejo has quit [Quit: • IRcap • 8.72 •]
Asher has quit [Ping timeout: 246 seconds]
nikhgupta has joined #ruby
skade has joined #ruby
bolar has joined #ruby
texasmade has quit [Ping timeout: 252 seconds]
Outlastsheep has joined #ruby
<Outlastsheep>
Quick question: Would Ruby have difficulty opening/closing 17MB files?
bolar has quit [Client Quit]
<sevenseacat>
wouldnt think so
<Outlastsheep>
Oh god d- this is painful.
CustosLimen has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
bnizzle has joined #ruby
lkba has joined #ruby
<shevy>
Outlastsheep how do you access the file? File.read or File.binread?
<shevy>
or File.readlines :)
Aleserche has joined #ruby
startupality has joined #ruby
apfeluser has joined #ruby
Trynemjoel has joined #ruby
<Outlastsheep>
Oh, I don't read it, shevy.
<Outlastsheep>
Just writing.
<Outlastsheep>
Opening it in Append mode and adding lines.
simplyianm has joined #ruby
<Outlastsheep>
There's one strange thing though.
texasmade has joined #ruby
<Outlastsheep>
I'm running an IRC bot that logs the channel. It opens a file in append-mode, and closes it every 6 minutes so the changes go through by reopening it. Now recently I've gotten a terrible error again. Or should I say 'no error' since the bot just disconnects and the Ruby script never realises that it disconnected.
<Outlastsheep>
I think it's either the server it's running on being a dick, IRC being a dick, or the I/O system being a dick.
<Outlastsheep>
[k-: does that mean the file on disk updates with what Ruby's written into it?
<[k->
yes
hahuang61 has joined #ruby
<Outlastsheep>
Huh. I'll try that.
schaerli has joined #ruby
OrbitalKitten has joined #ruby
startupality has quit [Quit: startupality]
jimms has joined #ruby
charliesome has quit [Quit: zzz]
rdark has joined #ruby
OrbitalKitten has quit [Client Quit]
bodgix has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
casadei_ has joined #ruby
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
vickleton has joined #ruby
zz_Outlastsheep has joined #ruby
Outlastsheep has quit [Quit: Page closed]
zz_Outlastsheep is now known as Outlastsheep
casadei_ has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
radgeRayden has joined #ruby
troulouliou_dev has joined #ruby
bodgix has joined #ruby
chris2 has joined #ruby
Trynemjoel has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
edwinvdgraaf has joined #ruby
hahuang61 has joined #ruby
niiamon has joined #ruby
charliesome has quit [Quit: zzz]
nikhgupt has joined #ruby
blueOxigen has quit [Ping timeout: 250 seconds]
nikhgupta has quit [Ping timeout: 265 seconds]
startupality has joined #ruby
texasmade has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
Trynemjoel has joined #ruby
trouloulioud_dev has joined #ruby
leesharma has joined #ruby
leafybasil has joined #ruby
troulouliou_dev has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Outlastsheep is now known as zz_Outlastsheep
leesharma has quit [Ping timeout: 265 seconds]
leafybasil has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
Trynemjoel has joined #ruby
sdothum has joined #ruby
serivichi has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
tkuchiki has joined #ruby
startupality has quit [Quit: startupality]
bruno- has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
serivichi has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
Janno has quit [Remote host closed the connection]
ht__ has joined #ruby
Trynemjoel has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
niiamon has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Kyuujitsu has joined #ruby
<shevy>
hmmm
Matthews_ has joined #ruby
schaerli has joined #ruby
Silox| has joined #ruby
<[k->
hmmm
<shevy>
would a Dir[path_to_the_gem+'**/**.rb'] call for a given gem, if it has a lot of .rb files, work if one wants to require all those various .rb files?
workmad3 has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Ping timeout: 246 seconds]
<[k->
i have no idea what '**' does!
<apeiros>
shevy: it's **/*.rb
<apeiros>
** is for recursive dirs, not for files
Trynemjoel has joined #ruby
<apeiros>
and while it might work, I wouldn't use that
<shevy>
hmm
skade has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
Rickmasta has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
sepp2k has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
niiamon has joined #ruby
bruno- has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
funfunctor has quit [Read error: Connection reset by peer]
funfunctor has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
Kyuujitsu has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
Kyuujitsu has joined #ruby
stardiviner has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 244 seconds]
serivichi has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 256 seconds]
Kalov has quit []
serivich has joined #ruby
casadei_ has joined #ruby
leafybasil has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
livathinos has quit []
tubuliferous has joined #ruby
safeforge has quit [Remote host closed the connection]
schaerli has joined #ruby
Zackio has quit [Remote host closed the connection]
casadei_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
bizportal has quit []
tubuliferous has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
Kyuujitsu has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 260 seconds]
safeforge has joined #ruby
Zackio has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
FernandoBasso has joined #ruby
polysics has joined #ruby
tvw has quit []
leafybasil has quit [Remote host closed the connection]
prestorium has joined #ruby
ndrei has joined #ruby
elfuego has quit [Quit: elfuego]
lxsameer has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
Aleserche has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
tylersmith has joined #ruby
khebbie has joined #ruby
allcentury has joined #ruby
hahuang61 has joined #ruby
schaerli has quit [Remote host closed the connection]
stardiviner has joined #ruby
postmodern has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 256 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
varun_wadhwani has joined #ruby
krz has joined #ruby
dgutierrez1287 has joined #ruby
f4cl3y has joined #ruby
varun_wadhwani has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
CloCkWeRX has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
safeforge has quit []
sarkyniin has joined #ruby
ndrei has joined #ruby
jimms has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Derasi has quit [Quit: No Ping reply in 180 seconds.]
epochwolf has quit [Ping timeout: 244 seconds]
hanmac has quit [Remote host closed the connection]
asi_ has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
epochwolf has joined #ruby
Trynemjoel has joined #ruby
whowhat has joined #ruby
<whowhat>
hey guys i need some help im trying to learn ruby adn keep getting erroe
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
lordkryss has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prestorium has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
leesharma has joined #ruby
funfunctor has quit [Ping timeout: 244 seconds]
_5moufl has quit [Ping timeout: 255 seconds]
domgetter has joined #ruby
_5moufl has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
leesharma has quit [Ping timeout: 250 seconds]
abara has joined #ruby
<abara>
hi guys. i getting this error https://dpaste.de/uHdE when running bundle install on a project
scripore has joined #ruby
<hanmac>
abara: what is your os?
<apeiros>
?guys abara
<ruboto>
abara, You probably don't mean to exclude, but not everyone relates to being "one of the guys". Maybe consider using "folks", "y'all" or "everyone" instead?
<apeiros>
abara: seems like you're missing the 'make' command
Trynemjoel has joined #ruby
<apeiros>
"sh: make: command not found"
<apeiros>
you probably need some kind of dev package for your distro
<abara>
apeiros: how f*** ok
<abara>
apeiros: sorry for the mistake :/
<hanmac>
apeiros: i will call you all my "buddies" now, and if feminists are against that than i cant help them
Igorshp has joined #ruby
abdulrehman has joined #ruby
<abara>
ruboto: sorry about that too. i will try to remember this grammar tip.
Igorshp has quit [Remote host closed the connection]
<abara>
thanks for help folks
<[k-_>
buddy has a male connotation
<apeiros>
?justabot abara
<ruboto>
abara, I'm just a bot. You don't need to address me.
<whowhat>
has anyone happened to figure out my issue :(
banister has quit [Remote host closed the connection]
<apeiros>
whowhat: not on windows, sorry.
banister has joined #ruby
<apeiros>
[k-_: you sure? not a native speaker myself, but I see male & female translations
jimms has quit [Remote host closed the connection]
f4cl3y has quit [Ping timeout: 244 seconds]
<whowhat>
i think i might do a fresh install
<domgetter>
whowhat: Have you added gem 'nokogiri' to your Gemfile in your Rails app? Also, try asking over in #rubyonrails to get more pointed Rails help
Igorshp has joined #ruby
<domgetter>
apeiros: 'guys' is both male and female as well in common usage.
<apeiros>
?guys2 domgetter
<ruboto>
domgetter, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<whowhat>
domgetter: im only new, so i would have no idea how to do that ?
<apeiros>
domgetter: and if you want to discuss it -> #ruby-offtopic
<[k-_>
apeiros: he was just explaining that guys and buddies have male connotations
<apeiros>
oh, already included in that response, hah
<hanmac>
thats what feminists do, they prevent that someone else can to talk to eachother ...
<apeiros>
!kick hanmac OT
hanmac was kicked from #ruby by ruboto [OT]
hanmac has joined #ruby
<apeiros>
you can very well discuss it. but not here.
nikhgupt has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
whowhat has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
gwendall has joined #ruby
Igorshp has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
leesharma has joined #ruby
sevenseacat has quit [Quit: .]
allcentury has quit [Ping timeout: 256 seconds]
domgetter has joined #ruby
bustrarm has joined #ruby
<domgetter>
apeiros: well now hold on a second, you're the one who brought it up. It doesn't seem very 'decent' to bring something up and then say "no you can't talk about that" when someone responds. But I'll stop talking about it if you want me to.
DJSpies has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prestorium has joined #ruby
<apeiros>
!ban domgetter !T 1h told you to move it to #ruby-offtopic
domgetter was banned on #ruby by ChanServ [domgetter!*@*]
domgetter was kicked from #ruby by ChanServ [Banned: told you to move it to #ruby-offtopic]
startupality has joined #ruby
blueOxigen has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
busterarm has quit [Ping timeout: 265 seconds]
victortyau has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
dimasg has joined #ruby
Aleserche has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei_ has joined #ruby
<agent_white>
Did...
<agent_white>
hanmac just get kicked?
dagda1 has joined #ruby
Oka has joined #ruby
startupality has quit [Quit: startupality]
tubuliferous has joined #ruby
<[k-_>
?ot agent_white
<ruboto>
agent_white, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<agent_white>
[k-_: I will be there to discuss this further. Thank you.
phutchins has joined #ruby
<[k-_>
you are already there :D
<agent_white>
[k-_: I wasn't. Now I am. Anyways, this is offtopic so lets move it to OT.
lxsameer has quit [Quit: Leaving]
casadei_ has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 255 seconds]
jgt1 has quit [Quit: WeeChat 1.1.1]
codecop has quit [Remote host closed the connection]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
banister has quit [Read error: Connection reset by peer]
skade has joined #ruby
iateadonut has joined #ruby
otisZart has joined #ruby
iateadonut has quit [Client Quit]
ruurd has joined #ruby
<TomyLobo>
i'm using a vagrant box (host is win7, guest is ubuntu) to develop ruby stuff. i found this "rerun" tool, which monitors a directory for changes
<TomyLobo>
now the problem is, my stuff is on a vagrant shared folder and that doesnt seem to work with the notification mechanism that rerun uses
abara has quit [Ping timeout: 265 seconds]
<TomyLobo>
can someone recommend an alternative?
Trynemjoel has quit [Ping timeout: 250 seconds]
banister has joined #ruby
Trynemjoel has joined #ruby
Oka has quit [Quit: さようなら]
Oka has joined #ruby
FernandoBasso has quit [Ping timeout: 240 seconds]
Oka has quit [Client Quit]
Oka has joined #ruby
chills42 has joined #ruby
_Aleserche_ has joined #ruby
lkba_ has joined #ruby
startupality has joined #ruby
bustrarm is now known as busterarm
konsolebox has joined #ruby
Aleserche has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
dimasg has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
imfilp has quit [Quit: Connection closed for inactivity]
dimasg has joined #ruby
niiamon has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
juanpablo_______ has joined #ruby
chills42 has quit [Remote host closed the connection]
prestorium has joined #ruby
Trynemjoel has joined #ruby
<TomyLobo>
i went with the NppFTP Notepad++ plugin in order to have the files on an actual linux partition
ruurd has quit [Quit: ZZZzzz…]
<TomyLobo>
i have another question: is there a prettier way to write "directories.include?(path)"?
<TomyLobo>
something more like "path in directories"? :)
<adaedra>
You could also directly work on a Linux system, through a VM or physically
<TomyLobo>
adaedra, it's a VM already
Feyn has quit [Quit: Leaving]
<TomyLobo>
but i wont run an X in there
<adaedra>
That's what I meant by “directly”
<adaedra>
:)
<adaedra>
`directories.include? path` seems good enough for me, what are you trying to do?
wprice has quit [Quit: wprice]
<[k-_>
path in directories?
<[k-_>
that is odd
<[k-_>
i think in is reserved in ruby anyway
<[k-_>
also, infix methods arent supported by ruby
<adaedra>
what is reserved?
<[k-_>
a keyword
<[k-_>
reserved actually means "kept specially for a particular person."
<adaedra>
ah, thought you were referring to the first line
juanpablo_______ has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
Oka has quit [Quit: さようなら]
Oka has joined #ruby
Oka has quit [Client Quit]
Oka has joined #ruby
Oka has quit [Client Quit]
havenwood has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
polysics has quit []
ponga has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
dorei has quit []
Oka has joined #ruby
schaerli has joined #ruby
sphex has quit [Ping timeout: 246 seconds]
Oka has quit [Client Quit]
abdulrehman has quit [Quit: AbdulRehman]
tennis_ has joined #ruby
sarkyniin has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
niiamon has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fenjamin has joined #ruby
leat1 has quit [Remote host closed the connection]
fenjamin has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
freerobby has joined #ruby
leat1 has joined #ruby
<TomyLobo>
what's a decent free ide with no relation to eclipse and autocomplete for ruby
<adaedra>
If you really want an IDE, there's RubyMine
<adaedra>
But generally, people do without IDE
<TomyLobo>
hmm but that's not free
<havenwood>
TomyLobo: It's more of a text editor but you might try Atom with some plugins.
<adaedra>
Ah yes, free.
abdulrehman has joined #ruby
<adaedra>
It is if you're student.
<TomyLobo>
i'm not :)
<[k-_>
you dont need an ide in ruby
<adaedra>
Get an editor and setup it up
hahuang61 has quit [Ping timeout: 252 seconds]
<[k-_>
trust me
<TomyLobo>
[k-_, but then how will i know which methods the string class has?
<shevy>
lol ... what kind of documentation does it have
<TomyLobo>
so how do i refer to puts properly?
<[k-_>
{ |p| puts p }
<TomyLobo>
"meth == other_meth"? crystal much? :)
<TomyLobo>
[k-_, no direct way?
<shevy>
the problem is that it wants an argument
<centrx>
You can add a method on the class of elements in x
<shevy>
and there currently is no way for & to pass an argument in that call
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
<centrx>
class String; def puts; puts self; end; end
<centrx>
much monkey though
bruno- has quit [Read error: Connection reset by peer]
<[k-_>
puts = -> x { Kernel.puts x }
<shevy>
much centrx
<[k-_>
i think that would work?
<centrx>
many guys
skade has quit [Read error: Connection reset by peer]
<agent_white>
Done shitting in offtopic. #ruby needs new ops. Love you enough to believe you can do better when it comes to ops here. This channel is not what it used to be... not ruby. -- "Matz is nice, so we are nice.".
jonee has joined #ruby
<[k-_>
agent_white: please do not discuss that too here
<hanmac>
checkout the #display method ,P
<[k-_>
>> puts = -> x { Kernel.puts x }; %w[a b c].each &puts
<ruboto>
centrx, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<apeiros>
centrx: don't test my limits. I'm short on them today.
khebbie has joined #ruby
<busterarm>
shevy come back
<adaedra>
shevy: you know you can just ignore DeBot and all message containing its name
<busterarm>
i'm sorry :(
<apeiros>
centrx: and no, enforcing channel policy is not OT. it's part of channel maintenance.
<shevy>
adaedra truthfully I don't think I ignore anything or anyone
<centrx>
Am I allowed to respond?
<apeiros>
centrx: in #ruby-offtopic
<TomyLobo>
i have no idea what's going on
<shevy>
yeah that happens when we don't talk about ruby TomyLobo
<TomyLobo>
so, talk about ruby more, then?
<shevy>
yes
<centrx>
^ smart guy
<centrx>
oh crap
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
<apeiros>
TomyLobo: oh, please do. that'd make for a nice and welcome change :)
jimms has joined #ruby
<Rinzlit>
apeiros how did you learn Ruby?
<Rinzlit>
Is that OT? O_o
<[k-_>
grey area
FernandoBasso has quit [Quit: May the force be with you.]
centrx has joined #ruby
bruno- has joined #ruby
<apeiros>
Rinzlit: look, OT is tolerated. but once you're told by an op that it's too much and to move on, respect that.
<apeiros>
I learned ruby from pickaxe, zenspiders quickref, reading the whole core docs, writing code, asking questions here.
<centrx>
#ruby can be, or at least used to be, very off-topic when there is no Important Business to discuss
tubuliferous has joined #ruby
<centrx>
but this special issue tends to be not really friendly off-topic but arguing
schaerli has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
<apeiros>
there are topics known to escalate quickly. context matters.
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<apeiros>
busterarm: I just read all of core to get an idea what's around. it proved very valuable.
<apeiros>
also it made me look the docs up a lot less :D
__Aleserche__ has joined #ruby
<busterarm>
centrx: ...what?
jimms has joined #ruby
<busterarm>
apeiros: I definitely agree there too
joneshf-laptop has joined #ruby
<busterarm>
i just do it to make sure there isn't a better method I'm forgetting. I know the limitations of my own memory :D
<apeiros>
!ban centrx !T 1d I made myself very clear that I wouldn't tolerate such shit anymore
centrx was banned on #ruby by ChanServ [centrx!*@*]
centrx was kicked from #ruby by ChanServ [Banned: I made myself very clear that I wouldn't tolerate such shit anymore]
AlexRussia has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
_Aleserche_ has quit [Ping timeout: 256 seconds]
theery has joined #ruby
allcentury has joined #ruby
Trynemjoel has joined #ruby
theery has quit [Remote host closed the connection]
ttilley has quit [Quit: Leaving...]
freerobby has joined #ruby
theery has joined #ruby
theery has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
Trynemjoel has joined #ruby
andersoldahl has joined #ruby
andersoldahl has quit [Client Quit]
bodgix has quit [Ping timeout: 246 seconds]
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
<pontiki>
hm
Trynemjoel has quit [Ping timeout: 256 seconds]
gwendall has joined #ruby
simplyianm has joined #ruby
Trynemjoel has joined #ruby
juanpablo_______ has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
gwendall has quit [Ping timeout: 240 seconds]
simplyianm has quit [Ping timeout: 244 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
juanpablo_______ has quit [Ping timeout: 256 seconds]
twistedpixels_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
lkba has joined #ruby
j4cknewt has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
bruno- has joined #ruby
j4cknewt has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
troulouliou_dev has quit [Quit: Leaving]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
diegoviola has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
twistedpixels has joined #ruby
jonee has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
FernandoBasso has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
livathinos has quit []
airchat4 has joined #ruby
christiandsg has joined #ruby
airchat4 has left #ruby [#ruby]
Channel6 has joined #ruby
leesharma has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
ttilley has joined #ruby
Trynemjoel has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
jonee has quit [Ping timeout: 252 seconds]
leesharma has joined #ruby
ttilley has quit [Ping timeout: 240 seconds]
skade has quit [Read error: Connection reset by peer]
ynroot has quit [Ping timeout: 244 seconds]
Kalov has joined #ruby
allcentury has joined #ruby
eggoez has joined #ruby
lannonbr has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
Trynemjoel has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
<diegoviola>
how does capybara compares to cucumber? I'm familiar with capybara but I have no clue about cucumber
<pontiki>
they are different things
<diegoviola>
"Cucumber is a tool to write human-readable tests that are mapped into code"
<diegoviola>
that's vague
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki>
cucumber can use capybara the same way rspec can
mistermocha has joined #ruby
troulouliou_dev has joined #ruby
ivanskie has joined #ruby
<diegoviola>
ok
<diegoviola>
ty
hololeap has joined #ruby
blue_deref has joined #ruby
<pontiki>
cucumber uses the language Gherkin, which in turn requires you to write a bunch of matching regexps and then ruby code to actually perform the tests
christia_ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
mistermocha has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 246 seconds]
christia_ has quit [Read error: Connection reset by peer]
Pyrotecnix has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
chihhsin has quit [Ping timeout: 272 seconds]
Trynemjoel has joined #ruby
k3asd` has quit [Ping timeout: 250 seconds]
<diegoviola>
pontiki: ok thanks
serivich has quit [Ping timeout: 246 seconds]
bnizzle has left #ruby [#ruby]
christiandsg has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
leesharma has quit [Ping timeout: 246 seconds]
ttilley has joined #ruby
skade has joined #ruby
symm- has quit [Ping timeout: 265 seconds]
darkf has quit [Quit: Leaving]
Trynemjoel has joined #ruby
freerobby has quit [Quit: Leaving.]
ttilley has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bizportal has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
chipotle has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
casadei_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Jester13 has joined #ruby
mleung has joined #ruby
jimms has quit [Remote host closed the connection]
RegulationD has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
ttilley has joined #ruby
ttilley has quit [Client Quit]
FernandoBasso has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
christiandsg has joined #ruby
casadei_ has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
leesharma has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
ruby-lang476 has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gwendall has joined #ruby
mleung has quit [Quit: mleung]
<shevy>
does anyone happen to make good use of include Singleton?
ndrei has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
davedev24 has joined #ruby
aryaching has joined #ruby
mleung has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
Channel6 has quit [Quit: Leaving]
saddad has joined #ruby
Trynemjoel has joined #ruby
<Rinzlit>
Ruby can be used to replace PHP in websites right?
tubuliferous has joined #ruby
<Rinzlit>
Or rather Ruby On Rails
domgetter has joined #ruby
geefolk has joined #ruby
michael_mbp has joined #ruby
<[k-_>
well, yes and no
<shevy>
Rinzlit you can use good old .cgi script just fine
geefolk has quit [Max SendQ exceeded]
<Rinzlit>
.cgi scripts?
<[k-_>
dont go there
<shevy>
yeah just like .php; with cgi-error you get the errors displayed too just as in php
geefolk has joined #ruby
<Rinzlit>
-confused-
<cscheib>
ignore that
mleung has quit [Quit: mleung]
<cscheib>
I mean, sure, you can run just about anything as CGI
christia_ has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
<cscheib>
but... rails or sinatra is what lots (most?) use to make ruby webapps
<Rinzlit>
Ermm whats the RoR's channel?
<[k-_>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
Rinzlit: TL;DR: "CGI certainly isn’t the right solution for every problem: each request starts a new Ruby process so there’s a small bit of overhead but for systems which expect little traffic but require maximum reliability, it’s something worth considering."
jimms has joined #ruby
<shevy>
yay!
<shevy>
another cgi dude! \o/ \o/ \o~
<[k-_>
shevy!
<havenwood>
Rinzlit: The typical Ruby way is to make a Rack app, usually using a Rack adapter like Rails, Sinatra, Roda or Lotus, etc.
Trynemjoel has quit [Ping timeout: 250 seconds]
<shevy>
havenwood I notice you are much more coherent... that means you must have had at least one coffee already!
<havenwood>
shevy: I think I'm on cup five!
<shevy>
hehe
<pontiki>
ENOTENOUGHCOFFEEE
<[k-_>
EMRCOF
Trynemjoel has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
symm- has quit [Ping timeout: 256 seconds]
swills has quit [Quit: leaving]
Kyuujitsu has quit [Quit: leaving]
senayar has joined #ruby
<arup_r>
shevy, I am done with PhP :/\:
<shevy>
arup_r forever - or until the next assignment :)
<shevy>
havenwood, for some reason, whenever I see a picture such as this one here http://i.imgur.com/h1W5V8W.jpg it reminds me of you and I don't know why!
<arup_r>
no idea..... :(
[H]unt3r has joined #ruby
<shevy>
well perhaps it's a good trend. more porting going on towards ruby, rather than in the back direction towards php
quimrstorres has joined #ruby
<arup_r>
hahaha
jesseherrick has quit [Ping timeout: 246 seconds]
Pupeno has quit [Quit: Leaving...]
Trynemjoel has quit [Ping timeout: 256 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
Trynemjoel has joined #ruby
jbw has quit [Read error: Connection reset by peer]
jonee has quit [Ping timeout: 244 seconds]
victortyau has quit [Quit: Leaving]
chinmay_dd has joined #ruby
geefolk has quit [Quit: Leaving]
nateberkopec has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
quimrstorres has quit [Remote host closed the connection]
<mices>
what's the rails channel please i'm sorry i forgot
<[k-_>
#rubyonrails
<mices>
i thought it was rubyrails
perturbation has joined #ruby
<mices>
ok thanks
<[k-_>
your welcome :3
scripore has joined #ruby
RobertBirnie has joined #ruby
zacstewart has quit [Remote host closed the connection]
BTRE has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Max SendQ exceeded]
ynroot has joined #ruby
decaff has quit [Ping timeout: 246 seconds]
<adaedra>
I think it's "you're"
hahuang61 has quit [Ping timeout: 246 seconds]
prestorium has quit [Ping timeout: 264 seconds]
Gadgetoid has left #ruby [#ruby]
spider-mario has joined #ruby
BTRE has joined #ruby
<ruurd>
if it's its it's its if it's it's it's it is
eminencehc has joined #ruby
casadei_ has joined #ruby
simplyianm has joined #ruby
BTRE has quit [Client Quit]
<shevy>
even the french auto-correct poor [k- now
leesharma has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
daynaskully has quit [Quit: quit]
simplyianm has quit [Ping timeout: 246 seconds]
casadei_ has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
hahuang61 has joined #ruby
jesseherrick has quit [Quit: leaving]
devdazed has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<adaedra>
ruurd: now say that 5 times faster
allcentury has quit [Ping timeout: 255 seconds]
skade has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
blue_deref has quit [Quit: bbn]
troulouliou_dev has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
abdulrehman has joined #ruby
jonee has quit [Ping timeout: 240 seconds]
<Scriptonaut>
Hey guys, from ruby I'd like to spawn a shell session, but I'd like it to remain open. I want to be able to call things like, 'cd ~' from the shell, and then have the working directory actually change, so then if I later call 'ls', it will show that I'm in ~. How can I do this? When I use %x or system, it doesn't preserve anything
<Scriptonaut>
and I'd like to get the output of the shell
bmurt has joined #ruby
riotjone_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
skade has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
quimrstorres has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 255 seconds]
abdulrehman has quit [Client Quit]
quimrstorres has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
<baweaver>
Eloquent Ruby and Practical Object Oriented Design in Ruby are probably the two that should be gone through
BTRE has joined #ruby
<dymk>
Has anyone ever passed an activerecord postgresql connection off to a native extension and lived to tell the tale?
<baweaver>
ljarvis: I'll save the cheeky question follow up to that then
nofxx has joined #ruby
<rehat>
ljarvis: not sure how to select a specific <b> element with parser.css
<dymk>
I'd like to do some custom stuff on top of postgres... but not handle all the things like authenticating with the db, i'd like to leave that up to rails
<baweaver>
Might be safer to ask on RubyOnRails for that dymk
<[k-_>
you do not need to explicitly do split(' '), you can just call split or split()
<baweaver>
though a method that mutates an array is spooky
<treybul>
I think i could use this code if i had a arr_size variable that stored size of array: "expect { subject.arr }.to change{subject.arr_size}.by(1)" - but how can i do it without that variable?
senayar has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
ynroot has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bufferloss has joined #ruby
theery has joined #ruby
<rehat>
ljarvis: I got my scraper to work with your snippet, now I am trying to understand the meat inside that .at() I'm also new to ruby and reading docs for it. This is all I found on XPath http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/XPath where can I get more info on how it works? Like the text(), contains(), and following::b? :)
davedev24 has quit [Read error: Connection reset by peer]
theery has quit [Remote host closed the connection]
<ljarvis>
rehat: beware that xpath is a bit of a beast so unless you fully intend on digging right into it, I would recommend just skimming that document
niiamon has quit [Remote host closed the connection]
<rehat>
will do thanks
<ljarvis>
yorickpeterse: yo
havenwood has joined #ruby
<al2o3-cr>
rehat: you could use this: doc.at('div.productdetails').children[9].text.strip
<al2o3-cr>
it that snippet, anyway
allcentury has quit [Ping timeout: 265 seconds]
<ytti>
adaedra, libssh is LGPL and as such can't be used in appstore software
<ytti>
adaedra, libssh2 can be used, but it's legacy crap
Trynemjoel has quit [Ping timeout: 256 seconds]
cccc has quit [Quit: leaving]
reprazent has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<ljarvis>
al2o3-cr: but.. why
<[k-_>
[9]...
sedduc has quit [Ping timeout: 246 seconds]
Trynemjoel has joined #ruby
prestorium has joined #ruby
Asher has joined #ruby
<shevy>
it has many children [k-_
calleerlandsson has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
rodfersou has joined #ruby
<al2o3-cr>
ljarvis: no reason
<[k-_>
just like you, shevy
<al2o3-cr>
really just see how nokogiri stores the html could of used elements[4]
s00pcan has joined #ruby
christiandsg has joined #ruby
<ljarvis>
:|
olistik has joined #ruby
<al2o3-cr>
just to see how the document object model works
* al2o3-cr
hides
leesharma has joined #ruby
sankaber has joined #ruby
<shevy>
the beautiful XML
eggoez has quit [Ping timeout: 252 seconds]
zz_Outlastsheep is now known as Outlastsheep
cashnguns has joined #ruby
davedev2_ has joined #ruby
ruurd has joined #ruby
mjuszczak has quit []
codecop has joined #ruby
davedev24 has quit [Ping timeout: 272 seconds]
eggoez has joined #ruby
reprazent has quit [Quit: Bye]
mjuszczak has joined #ruby
reprazent has joined #ruby
yardenbar has quit [Quit: Leaving]
_blizzy_ has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
Trynemjoel has joined #ruby
rehat has quit [Remote host closed the connection]
sankaber has quit [Ping timeout: 244 seconds]
attamusc has quit [Quit: Connection closed for inactivity]
j4cknewt has quit [Remote host closed the connection]
Westerbly_ has joined #ruby
mjuszczak has quit []
OrbitalKitten has joined #ruby
zacstewart has joined #ruby
radgeRayden has quit [Ping timeout: 264 seconds]
dfockler has joined #ruby
ruby-lang476 has quit [Ping timeout: 246 seconds]
[H]unt3r has quit [Quit: Leaving]
prestorium has quit [Quit: Konversation terminated!]
christiandsg has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
Trynemjoel has joined #ruby
leesharma has quit [Ping timeout: 240 seconds]
dfockler has quit [Ping timeout: 244 seconds]
v2px has quit [Remote host closed the connection]
<adaedra>
ytti: oh, didn't know that
jonee has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
imperator has joined #ruby
Trynemjoel has joined #ruby
djbkd_ has joined #ruby
<ytti>
adaedra, that's the reason you can't use EC crypto in any ios ssh clients
<ytti>
adaedra, or even large RSA keys
Blaguvest has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
<adaedra>
I don't use iOS ssh client
<adaedra>
I need more than 40x15
<adaedra>
but ok, that explains it
<ytti>
you can get hella small lot of letters on iOS screen
<adaedra>
and typing is far from practical
allcentury has joined #ruby
dseitz has joined #ruby
saddad has joined #ruby
The_Phoenix has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
j4cknewt has joined #ruby
leesharma has joined #ruby
christiandsg has joined #ruby
senayar has joined #ruby
The_Phoenix has quit [Ping timeout: 246 seconds]
<shevy>
hmm I guess in the coming days, I shall need some pointers in how to make two classes faster
eggoez has quit [Ping timeout: 240 seconds]
jonee has joined #ruby
aphprentice_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
christiandsg has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 244 seconds]
eggoez has joined #ruby
<imperator>
hm, seems ConvertTo-Json is generating some hidden token somewhere
<imperator>
can't get JSON.parse to parse its output
fantazo has joined #ruby
<imperator>
{"Id":4184,"ProcessName":"powershell","Handles":539} - looks perfectly valid to me
baweaver has quit [Remote host closed the connection]
<al2o3-cr>
imperator: why you opening it in binary?
bronson has quit [Ping timeout: 260 seconds]
<imperator>
al2o3-cr, tried it both ways just to see
cashnguns has quit [Ping timeout: 244 seconds]
<al2o3-cr>
so test.json contains this -> {"Id":4184,"ProcessName":"powershell","Handles":539}
eminencehc has joined #ruby
<imperator>
intertubes are telling me it's a BOM
juanpablo_______ has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has joined #ruby
hololeap has joined #ruby
ynroot has quit [Quit: Konversation terminated!]
saddad has quit [Quit: WeeChat 1.3-dev]
hahuang61 has joined #ruby
bmurt has quit []
khebbie has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
khebbie has joined #ruby
bufferloss has quit [Quit: Leaving]
olistik has quit [Remote host closed the connection]
t_ has quit [Remote host closed the connection]
<al2o3-cr>
imperator: just been searching try this: JSON.parse(File.read('test.json', :encoding => 'bom|utf-8'))
saddad has joined #ruby
t_ has joined #ruby
<imperator>
al2o3-cr, yep, just came across the same - works!
<imperator>
thanks
hahuang61 has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
<al2o3-cr>
\o/
havenwood has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
mleung has quit [Client Quit]
khebbie has quit [Ping timeout: 272 seconds]
dgutierrez1287 has joined #ruby
ruurd has joined #ruby
<imperator>
what a pain
allcentury has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
<al2o3-cr>
never came across this before
<imperator>
me neither, fairly new to powershell
jester13_ has joined #ruby
Yzguy has joined #ruby
texasmade has joined #ruby
jester13 has quit [Ping timeout: 250 seconds]
gamename has joined #ruby
Yzguy has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
xxneolithicxx has quit [Max SendQ exceeded]
Trynemjoel has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
willywos has joined #ruby
Soda has joined #ruby
<al2o3-cr>
ah, you learn something new everyday :)
bb010g has joined #ruby
Trynemjoel has joined #ruby
devdazed has joined #ruby
djbkd_ has quit [Remote host closed the connection]
allcentury has joined #ruby
t_ has quit [Ping timeout: 252 seconds]
devdazed has quit [Client Quit]
EllisTAA has joined #ruby
<arup_r>
al2o3-cr + h2So4 ?
<arup_r>
But your idea of picking the nickname from Chemistry is innovative.. al2o3-cr
rehat has quit []
<arup_r>
:D
allcentury has quit [Ping timeout: 264 seconds]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 260 seconds]
<[k-_>
H2SO4*
EllisTAA has quit [Quit: EllisTAA]
exadeci has joined #ruby
<arup_r>
[k-, ;)
marr has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
saddad has quit [Ping timeout: 255 seconds]
Limix has joined #ruby
<Ox0dea>
That makes three people I know of whose handles were directly inspired by Ruby: al2o3-cr here, and /u/Enumerably_any and /u/0x7262.
<Ox0dea>
I suspect there are many more.
Trynemjoel has joined #ruby
<al2o3-cr>
it was gonna be al2o3::cr but freenode said that errenous :(
<Ox0dea>
I know that feeling well. :/
<adaedra>
awww.
<al2o3-cr>
:(
<adaedra>
I wanted a nick with no meaning but learned afterwards that it was not the case.
RegulationD has joined #ruby
Guest17350 has quit [Changing host]
Guest17350 has joined #ruby
__Aleserche__ has quit [Ping timeout: 256 seconds]
Guest17350 is now known as guyz
<Ox0dea>
Your nick makes me think of Daedric armor.
<adaedra>
Sorry.
gwendall has joined #ruby
Nahra has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Josh has joined #ruby
Josh has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
kadoppe has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
Trynemjoel has joined #ruby
OrbitalKitten has joined #ruby
jimms has joined #ruby
kadoppe has joined #ruby
monoprotic has joined #ruby
OrbitalKitten has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bazbing82 has joined #ruby
shinnya has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Trynemjoel has joined #ruby
<bazbing82>
do classes have before_hooks like in rails? So a method can be called before a method in the same instance method gets called? If so, is it possible to do something like this? https://gist.github.com/anonymous/0e57694b1da4334438a1
jimms has quit [Remote host closed the connection]
<Ox0dea>
GOTO support and a Douglas Adams reference.
casadei_ has joined #ruby
leesharma has joined #ruby
<bazbing82>
Ox0dea: haha brilliant. maybe I should name my module DeepThought
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
tejasmanohar has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
casadei_ has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
dagda1 has joined #ruby
Trynemjoel has joined #ruby
workmad3 has joined #ruby
eminencehc has joined #ruby
theery has quit [Remote host closed the connection]
drewo has joined #ruby
gwendall has quit [Remote host closed the connection]
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
theery has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
[H]unt3r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
bizportal has quit []
hahuang61 has quit [Ping timeout: 256 seconds]
Mia has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
snath has left #ruby ["Leaving"]
jaimessi has quit [Ping timeout: 244 seconds]
dc has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
quimrstorres has quit [Remote host closed the connection]
dc has joined #ruby
j4cknewt has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
zacstewart has joined #ruby
t_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<godofecht>
how do I subtract every element of an array by 1
<shevy>
Ox0dea lol at that ruboto output
<Ox0dea>
godofecht: map(&:pred)
<godofecht>
I've already got map(&:to_i)
<godofecht>
how do i chain them
eminencehc has quit [Quit: Leaving...]
<Ox0dea>
godofecht: map(&:to_i).map(&:pred)
<godofecht>
thank you so much
<Ox0dea>
Happy to help.
<monsieurp>
godofecht: have you tried using pry?
arup_r has quit [Quit: Leaving]
_ht has quit [Quit: Konversation terminated!]
Trynemjoel has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ciao.]
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
Trynemjoel has joined #ruby
<godofecht>
what's pry?
<al2o3-cr>
?pry
<ruboto>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<banister>
?binding_of_caller
<ruboto>
I don't know anything about binding_of_caller
andrewjanssen has joined #ruby
leesharma has quit [Ping timeout: 265 seconds]
juanpablo_______ has joined #ruby
andrewjanssen has quit [Client Quit]
<Ox0dea>
banister: Where does the @ magic happen?
<banister>
Ox0dea ?
saddad has joined #ruby
<Ox0dea>
banister: Pry avoids "`@' without identifiers is not allowed as an instance variable name".
<banister>
Ox0dea are you referring to the @ alias for the whereami command?
codecop has quit [Remote host closed the connection]
vickleton has quit [Quit: Ex-Chat]
Channel6 has joined #ruby
vickleton has joined #ruby
godofecht has quit [Quit: Page closed]
hahuang61 has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
juanpablo_______ has quit [Ping timeout: 252 seconds]
erichodges has joined #ruby
<banister>
Ox0dea ?
vickleton has quit [Ping timeout: 255 seconds]
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
theery has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
sarkyniin has joined #ruby
djbkd_ has joined #ruby
xxneolithicxx has joined #ruby
<Ox0dea>
banister: I'm mostly just wondering how you went about avoiding the syntax error.
<banister>
Ox0dea ah ok, well pry commands are not methods
<banister>
basically we take input from the user
<banister>
and look at it to determine if it's a 'command' first
<Ox0dea>
Ah, yeah, I derped.
<banister>
if it is, then we process it, otherwise, we assume it's ruby and use ruby to evaluate it
<Ox0dea>
Yep, I rather naively assumed you were evaluating all input.
<banister>
nah :)
<banister>
using commands instead gives us a few winds
<banister>
wins*
<banister>
it means we can provide a lot of functionality without having to inject a tonne of methods into Object
<banister>
it also means we can provide our own syntax that can be more convenient that typical ruby method syntax
<Ox0dea>
Makes perfect sense.
<banister>
e.g: ls -l
<banister>
vs: ls '-l'
<tejasmanohar>
im writing my first gem from scratch. it's an api wrapper. anyone know another really simple open-source api wrapper gem that i can refer to?
Trynemjoel has quit [Ping timeout: 250 seconds]
<Ox0dea>
To be fair, `ls -l` isn't syntactically invalid, so you could've done some wacky things to make it evaluate as desired.
<tejasmanohar>
like a pretty simple one rather than one like twilio-ruby w/ a lot of functionality
hahuang61 has quit [Ping timeout: 246 seconds]
<Ox0dea>
That's true for everything but @, I believe, which led me to the initial question.
<tejasmanohar>
basically wrapping endpoints and parsing data back from them w/ ruby fn
<tejasmanohar>
not even doing auth rn
<shevy>
tejasmanohar just write!
<shevy>
tejasmanohar is your gem already working as-is
Trynemjoel has joined #ruby
<tejasmanohar>
it's non-existent as is :P shevy
<tejasmanohar>
wanted to see another example, understand that one, then go forth
<shevy>
finish the code first, then you are 99% towards the finished .gem
<tejasmanohar>
fair enough
<tejasmanohar>
write it then abstract it , ok :)
baweaver has joined #ruby
<Ox0dea>
I disagree; abstractions first.
<tejasmanohar>
but i mean i just thought it'd be good to look at how others write api wrappers first, trying to think of a really simple api to look at the api for
<shevy>
it's easy to adjust or add to the gem lateron anyway
<tejasmanohar>
to see how they lay it out and whatnot
<Ox0dea>
tejasmanohar: Wrap the reddit API.
<tejasmanohar>
Ox0dea: i already know what api i wanna wrap :) - just want to look at another wrapper first of a simple api
<tejasmanohar>
i'll lok at reddit ruby wrapper one sec
Vile` has quit [Ping timeout: 240 seconds]
<Ox0dea>
tejasmanohar: There are several, but I don't believe any of them have been updated to use the new OAuth2 interface.
<tejasmanohar>
no auth in the api i'm wrapping
<Ox0dea>
tejasmanohar: How simple is it? JSON in, JSON out?
<tejasmanohar>
only fetching
<tejasmanohar>
JSON out
<tejasmanohar>
URL in :)
<tejasmanohar>
all GETs for the parts i wanna wrap
Vile` has joined #ruby
<tejasmanohar>
it's actually RSS feeds
<tejasmanohar>
not JSON out that was a different one
<tejasmanohar>
sry
<tejasmanohar>
RSS feeds for this one
<Ox0dea>
So... no out?
<Ox0dea>
What do you intend to do with the RSS feeds you're fetching?
<Ox0dea>
Sure, but then what do you want to do with the resultant data?
<Ox0dea>
Oh, just... display it?
<tejasmanohar>
yeah sure just return it really, multiple endpoints though not just that feed
theery has joined #ruby
<tejasmanohar>
its quite easy to just write a function given IATA code + departure/arrival to go fetch and return that info for me
<tejasmanohar>
but i want to write a gem ;)
<Ox0dea>
That doesn't really fit under what is typically considered an API wrapper, for reference.
<tejasmanohar>
yeah fair
<tejasmanohar>
i shouldn't have said that
Agoldfish has joined #ruby
<tejasmanohar>
it's not like google maps api wrapper or reddit or anything like that
erichodges has quit [Quit: erichodges]
<tejasmanohar>
doesn't have actions
<tejasmanohar>
except fetch
<tejasmanohar>
fetch/read
zacstewart has quit [Remote host closed the connection]
<tejasmanohar>
i was previously just going to write a module in lib/ folder of my rails app for airfarewatchdog w/ just a few functions like fetch_arrivals(iata_code), fetch_departures(iata_code)
<tejasmanohar>
gotcha thats what i was asking about :)
<tejasmanohar>
ah perfect!
<tejasmanohar>
Ox0dea: but if i use RSS without the gem just with default ruby libraries is there any reason to wrap the dependency?
Renich has joined #ruby
<tejasmanohar>
since this is an airfarewatchdog rss client, if airfarewatchdog removes rss then it's screwed anyways
drewo has quit [Ping timeout: 264 seconds]
<Ox0dea>
tejasmanohar: Counting Ruby itself as a dependency seems rather odd. :P
<tejasmanohar>
i should probably not use dependencies unless needed
<Ox0dea>
Yes, that's generally wise.
<tejasmanohar>
Ox0dea: moreover, the question is not whether to count ruby as a dependency but whether to make a open(url) do |rss| ... end call in each function of my api wrapper
<tejasmanohar>
i guess it's fine :P
<tejasmanohar>
feed = RSS::Parser.parse(rss) etc in every function
<tejasmanohar>
or to wrap that as well, just like write a private function parse_rss() or something
<tejasmanohar>
it's practically the same thing i suppose
ohaibbq has quit [Remote host closed the connection]
<Ox0dea>
tejasmanohar: Does a single call return all the data you're interested in?
leafybas_ has joined #ruby
leafybas_ has quit [Read error: Connection reset by peer]
leafybasil has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
dseitz has joined #ruby
<Ox0dea>
That's gotta be some kinda record.
tubuliferous has quit [Ping timeout: 256 seconds]
<tejasmanohar>
lol sorry, i'll combine messages ;) ... starting now, so would you make a class to make all the requests to RSS feeds, Ox0dea ? and the class would have a function that basically just returns the `RSS::Parser.parse(rss)` parsed into ruby version of the rss feed?
simplyianm has joined #ruby
devdazed has joined #ruby
<Ox0dea>
tejasmanohar: Hmm, are fetch_arrivals and fetch_departures the only two methods you mean to expose?
djbkd_ has quit []
<tejasmanohar>
Ox0dea: i plan to write a function to scrape all the airport codes supported by airfarewatchdog as well and expose that... but at first, yes i think those are the only two.
<tejasmanohar>
there are other feeds but i don't plan to deal w/ them rn
Renich has quit [Quit: leaving]
dgutierrez1287 has joined #ruby
<Ox0dea>
tejasmanohar: In that case, you might as well define them as module functions, and expose the IATAs as a public constant.
simplyianm has quit [Remote host closed the connection]
apfeluser has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 252 seconds]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<tejasmanohar>
Ox0dea: makes sense, yeah
scripore has quit [Quit: This computer has gone to sleep]
<tejasmanohar>
Ox0dea: thats what i would've done in the lib/ folder of rails app :P
drewo has joined #ruby
<tejasmanohar>
Ox0dea: but the real question i had is should each module function make requests to the rss feeds like https://gist.github.com/tejasmanohar/52ae8962e806421ff0c2 or should i write a separate class that makes the requests given the URL extension off of airfarewatchdog.com/rss/ and returns the `RSS::Parser.parse(rss)` result?
gwendall has joined #ruby
<tejasmanohar>
even though it's only 2 functions rn, trying to write this properly for once :)
<Ox0dea>
tejasmanohar: Thing.fetch_arrivals(iata) > IATA.new(iata).fetch_arrivals, unless you can think of other methods that would belong on IATA.
<Ox0dea>
And really, that's not a very semantically meaningful abstraction, so any methods which could conceivably go on IATA would be better on Thing anyhow.
<NoidedSuper>
So I read a few blog posts on why Sequel was better than ActiveRecord, agreed with their points (they mostly just pointed out stuff that absolutely infuriated me about AR), and decided to switch. But then I find out that Sequel doesn't really have a good FriendlyId replacement—the closest thing I can find was last updated in 2010 and doesn't work with any of the most recent versions of stuff.
<tejasmanohar>
Ox0dea: true, module is all i need right now
<NoidedSuper>
So I figured I'd ask here if anybody else had similar problems before I just give up and write a gem for it myself
<tejasmanohar>
ok, starting to code ;)
<Ox0dea>
shevy: He's starting to code.
<shevy>
hehehehe
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
<tejasmanohar>
lol
<tejasmanohar>
on the gem, not the rails app :P
hahuang61 has joined #ruby
khebbie has joined #ruby
casadei_ has joined #ruby
khebbie has quit [Ping timeout: 240 seconds]
Muhannad has quit [Ping timeout: 265 seconds]
devdazed has joined #ruby
devdazed has quit [Client Quit]
casadei_ has quit [Ping timeout: 246 seconds]
Musashi007 has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
zacstewart has joined #ruby
tenderlove has quit [Remote host closed the connection]
irctc504 has quit [Ping timeout: 246 seconds]
AndyBotwin has joined #ruby
AndyBotwin has joined #ruby
triangles has joined #ruby
hahuang61 has joined #ruby
arescorpio has joined #ruby
scrudrv has joined #ruby
zacstewart has quit [Remote host closed the connection]
bronson has joined #ruby
Musashi007 has quit [Quit: Musashi007]
scrudrv has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
SirCmpwn has left #ruby ["WeeChat 1.2"]
juanpablo_______ has joined #ruby
hahuang61 has joined #ruby
<shevy>
tejasmanohar you could always try a test-gem and remove it lateron, then you know how to do it
ribbons has joined #ruby
skade has joined #ruby
<shevy>
remove a gem: gem yank name_here --version number_of_version_here