oncall-pokemon has quit [Quit: Connection closed for inactivity]
Oli_Wal has joined #ruby
saneax is now known as saneax-_-|AFK
symm- has quit [Quit: Leaving...]
M-shine has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
dminuoso has joined #ruby
claw has joined #ruby
davedev24 has joined #ruby
Drumphet has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
nitric has quit [Ping timeout: 240 seconds]
mrBen2k2k2k has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
M-shine has joined #ruby
TheWhip has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
Oli_Wal has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacsek has joined #ruby
kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheWhip has quit [Ping timeout: 260 seconds]
Didac has joined #ruby
e2021 has joined #ruby
davedev24 has joined #ruby
karmatr0n has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
OTORelic has joined #ruby
cdg has quit [Remote host closed the connection]
phredus has quit [Read error: Connection reset by peer]
meatsmoker is now known as retail_investor
Pumukel has joined #ruby
phredus has joined #ruby
PlasmaStar has quit [Ping timeout: 252 seconds]
PlasmaStar has joined #ruby
flashpoint9 has joined #ruby
Derperperd has quit [Quit: Derperperd]
Pumukel has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
mrBen2k2k2k has quit [Ping timeout: 258 seconds]
craysiii has joined #ruby
kami__ has quit [Quit: Leaving]
smathy is now known as smathy_afk
flashpoint9 has quit [Ping timeout: 250 seconds]
mixtli has quit [Ping timeout: 258 seconds]
moon_ has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
The_Phoenix has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
rsampaio_ has joined #ruby
aryaching has quit [Remote host closed the connection]
rsampaio_ has quit [Client Quit]
RedNifre has quit [Ping timeout: 252 seconds]
rsampaio_ has joined #ruby
ag4ve has joined #ruby
jazzonmym111nd has joined #ruby
e2021 has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
TheWhip has joined #ruby
jazzonmym11nd has quit [Ping timeout: 240 seconds]
mixtli has joined #ruby
marr has quit [Ping timeout: 252 seconds]
sp_ has joined #ruby
AndrewIs_ has joined #ruby
AndrewIsHere has quit [Read error: Connection reset by peer]
andersoldahl has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
TheWhip has quit [Ping timeout: 258 seconds]
b3atr has joined #ruby
<b3atr>
how to prevent RTL flipping in gtk3?
<b3atr>
I want to for example; arabic text be in same direction as english
<b3atr>
just like, notepad
sp_ has quit [Ping timeout: 276 seconds]
stamina has joined #ruby
e2021 has joined #ruby
jenrzzz has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
spudowiar has quit [Quit: zzzzzZzZZZZZzZZzzzZZZ]
eljimmy has quit [Ping timeout: 244 seconds]
eljimador has quit [Ping timeout: 240 seconds]
AndrewIs_ has quit [Remote host closed the connection]
andersoldahl has quit [Quit: Goodbye everyone.]
Azure has joined #ruby
zacstewart has joined #ruby
zacsek has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 250 seconds]
AndrewIsHere has joined #ruby
chestnutpie has quit [Quit: Leaving]
stamina has quit [Quit: WeeChat 1.5]
Burgestrand has joined #ruby
e2021 has quit [Remote host closed the connection]
blackmesa has joined #ruby
RedNifre has joined #ruby
flashpoint9 has joined #ruby
dminuoso has joined #ruby
speakingcode has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
meth has quit [Quit: Bye!]
e2021 has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
mixtli has quit [Ping timeout: 244 seconds]
dminuoso has quit [Ping timeout: 252 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
moon_ has joined #ruby
giz|work has joined #ruby
OTORelic1 has joined #ruby
RegulationD has quit [Remote host closed the connection]
LoneHer__ has joined #ruby
OTORelic has quit [Ping timeout: 264 seconds]
giz|work has quit [Ping timeout: 250 seconds]
monoprotic has quit [Remote host closed the connection]
monoprotic has joined #ruby
beilabs has joined #ruby
TheWhip has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
mixtli has joined #ruby
TheWhip has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
Pumukel has joined #ruby
monoprotic has quit [Ping timeout: 244 seconds]
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eljimmy has joined #ruby
eljimbo has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
anuxivm has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
Pumukel has quit [Ping timeout: 264 seconds]
replay has quit []
Pumukel has joined #ruby
hahuang61 has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
anuxivm has joined #ruby
anuxivm has quit [Max SendQ exceeded]
AndrewIsHere has joined #ruby
JeanCarloMachado has joined #ruby
moonythedwarf_ has joined #ruby
e2021 has quit [Ping timeout: 250 seconds]
moon_ has quit [Ping timeout: 244 seconds]
davee_ has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
Pumukel has joined #ruby
youch has joined #ruby
beilabs has quit [Ping timeout: 258 seconds]
eljimbo has quit [Quit: This computer has gone to sleep]
Pumukel has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
mixtli has quit [Ping timeout: 265 seconds]
eljimmy has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
jaguarmagenta has joined #ruby
<danst>
what do you use ruby for
<danst>
how good is it
der-landgraf has quit [Quit: WeeChat 1.5]
TheWhip has joined #ruby
Pumukel has joined #ruby
<adam12>
danst: lots of stuff and good
<danst>
adam12: how do you make money with ruby
<danst>
adam12: that's the question I wanted to ask actually
<adam12>
danst: Web dev. Lots of Rails work available.
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<danst>
but I'm tired of reinventing bycicles
<danst>
how do you find a client that wants a very special business logic
<danst>
most perverted
<danst>
etc
<adam12>
I dunno. What makes business logic special?
<adam12>
Business logic is business logic.
tdy has joined #ruby
<danst>
adam12: inability to find a solution on a cheap market
e2021 has joined #ruby
<danst>
if a person wants a blog, he goes with wordpress, because that's only thing he has heard about and it's sold for cheap everywhere
<danst>
ecommerce go for solidus, spree, other ready solutions
<danst>
I guess you get the idea
TheWhip has quit [Ping timeout: 244 seconds]
<danst>
I want to do something really useful
jenrzzz has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
e2021 has quit [Client Quit]
<adam12>
I don't. Not really. I'm not building blogs OR ecommerce.
<adam12>
If you want different work, look for it. If you can't find it, you're likely in the wrong network / place.
<adam12>
If all you find are people wanting Wordpress blogs, maybe you're targeting the market that wants those - realestate agents, etc.
<danst>
I guess it's kind of rude of me to ask that on public
<danst>
but who's your ideal client
duncannz has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
<adam12>
Not realestate agents. LOL.
duncannz has quit [Max SendQ exceeded]
<adam12>
My best clients are the ones with a business plan and are engaged.
duncannz has joined #ruby
<adam12>
The worst are the ones who take 2 weeks to reply to simple emails, never comment on stories but always want things changed after the fact, and change their business model every other week.
jenrzzz has quit [Ping timeout: 244 seconds]
<danst>
I like your criteria
nankyokusei has joined #ruby
<danst>
I will think about that, thank you
Drumphet has joined #ruby
blackmesa has joined #ruby
conah has quit [Quit: Leaving]
youch has quit [Ping timeout: 260 seconds]
conah has joined #ruby
conah has quit [Remote host closed the connection]
konah has joined #ruby
konah has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
tectonic has joined #ruby
Vingador has joined #ruby
dminuoso has joined #ruby
Drumphet has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 264 seconds]
eljimmy has quit [Ping timeout: 240 seconds]
JesseH has quit [Ping timeout: 244 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 276 seconds]
lightstalker has quit [Ping timeout: 276 seconds]
dminuoso has quit [Ping timeout: 276 seconds]
bruce_lee has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
AndrewIsHere has quit [Remote host closed the connection]
lightstalker has joined #ruby
RegulationD has joined #ruby
dikaio has joined #ruby
moeabdol has joined #ruby
fly5566 has quit [Ping timeout: 240 seconds]
tectonic has quit []
beilabs has joined #ruby
Pumukel has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Drumphet has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
kira has quit [Ping timeout: 240 seconds]
JesseH has joined #ruby
b3atr has quit [Quit: WeeChat 1.5]
moeabdol has quit [Ping timeout: 276 seconds]
eljimmy has joined #ruby
ddffg has quit [Ping timeout: 276 seconds]
kira has joined #ruby
mikeiniowa has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
Drumphet has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
most methods you call on an object are found in its class or one of its superclasses, not the object itself.
the_rhizo3 has quit [Ping timeout: 276 seconds]
mikeiniowa has joined #ruby
Vile` has joined #ruby
<jazzonmym111nd>
my gripe with net/http is that it provides multiple APIs to complete the same task, and each API has its own trade off but if you use Net::HTTP.new and #get etc instance methods, it's okay to use.
<soulisson>
apeiros, I agree, but I think at a high level it's seen as an independant entity that holds data, and methods, as showed in the diagram I posted
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
coolboy has joined #ruby
lxsameer__ has quit [Quit: WeeChat 1.5]
mrgrieves has joined #ruby
zacstewart has joined #ruby
davee_ has quit [Ping timeout: 240 seconds]
dipnlik has quit [Quit: dipnlik]
e2021 has joined #ruby
jaguarmagenta has joined #ruby
coolboy has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
jeanlinux has joined #ruby
e2021 has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
zacstewart has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
e2021 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
zacstewart has joined #ruby
flashpoint9 has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
dminuoso has joined #ruby
LoneHerm_ has joined #ruby
e2021 has quit [Quit: WeeChat 1.5]
moeabdol has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
meth is now known as sjw
blackmesa has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sjw is now known as Guest44089
Pumukel has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
Guest44089 is now known as svit
tomphp has joined #ruby
svit is now known as cx850
beilabs has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
beilabs has joined #ruby
the_rhizo3 has joined #ruby
beilabs_ has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
the_rhizo3 has quit [Ping timeout: 244 seconds]
tk___ has joined #ruby
Pumukel has quit [Ping timeout: 276 seconds]
karmatr0n has quit [Ping timeout: 258 seconds]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
tomphp has joined #ruby
Weavel has joined #ruby
PalaHO has quit [Ping timeout: 265 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
Pumukel has joined #ruby
tsia has joined #ruby
cx850 is now known as Tima
Pumukel has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsia has quit [Client Quit]
nadir has joined #ruby
Pumukel has joined #ruby
Tima is now known as Balyana
team2016 has left #ruby [#ruby]
anisha has joined #ruby
giz|work|2 has quit [Read error: Connection timed out]
Pumukel has quit [Ping timeout: 250 seconds]
Balyana is now known as Dalas
Pumukel has joined #ruby
giz|work has joined #ruby
hogetaro has joined #ruby
Igor_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
lightheaded has quit [Remote host closed the connection]
wugy has joined #ruby
zacstewart has quit [Ping timeout: 258 seconds]
lupine has joined #ruby
Vlat- has joined #ruby
Pumukel has joined #ruby
Vlat- has quit [Client Quit]
dminuoso has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
zacstewart has joined #ruby
blackmesa has joined #ruby
LoneHermit has joined #ruby
wuyin has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
wuyin has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
dminuoso has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
Vlat- has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
Vlat- has quit [Client Quit]
ddffg has joined #ruby
FernandoBasso has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
wugy has quit []
wugy has joined #ruby
pandaant has joined #ruby
Pumukel has joined #ruby
jazzonmym1nd has joined #ruby
nertzy has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<foxxx0>
how do i specify the multiline flag to a %r{} regex?
jazzonmym111nd has quit [Ping timeout: 276 seconds]
<foxxx0>
just by %r{}m?
Davedev28 has joined #ruby
<hightower>
Yo, is there a terminal library in ruby that can match 'blessed' for node.js?
nertzy has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 244 seconds]
l4v2 has joined #ruby
nfk has joined #ruby
RegulationD has joined #ruby
Igor_ has quit [Read error: Connection reset by peer]
<leitz>
If object "myobject" has an attribute "myattribute", it is referred to as "myobject.myattribute". If myobject gets put into hash "myhash", isn't that attribute referred to as myhash["myobject"].myattribute?
Pumukel has quit [Ping timeout: 264 seconds]
<apeiros>
leitz: myhash[key].myattribute
blackmesa has joined #ruby
<apeiros>
the key is unrelated to myobject
A_Drone has joined #ruby
bkxd has joined #ruby
<leitz>
Ah, I think that part works. The code worked and passed tests before I started this morning. :(
<foxxx0>
hm
<foxxx0>
how do i split a multiline regex to multiple lines in my code?
<foxxx0>
if i use %r{}xm it does not match anymore
BigRonnieRon has joined #ruby
<apeiros>
foxxx0: let me guess - your regex has spaces in it which should be matched?
A_Drone has quit [Ping timeout: 240 seconds]
jazzonmym11nd has quit [Ping timeout: 244 seconds]
<foxxx0>
ah derp m(
<apeiros>
/foo bar/ != /foo bar/x
<foxxx0>
so /foo bar/ == /foo\sbar/x?
<apeiros>
no
<apeiros>
\s is more than just space. \x20 is space.
<apeiros>
(or \u0020 or any other escape sequence)
<StoBrendo>
i'm trying to install compass on debian 8 and it fails because it depends on core_ext and core_ext needs Ruby2.2 but i can't get Ruby2.2 from oficial repos. What should i do?
jgt3 has quit [Ping timeout: 240 seconds]
weaksauce has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
beilabs has joined #ruby
beilabs_ has quit [Ping timeout: 244 seconds]
eljimador has quit [Ping timeout: 240 seconds]
pokalyis has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
pokalyis has joined #ruby
braincrash has joined #ruby
nankyokusei has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
riscky has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has joined #ruby
Dalas has quit [Quit: Bye!]
wuyin has joined #ruby
flashpoint9 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
<matthewd>
StoBrendo: Go with ruby2.3, I guess
<matthewd>
(though at a glance, I don't actually see the core_ext dependency)
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has joined #ruby
Pumukel has joined #ruby
workmad3 has joined #ruby
futilegames has quit [Quit: futilegames]
ddffg has quit [Quit: Leaving]
ddffg has joined #ruby
codezomb has joined #ruby
dardak has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
vdamewood has quit [Ping timeout: 258 seconds]
kira has joined #ruby
flashpoint9 has joined #ruby
dardak has left #ruby [#ruby]
IanMalcolm has joined #ruby
JeanCarloMachado has quit [Ping timeout: 244 seconds]
dminuoso has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
pnes has joined #ruby
<pnes>
Ruby has no for loops right?
<pnes>
You just do an iterative and pass a block in it right?
<pnes>
Iterator*
<chris2>
it has for loops as sugar for .each. nobody uses them
andrewvos has quit [Quit: WeeChat 0.4.2]
RedNifre_ has joined #ruby
RedNifre has quit [Ping timeout: 250 seconds]
<drbrain>
↑ very rare that you'll see the `for` keyword used in ruby
<apeiros>
pnes: it has no C style `for` loop syntax
dminuoso has quit [Ping timeout: 265 seconds]
beilabs has quit [Remote host closed the connection]
meth has joined #ruby
beilabs has joined #ruby
workmad3 has joined #ruby
okapi has quit [Ping timeout: 260 seconds]
<foxxx0>
i'm having some trouble with datamapper, it tries to use a non-existing column in a where clause and i have no idea why... https://paste.foxxx0.de/m-yNtI1d/
spudowiar has quit [Quit: gtg]
<foxxx0>
the query is caused by a call to #admin? on a user instance
pnes has quit [Remote host closed the connection]
mrgrieve1 has joined #ruby
beilabs has quit [Ping timeout: 250 seconds]
vuoto has quit [Remote host closed the connection]
<apeiros>
your paste contains user & password if I see that correctly
vuoto has joined #ruby
<foxxx0>
doesn't matter, local dev env
kira has quit [Ping timeout: 250 seconds]
<foxxx0>
but thanks for the reminder
Pumukel has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<foxxx0>
i have not the slightest idea where that comes from
Pumukel has quit [Ping timeout: 240 seconds]
herdawyn has quit [Ping timeout: 244 seconds]
okapi has joined #ruby
ledestin has joined #ruby
Pumukel has joined #ruby
elifoster has joined #ruby
<apeiros>
foxxx0: IMO you don't provide enough information. I suspect you're doing something across associations which causes your behavior.
weckl has quit [Remote host closed the connection]
karmatr0n has joined #ruby
<foxxx0>
yeah, i don't really know what to supply, just throwing everything at you won't be much help either, cause the system is pretty complex
Pumukel has quit [Ping timeout: 264 seconds]
<foxxx0>
plus it's the first time ever i encounter problems with datamapper
symm- has joined #ruby
<foxxx0>
if have numerous other relations and they all work just fine
<foxxx0>
line 2 of that paste is the same as line 25 of spec/controllers/package_controller_spec.rb
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
nankyokusei has joined #ruby
<apeiros>
ok, having to search for that spec.rb in 3 pastes does not exactly make me want to help. not finding it even less so.
<apeiros>
but what you can do:
<apeiros>
start figuring at which step in that spec your code breaks.
<apeiros>
since that line obviously does a couple of things.
rajdesai has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 264 seconds]
<apeiros>
the information is still incomplete too, which I can tell by not seeing any of the methods of that line 2 anywhere in the backtrace (neither Kernel#p, nor Pundit.policy_scope, nor User.first)
<foxxx0>
the weird thing is: if I run that exact same line from within a pry shell, it works perfectly fine
<foxxx0>
so it should neither be caused by pundit, nor the user
<foxxx0>
it has to be somewhere in the rspec stuff
nankyokusei has quit [Ping timeout: 244 seconds]
<apeiros>
which is additional information I don't remember you sharing.
<foxxx0>
i have just tried it
<foxxx0>
i'm still trying to figure this out
Pumukel has joined #ruby
<apeiros>
binding.pry into the spec and figure what's different.
Dreamer3 has joined #ruby
AbstractArtist has quit []
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<foxxx0>
something in my spec is seriously messed up
<foxxx0>
none of the DM queries are working
<foxxx0>
User.all fails, Group.all fails
dminuoso has joined #ruby
stamina has joined #ruby
nedbat has joined #ruby
<nedbat>
hi, i'm coming from the python world. I've read that i should use rvm to get separate gem installations for separate projects, similar to virtualenv. is that good advice?
Davedev28 has quit [Ping timeout: 244 seconds]
the_rhizo3 has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
tens0r has quit [Quit: tens0r]
davee_ has joined #ruby
Pumukel has quit [Ping timeout: 276 seconds]
kira has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
davee_ has quit [Remote host closed the connection]
jeanlinux has joined #ruby
doublemalt__ has joined #ruby
l4v2 has quit [Quit: l4v2]
tristanp has quit [Remote host closed the connection]
ta_ has joined #ruby
Vlat- has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
doublemalt_ has quit [Ping timeout: 244 seconds]
jeanlinux has quit [Ping timeout: 240 seconds]
RedNifre_ is now known as RedNifre
Amaterasu has joined #ruby
IanMalcolm has joined #ruby
riscky has quit [Quit: riscky]
ta_ has quit [Ping timeout: 265 seconds]
IanMalcolm has quit [Max SendQ exceeded]
mtkd has quit [Ping timeout: 258 seconds]
miqlas-H has joined #ruby
<havenwood>
nedbat: These days most folk use Bundler to keep gem dependencies separate. You can use Bundler with RVM Gemsets or just not use Gemsets at all. RubyGems (which ships with Ruby) has gem dependency resolution features now but most folk still use the Bundler gem.
<havenwood>
nedbat: Another option is to use ruby-install to install Rubies, chruby to switch between them (if you really need more than one Ruby) and bundler for gem dependencies.
soLucien has joined #ruby
<nedbat>
havenwood: honestly, i don't know if i need more than one ruby. what I need is sass :)
<havenwood>
nedbat: Your package manager might also have an up-to-date Ruby package that does user-local gem installs and plays nice with Bundler. What OS/distro?
<nedbat>
havenwood: mac yosemite
hightower4 has quit [Ping timeout: 244 seconds]
Immune has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
<soLucien>
hello guys ! How would you go about truncating a string to a specific length ?
<soLucien>
say i want to truncate a string to the first 15 characters
<RedNifre>
So FreeBSD jails sound like they increase security. Why aren't they available for OpenBSD?
<havenwood>
nedbat: Using Homebrew or another package manager?
<nedbat>
havenwood: I use brew
<nedbat>
havenwood: which has sass as a package, but not other smaller gems that I'll need, so I need to be ruby-native somehow
theresearch has joined #ruby
blackwind_123 has joined #ruby
<RedNifre>
soLucien What does string length mean in that context? I'd use a unicode library and truncate to 15 grapheme clusters.
<soLucien>
strign length - number of chars
Pumukel has quit [Ping timeout: 264 seconds]
<soLucien>
i found a way to do it using the stdlib
<apeiros>
soLucien: String#[]
<RedNifre>
which language, which character encoding?
Pumukel has joined #ruby
<apeiros>
it's character based. requires of course that you have the encoding of your string set correctly.
<soLucien>
"bn,mnbvmnvbnmbvcnmvmnb".slice(0..15)
<apeiros>
slice and [] are aliases
poguez_ has joined #ruby
<RedNifre>
whoops, I thought I was reading a different channel, sorry :D
<RedNifre>
m)
RegulationD has quit [Ping timeout: 244 seconds]
OTORelic3 has quit [Ping timeout: 244 seconds]
<RedNifre>
0..15 is inclusive so you would be reading 16 characters, not 15.
<apeiros>
0,15 would be 15
<RedNifre>
you could use 0...15 but I think there was a simpler way, maybe .take(15) or something.
OTORelic3 has joined #ruby
<apeiros>
that's not simpler. the simplest is to use [offset, length] instead of offset..offset.
gtdBFmKOXx has joined #ruby
<soLucien>
great, saved me a lot of pain with this observation-
<havenwood>
nedbat: So you could `brew install ruby` for the Ruby 2.3.1 brew package or `brew install ruby-install chruby` for the ruby-install+chruby route or RVM. All would give you nice local user gems with the latest stable Ruby.
<havenwood>
nedbat: Then: gem install bundler
<havenwood>
nedbat: If you use `sudo` it'll be system Ruby, so don't use `sudo`.
JeanCarloMachado has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<nedbat>
havenwood: do you happen to have a link to a tutorial that would lay this out?
<foxxx0>
take attention to pry commands 3, 4 and 5
tectonic has quit []
djbkd has joined #ruby
<foxxx0>
obviously those two objects are the same, one is fine to serialize, the other one crashes and messes up the relations
<foxxx0>
i have no idea why
FernandoBasso has quit [Quit: Leaving]
<apeiros>
foxxx0: think about what piece of information you might be missing to give us here.
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<apeiros>
and the two objects are quite obviously not the same. they're equal (according to one object's == method)
<foxxx0>
yes, that's what i meant, sorry
Pumukel has joined #ruby
A124 has quit [Quit: '']
jgt3 has joined #ruby
<foxxx0>
something is messed up in the collection, accessing attributes like collection.first.user throws the error again
<foxxx0>
Package.first.user works fine
<apeiros>
time to think about the thing I said above.
<foxxx0>
i'm trying but this is driving me nuts
A124 has joined #ruby
<apeiros>
can't help when you're leaving out relevant information.
<foxxx0>
yes of course
<foxxx0>
can't even figure out what might be helpful for you
wugy has quit [Ping timeout: 265 seconds]
<apeiros>
so you figured collection and Package are not the same, right? tell me again, what do I know about collection? what did you tell me about it?
kira has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
<foxxx0>
okay, let me try to get this cleared up, maybe it's helping to clear my head as well
Tharbakim has quit [Ping timeout: 240 seconds]
kira has joined #ruby
<foxxx0>
i'm using the Pundit.policy_scope(user, Package) feature to get a collection of records of type Package, that the user is authorized to see
jgt3 has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
<foxxx0>
in this case, the user is an admin thus pundit returns scope.all which equals Package.all, that returns all Package records
SJr has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
<foxxx0>
the result of this scope is stored in a "collection" array, that is passed through various helpers, that would perform sorting/filtering/searching operations, that do not apply here, as there are no query params provided
zapata has quit [Quit: WeeChat 1.5]
vuoto has quit [Remote host closed the connection]
<foxxx0>
i have verified that the collection passes through fine
SJr has joined #ruby
Tharbakim has joined #ruby
<foxxx0>
in that last helper i am serializing the collection into a hash of the format { record.id => record.as_json, record.id => record.as_json, ... }
<foxxx0>
and somehow the .as_json method on the entries of that collection gets messed up, datamapper tries to access a field in the users table that does not exist
<foxxx0>
serializing a freshly queried Package instance using .as_json is perfectly fine
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
zapata has joined #ruby
dminuoso has joined #ruby
okapi has quit [Remote host closed the connection]
biberu has quit [Read error: Connection reset by peer]
Skardian has quit [Ping timeout: 264 seconds]
unreal has joined #ruby
Pumukel has joined #ruby
<foxxx0>
okay, trying to serialize entries from the collection in the beginning of #prepare_collection_output works fine, so the problem is caused by the each loop
dminuoso has quit [Ping timeout: 276 seconds]
heelpmeplz has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
heelpmeplz has joined #ruby
zacts has joined #ruby
Pumukel has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
tristanp has joined #ruby
craigp has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<foxxx0>
okay, using the same rspec seed over and over again while trying different stuff, it seems that it originates from the user: releationship in the #as_json of Package
craigp has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 258 seconds]
vuoto has quit [Remote host closed the connection]
Immune has joined #ruby
tens0r has joined #ruby
Vlat- has quit [Quit: Vlat-]
al2o3-cr has quit [Ping timeout: 250 seconds]
tens0r has quit [Client Quit]
spudowiar has joined #ruby
OTORelic3 has joined #ruby
monoprotic has quit [Ping timeout: 240 seconds]
monoprotic has joined #ruby
JeanCarloMachado has joined #ruby
OTORelic3 has quit [Ping timeout: 258 seconds]
<foxxx0>
okay
<foxxx0>
it's definitely the user relationship
<foxxx0>
seems like datamapper does not like having a belongs_to :user and a has n, :users, through: Resource on the same model
davedev2_ has quit [Remote host closed the connection]
Derperperd has joined #ruby
davedev24 has joined #ruby
<foxxx0>
i'm removing the relationship resolving from the package model, user_id has to be enough
eljimador has joined #ruby
Xiti` has joined #ruby
p0p0pr37_ has joined #ruby
duderono_ has joined #ruby
dreamyspell_ has joined #ruby
craigp has joined #ruby
AlexRussia_ has joined #ruby
MyMind has joined #ruby
dessm has quit [Quit: dessm]
AlexRussia_ has quit [Client Quit]
Pumukel has joined #ruby
jhack0 has joined #ruby
AlexRussia_ has joined #ruby
kireevco_ has joined #ruby
jhack has quit [Ping timeout: 252 seconds]
kireevco has quit [Ping timeout: 252 seconds]
Karunamon has quit [Ping timeout: 252 seconds]
podman_ has joined #ruby
podman has quit [Ping timeout: 252 seconds]
zeroDivisible has quit [Ping timeout: 252 seconds]
greenhat_ has quit [Ping timeout: 252 seconds]
Scient has quit [Ping timeout: 252 seconds]
perry has quit [Ping timeout: 252 seconds]
boshhead_ has joined #ruby
canton7 has quit [Ping timeout: 252 seconds]
xpt has quit [Ping timeout: 252 seconds]
unforgiven512 has quit [Ping timeout: 252 seconds]
p0p0pr37 has quit [Ping timeout: 252 seconds]
Gadgetoid has quit [Ping timeout: 252 seconds]
nebg has quit [Ping timeout: 252 seconds]
ggherdov has quit [Ping timeout: 252 seconds]
p1k has quit [Ping timeout: 252 seconds]
galeido has quit [Ping timeout: 252 seconds]
miah has quit [Ping timeout: 252 seconds]
nemish has quit [Ping timeout: 252 seconds]
Authenticator has quit [Ping timeout: 252 seconds]
majjoha has quit [Ping timeout: 252 seconds]
lianj has quit [Ping timeout: 252 seconds]
p0p0pr37_ is now known as p0p0pr37
kira has quit [Ping timeout: 250 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
xlegoman has quit [Ping timeout: 252 seconds]
Xiti has quit [Ping timeout: 252 seconds]
eljimmy has quit [Ping timeout: 252 seconds]
Caelum has quit [Ping timeout: 252 seconds]
Sammichmaker has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
BTRE has quit [Ping timeout: 252 seconds]
Sembei has quit [Ping timeout: 252 seconds]
dreamyspell has quit [Ping timeout: 252 seconds]
boshhead has quit [Ping timeout: 252 seconds]
Steve_Jobs has quit [Ping timeout: 252 seconds]
woodruffw has quit [Ping timeout: 252 seconds]
surrounder has quit [Ping timeout: 252 seconds]
bqscott has quit [Ping timeout: 252 seconds]
erlendf has quit [Ping timeout: 252 seconds]
ljarvis has quit [Ping timeout: 252 seconds]
tax has quit [Ping timeout: 252 seconds]
Meeh has quit [Ping timeout: 252 seconds]
olblak has quit [Ping timeout: 252 seconds]
redondos has quit [Ping timeout: 252 seconds]
joes has quit [Ping timeout: 252 seconds]
humd1ng3r has quit [Ping timeout: 252 seconds]
siovene has quit [Quit: Connection closed for inactivity]
Meeh has joined #ruby
boshhead_ is now known as boshhead
ggherdov_ has joined #ruby
kireevco_ is now known as kireevco
lianj has joined #ruby
lianj has quit [Changing host]
lianj has joined #ruby
podman_ is now known as podman
galeido has joined #ruby
nclbr has joined #ruby
nemish has joined #ruby
kira has joined #ruby
miah has joined #ruby
olblak has joined #ruby
ljarvis has joined #ruby
joes has joined #ruby
<nedbat>
havenwood: I have installed bundler with "gem install bundler". Now I have a "bundler" command (and "bundle"!), but I don't see how it isolates project requirements. I made a Gemfile, but "bundle install" wants my sudo password.
unforgiven512 has joined #ruby
nankyokusei has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
jgt3 has joined #ruby
ggherdov_ is now known as ggherdov
theresearch01 has quit [Ping timeout: 244 seconds]
Karunamon has joined #ruby
greenhat_ has joined #ruby
erlend has joined #ruby
Scient has joined #ruby
nebg has joined #ruby
redondos has joined #ruby
humd1ng3r has joined #ruby
Gadgetoid has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
redondos has quit [Changing host]
redondos has joined #ruby
canton7 has joined #ruby
woodruffw has joined #ruby
<zenspider>
nedbat: "don't see how" doesn't mean it doesn't.
<nclbr>
Hi, I'm working on a gem to profiling rack application, and for this I'm creating a View class to help me managing views. And I'm creating basic content_for but my knowledge aren't enough about capturing into views. Does somebody can explain me basics about ERB buffer and how to capture a block into a view?
chris2 has quit [Ping timeout: 258 seconds]
<nedbat>
zenspider: why does it need my sudo password? That's a red flag.
zeroDivisible has joined #ruby
<zenspider>
nedbat: presumably you're running with a stock ruby that installs into a stock path and is owned by root. common on OSX for example
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
<zenspider>
it still installs stuff in your regular gem home
<zenspider>
(unless you say otherwise, I think)
<nedbat>
zenspider: what should I do to change that?
nankyokusei has quit [Ping timeout: 264 seconds]
<zenspider>
nedbat: you can `export GEM_HOME /some/other/path` but then you have to always have that
<zenspider>
I think you can say to use some vendor dir
<nedbat>
zenspider: i'm used to python's virtualenv which does this for me. I asked about rvm, and was told that bundler was the current way to do it.
<zenspider>
nedbat: most people use a combo of rbenv/rvm/whatever + bundler
bqscott has joined #ruby
<zenspider>
they're orthogonal, except that rvm tries to do EVERYTHING
<zenspider>
but... rbenv/rvm create & install a private ruby, which takes care of your permission problems entirely
Pumukel has joined #ruby
<nedbat>
zenspider: do you happen to have a link to a guide explaining this? An earlier link had a step of, "install rails, which gets you everything you need", and I don't want rails.
<zenspider>
sudo chown -R or sudo chmod -R would too
<zenspider>
nedbat: I don't.
<nedbat>
ok, thanks
<zenspider>
go install rbenv + ruby-install per instructions on rbenv
<zenspider>
once you install and switch to a private ruby build, then you don't have permission problems
<zenspider>
then bundle (which you'll have to reinstall into the private ruby's gems) will just "work"... for whatever version of "work" you apply to bundler
marr has joined #ruby
<nedbat>
zenspider: thanks
ta_ has joined #ruby
surrounder has joined #ruby
claudiuinberlin has quit []
majjoha has joined #ruby
Steve_Jobs has joined #ruby
BTRE has joined #ruby
xpt has joined #ruby
p1k has joined #ruby
Caelum has joined #ruby
dminuoso has joined #ruby
Pumukel has quit [Ping timeout: 276 seconds]
Danishman has joined #ruby
Pumukel has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
TheWhip has quit [Remote host closed the connection]
aidalgol has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
dminuoso has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: see y'all]
Pumukel has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
Rodya_ has joined #ruby
kira has quit [Read error: Network is unreachable]
davedev24 has quit [Remote host closed the connection]
kira has joined #ruby
davedev24 has joined #ruby
Pumukel has joined #ruby
nclbr has quit [Quit: Leaving...]
Amaterasu has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
soLucien has quit [Quit: Leaving]
Davedev28 has joined #ruby
M-mistake has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
M-shine has quit [Remote host closed the connection]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
M-shine has joined #ruby
nando293921 has quit [Ping timeout: 258 seconds]
Derperperd has quit [Quit: Derperperd]
nando293921 has joined #ruby
jgt3 has joined #ruby
jkhl has quit [Ping timeout: 258 seconds]
KaliLinuxGR has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
evansbee_ is now known as evansbee
tristanp has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
dminuoso has joined #ruby
Limix has quit [Quit: Limix]
poguez_ has quit [Quit: Connection closed for inactivity]
TheWhip has joined #ruby
tristanp has joined #ruby
Rodya_ has quit [Remote host closed the connection]
dminuoso has quit [Ping timeout: 265 seconds]
dsea11 has quit [Quit: Leaving]
dessm has quit [Quit: dessm]
TheWhip has quit [Ping timeout: 276 seconds]
pythonator has joined #ruby
davedev24 has quit [Remote host closed the connection]
<pythonator>
Hey - I'm scraping a page on a site, but the site requires me to click a Checkbox and submit a form before it allows even my regular browser to retrieve the target page. Is there a ruby equivalent of lets say Selenium, to create an HTTP session and act like a regular browser has proceeded through the "gateway" page?
sepp2k has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
<pythonator>
(i'm moving from 10 years of python experience to my first ruby app)