duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has joined #ruby
infinityfye has joined #ruby
andikr has joined #ruby
cd has quit [Quit: cd]
xall_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
xall has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
Azure|dc has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
mossplix has joined #ruby
NL3limin4t0r has quit [Ping timeout: 260 seconds]
NL3limin4t0r has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
kaleido has quit [Ping timeout: 268 seconds]
Milos has quit [Ping timeout: 265 seconds]
Milos has joined #ruby
rcvu has quit [Remote host closed the connection]
kaleido has joined #ruby
ltp has quit [Ping timeout: 268 seconds]
ltp has joined #ruby
greenbagels has quit [Ping timeout: 258 seconds]
greenbagels has joined #ruby
rcvu has joined #ruby
imadper has quit [Ping timeout: 258 seconds]
xall_ has quit [Quit: xall_]
cthu| has quit [Ping timeout: 240 seconds]
vondruch has quit [Ping timeout: 265 seconds]
schne1der has joined #ruby
i9zO5AP has quit [Ping timeout: 245 seconds]
feep[work] has joined #ruby
greypack has quit [Ping timeout: 265 seconds]
Rob__ has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
ellcs has joined #ruby
i9zO5AP has joined #ruby
tsujp has joined #ruby
vondruch has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
dminuoso_ has joined #ruby
william1_ has joined #ruby
<dminuoso_>
Hiya. I have a Gemfile that specifies sqlite3 and I need to specify where the include and library directories for sqlite3. Where is the documentation how to specify the necessary flags?
<dminuoso_>
(pkg-config is not able to pick them up here because I'm on nixos)
<emilych>
Hi, is it possible to run a command line ruby script with arguments like "SERVER=PROD" instead of just "PROD"?
<dminuoso_>
(I cannot even execute `gem install sqlite -- --help` because the gems directory is located in a read-only filesystem)
conta has joined #ruby
<dminuoso_>
Concretely, I tried: bundler config build.sqlite --with-sqlite3-lib=${pkgs.sqlite}/lib --with-sqlite3-include=${pkgs.sqlite.dev}/include
<dminuoso_>
But these flags do not appear to get picked up by extconf
jenrzzz has joined #ruby
NODE has quit [Excess Flood]
NODE has joined #ruby
<dminuoso_>
Woah. Okay so it was just a typo in the gem name. Wish bundler would actually check if the gem even exists, but fine.
drincruz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
jenrzzz has joined #ruby
drincruz has quit [Ping timeout: 268 seconds]
bsdbandit-01 has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
tsujp has joined #ruby
jenrzzz has joined #ruby
phaul_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
andikr has quit [Quit: No Ping reply in 180 seconds.]
andikr has joined #ruby
jenrzzz has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
gitter1234 has joined #ruby
pwnd_nsfw has joined #ruby
Rob__ has quit [Ping timeout: 260 seconds]
floyd20183 has joined #ruby
phaul_ is now known as phaul
buckworst has joined #ruby
aesthe has joined #ruby
TCZ has joined #ruby
jenrzzz has joined #ruby
floyd20183 has left #ruby ["Leaving"]
davor has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Bye Bye]
davor has joined #ruby
conta has quit [Quit: conta]
Swyper has joined #ruby
aesthe has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has joined #ruby
cranq has quit [Remote host closed the connection]
aesthe has joined #ruby
Swyper has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
mossplix has quit [Remote host closed the connection]
phaul has joined #ruby
Fridtjof has joined #ruby
TzilTzal has joined #ruby
<TzilTzal>
For some reason an instance variable in the singleton class of one of my classes has a different object_id while my server is starting...
<TzilTzal>
Does anyone know what could be the reason for that?
NL3limin4t0r has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 268 seconds]
pizzaiolo has quit [Excess Flood]
TCZ has joined #ruby
pizzaiolo has joined #ruby
emilych has quit [Remote host closed the connection]
jmcgnh has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
jmcgnh has joined #ruby
bruce_lee has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
donofrio has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
fphilipe_ has joined #ruby
conta1 has joined #ruby
Emmanuel_Chanel has joined #ruby
AJA4350 has quit [Ping timeout: 258 seconds]
ecuanaso has joined #ruby
phaul has joined #ruby
TzilTzal has quit []
AJA4350 has joined #ruby
conta1 has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
fphilipe_ has quit [Ping timeout: 268 seconds]
mossplix has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
drincruz has joined #ruby
TCZ has quit [Quit: Bye Bye]
jenrzzz has joined #ruby
Emmanuel_Chanel has joined #ruby
lucasb has joined #ruby
fphilipe_ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
ExoUNX__ has quit [Ping timeout: 260 seconds]
mossplix has joined #ruby
emilych has joined #ruby
crazybaud has joined #ruby
<emilych>
hi, i know that I can use rake inside a rails project and it will run my own rake tasks located in lib/tasks. I'd like to run rake tasks without an application at all, just to execute some ruby script files. is that possible? for example I have a ruby script export_stats.rb and a rake task that should run this script in the same folder. If I run
<emilych>
rake task I get an error: rake aborted!elk-stack/export_stats.rake|2 col 1 info| Layout/EmptyLineAfterMagicC↷│Don't know how to build task 'exports_stats'
xco has joined #ruby
jcalla has quit [Ping timeout: 260 seconds]
drincruz has quit [Ping timeout: 268 seconds]
crazybaud has quit [Remote host closed the connection]
mwlang has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
fphilipe_ has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
markopasha has joined #ruby
fphilipe_ has joined #ruby
fig-le-deunch has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
spiette has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Eiam has quit [Ping timeout: 260 seconds]
mossplix has quit [Remote host closed the connection]
fig-le-deunch has quit [Quit: Konversation terminated!]
NODE has quit [Quit: changing servers]
andikr has quit [Ping timeout: 268 seconds]
jcalla has joined #ruby
NODE has joined #ruby
andikr has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
markopasha has quit [Remote host closed the connection]
xco has joined #ruby
crazybaud has joined #ruby
Emmanuel_Chanel has joined #ruby
drincruz has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
<adam12>
emilych: Where did you put the file that has the rake task? and what's it called? Rails has some glue code to make lib/tasks work for Rake, but Rake supports something similar out of the box.
AJA4350 has quit [Ping timeout: 268 seconds]
fphilipe_ has quit [Ping timeout: 258 seconds]
Rapture has joined #ruby
<emilych>
I don't use rails. i was thinking to use rake inside a folder with a bunch of ruby command line scripts
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mossplix has joined #ruby
jenrzzz has joined #ruby
gnufr33d0m has joined #ruby
xco has joined #ruby
TCZ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
emilych: Do you have a `Rakefile`?
<emilych>
Yes
<adam12>
emilych: Does it load `export_stats.rake` at al?
fphilipe_ has joined #ruby
william11 has joined #ruby
<emilych>
ah, I forgot to load the file!
<emilych>
thank you very much adam12
<adam12>
emilych: yw!
Esa_ has joined #ruby
schne1der has joined #ruby
<infinity2022>
Hello everyone, I'm new here and I have a desire to study Ruby, do you know good tutorials where there is practice, not just theory. I want to get good at programming. Thank you in advance.
crazybaud has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Bye Bye]
aesthe has quit [Quit: Leaving]
mwlang has quit [Quit: mwlang]
sergioro has quit [Quit: leaving]
sergioro has joined #ruby
mwlang has joined #ruby
<balo>
hi. I got used to the stepping debugger in pry but now i try to stick only with binding.irb when needed... Is it possible to step over instructions? or it just stops / continues? couldn't find it in the docs
<adam12>
balo: Not with just pry but there's a pry-byebug gem that you could use to pair them.
pwnd_nsfw` has joined #ruby
<adam12>
balo: Actually, just noticed you're using binding.irb.
<balo>
yes, the point is that i dropped pry because in theory we already have smarter irb so not needed that much
<balo>
but this stepping functionality is something which might not exist (yet) in binding.irb
infinityfye has quit [Ping timeout: 240 seconds]
<adam12>
balo: Were you using the pry-byebug gem? I've never seen stepping in pry directly.
<balo>
not that it always worked with pry, especially around metaprogramming, it could step into weird places :D but often it was helpful
<balo>
yes, i meant that one sorry. before i used pry-byebug. now, i'm without any pry gems
<infinity2022>
adam12: Thank you
<balo>
Zurichben a lakasberles = 😵
<balo>
oops, wrong channel, sry
andikr has quit [Remote host closed the connection]
fphilipe_ has quit [Ping timeout: 265 seconds]
<adam12>
balo: We might get it eventually but I think the right solution if you're used to that style debugging is still pry-byebug.
<adam12>
balo: There is a 'debug' library that you can require in stdlib. It's _weird_ tho. But if you hit `binding.irb`, try `require "debug"` and see if it gives you what you want.
<balo>
thanks adam12 , yeah no big deal. I rarely need it and probably i should stop using this debug method anyway :D
<adam12>
Ah there's nothing wrong with that method. I _live_ in pry (tho I don't use byebug much in my own code. Maybe I should)
william11 has quit [Ping timeout: 268 seconds]
<adam12>
Use what makes you happy :) There's talk about making the debugging interface better in Ruby and more consistent, so other Ruby implementations can use the same style, so maybe we'll see some movement.
mossplix has quit [Remote host closed the connection]
ttoocs has quit [Ping timeout: 260 seconds]
ghostlines has joined #ruby
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
mossplix has joined #ruby
AJA4350 has joined #ruby
Rob__ has joined #ruby
MrCrackPot has joined #ruby
fig-le-deunch has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 268 seconds]
<balo>
"Use what makes you happy" <- that's why I keep using Ruby :P
mossplix has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
fig-le-deunch has quit [Client Quit]
fig-le-deunch has joined #ruby
<adam12>
balo: Me too :)
anveo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fig-le-deunch has quit [Read error: Connection reset by peer]
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Client Quit]
ttoocs has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
troulouliou_div2 has joined #ruby
ttoocs has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
alexherbo28 has joined #ruby
alex has quit [Ping timeout: 268 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo28 is now known as alexherbo2
bmurt has quit [Remote host closed the connection]
william11 has joined #ruby
bmurt has joined #ruby
alex has joined #ruby
iNs_ has quit [Quit: bubye]
iNs has joined #ruby
NODE has quit [Excess Flood]
NODE has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
NODE has quit [Excess Flood]
phaul has joined #ruby
NODE has joined #ruby
NODE has quit [Excess Flood]
william11 has quit [Ping timeout: 265 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
mossplix has joined #ruby
NODE has joined #ruby
NODE has quit [Excess Flood]
duderonomy has joined #ruby
ttoocs has joined #ruby
NODE has joined #ruby
akemhp_ is now known as akemhp
NODE has quit [Excess Flood]
ttoocs has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Excess Flood]
dionysus69 has joined #ruby
NODE has joined #ruby
buckworst has quit [Quit: WeeChat 2.3]
buckworst has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
s3nd1v0g1us has joined #ruby
DTZUZO_ has quit [Read error: Connection reset by peer]
bsdbandit-01 has quit [Read error: Connection reset by peer]
mossplix has quit [Remote host closed the connection]
bsdband38 has joined #ruby
cthu| has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
sgen has joined #ruby
ttoocs has joined #ruby
ttoocs has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
phaul has quit [Ping timeout: 268 seconds]
sergioro has quit [Quit: Lost terminal]
poontangmessiah has joined #ruby
Nahra has joined #ruby
mossplix has joined #ruby
howdoi has joined #ruby
greypack has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 265 seconds]
ttoocs has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
Nahra has quit [Quit: leaving]
poontangmessiah has quit [Quit: WeeChat 2.7]
ttoocs has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby
Eiam has joined #ruby
NODE has quit [Excess Flood]
<gitter1234>
Is it normal in the Rails world to use simple_form for forms and devise for users/admin?
NODE has joined #ruby
<adam12>
gitter1234: When I used Rails, I used simple_form on the admin sections of the site and no Devicse (used the has_password or whatever the bcrypt integration was at the time).
NODE has quit [Excess Flood]
<adam12>
gitter1234: Most of the time you don't normally care about the admin UI and it's quicker to fake out. For the frontend, there's a lot of opinion so simple_form and other form builders can get in your way. The same applies to login / signup / etc flows.
NODE has joined #ruby
<gitter1234>
yeah i dont really need an admin.. for forms i see rails has its own form_for
<gitter1234>
trying to keep things as simple as possible and im wondering whether simple_form and devise really are necessary, idk
<gitter1234>
im new to this game and its just all really confusing. things seem to change every day
jaequery has joined #ruby
<adam12>
gitter1234: IMHO, use less abstracts at the beginning to learn. That means no devise and no simple_form.
<adam12>
gitter1234: simple_form is just a wrapper around form_for, f.label :some_field, f.text_field :some_field (or other input types, obviously).
<gitter1234>
sounds good adam12 thanks for the help :)
<adam12>
gitter1234: Devise is huge and includes a lot of things, but really for user auth just try doing it with the secure password bit first. You want 3 things out of it to start (technically 4). 1. A model that represents the User/Account and has a hashed password. A controller that accepts a login/password, verifies that login/password, and stores a flag in the session that says it's currently user X and they are
<adam12>
authed. 3. An action in that same controller that deletes the flag from the session.
<adam12>
The 4th is obviously some sort of signup process, and then from there you need forgotten password / etc but that might not be important. For signup, you could just test through the console.
sameerynho has joined #ruby
tsujp has quit [Ping timeout: 258 seconds]
Swyper has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 265 seconds]
Mrbuck has quit [Quit: .]
dinfuehr has joined #ruby
<gitter1234>
adam12: that part might be too much for me :) so i think i need devise. seems to be the norm among other devs i've asked too
<adam12>
gitter1234: Maybe. It's like 12 lines of real code tho. I encourage you to maybe look and see first.
<gitter1234>
:D
ttoocs has joined #ruby
Swyper has joined #ruby
phaul has joined #ruby
kujira has joined #ruby
william1_ has quit [Ping timeout: 265 seconds]
ttoocs has quit [Ping timeout: 268 seconds]
NODE has quit [Excess Flood]
tsujp has joined #ruby
NODE has joined #ruby
tsujp has quit [Client Quit]
NODE has quit [Excess Flood]
NODE has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_ark
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
troulouliou_div2 has joined #ruby
NODE has quit [Excess Flood]
NODE has joined #ruby
ttoocs has joined #ruby
ttoocs has quit [Ping timeout: 268 seconds]
william1_ has joined #ruby
william1_ has quit [Ping timeout: 268 seconds]
Exuma has joined #ruby
Swyper has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 268 seconds]
sauvin has quit [Read error: Connection reset by peer]