aintno_sunshine has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
brodul has quit [Remote host closed the connection]
rippa has joined #ruby
voldemar has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
reber has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
harfangk has joined #ruby
harfangk has quit [Remote host closed the connection]
voldemar has joined #ruby
brodul has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Immune has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
guardianx has joined #ruby
voldemar has quit [Ping timeout: 268 seconds]
guardianx has quit [Client Quit]
Dimik has joined #ruby
voldemar has joined #ruby
kculpis has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
mjolnird has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
Guest29042 has quit [Quit: leaving]
muelleme has joined #ruby
waveprop has joined #ruby
jamesaxl has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
voldemar has joined #ruby
n13z has quit [Quit: leaving]
iamarun has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
Immune has joined #ruby
voldemar has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
jameser has joined #ruby
enterprisey has joined #ruby
voldemar has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
jameser has joined #ruby
mim1k has joined #ruby
csk157 has joined #ruby
workmad3 has joined #ruby
ivanskie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
csk157 has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 248 seconds]
Xano__ has joined #ruby
jnyw has joined #ruby
voldemar has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
voldemar has quit [Ping timeout: 268 seconds]
aupadhye has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
aupadhye has quit [Client Quit]
b10s_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has joined #ruby
lurkingninja has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
voldemar has quit [Ping timeout: 258 seconds]
cschneid has joined #ruby
selim has quit [Ping timeout: 255 seconds]
iamarun has quit [Remote host closed the connection]
iamarun has joined #ruby
stealth[] has joined #ruby
selim has joined #ruby
cschneid has quit [Ping timeout: 255 seconds]
voldemar has joined #ruby
DoubleMalt has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
voldemar has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
voldemar has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
uZiel has joined #ruby
marr has joined #ruby
voldemar has joined #ruby
mim1k has joined #ruby
csk157 has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
bkxd has quit []
pb122 has quit [Ping timeout: 268 seconds]
csk157 has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
voldemar has joined #ruby
workmad3 has joined #ruby
bkxd has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
voldemar has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
voldemar has joined #ruby
bkxd has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
bkxd has quit []
troys has quit [Quit: Bye]
tomphp has quit [Client Quit]
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
voldemar has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
mohabaks has joined #ruby
chridal has joined #ruby
cdg has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 250 seconds]
mohabaks has quit [Remote host closed the connection]
csk157 has quit [Ping timeout: 260 seconds]
mohabaks has joined #ruby
voldemar has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
silvermine has quit [Ping timeout: 240 seconds]
voldemar has joined #ruby
claudiuinberlin has joined #ruby
_sfiguser has joined #ruby
pdcawley has joined #ruby
pdcawley has left #ruby [#ruby]
clemens3 has joined #ruby
TagNotFound has quit [Quit: Connection closed for inactivity]
sameerynho has joined #ruby
marr has quit [Ping timeout: 255 seconds]
mfb2 has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
iamarun has quit [Ping timeout: 248 seconds]
mfb2 has quit [Ping timeout: 248 seconds]
p0p0pr37 has joined #ruby
n13z has joined #ruby
mohabaks has left #ruby ["WeeChat 1.9"]
kphuanghk has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
biberu has joined #ruby
mikecmpbll has joined #ruby
enterprisey has quit [Remote host closed the connection]
apparition has joined #ruby
c_nick has joined #ruby
<c_nick>
hi .. how to retrive only two columns of a specific table using Active Record- Active Relations (Ruby not rails) .. i can go Table.where(run_id: 1) but this will return me the whole row ..
<apeiros_>
c_nick: even if you use AR outside of rails, it's still a part of rails and the people knowing about it are in #rubyonrails ;-)
<apeiros_>
re two columns: you want pluck
* dminuoso
pokes apeiros_ with an underscore
apeiros_ is now known as apeiros__
<apeiros__>
thanks, now I've got two of those pesky underscores!!!
<dminuoso>
It's stuck.
<dminuoso>
Mmm.
<dminuoso>
Did it hurt?
<apeiros__>
it tickled
<c_nick>
active record is a design pattern .. Arel is also not rails specific i suppose but I guess you are right most people are in rails on this
<dminuoso>
AR is not a design pattern...
<dminuoso>
Its a library.
<apeiros__>
it's both
<apeiros__>
rails' AR is an implementation of the AR pattern :)
<dminuoso>
Oh well.
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros__>
because it's so unconfusing to name your lib after a pattern :D
<dminuoso>
In this context I meant.
<apeiros__>
ok. point taken.
apeiros__ is now known as apeiros
alex`` has joined #ruby
<apeiros>
shooo, yo silly underscores, shoo
<dminuoso>
If only I could name myself R.dminuoso
<dminuoso>
Just to be able to fight you adequately
<apeiros>
D.min(uosos)
<apeiros>
-s
marr has joined #ruby
<c_nick>
apeiros, sorry one last question i know that we can do AR.pluck(:id) will give us [1,2,3] but what will AR.pluck(:id,:name) give us ?
<apeiros>
?try
<ruby[bot]>
Why don't you try it and see for yourself?
<apeiros>
you can use pry/irb to easily try stuff
<c_nick>
i thought it required rails terminal
<c_nick>
console*
<apeiros>
no
<c_nick>
i dont have the environment set up on this machine .. only ruby ..
<apeiros>
rails console builds up on irb (or pry, of you use pry-rails)
<c_nick>
so how will the database linking work
<apeiros>
hence plain irb doesn't need rails. and irb comes with a standard install of ruby.
<apeiros>
the same way you do it in your non-rails app
enterprisey has joined #ruby
<c_nick>
hmm ok i will try thanks
<apeiros>
if you haven't actually yet used it outside of rails, ActiveRecord::Base.establish_connection is the method you're looking for
<apeiros>
with pry, you can put a .pryrc in your project which contains code pry should execute at startup. ideal for stuff like establishing a connection f.ex.
pdcawley has joined #ruby
c_nick has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
DoubleMalt has joined #ruby
GodFather has joined #ruby
bkxd has joined #ruby
bkxd has quit [Client Quit]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
bkxd has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
bkxd has quit [Max SendQ exceeded]
jnyw has quit [Quit: WeeChat 1.9.1]
bkxd has joined #ruby
Xano__ has quit [Ping timeout: 248 seconds]
jtdoncas_ has joined #ruby
voldemar has quit [Ping timeout: 248 seconds]
p0p0pr37 has quit [Read error: Connection reset by peer]
uZiel has quit [Ping timeout: 248 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas_ has quit [Ping timeout: 248 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 255 seconds]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
DoubleMalt has joined #ruby
iamarun has joined #ruby
kitsunenokenja has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
s778 has joined #ruby
voldemar has joined #ruby
bkxd has joined #ruby
iamarun has quit [Ping timeout: 248 seconds]
mcr1 has quit [Ping timeout: 258 seconds]
iamarun has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
goyox86 has joined #ruby
voldemar has joined #ruby
elphe has joined #ruby
iamarun has quit [Remote host closed the connection]
iamarun has joined #ruby
goyox86 has quit [Ping timeout: 260 seconds]
iamarun has quit [Remote host closed the connection]
goyox86 has joined #ruby
iamarun has joined #ruby
charliesome has joined #ruby
mfb2 has joined #ruby
oetjenj has joined #ruby
TomyLobo has joined #ruby
muelleme has joined #ruby
oetjenj has quit [Ping timeout: 240 seconds]
mfb2 has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
_aeris_ has joined #ruby
oetjenj has quit [Client Quit]
synthroid has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 248 seconds]
lexruee has quit [Ping timeout: 246 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
elphe has joined #ruby
Rouge has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
mson has joined #ruby
n13z has quit [Remote host closed the connection]
fabianfrz1 has joined #ruby
bkxd has quit []
cdg has joined #ruby
lexruee has joined #ruby
skweek has joined #ruby
fabianfrz1 has quit [Quit: Konversation terminated!]
iamarun has quit [Remote host closed the connection]
Rouge has quit [Ping timeout: 260 seconds]
jtdoncas_ has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
kphuanghk has quit [Remote host closed the connection]
growp has joined #ruby
goyox86 has quit [Ping timeout: 248 seconds]
muelleme has quit [Ping timeout: 240 seconds]
jtdoncas_ has quit [Ping timeout: 260 seconds]
raynold has quit [Quit: Connection closed for inactivity]
<al2o3-cr>
is this the desired way or is there something i'm missing
houhoulis has joined #ruby
<al2o3-cr>
anyone know?
<al2o3-cr>
i mean it somehow works, not sure why though/
<al2o3-cr>
it seems hacky
<al2o3-cr>
any help will be appreiciated. thanks in advance
mcr1 has joined #ruby
goyox86 has joined #ruby
skweek has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
goyox86 has left #ruby [#ruby]
nowhere_man has quit [Ping timeout: 255 seconds]
elphe has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
goyox86 has joined #ruby
s778 has quit [Quit: leaving]
mfb2 has joined #ruby
clemens3 has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
ctrlaltdev has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
armando has quit [Ping timeout: 248 seconds]
marr has joined #ruby
jtdoncas_ has joined #ruby
nowhere_man has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
Dimik has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
skweek has quit [Ping timeout: 260 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
jtdoncas_ has quit [Ping timeout: 240 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
skweek has joined #ruby
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
Xiti` has quit [Quit: Xiti`]
armando has joined #ruby
silvermine has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
kculpis has quit [Ping timeout: 268 seconds]
JStoker has left #ruby ["Leaving"]
houhouli_ has joined #ruby
kinbiko has joined #ruby
goyox86 has quit [Quit: goyox86]
houhoulis has quit [Ping timeout: 268 seconds]
goyox86 has joined #ruby
goyox86 has quit [Client Quit]
miskatonic has quit [Remote host closed the connection]
Xiti has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
mfb2 has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 248 seconds]
mjolnird has quit [Remote host closed the connection]
biberu has quit []
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
biberu has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
odinsbane has joined #ruby
despai has joined #ruby
<odinsbane>
I am trying to install mysql2 gem with bundle. I get an error, that has a workaround here, https://github.com/brianmario/mysql2/pull/857 but I don't know how to update the header file and have bundle use that file.
mfb2 has joined #ruby
mfb2 has quit [Ping timeout: 248 seconds]
chocoelho has quit [Quit: chocoelho]
mfb2 has joined #ruby
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
kitsunenokenja has quit [Ping timeout: 264 seconds]
meadmoon has joined #ruby
cschneid has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
wilbert_ has joined #ruby
mfb2 has quit [Ping timeout: 260 seconds]
<RickHull>
odinsbane: at a glance, I'm guessing the gem needs to be built as such
<RickHull>
and you can tell bundler to use the patched .gem
<odinsbane>
That sounds like exactly what I need.
<RickHull>
if there is a fork or PR that you can checkout locally, you should be able to build the .gem locally
<RickHull>
though that might be tricky
<RickHull>
but totally doable
konos5 has joined #ruby
<RickHull>
and then you can host the .gem with e.g. geminabox, or just copy it to the target system
<odinsbane>
It appears the fix is pretty trivial, just add an include into the header file.
<RickHull>
and there is some way to tell bundler to use it, via `gem source` or whatever
mtkd has quit [Ping timeout: 250 seconds]
<RickHull>
and maybe someone else has built the .gem this way and is hosting it already
lexruee has quit [Ping timeout: 240 seconds]
<RickHull>
you'll have to dig into the specifics what the result of this ticket is to find the simplest path forward, but build-it-yourself is always a fallback
KeyJoo has joined #ruby
lexruee has joined #ruby
mtkd has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
mfb2 has joined #ruby
cdg has quit [Remote host closed the connection]
despai has quit [Quit: ...]
cdg has joined #ruby
impermanence has joined #ruby
mfb2 has quit [Ping timeout: 248 seconds]
sameerynho has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
sepp2k has quit [Read error: Connection reset by peer]
<RickHull>
hmmm, I don't see why bundler would update rails gem to 5.1
<RickHull>
is that your Gemfile.lock ?
<RickHull>
no, it wouldn't be
voldemar has joined #ruby
<RickHull>
I would expect this line to pin rails gem to 3.2.22.5: gem 'rails', '3.2.22.5'
<odinsbane>
No that is the gem file, before changing anything.
<odinsbane>
Now I want to move to 4.2.XXX and see if I can get that working.
jtdoncas_ has joined #ruby
<RickHull>
running `bundle update` with that Gemfile should result in rails gem 3.2.22.5
<RickHull>
what do you get in your Gemfile.lock?
uZiel has quit [Ping timeout: 248 seconds]
<RickHull>
for the record, I haven't used bundler in depth in many years -- so anyone else may have better and more specific advice
guille-moe has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
mohabaks has quit [Quit: WeeChat 1.9]
csk157 has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
bkxd has joined #ruby
<odinsbane>
I changed the rails version to be "~>4.2.0" and did a bundle update, so now it is installed as rails 4.2.10 and I think now I am just going through rails issues.
voldemar has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
voldemar has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
jnollette has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
jnollette has joined #ruby
gnufied has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
voldemar has quit [Ping timeout: 260 seconds]
voldemar has joined #ruby
csk157_1 has joined #ruby
csk157 has quit [Ping timeout: 255 seconds]
voldemar has quit [Ping timeout: 248 seconds]
sammi` has joined #ruby
mson has joined #ruby
elphe has joined #ruby
TomyLobo2 has joined #ruby
tomlukeywood has left #ruby [#ruby]
voldemar has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
<odinsbane>
It's brutal, I can't install ruby 2.3 or lower because of openssl 1.1 with fedora. Rails 4.0 doesn't work with ruby 2.4.
ShekharReddy has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 260 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 260 seconds]
<RickHull>
what's the openssl constraint?
<RickHull>
there must be a workaround on fedora
voldemar has quit [Ping timeout: 248 seconds]
ShekharReddy has joined #ruby
sammi`_ has quit [Quit: Lost terminal]
<odinsbane>
Yes, I am just fumbling along with all of these versions, trying to find the best way to get things resolved.
<RickHull>
have you tried a ruby version manager?
<odinsbane>
I built ruby with a local copy of openssl, but then when I built gems they used the system version. No I didn't try rvm yet.
<RickHull>
rvm / rbenv / chruby
<RickHull>
what is the story with openssl 1.1 and fedora and ruby?
bkxd has joined #ruby
<odinsbane>
If you try to build ruby 2.3.5 with fedora and the openssl-devel package installed, it will fail.
wilbert_ has joined #ruby
|ifei5good has joined #ruby
csk157_2 has joined #ruby
voldemar has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
guille-moe has quit [Ping timeout: 248 seconds]
csk157_1 has quit [Ping timeout: 255 seconds]
kies has joined #ruby
<darix>
odinsbane: openssl 1.1 support hit 2.4 only
<darix>
odinsbane: unless you have a really good reason to use 2.3
<darix>
stick with 2.3
<darix>
err
<darix>
2.4
<darix>
also what is wrong with their distro package? why not use that?
voldemar has quit [Ping timeout: 248 seconds]
xcesariox has joined #ruby
voldemar has joined #ruby
wilbert_ has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
mim1k has joined #ruby
voldemar has quit [Ping timeout: 240 seconds]
wilbert_ has joined #ruby
skweek has joined #ruby
odinsbane has quit [Ping timeout: 268 seconds]
sameerynho has quit [Ping timeout: 248 seconds]
voldemar has joined #ruby
bkxd has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
plexigras has quit [Ping timeout: 268 seconds]
<RickHull>
the reason against 2.4 is apparently rails 4.0 support
<bozozo>
does anyone know what the underline character does in ruby?
houhouli_ has quit [Remote host closed the connection]
tomphp has joined #ruby
elphe has joined #ruby
<bozozo>
quit
<havenwood>
bozozo: do you mean in the context of irb, pry or another REPL?
tomphp has quit [Client Quit]
<havenwood>
bozozo: In REPLs it means last return value.
<bozozo>
i meant in the ruby code itself
<bozozo>
i heard it acts like a wildcard
<havenwood>
bozozo: Hmm. Underscore often means private but I don't know of a context where it's a wildcard.
<bozozo>
ok thanks. maybe I got bad info. That explains why I couldn't find it anywhere else
<havenwood>
Prefixing with underscore generally means private or in Ruby it means an unused local variable.
<bozozo>
thanks havenwood
elphe has quit [Ping timeout: 260 seconds]
<havenwood>
bozozo: no prob!
sameerynho has quit [Ping timeout: 248 seconds]
<darix>
RickHull: you want to update rails 4.0 anyway ... you know security ;) ... I doubt many people go through backporting fixes ;)
bozozo has left #ruby [#ruby]
reber has quit [Remote host closed the connection]
<RickHull>
yeah, probably means 4.x and maybe updating the project for 5 isn't an option
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
synthroid has quit []
ortuna has joined #ruby
<darix>
hmm
<darix>
RickHull: I am kinda sure 4.2 works on 2.4
<darix>
i think had my discourse package on 2.4 before they switched to rails 5
<RickHull>
odinsbane left -- maybe he figured that out if so :)
<darix>
sure
<darix>
just trying to understand it
<darix>
and i mean
<darix>
we are even on topic!
raynold has joined #ruby
ortuna has left #ruby ["WeeChat 1.9.1"]
lisita has joined #ruby
<lisita>
Anyone here interested in helping a beginner rubyist with a problem?
<apeiros>
lisita: just ask
bkxd has joined #ruby
bkxd__ has quit [Ping timeout: 255 seconds]
<lisita>
apeiros: I'm trying to make a very simple program that's basically a REPL. You type 'up' and it runs system 'adb shell input keyevent somenumber'. Here's a simplified snip of what I'm doing https://paste.fedoraproject.org/paste/rtUwyB7mhlZ76ZlaAQHaDA . I'm wondering if I could use a function to do the same thing or something else that's less lines of the same code.
wilbert_ has quit [Ping timeout: 255 seconds]
<TomyLobo2>
lisita, why not make a bunch of shell aliases?
<TomyLobo2>
instead of the ruby script, i mean
joelwallis has joined #ruby
<lisita>
TomyLobo2: That does make more sense but I'm really really trying to use ruby in any silly way possible. :)
<RickHull>
lisita: that form looks good to me
<joelwallis>
Hi. I'm working on a new Jekyll theme, which are defined as a gem. However, I couldn't figure how the development workflow works. There's no enough documentation about it, and the Jekyll website just suggests that 'you can add dummy content to your template files' (WTF?)
<joelwallis>
So, I'm looking into a way to declare a dependency as a local gem.
<joelwallis>
I'm a experienced programmer, but completely new to the Ruby world
<RickHull>
does this theme already exist as a gem?
<RickHull>
and is this typical for jekyll themes?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
lisita: you would probably want to make each command a function, with definitions above the loop. could be anonymous functions, a module, or a class
s778 has quit [Quit: leaving]
muelleme has quit [Ping timeout: 260 seconds]
<RickHull>
e.g. def up(*some_args_maybe); # do the thing; # handle failure; end
<joelwallis>
RickHull: nope. I'm creating it from scratch (jekyll new-theme jekyll-theme-mytheme)
<RickHull>
lisita: when calling system, call it with several args rather than a string with embedded whitespace. e.g. system(command, arg1, arg2 ...)
<joelwallis>
it will be a pretty basic theme. I just can't figure how to visualize my code while working on it
<RickHull>
and is it typical that jekyll themes are organized as gems?
yabbes has quit [Ping timeout: 248 seconds]
<Flashynuff>
hi there! i'm having some trouble running a ruby script as a rake task (context: the ruby koans). I'm really not sure what's going wrong since it was working perfectly fine on this computer a few months ago when I last worked on it. Right now it just gives me 'Command failed with status 127'.
<RickHull>
anyways, I would suggest not getting into gem authorship for your first theme
<RickHull>
if that's possible
<RickHull>
Flashynuff: I would guess something is messed up in your PATH or whatever alias to the ruby.exe
|ifei5g00d has joined #ruby
<RickHull>
instead of calling ruby.exe as expected, rake.exe wants to call C:\Ruby23\bin;C:\Ruby23\DevKit\dk.rb
|ifei5good has quit [Read error: Message too long]
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
<lisita>
RickHull: You're very helpful, thanks for your suggestions. :)
<RickHull>
Flashynuff: instead of `ruby arg1, arg2, ...` you can call `sh 'ruby', arg1, arg2 ...`
stealth[] has quit [Quit: Leaving]
<RickHull>
though I don't know if rake.exe likes that on windows, not sure
<Flashynuff>
RickHull: oh man i think that was it
mfb2 has joined #ruby
<Flashynuff>
i had an environment variable called RUBY to store C:\Ruby23\bin;C:\Ruby23\DevKit\dk.rb so i could put in my PATH... I just renamed it to RUBY_PATH and it started working
|ifei5g00d has joined #ruby
despai has joined #ruby
<Flashynuff>
thanks
|ifei5good has quit [Ping timeout: 248 seconds]
safetypin has joined #ruby
kitsunenokenja has quit [Ping timeout: 250 seconds]
jtdoncas_ has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
mfb2 has quit [Ping timeout: 268 seconds]
c0ncealed has quit [Remote host closed the connection]
bkxd_ has joined #ruby
c0ncealed has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
<lisita>
What are good resources to learn the oop concepts of ruby? I saw this https://launchschool.com/books/oo_ruby, but I need something a bit more complete.