belmoussaoui_ has quit [Remote host closed the connection]
belmoussaoui_ has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
ddffg has joined #ruby
mathys has joined #ruby
jgt1 has joined #ruby
blackmesa has joined #ruby
stupidsenpai has joined #ruby
DeeJayh has joined #ruby
stupidsenpai has quit [Client Quit]
dasher00 has quit [Ping timeout: 260 seconds]
normie1_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puppet___ has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
doublemalt__ has joined #ruby
bkxd has joined #ruby
belmoussaoui_ has quit [Read error: Connection reset by peer]
belmoussaoui_ has joined #ruby
doublemalt_ has quit [Ping timeout: 268 seconds]
dasher00 has joined #ruby
doublemalt__ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
Bhootrk_ has joined #ruby
BSab has quit [Quit: Leaving]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lyubo1 has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
ResidentBiscuit has joined #ruby
<MarkBilk>
I'm using Ruby 2.3 in MSWindows, trying to use the print method with two objects (OK in 2.4.1 doc), but it gets a syntax error on the comma after the first object. How do I find the docs for Ruby 2.3?
mathys has quit [Quit: Leaving]
Lyubo1 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
<hanmac>
MarkBilk: can you make a gist of your code piece?
<MarkBilk>
print ("elemTag.content = ", elemTag.content) elemTag.content is a string (nokogiri)
normie1 has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Remove the space after print
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
doublemalt__ has joined #ruby
User458764 has joined #ruby
jrafanie has joined #ruby
DeeJayh has joined #ruby
<MarkBilk>
Thanks! That fixed it.
<normie1>
using rvm ruby 2.2, but /usr/bin/ruby -v is saying 2.0.0 and this is what passenger is using causing errors, any ideas?
belmoussaoui has joined #ruby
belmoussaoui_ has quit [Ping timeout: 246 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mon_Ouie>
RVM sets up the PATH environment variable to use the correct Ruby version, it doesn't actually change /usr/bin/ruby. I don't know how to tell Passenger to use the correct version though. Are you sure the passenger process is started in an environment where rvm is correctly loaded?
BSAlb has joined #ruby
romank has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
pankaj has quit [Ping timeout: 272 seconds]
jgt1 has quit [Ping timeout: 240 seconds]
boombox_ has joined #ruby
Mon_Ouie has joined #ruby
boombox_ has quit [Ping timeout: 260 seconds]
Guest26966 has quit [Quit: Cya!]
b0mbnet has quit [Remote host closed the connection]
vahe has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pankaj has joined #ruby
pankaj has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
HoierM has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
danguita has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
Sembei has quit [Read error: No route to host]
Sembei has joined #ruby
romank has quit [Read error: Connection reset by peer]
cbyrda has joined #ruby
HoierM has joined #ruby
romank has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
vahe has quit [Remote host closed the connection]
dionysus69 has joined #ruby
vahe has joined #ruby
romank has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Quit: WeeChat 1.7.1]
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
romank has joined #ruby
<MarkBilk>
I used hpricot years ago and it was wonderful. But the gem won't install in Ruby2.3 in MSWindows 8.1, so I'm trying to use Nokogiri and having a very hard time. Element.text is supposed to be a String, but it won't print out.
<MarkBilk>
When I try to install the hpricot gem I get: ERROR: While executing gem ... (Gem::Exception)
<MarkBilk>
Unable to find spec for #<Gem::NameTuple hpricot, 0.8.6, x86-mswin32>
cagmz has joined #ruby
zepy_aq has quit [Remote host closed the connection]
rgr has joined #ruby
<tgragnato>
MarkBilk: hpricot development is ceased, you should really migrate to something else
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<MarkBilk>
tgragnato: is there anything other than nokogiri?
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
blackmesa has joined #ruby
uZiel has quit [Ping timeout: 246 seconds]
DeeJayh has joined #ruby
ptx0 has joined #ruby
belmoussaoui_ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
belmoussaoui has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 240 seconds]
swills has quit [Ping timeout: 246 seconds]
kmhn has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
kmhn has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
DeeJayh has quit [Ping timeout: 260 seconds]
swills has joined #ruby
weathermaker has joined #ruby
jusa has joined #ruby
weathermaker has quit [Client Quit]
weathermaker has joined #ruby
eckhardt has joined #ruby
DeeJayh has joined #ruby
blackmesa has joined #ruby
weathermaker has quit [Client Quit]
segmond has left #ruby [#ruby]
kmhn has quit [Remote host closed the connection]
kmhn has joined #ruby
hndk has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
marr has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
bronson has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
boringcp1 has joined #ruby
boringcpg has quit [Ping timeout: 246 seconds]
Talltree has quit [Quit: No Ping reply in 210 seconds.]
bronson has quit [Ping timeout: 260 seconds]
gil_ has quit [Ping timeout: 246 seconds]
DTZUZU has quit [Ping timeout: 255 seconds]
ericx2x has joined #ruby
gil_ has joined #ruby
gil_ has joined #ruby
gil_ has quit [Changing host]
noob has joined #ruby
noob has left #ruby ["Leaving"]
jeffreylevesque_ has quit [Ping timeout: 255 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZU has joined #ruby
Talltree has joined #ruby
ozzy3 has joined #ruby
<ozzy3>
hey guys
DeeJayh has quit [Ping timeout: 246 seconds]
tomphp has quit [Ping timeout: 258 seconds]
mdw has joined #ruby
tomphp has joined #ruby
romank has quit [Read error: Connection reset by peer]
doublemalt__ has quit [Quit: Leaving]
tildes has joined #ruby
kies has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<havenwood>
ozzy3: hi
tomphp has quit [Client Quit]
Sauvin has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
yogg-saron has joined #ruby
romank has joined #ruby
DeeJayh has joined #ruby
Cohedrin has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
bheesham has quit [Ping timeout: 240 seconds]
hndk has quit [Quit: Leaving]
User458764 has joined #ruby
<ozzy3>
how can i writin select other users nick
<ozzy3>
like u
<ozzy3>
havenwood
<nofxxxx>
MarkBilk, nokogiri has no more than 3 methods, what's complex its xpath/css
<nofxxxx>
but kinda like regex, after sometime you get usued to it and it's readable
jusa has quit [Ping timeout: 240 seconds]
<nofxxxx>
To learn each: rubular for regex and browser plugin for xpath... kinda like Ctrl + Shift + C on browser consoles you'll see the xpath
mdw has quit [Quit: Sleeping Zzzzz]
stormbytes has joined #ruby
Bock has quit [Quit: Leaving]
<stormbytes>
back to ruby after 4 days of hell dancing around Node's async model
bheesham has joined #ruby
<ozzy3>
:)
bheesham has quit [Ping timeout: 240 seconds]
kmhn has quit [Ping timeout: 240 seconds]
kmhn has joined #ruby
<nofxxxx>
stormbytes, after we decided js was a piece of s* we decided to write everything in JS
<stormbytes>
huh
qguv has joined #ruby
<stormbytes>
i dunno about it being a pos. I started with it some 2-3 years back with this project I had at the time and just went on with it... thinking it wasn't all that different than Ruby once you got the hang of it, and with all the Node hype
<stormbytes>
but i never got my head around Promises and how to integrate these into a server side scripting workflow
belmoussaoui has joined #ruby
<elomatreb>
Promises and a comfortable asynchronous workflow are the only reasons why I would even consider writing something JS
bheesham has joined #ruby
<stormbytes>
i guess if you need that sort of thing
<stormbytes>
I need to be able to return values from functions (predictably) and assign those values onwards in my workflow
<stormbytes>
all this split-streaming b.s. is for the youngins
DeeJayh has quit [Ping timeout: 260 seconds]
<havenwood>
ozzy3: type "hav" then hit <tab>
belmoussaoui_ has quit [Ping timeout: 246 seconds]
belmoussaoui_ has joined #ruby
qguv has quit [Quit: bye]
al2o3-cr has quit [Ping timeout: 240 seconds]
qguv has joined #ruby
al2o3-cr has joined #ruby
bheesham has quit [Ping timeout: 255 seconds]
belmoussaoui has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
kegster has joined #ruby
<ozzy3>
haha
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bheesham has joined #ruby
DeeJayh has joined #ruby
<stormbytes>
elomatreb what kind of tasks require an async workflow?
<havenwood>
elomatreb: The last node app I looked at used promises for api calls but if one failed the whole promise broke. I guess promises get better in ES2017.
fedruantine has joined #ruby
<elomatreb>
By "comfortable" I meant some layer of abstraction above just using raw threads
mathys has joined #ruby
<stormbytes>
right
qguv has quit [Quit: bye]
<stormbytes>
if you don't mind getting me started on my uphill climb back into Ruby, how does the workflow map from javascript?
qguv has joined #ruby
<stormbytes>
i'm specifically referring to node as all my work is in scripts
lxnr has joined #ruby
<stormbytes>
so, i presume gem = npm
<stormbytes>
are gems stored locally? globally? both?
<nofxxxx>
stormbytes, check `gem env` also, to see where things are going
<stormbytes>
ah, thanks
<stormbytes>
so no local/global gems?? all gems installed once then?
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<stormbytes>
i mean.. with npm every project had its own copies
<nofxxxx>
I know, personally I prefer gem default way... but you can install where you want
<nofxxxx>
stormbytes, also check out bundler...
<nofxxxx>
that's how you'll do in a project... so you can easily install/update global or local
qguv has joined #ruby
lxnr has quit [Quit: WeeChat 1.7.1]
qguv has quit [Client Quit]
<stormbytes>
ahh that rings a bell!
<stormbytes>
bunder is the task runner?
<stormbytes>
bundler
<stormbytes>
or something like that
<stormbytes>
and.. whats the correct workflow for gem installation + use? Do you start a new project, gem install <whatever gems> then create your files and start coding?
Bock has joined #ruby
<havenwood>
stormbytes: Usually for an app you'll create a Gemfile, put your deps in there, then run: bundle
<havenwood>
stormbytes: That will create a Gemfile.lock with the exact versions of each gem for your app.
<havenwood>
stormbytes: You then distribute the Gemfile.lock in version control so everyone can use the same versions of the same deps.
<havenwood>
stormbytes: It's more similar to Yarn than npm.
<stormbytes>
never used Yarn
<stormbytes>
what about gem versions?
<stormbytes>
do you explicitly state those in the gemfile?
<havenwood>
stormbytes: You can specify those in your Gemfile, then the exact versions and versions of deps will be generated in your Gemfile.lock.
<stormbytes>
i came to javascript after about a year or so of working with Ruby, it really seemed like the javascript workflow was essentially a clone... but, that's just my very limited viewpoint
belmoussaoui has joined #ruby
ozzy3 has left #ruby [#ruby]
belmoussaoui_ has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 246 seconds]
ozzy3 has joined #ruby
ta_ has joined #ruby
mim1k has joined #ruby
ozzy3 has quit [Read error: Connection reset by peer]
SaschaVoid has quit [Ping timeout: 272 seconds]
ltem has quit [Quit: Leaving]
Bock has quit [Quit: Leaving]
Bock has joined #ruby
bheesham has quit [Ping timeout: 240 seconds]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DeeJayh has joined #ruby
bheesham has joined #ruby
jshjsh has joined #ruby
ur5us has joined #ruby
bronson has joined #ruby
swills has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<MarkBilk>
nofxxxx: Problem with Nokogiri: tutorial at http://ruby.bastardsbook.com/chapters/html-parsing/ He says: puts page.css("title")[0].text # => My webpage. Correct, and works on my webpage too: http://www.cosmicpenguin.com/linux/ But change "title" to "img" (of which there are two on my page) and it does not print anything. hpricot was MUCH better.
wnd has joined #ruby
patr0clus has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]