havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
|ifei5g00d has joined #ruby
Nilium has quit [Ping timeout: 260 seconds]
Dark_Arc has joined #ruby
bokayio has joined #ruby
Nilium has joined #ruby
EvilJStoker has joined #ruby
Evesy has joined #ruby
Zimsky has joined #ruby
rideh has joined #ruby
cochi has joined #ruby
cochi has quit [Changing host]
cochi has joined #ruby
canton7 has joined #ruby
jsrn has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
astronavt has quit [Quit: Leaving...]
cdg has joined #ruby
astronavt has joined #ruby
Puffball_ has quit [Ping timeout: 240 seconds]
Puffball has joined #ruby
Map is now known as daft
bmurt has joined #ruby
hsiktas has quit [Ping timeout: 258 seconds]
bmurt has quit [Client Quit]
AJA4350 has quit [Remote host closed the connection]
ramfjord has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 260 seconds]
QualityAddict has quit [Ping timeout: 240 seconds]
hsiktas has joined #ruby
vee__ has quit [Ping timeout: 255 seconds]
rrutkowski has quit [Ping timeout: 240 seconds]
rrutkowski_ has joined #ruby
QualityAddict has joined #ruby
AJA4350 has joined #ruby
sparr has joined #ruby
sorah___ has joined #ruby
naprimer has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
naprimer has joined #ruby
Ltem has quit [Quit: Leaving]
banisterfiend has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
QualityAddict has quit [Ping timeout: 248 seconds]
shtirlic has joined #ruby
enterprisey has joined #ruby
QualityAddict has joined #ruby
roshanavand has quit [Quit: Leaving]
TomyLobo has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
pastorinni has quit [Remote host closed the connection]
vee__ has joined #ruby
rrutkowski_ has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
cdg has joined #ruby
zautomata has quit [Quit: WeeChat 1.7]
Emmanuel_Chanel has quit [Quit: Leaving]
cdg has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
nogic has joined #ruby
yeticry has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
llua` is now known as llua
llua has quit [Changing host]
llua has joined #ruby
Emmanuel_Chanel has joined #ruby
AJA4350 has quit [Remote host closed the connection]
meesles has joined #ruby
AJA4350 has joined #ruby
uZiel has joined #ruby
krawchyk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
elphe has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
troys is now known as troys_
ramfjord has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
jnollette has quit [Remote host closed the connection]
yeticry has joined #ruby
jnollette has joined #ruby
soulisson_ has joined #ruby
elphe has joined #ruby
soulisson has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
friday has quit [Ping timeout: 260 seconds]
rrutkowski has quit [Remote host closed the connection]
c0ncealed has quit [Remote host closed the connection]
rrutkowski has joined #ruby
orbyt_ has joined #ruby
c0ncealed has joined #ruby
woodruffw has quit [Ping timeout: 246 seconds]
friday has joined #ruby
paulrf has joined #ruby
milardovich has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
marr has quit [Ping timeout: 255 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
John____ has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
paulrf has quit [Quit: Leaving]
darix has quit [Quit: Changing server]
darix has joined #ruby
root___ has joined #ruby
cdg has joined #ruby
nogic has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
soulisson_ has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
sanscoeu_ has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
pilne has joined #ruby
root___ has quit [Quit: Lost terminal]
rrutkowski has quit [Quit: rrutkowski]
soulisson_ has joined #ruby
soulisson_ has quit [Remote host closed the connection]
shadeslayer has quit [Quit: No Ping reply in 180 seconds.]
ramfjord has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
rrutkowski has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
shadeslayer has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
skweek has joined #ruby
ramfjord has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
cagomez has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 246 seconds]
d^sh has joined #ruby
cdg has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 260 seconds]
justicefries has joined #ruby
bradleyprice has quit [Remote host closed the connection]
meinside has joined #ruby
jackjackdripper has joined #ruby
bradleyprice has joined #ruby
rrutkowski has quit [Ping timeout: 260 seconds]
elphe has quit [Ping timeout: 260 seconds]
bradleyprice has quit [Ping timeout: 240 seconds]
rrutkowski has joined #ruby
krawchyk has joined #ruby
krawchyk has quit [Client Quit]
mniip has quit [Quit: This page is intentionally left blank.]
lytol_ has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
houhoulis has joined #ruby
mniip has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
skweek has quit [Read error: Connection reset by peer]
skweek has joined #ruby
maum has joined #ruby
cdg has joined #ruby
gizmore|2 has joined #ruby
cloaked1 has quit [Ping timeout: 268 seconds]
wilbert has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
krawchyk has joined #ruby
oetjenj has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
mson has quit [Quit: Connection closed for inactivity]
elphe has joined #ruby
krawchyk has quit [Client Quit]
ramfjord has joined #ruby
char_var[buffer] has joined #ruby
rm8 has quit [Quit: i slep]
d^sh has quit [Ping timeout: 268 seconds]
helpa has quit [Remote host closed the connection]
d^sh has joined #ruby
helpa has joined #ruby
wilbert has quit [Quit: wilbert]
lupine has quit [Ping timeout: 240 seconds]
lupine_ has joined #ruby
minn has quit [Quit: Leaving]
ResidentBiscuit has joined #ruby
RougeT430 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
chrisarc1nd is now known as chrisarcand
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
elphe has joined #ruby
postmodern has joined #ruby
justicefries has quit [Quit: Textual IRC Client: www.textualapp.com]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 246 seconds]
quobo has quit [Quit: Connection closed for inactivity]
dviola has quit [Quit: WeeChat 2.0]
AJA4350 has quit [Quit: AJA4350]
minimalism has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
nfsnobody- has quit [Ping timeout: 258 seconds]
nfsnobody has joined #ruby
eckhardt has joined #ruby
drowze has quit [Ping timeout: 260 seconds]
astronavt has quit [Remote host closed the connection]
astronavt has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
DmitryBochkarev has joined #ruby
mim1k has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has joined #ruby
jackjackdripper has quit [Ping timeout: 248 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
pilne has quit [Quit: Quitting!]
mim1k has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
woodruffw has quit [Quit: And then he took off.]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
elphe has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
elphe has joined #ruby
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
houhoulis has quit []
drowze has joined #ruby
eckhardt has joined #ruby
houhoulis has joined #ruby
eckhardt has quit [Client Quit]
ResidentBiscuit has quit []
Guest77086 has quit [Ping timeout: 255 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
troys_ is now known as troys
johnzorn has joined #ruby
techn1cs has joined #ruby
techn1cs has quit [Changing host]
techn1cs has joined #ruby
woodruffw has quit [Remote host closed the connection]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
chiggins has joined #ruby
<chiggins> Say I want to open a file, gsub some content, and write the changes back to that file, would I use 'w+' when I open the file?
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
xavrix has joined #ruby
anisha has joined #ruby
exhiled has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> As opposed to just w? Unless you want to read back from it again after you have written I don't see why
meesles has quit []
xavrix has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
meesles has joined #ruby
xavrix has joined #ruby
xavrix has quit [Client Quit]
spectrum has joined #ruby
ur5us has quit [Remote host closed the connection]
ppm_floss has joined #ruby
<ppm_floss> Hello guys
<ppm_floss> I am trying to use rbenv on my Ubuntu 16.x
<ppm_floss> How can I change the default install path of ruby from ~/.rbenv to something else like ~/my/local/rbenv
<chiggins> elomatreb: I was able to figure it out. Turns out I had to read and then open for write
<chiggins> ¯\_(ツ)_/¯
<elomatreb> Oh, I just realized what you were asking me. Sorry, yeah, w/w+ truncate the file
ur5us has joined #ruby
Bosma has quit [Ping timeout: 258 seconds]
iamarun has joined #ruby
Bosma has joined #ruby
rhebz916 has joined #ruby
uZiel has quit [Remote host closed the connection]
pabs has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
pabs has joined #ruby
xavrix has joined #ruby
xavrix|2 has joined #ruby
pb122 has joined #ruby
xavrix|2 has quit [Client Quit]
xavrix has quit [Client Quit]
xavrix has joined #ruby
xavrix has quit [Client Quit]
xavrix has joined #ruby
xavrix has quit [Client Quit]
xavrix has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exhiled has joined #ruby
mim1k has joined #ruby
astronavt has quit [Quit: Leaving...]
mim1k has quit [Ping timeout: 248 seconds]
elphe has quit [Ping timeout: 260 seconds]
meesles has quit []
paranoicsan has joined #ruby
iamarun has quit [Read error: Connection reset by peer]
iamarun has joined #ruby
elphe has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
aupadhye has joined #ruby
troys is now known as troys_
chiggins has left #ruby ["WeeChat 1.7.1"]
jenrzzz has quit [Ping timeout: 255 seconds]
KeyJoo has joined #ruby
KeyJoo has quit [Remote host closed the connection]
brandthdl has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
guardianx has joined #ruby
yeticry has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 255 seconds]
Puppet___ has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
SuperLag has quit [Ping timeout: 240 seconds]
Puppet_ has quit [Ping timeout: 248 seconds]
SuperLag has joined #ruby
rabajaj has joined #ruby
aupadhye has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mikhael_k33hl has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
cloaked1 has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
jxv has joined #ruby
Xiti has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<havenwood> ppm_floss: rbenv itself doesn't provide an option but the tool it uses to install Rubies (ruby-build) does
<mikhael_k33hl> I have a class that has a constant that I would like to change during unit test, how do I go about that?
<havenwood> ppm_floss: ruby-build 2.4.2 ~/blarg/ruby-2.4.2
<mikhael_k33hl> It'd be better if I could do it temporarily as it is just a test
<baweaver> Why do you want to change it?
<havenwood> ppm_floss: then you can set the RBENV_ROOT env var
<baweaver> kinda defeats the point of the entire constant thing
<baweaver> actually, what is the constant?
<havenwood> ppm_floss: or symlink
<baweaver> have any example code you could put up in a gist?
evenix has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> keyword arguments are pretty useful for defaults: def initialize(database_file: DATABASE_FILE)
<baweaver> Line 12 doesn't make much sense there considering you're just outputting the value of that constant
<baweaver> Now then, what exactly are you trying to set and why do you need to modify a constant?
yeticry has joined #ruby
<mikhael_k33hl> baweaver: during test, I just want to change the location to the current testing directory. Tried initializing it on my spec file with let(:database) { MirrorDatabase.new(:database_file => TEST_DATABASE_FILE) } but it doesn't seem to work
drowze has quit [Ping timeout: 248 seconds]
evenix has quit [Remote host closed the connection]
troys_ is now known as troys
<baweaver> define doesn't seem to
alfiemax has joined #ruby
<mikhael_k33hl> baweaver: oh what's the best way of defining relative path?
<baweaver> that's not what I asked.
<mikhael_k33hl> baweaver: like the spec file is inside the spec/unit/lib directory . . . but my overriding value is TEST_DATABASE_FILE = 'spec/unit/test_data_dir/mirror_test.db'. Oh sorry about that, what I meant was it doesn't seem to be able to find the file
evenix has joined #ruby
<baweaver> so your path ends up being spec/unit/lib/spec/unit/test_data_dir/mirror_test.db
<baweaver> and your debugging statement won't do anything
elphe has quit [Ping timeout: 255 seconds]
plexigras has joined #ruby
<mikhael_k33hl> baweaver: hmmm, I think the root cause is with my module. I've created a common.rb containing a module: https://gist.github.com/marzdgzmn/7c4a1e51a7be9a208acc3d3af5e34f2e
<mikhael_k33hl> and that's what I was using on line 13
johnzorn has quit [Quit: Ciao]
johnzorn has joined #ruby
<baweaver> you should really use consistent indentation
mark-6 has joined #ruby
<baweaver> and that won't matter
<mikhael_k33hl> baweaver: oh yeah, hehe, just want to make it work not minding the indentation, good thing it's not python lol
<mikhael_k33hl> baweaver: am I using modules right though?
<baweaver> If you pass in a database file it won't matter
<baweaver> the issue is exactly what I mentioned above.
<mikhael_k33hl> baweaver: but the file isn't created yet. Indentation?
<baweaver> the directory
<mikhael_k33hl> baweaver: it get's overridden, tried to output it
<mikhael_k33hl> DATABASE_FILE : spec/unit/test_data_dir/mirror_test.db
<baweaver> "<baweaver> so your path ends up being spec/unit/lib/spec/unit/test_data_dir/mirror_test.db"
aupadhye has joined #ruby
aupadhye has quit [Client Quit]
<mikhael_k33hl> yes
webguynow has quit [Ping timeout: 276 seconds]
brandthdl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webguynow has joined #ruby
jxv has quit [Quit: zzz…]
<mikhael_k33hl> oh wait, it's spec/unit/test_data_dir/mirror_test.db
oleo has quit [Quit: Leaving]
jnollette has quit [Remote host closed the connection]
jxv has joined #ruby
jxv has quit [Client Quit]
troys has quit [Quit: Bye]
brandthdl has joined #ruby
jnollette has joined #ruby
brandthdl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
<ppm_floss> havenwood: thanks. but i think its better to clone the git repo and build it manually
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
workmad3 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
workmad3_ has quit [Ping timeout: 248 seconds]
nertzy has quit [Read error: Connection reset by peer]
houhoulis has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
mark-6 has quit [Quit: mark-6]
RevanOne has quit [Read error: Connection reset by peer]
RevanOne has joined #ruby
pifon has quit [Quit: Connection closed for inactivity]
anisha has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
andikr has joined #ruby
anisha has joined #ruby
TomyWork has joined #ruby
Mon_Ouie has joined #ruby
brandthdl has joined #ruby
ur5us has joined #ruby
alfiemax has joined #ruby
paranoicsan is now known as paranoicsan[Away
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
reber has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
guille-moe has joined #ruby
uZiel has joined #ruby
sepp2k has joined #ruby
brandthdl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
dionysus69 has joined #ruby
aufi has joined #ruby
claudiuinberlin has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
paranoicsan[Away is now known as paranoicsan
yeticry has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
Sparda has joined #ruby
<Sparda> hello is anyone online?
mark_66 has joined #ruby
<Sparda> Hello? i am looking for help. that i am trying to understand the error message i am getting from Sketchup's Console
pwnd_nsfw` is now known as pwnd_nsfw
Burgestrand has joined #ruby
pwnd_nsfw is now known as pwnd_nsfw`
<Sparda> hello?
<Burgestrand> \o.
<Sparda> hello Burgestrand
<Burgestrand> Good mornin' Sparda
<Sparda> i would like your help with understanding the message.
<Sparda> is that okay with you?
im0nde has joined #ruby
<Sparda> okay. i am guessing no, then.
<Sparda> sigh.
<Burgestrand> Sparda that you would like it is entirely okay, but you must remember I might not be able to help you :)
<Sparda> yes i am aware of the possibility that you may not able to help me depending on my issue
<Sparda> but the issue is very basic .
<Burgestrand> Customs are to free-form ask into the void of the channel, and with some luck somebody can help you with… The Message
<Sparda> the error message are: Error: #<NameError: uninitialized constant Sparda::StarterKit::Ext> C:/Users/Sparda/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/Example.rb:15:in `<module:StarterKit>' C:/Users/Sparda/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/Example.rb:13:in `<module:Sparda>' C:/Users/Sparda/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/Example.rb:12:in `<top (required)>'
<Sparda> i can't figure it out what is the problem.
<Burgestrand> Sparda a first note of etiquette, it's also customary to paste longer lines of text into a web based service suitable for such a task, and then sending a link to the result, as opposed to into the channel; don't worry about it for now, but remember it for the next time :)
<Burgestrand> Sparda (an example of such a service could be e.g. https://gist.github.com)
<Sparda> ah yes. i will use pastebin next time.
<Sparda> ok.. that's an good example.
<Burgestrand> Sparda the message you're receiving is typically due to a dependency that is expected to be around has not yet been pulled in, typically through e.g. `require 'thedependency'`
rrutkowski has quit [Ping timeout: 240 seconds]
<Burgestrand> Sparda it could also be an order-of-operations problem, in that the dependency is pulled in too late
<Burgestrand> Sparda _and_ it could simply be a logical error of the developer, there are probably more causes but it's hard to tell without the source code at hand
<Sparda> they should be in the correct order as i see it.
aupadhye has joined #ruby
<Burgestrand> Sparda unfortunately the computer says no!
aupadhye has quit [Client Quit]
Travis-42 has quit [Ping timeout: 258 seconds]
lipoqil has quit [Ping timeout: 258 seconds]
<ruby[bot]> Sparda: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/44e6d83966d18f44dc5e9c53fdb4131f
<ruby[bot]> Sparda: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Sparda> i see that it doesn't work. that's unfortunately
<Sparda> i'll use gist.github from now. i'll wait for your response after you take a look at the basic structure.
zipkid has quit [Ping timeout: 258 seconds]
micalexander has quit [Ping timeout: 258 seconds]
Travis-42 has joined #ruby
lipoqil has joined #ruby
<Burgestrand> Sparda I can understand the error, and I believe your expectation is that `Ext` should be available, but for some reason neither 'sketchup.rb' nor 'extensions.rb' define it, which is your problem
<Sparda> yeah what you said made me realize it.
<Sparda> i check the folder which happened to missing the two files: Sketchup.rb and Extension.rb
guille-moe has quit [Ping timeout: 255 seconds]
micalexander has joined #ruby
<Sparda> i will need to get the files. so hold on.
Dimik has quit [Ping timeout: 268 seconds]
marr has joined #ruby
<Burgestrand> Sparda ruby works in such a way that not all dependencies need to be located in the same folder, there's a package/dependency management system called rubygems, which most likely has the files you're requiring
<Burgestrand> Sparda otherwise you'd get an error that the required files are not available
<Sparda> oh i dont know about the rubygems, i am an idiot.
<Sparda> but somehow, my instinct knew the real reason why i am getting these error message is due to 2 missing files.
guille-moe has joined #ruby
ppm_floss has quit [Ping timeout: 240 seconds]
gone_haywire has joined #ruby
<Burgestrand> Sparda inexperience is not idiocy, you can't know the unknown :)
spastorino has quit [Ping timeout: 258 seconds]
miky_ has joined #ruby
<miky_> hello, I need a bit of help regarding some arrays
<Burgestrand> Sparda and once again, I'm not convinced the files are missing, because if they were _really_ missing then you'd get an error about the files missing
<Burgestrand> miky_ don't ask to ask, just ask, it's not impolite
<Sparda> well i can tell you that i am a beginner.
spastorino has joined #ruby
<miky_> i have an array and all their items are like: [#<User nick="NICKNAME">, ["o"]
<Burgestrand> Sparda everybody was once :) do you have some kind of documentation or example that you're trying to follow?
<Sparda> of course i am studying on how to programming because i have good idea of a plugin that could be useful
milardovich has joined #ruby
<miky_> i need to get the nickname out or this, but is it an array or something?
<Sparda> yes i have followed a book.
<Sparda> i have been reading a useful book recommended by someone. via Sketchup Community
ppm_floss has joined #ruby
<Burgestrand> Sparda ah, paper, is it possible that your book is a few years out of date?
<Burgestrand> Sparda software moves fast, what was once the truth might now be The Wrong Way (tm)
<Sparda> well. let me get you the name of that book: The 4th Pragmatic Programmer, Programming Ruby 1.9&2.0” by Dave Thomas with Chad Fowler and Andy Hunt
<Sparda> yes.. that's why i asked someone in Sketchup Community to ensure that i do not have an outdated book.
<Burgestrand> Sparda it sounds general enough, is the Sketchup code samples you've provided really from the book, or from somewhere else?
<Sparda> well i have been looking at the documents provided by other users in sketchup community.. these documents are good example via Github
<Sparda> of how to build a plugin and other stuff.
<Burgestrand> miky_ You can use a method called #map, see e.g. https://ruby-doc.org/core-2.4.2/Enumerable.html#method-i-map
<miky_> thank you!
<Burgestrand> >> ["hello", "world", "example"].map(&:upcase)
<ruby[bot]> Burgestrand: # => ["HELLO", "WORLD", "EXAMPLE"] (https://eval.in/917340)
<Burgestrand> miky_ ^
<Burgestrand> (but instead of upcasing the text, you could grab the name from your user)
milardovich has quit [Ping timeout: 240 seconds]
<Burgestrand> Sparda unfortunately I have no experience with sketchup specifically, but I can tell you that there are two likely culprits to your problem
<Burgestrand> Sparda 1) you need to require some other dependency that has the `Ext` thing you're adding properties to
<Sparda> again, the examples is not from the book.. it came from many examples via website called "github"
<Burgestrand> Sparda 2) Ext is not the name you're supposed to be using, maybe it was the old way, and you should be using something else
<Burgestrand> Sparda and actually 3) you should be the one creating Ext, which is also a possibility
<Sparda> alright.
plexigras has quit [Quit: WeeChat 2.0]
<Burgestrand> Sparda indeed, github is a popular and well-known website, but like any community-like site some content is old, some is new, and some is cutting edge
<Sparda> yeah
<Sparda> just a question if you can answer.
<Sparda> does "Ext" has to do with the fact it require a file such as extension.rb?
<Burgestrand> Sparda `Ext` is an arbitrary name, likely for a Module (or class), that your code as written expects to be available, and _if_ it would have been available one could have assumed that it would be located in `extension.rb`
<Burgestrand> Sparda but while there are idioms, customs, and good practice, you can never know for sure without looking, assumptions are not facts or rules :)
<Burgestrand> Sparda I'd suggest you start with sketchups own example code and go from there, look at e.g. https://github.com/SketchUp/sketchup-ruby-api-tutorials/tree/master/tutorials/01_hello_cube and try to copy the code and then make changes
im0nde has quit [Ping timeout: 260 seconds]
<Sparda> i can tell you i have seen that example before.
<Sparda> 01 hello cube, i have used it before.
<Burgestrand> Sparda in the example code I linked you, it appears they do not use `Ext`, but instead create something that looks to be a substitute/the new way in `ext = SketchupExtension.new(…)`
<Burgestrand> Sparda with what I've seen so far, it's reasonable to assume _that_ is what you should do, instead of using `Ext`
<Sparda> i see. hmmm
mochiyoda_ has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
Riddell has quit [Ping timeout: 248 seconds]
mochiyoda_ has joined #ruby
<Sparda> alright thank you for helping me out. it will take some times for me to think about everything you have told me so far.
Sparda has quit [Quit: Page closed]
Riddell has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
<mikhael_k33hl> What libraries are you using when unit testing functions that works with files?
guille-moe has joined #ruby
evenix has quit [Remote host closed the connection]
loveablelobster has joined #ruby
loveablelobster has quit [Client Quit]
ppm_floss has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
loveablelobster has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
paranoicsan has quit [Ping timeout: 260 seconds]
huyderman has joined #ruby
tomphp has joined #ruby
madhatter has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 248 seconds]
sheva2nd has joined #ruby
<sheva2nd> Hi
<sheva2nd> anyone's here
madhatter has joined #ruby
ana_ has joined #ruby
<sheva2nd> hello
yeticry has joined #ruby
DmitryBochkarev has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
aupadhye has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Client Quit]
im0nde has joined #ruby
rrutkowski has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
csk157 has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
anisha has quit [Ping timeout: 276 seconds]
celine_ has quit [Quit: Connection closed for inactivity]
csk157 has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
nofxx_ has joined #ruby
yeticry has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
nofxx__ has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
jottr has joined #ruby
elphe has joined #ruby
anisha has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
ta__ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<loveablelobster> Hi there, anybody with experience with the sequel gem and inflections? I am having a strange issue where my custom inflections are being ignored
bmarkons has joined #ruby
nofxx_ has quit [Remote host closed the connection]
<bmarkons> Is it possible to dynamically intercept each statement within a Ruby block?
nofxx has joined #ruby
nofxx has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 255 seconds]
bmarkons has left #ruby [#ruby]
elphe has quit [Ping timeout: 248 seconds]
qba73 has joined #ruby
kke_ has quit [Quit: Reconnecting]
qba73 has quit [Remote host closed the connection]
kke has joined #ruby
kke has quit [Changing host]
kke has joined #ruby
<kke> any ideas how you can order by a composite column in sequel? like Items.order("version.major")
qba73 has joined #ruby
RevanOne has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
ferr has left #ruby ["WeeChat 2.0"]
rbo has joined #ruby
qba73 has joined #ruby
ldnunes has joined #ruby
Neptu has quit [Ping timeout: 252 seconds]
yeticry has quit [Ping timeout: 240 seconds]
zipkid has joined #ruby
mikecmpbll has joined #ruby
<kke> Items.order("(version).major") does not work either
<kke> Sequel::DatabaseError: PG::SyntaxError: ERROR: non-integer constant in ORDER BY "ORDER BY '(version)..."
rrutkowski has quit [Ping timeout: 255 seconds]
guardianx has joined #ruby
pifon has joined #ruby
raynold has joined #ruby
yeticry has joined #ruby
sammi` has quit [Quit: leaving]
im0nde has quit [Ping timeout: 255 seconds]
ana_ has quit [Quit: Leaving]
shinnya has joined #ruby
yeticry has quit [Ping timeout: 268 seconds]
RougeT430 has joined #ruby
alex`` has joined #ruby
jaruga has joined #ruby
alex`` has quit [Client Quit]
jottr_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
Beams has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
uZiel has quit [Ping timeout: 248 seconds]
guardianx has joined #ruby
friday has quit [Ping timeout: 240 seconds]
friday has joined #ruby
elphe has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Beams has quit [Quit: .]
iamarun has quit [Remote host closed the connection]
alfiemax has joined #ruby
spectrum has quit [Ping timeout: 268 seconds]
sammi` has joined #ruby
Beams has joined #ruby
Serpent7776 has joined #ruby
elphe has quit [Ping timeout: 250 seconds]
tcopeland has quit [Quit: tcopeland]
jottr_ has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 250 seconds]
rbo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmarkons has joined #ruby
bmarkons has left #ruby [#ruby]
sheva2nd has quit [Ping timeout: 260 seconds]
hfp_work has quit [Quit: bye]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hfp_work has joined #ruby
guardianx has quit []
alfiemax has joined #ruby
elphe has joined #ruby
jottr_ has joined #ruby
postmodern has quit [Quit: Leaving]
PaulCapestany has quit [Read error: Connection reset by peer]
cagmez__ has joined #ruby
PaulCapestany has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
cagmz_ has quit [Ping timeout: 260 seconds]
rrutkowski has joined #ruby
cdg has joined #ruby
crova has joined #ruby
alex`` has joined #ruby
alex`` is now known as alexherbo2
cdg has quit [Ping timeout: 250 seconds]
alexherbo2 is now known as alex``
ur5us has joined #ruby
Guest26360 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
elsevero has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
jnyw has quit [Quit: WeeChat 2.0]
drowze has joined #ruby
mistnim has joined #ruby
<mistnim> how do I rename Digest::MD5.hexdigest(astr) to md5(astr)?
tcopeland has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
yeticry has joined #ruby
<havenwood> mistnim: module Kernel; def md5(astr); Digest::MD5.hexdigest(astr) end end
cdg has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mistnim> havenwood: really? isn't there something like "require as"?
alfiemax has quit [Remote host closed the connection]
banisterfiend has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
aScottishBoat has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
cdg has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
Beams has quit [Quit: .]
yeticry has quit [Ping timeout: 248 seconds]
tcopeland has quit [Quit: tcopeland]
apparition has joined #ruby
Psybur has joined #ruby
brandthdl has joined #ruby
uZiel has joined #ruby
rabajaj has quit [Remote host closed the connection]
yeticry has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
selim has quit [Ping timeout: 248 seconds]
webguynow has joined #ruby
cdg has joined #ruby
selim has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
mtkd has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
<havenwood> mistnim: nope, there's no `as`
qba73 has quit [Ping timeout: 240 seconds]
kith has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
alfiemax has joined #ruby
charliesome has joined #ruby
Riddell has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Ping timeout: 255 seconds]
Riddell has joined #ruby
cdg has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
cdg has quit [Ping timeout: 255 seconds]
minimalism has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
alfiemax has joined #ruby
nofxx has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
nofxx has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
bkxd has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
brandthdl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Beams has joined #ruby
KeyJoo has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
kith has quit [Quit: kith]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ is now known as jottr
minimalism has joined #ruby
alfiemax has joined #ruby
tsglove has quit [Remote host closed the connection]
bmurt has joined #ruby
tcopeland has joined #ruby
tsglove has joined #ruby
tcopeland has quit [Client Quit]
tsglove has quit [Max SendQ exceeded]
brandthdl has joined #ruby
tsglove has joined #ruby
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
tsglove has quit [Max SendQ exceeded]
tsglove has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
tsglove has quit [Max SendQ exceeded]
hinbody has quit [Ping timeout: 255 seconds]
tcopeland has joined #ruby
bkxd has quit []
qba73 has joined #ruby
quobo has joined #ruby
brandthdl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
elphe has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 246 seconds]
<RougeT430> can someone take a moment to see if they can spot where im missing an 'end',
rhebz916 has quit [Quit: Leaving]
charliesome has joined #ruby
Cavallari has quit [Quit: Cavallari]
Beams has quit [Quit: .]
<Burgestrand> RougeT430 method on line #59
charliesome has quit [Ping timeout: 240 seconds]
<Burgestrand> RougeT430 indent the loop do, should help you spot it
ur5us has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<Burgestrand> RougeT430 your indentation is all over the place, don't be sloppy
polishdub has joined #ruby
<RougeT430> Burgestrand: ill look at tthat now and try fixing indent too
<RougeT430> yeah, that was it ugh. and yes indenting it properly did make it more visible
Beams has joined #ruby
<RougeT430> is there a good guide on ruby indentation?
ur5us has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
<Burgestrand> RougeT430 style doesn't matter too much (in my opinion), but consistency does, but I guess this guide is as good as any: https://github.com/bbatsov/ruby-style-guide
JaccoP has joined #ruby
<aScottishBoat> it's near line 70
<Burgestrand> RougeT430 github links to this: https://github.com/github/rubocop-github/blob/master/STYLEGUIDE.md
<aScottishBoat> I forked your gist Rouge
<aScottishBoat> without making any additional changes, I indented properly for you. So you can see the difference.
anisha has quit [Quit: This computer has gone to sleep]
<aScottishBoat> I'
<aScottishBoat> I'm making some edits*** RougeT430
<RougeT430> aScottishBoat: oh thankyou, i was just reading that style guide. but it wil be useful to see your indents
brandthdl has joined #ruby
<RougeT430> let me have a look at the fork
<aScottishBoat> attack_hashes, heal_func
<RougeT430> yeah that does look a lot nicer and readable. im going to have a compare now between mine and yours to see how to improve
<Burgestrand> aScottishBoat changing the attacks_hashes to a local variable makes it unreachable inside string_hash, which'll cause a runtime error when attempting to read it
elphe has quit [Ping timeout: 240 seconds]
<aScottishBoat> $attack_hashes then?
<aScottishBoat> I mean, there was a function that had an unassigned hash. Should it have stayed like that?
<RougeT430> isnt using global variables frowned upon unless truly neccessary
<Burgestrand> aScottishBoat that makes it global, which I'd recommend against as well, I'd just keep it as a method, at most make it a constant (first letter of the variable name turned capital)
<Burgestrand> aScottishBoat it wasn't unassigned, it was the return value
<RougeT430> ^
<aScottishBoat> I got that, but it seemed odd to me.
<aScottishBoat> I trust you two, cool
<RougeT430> im not sure of the best way to do it tbh
<Burgestrand> aScottishBoat if you want, you could name it `Attacks_hashes = { … }` instead, that'll do what you intended
<aScottishBoat> what's the scope of a constant?
<RougeT430> that would give it the scope for that class no?
<Burgestrand> It'd be Super_calc::Attacks_hashes
<Burgestrand> or whatever the name of that class was :)
<aScottishBoat> Ooo cool. Ugh I need to get back into using Ruby. I've forgotten loads.
krawchyk has joined #ruby
<RougeT430> better than me aScottishBoat ;) ive yet to learn loads to forget
<aScottishBoat> Don't shun me but I've been working on a side project using PHP... And yes, I'm utilizing the ncurses library that PHP provides haha
<aScottishBoat> RougeT430, well the community is fantastic (I mentioned that yesterday when you were around). Please feel free to stick around.
<Burgestrand> Also, in line with the majority* of style guides, Ruby tend to use CamelCasing instead of Snake_Case for constants/modules/classes, i.e. SuperChar and AttacksHashes
<Burgestrand> That's purely stylistic though, but generally recommended to avoid that popping up in every discussion when posting code ;)
<aScottishBoat> If I'm not mistaken I think I've always seen Ruby constants in all uppercase
ledestin has joined #ruby
<Burgestrand> You're definitely mistaken
<Burgestrand> Actually
<Burgestrand> I can't decide your facts
<Burgestrand> But I can tell you that it's not always so :)
<aScottishBoat> Then some people on exercism give non-community styled feedback
elphe has joined #ruby
<aScottishBoat> cool
charliesome has joined #ruby
<Burgestrand> Community-style is whatever you perceive to be the majority, all-uppercase constants is not necessarily frowned upon
<Burgestrand> Keep in mind class names and module names are also constants, and they're not all-uppercase
<aScottishBoat> That is true, err but using a constant as a variable
<aScottishBoat> But fair.
<aScottishBoat> I just like doing what the majority of the language community agrees on... Saves me headaches
<Burgestrand> I agree with that
gnufied has joined #ruby
DLSteve_ has joined #ruby
<octomancer> lol
<RougeT430> is there a way of converting symbols to strings in ruby (not rails)
<RougeT430> was finding methods for rails
<RougeT430> ill just make them strings for now, but look for a way to do it later
charliesome has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 248 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<aScottishBoat> hmm well this is a good time to acquaint yourself with the ruby docs
<aScottishBoat> ruby-doc.org
<aScottishBoat> and if you go
<aScottishBoat> Core in the navbar (Core API are classes/methods/etc. that you have access to without having to import any additional libraries -- for importable libraries you can work with, that ship with a standard Ruby install, check out Std-Lib)
<aScottishBoat> You'll get two searchable fields, one for Classes and one for Methods. You can type in "Symbol" into the Classes searchbar, and click on C Symbol to learn more about that class.
exchgr` has quit [Ping timeout: 240 seconds]
<aScottishBoat> All pages have a "Methods" section. You'll notice that some methods have :: and some have #. For example. Symbol::all_symbols is a class method. You can execute it directly from the class name (Symbol)
brandthdl has quit [Ping timeout: 240 seconds]
<aScottishBoat> Symbol#capitalize on the otherhand is executed on an object of a symbol. :my_symbol.capitalize
<aScottishBoat> It just so happens there is a Symbol#to_s function.
<aScottishBoat> ;)
qba73 has quit [Remote host closed the connection]
<aScottishBoat> RougeT430 ^
qba73 has joined #ruby
<aScottishBoat> Also, I didn't know you could turn off GC in Ruby. IS there any point to that?
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
petervbeck has quit [Quit: WeeChat 1.9.1]
petervbeck has joined #ruby
iloveitaly has joined #ruby
shinnya has quit [Ping timeout: 268 seconds]
alfiemax has quit [Remote host closed the connection]
petervbeck has quit [Client Quit]
petervbeck has joined #ruby
Bish has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<Bish> if i want to distribute something fairly
petervbeck has quit [Client Quit]
Neptu has joined #ruby
<Bish> how do you go around
<Bish> >> 49.fdiv(49)*49
<ruby[bot]> Bish: # => 49.0 (https://eval.in/917707)
<Bish> >> 1.fdiv(49)*49
<Bish> eh.
<ruby[bot]> Bish: # => 0.9999999999999999 (https://eval.in/917708)
<Bish> i have a weighted random function which recures the probabilities to add up to 1
<Bish> requires*
alfiemax has joined #ruby
<Bish> and that would make it crash
JaccoP has quit [Ping timeout: 260 seconds]
guille-moe has joined #ruby
iloveitaly has quit [Quit: Textual IRC Client: www.textualapp.com]
jnollette has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
Neptu has quit [Ping timeout: 260 seconds]
pastorinni has joined #ruby
jnollette has joined #ruby
miky_ is now known as AndreiZ
<kspencer> this may sound a bit weird, but if I create a file that i 'require' that has classes like Sequel Models, and require them into Cinch plugins, that's completely fine and valid use of them right?
AndreiZ has left #ruby ["hold my beer and watch this!"]
<polishdub> should work, but whether it's the ruby way, I cannot say :/
<kspencer> yeah, its more because I want to have valid paths from each class or constant and not have to use $vars in all my code :|
mtkd has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
oleo2 has joined #ruby
yeticry has joined #ruby
oleo has joined #ruby
jolamb_ is now known as jolamb
mtkd has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
minimalism has quit [Quit: minimalism]
qba73 has quit [Remote host closed the connection]
safetypin has joined #ruby
qba73 has joined #ruby
guille-moe has joined #ruby
aScottishBoat has quit [Remote host closed the connection]
aScottishBoat has joined #ruby
eckhardt has joined #ruby
Rapture has joined #ruby
JaccoP has joined #ruby
oleo2 has quit [Remote host closed the connection]
<Burgestrand> Bish depending on use-case you might want to take a look at Rational
oleo2 has joined #ruby
petervbeck has joined #ruby
<Bish> Burgestrand: i already figured that would help
<Bish> how do rationals work
<Bish> are they just 2 integers?
<Burgestrand> Bish a numerator and denominator
gizmore|2 is now known as gizmore
<Bish> yeah but what are they?
<Burgestrand> >> Rational("1.5/3.7")
<ruby[bot]> Burgestrand: # => invalid value for convert(): "1.5/3.7" (ArgumentError) ...check link for more (https://eval.in/917729)
<Burgestrand> :d
<Burgestrand> >> Rational("1.5/5")
<ruby[bot]> Burgestrand: # => (3/10) (https://eval.in/917730)
<Bish> >> 1.fdiv(3).to_r
<ruby[bot]> Bish: # => (6004799503160661/18014398509481984) (https://eval.in/917731)
<Burgestrand> >> Rational("1/3")
<ruby[bot]> Burgestrand: # => (1/3) (https://eval.in/917732)
<Bish> >> 1.fdiv(3).to_r.to_f
<ruby[bot]> Bish: # => 0.3333333333333333 (https://eval.in/917733)
<Bish> oh that's why u do it that ugly way
<Burgestrand> >> 1/3r + 1/3r + 1/3r
* Burgestrand kicks @ruby[bot]
<Burgestrand> >> 1/3r + 1/3r + 1/3r
<Bish> lol
<ruby[bot]> Burgestrand: # => (1/1) (https://eval.in/917734)
<Bish> thanks, i think ill do that
<Burgestrand> As long as you're dealing with rational numbers they'll stay accurate, AFAIK
<Burgestrand> If you want to play around with π you've got problems though
oleo2 has quit [Quit: Leaving]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
aScottishBoat has quit [Remote host closed the connection]
Beams has quit [Quit: .]
Puffball has joined #ruby
<RougeT430> ahh thats useful ascottishboat ill try that shortly
aScottishBoat has joined #ruby
<RougeT430> also. im now stuck on trying to call a class method recursively i think
dinfuehr has quit [Ping timeout: 255 seconds]
<RougeT430> line 75/78 give no method error
<RougeT430> i know the scope is wrong but im not sure how to fix it. not sure if its a class/instance method thing
guille-moe has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
Asher1 has joined #ruby
mikecmpb_ has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
ghoti has joined #ruby
elsevero has quit [Quit: elsevero]
chocoelho has joined #ruby
Cavallari has joined #ruby
chocoelho has quit [Quit: chocoelho]
sylario has joined #ruby
<aScottishBoat> RougeT430, how's it going
jaruga has quit [Quit: jaruga]
qba73 has quit [Remote host closed the connection]
jaruga has joined #ruby
qba73 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aScottishBoat has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
banisterfiend has joined #ruby
ur5us has joined #ruby
mikhael_k33hl has quit [Ping timeout: 260 seconds]
troys has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
DmitryBochkarev has joined #ruby
ledestin has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Quit: .]
nankyokusei has joined #ruby
loveablelobster has joined #ruby
Burgestrand has quit [Quit: Closing time!]
exchgr has joined #ruby
alfiemax has quit [Remote host closed the connection]
loveablelobster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
PaulCapestany has joined #ruby
nankyokusei has quit []
Mon_Ouie has quit [Ping timeout: 276 seconds]
aufi has quit [Quit: Leaving]
cognoscente has joined #ruby
qba73 has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
qba73 has joined #ruby
nankyokusei has joined #ruby
RougeT430 has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
pifon has quit [Quit: Connection closed for inactivity]
mcr1 has quit [Ping timeout: 255 seconds]
despai has joined #ruby
despai has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 248 seconds]
kapil___ has joined #ruby
despai has joined #ruby
rippa has joined #ruby
cagomez has quit [Remote host closed the connection]
unreal has quit [Read error: Connection reset by peer]
JaccoP has quit [Ping timeout: 255 seconds]
sanscoeur has joined #ruby
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
cagomez has joined #ruby
RougeT430 has joined #ruby
nogic has joined #ruby
s3nd1v0g1us has joined #ruby
JaccoP has joined #ruby
chocoelho has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
mikecmpb_ has quit [Ping timeout: 240 seconds]
<mikecmpbll> for what possible reason could i the following two be the case at the same time: hash.key?(foo) => false; hash.keys.first == foo => true
<mikecmpbll> and ofc hash[foo] => nil
troys is now known as troys_
<mikecmpbll> excuse the notation, i was using => to denote the return value.
rm8 has joined #ruby
qba73 has quit [Ping timeout: 248 seconds]
pifon has joined #ruby
podman[USC] is now known as podman
mim1k has joined #ruby
dionysus69 has quit [Quit: dionysus69]
JaccoP has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
vdl has quit [Quit: WeeChat 1.6]
vdl has joined #ruby
mark_66 has quit [Quit: Leaving.]
hahuang65 has quit [Ping timeout: 246 seconds]
nhs has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
jaruga has quit [Quit: jaruga]
<havenwood> >> class Foo; def hash; rand.hash end end; foo = Foo.new; hash = {foo => true}; [hash.key?(foo), hash.keys.first == foo, hash[foo]]
<ruby[bot]> havenwood: # => [false, true, nil] (https://eval.in/917907)
<havenwood> mikecmpbll: ^
plexigras has joined #ruby
<mikecmpbll> havenwood : nicee ..
<mikecmpbll> and in the case where foo.hash == hash.keys.first.hash? :'<
<mikecmpbll> foo is an activerecord, for what it's worth .. i think i need to look at this with a fresh head. i'm probably doing something retarded.
ramfjord has joined #ruby
nadir has joined #ruby
jud^ has joined #ruby
funburn has joined #ruby
troys_ is now known as troys
aspiers has quit [Ping timeout: 248 seconds]
lupine_ has quit [Ping timeout: 255 seconds]
lupine has joined #ruby
jud has quit [Ping timeout: 252 seconds]
terens has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
aspiers has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
bradleyprice has joined #ruby
houhoulis has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
<terens> Hello. Which is the best way to communicate between a webserver and 10.000 devices ? Send configuration/ updates/ and receive statistics / live tools etc ?
jxv has joined #ruby
alfiemax has joined #ruby
oleo2 has joined #ruby
<havenwood> terens: DRb! ;-)
alfiemax has quit [Ping timeout: 260 seconds]
funburn has quit [Quit: funburn]
exhiled has joined #ruby
KeyJoo has joined #ruby
marr has joined #ruby
MrSparkle has quit [Read error: Connection reset by peer]
oleo2 has quit [Quit: Leaving]
orbyt_ has joined #ruby
guille-moe1 has joined #ruby
<RickHull> terens: is HTTP an option?
guille-moe has quit [Ping timeout: 240 seconds]
guille-moe1 is now known as guille-moe
<terens> yes
despai has quit [Quit: ...]
AJA4350 has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
AJA4350 has joined #ruby
MrSparkle has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> thinking broadly: you would have to maintain your "cloud webserver server" pretty tightly -- DNS, SSL, etc.
<RickHull> s/server server/server/ :)
<RickHull> and the device would have to be preconfigured with the DNS and certs, etc.
alfiemax has joined #ruby
<RickHull> then it can check in, download new configs and updates
graft has joined #ruby
<RickHull> you'll have to be careful about DoS on the webserver. probably want to authenticate critical requests
<RickHull> is this what you have in mind? it's not trivial to do it right
<RickHull> you will want to make sure your IoT devices can update their network stack in response to CVEs etc
hahuang65 has joined #ruby
allcentury has joined #ruby
hahuang65 has quit [Client Quit]
marxarelli|afk is now known as marxarelli
conta2 has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
zautomata1 has joined #ruby
zautomata1 has quit [Client Quit]
jottr has quit [Ping timeout: 255 seconds]
milardovich has quit []
alfiemax has quit [Remote host closed the connection]
guille-moe has joined #ruby
banisterfiend has joined #ruby
jxv has quit [Quit: string on the can snapped off]
rm8 has left #ruby ["i quit"]
<RickHull> definitely consider validating downloads with checksums
<RickHull> for uploading stats etc. PUT and POST should be fine
<RickHull> make sure whatever update loop the device is running can cope with downtime
<terens> I see but I want some realtime shit
mcr1 has joined #ruby
<terens> Initially i tried with websockets/actioncable
<terens> but ssl with event machine is not secure
<terens> and actioncable isn't enough mature
<terens> doing http requests polling would ruin my server
<terens> Also I tried a bit mqtt but have other issues
<terens> scaling etc
mistnim has quit [Quit: WeeChat 1.9.1]
uZiel has joined #ruby
RougeT430 has quit [Ping timeout: 260 seconds]
elphe has joined #ruby
hahuang65 has joined #ruby
despai has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
ogres has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pifon is now known as plifon
plifon is now known as pifon
John____ has joined #ruby
despai has quit [Read error: Connection reset by peer]
sameerynho has joined #ruby
despai_ has joined #ruby
bmurt has joined #ruby
tomphp has joined #ruby
<havenwood> terens: Is Elixir with Phoenix Channels an option?
<havenwood> 10k would be no problem with a BEAM process per WebSocket.
funburn has joined #ruby
vee__ has joined #ruby
<havenwood> terens: How about H2? There're good Ruby libraries on that front.
mtkd has quit [Ping timeout: 248 seconds]
nogic has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol_ has joined #ruby
elphe has joined #ruby
vee__ has quit [Ping timeout: 260 seconds]
conta2 has quit [Quit: conta2]
ramfjord has joined #ruby
Authenticator has quit [Quit: leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
jackjackdripper has joined #ruby
mcr1 has quit [Read error: Connection reset by peer]
zesadf324as has joined #ruby
tabula_0x00 has joined #ruby
<zesadf324as> hi
cdg has quit [Remote host closed the connection]
<jhass> hi
<tabula_0x00> Hello
vee__ has joined #ruby
cdg has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 255 seconds]
yeticry has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
im0nde has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
alfiemax has joined #ruby
pastorinni has quit [Ping timeout: 240 seconds]
LocaMocha has quit [Ping timeout: 250 seconds]
chocoelho has quit [Remote host closed the connection]
tomphp has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
chocoelho has joined #ruby
tomphp has joined #ruby
TomyLobo has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
tristanp has quit []
Dimik has joined #ruby
tvw has quit [Remote host closed the connection]
tomphp has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
rrutkowski has quit [Client Quit]
claudiuinberlin has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
rrutkowski has joined #ruby
shtirlic has joined #ruby
rrutkowski has quit [Client Quit]
mostlybadfly has joined #ruby
dionysus69 has joined #ruby
shtirlic has quit [Client Quit]
rrutkowski has joined #ruby
shtirlic has joined #ruby
RougeT430 has joined #ruby
tomphp has joined #ruby
marxarelli is now known as marxarelli|afk
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
ohcibi has quit [Remote host closed the connection]
loveablelobster has joined #ruby
rrutkowski has quit [Client Quit]
elphe has quit [Ping timeout: 260 seconds]
unreal has joined #ruby
rrutkowski has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
csk157 has joined #ruby
marxarelli|afk is now known as marxarelli
klaas has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
rrutkowski has quit [Client Quit]
csk157_1 has joined #ruby
rrutkowski has joined #ruby
reber has quit [Remote host closed the connection]
Cavallari has quit [Quit: Cavallari]
yeticry has quit [Ping timeout: 240 seconds]
csk157 has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
plexigras has quit [Ping timeout: 240 seconds]
despai_ has quit [Quit: ...]
terens has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
yeticry has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
bmurt has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
elphe has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
ohcibi has joined #ruby
SeepingN has joined #ruby
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alfiemax has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
jamesaxl has quit [Quit: WeeChat 1.9.1]
_whitelogger_ has joined #ruby
G has quit [Ping timeout: 255 seconds]
endemic has quit [Ping timeout: 255 seconds]
russt has quit [Ping timeout: 255 seconds]
simonizor has quit [Ping timeout: 248 seconds]
haylon has quit [Ping timeout: 248 seconds]
knight_ has joined #ruby
ahrs has joined #ruby
faces has joined #ruby
Liothen has quit [Ping timeout: 260 seconds]
Puffball has joined #ruby
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
marr has joined #ruby
Fraeon has joined #ruby
pabs has joined #ruby
pecan has joined #ruby
swat2 has quit [Ping timeout: 255 seconds]
miah has quit [Ping timeout: 260 seconds]
lacour has joined #ruby
jsaak has joined #ruby
flori has joined #ruby
cout has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
planigan has joined #ruby
waveprop has joined #ruby
VladGh has joined #ruby
enterprisey has joined #ruby
ohcibi has joined #ruby
waveprop is now known as Guest25716
selim has quit [Ping timeout: 258 seconds]
tabula_rax_a has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Remote host closed the connection]
fury has joined #ruby
syndikate has joined #ruby
nikivi has joined #ruby
endemic has joined #ruby
halt has joined #ruby
selim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has joined #ruby
halt is now known as Guest94338
Liothen has joined #ruby
shortdudey123 has joined #ruby
coderphive has joined #ruby
daemonwrangler_ has joined #ruby
russt has joined #ruby
swat2 has joined #ruby
voxxit has joined #ruby
spider-mario has joined #ruby
simonizor has joined #ruby
haylon has joined #ruby
shortdudey123 has quit [Excess Flood]
Ltem has joined #ruby
shortdudey123 has joined #ruby
hurricanehrndz has joined #ruby
miah has joined #ruby
G has joined #ruby
chmurifree has quit [*.net *.split]
cosimo_ has quit [*.net *.split]
claw has quit [*.net *.split]
heftig has quit [*.net *.split]
aef has quit [*.net *.split]
linduxed has quit [*.net *.split]
nickjj has quit [*.net *.split]
brodul has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
silverdust has quit [*.net *.split]
claw has joined #ruby
brodul has joined #ruby
heftig has joined #ruby
nickjj has joined #ruby
mr_rich101 has joined #ruby
linduxed has joined #ruby
aef has joined #ruby
cosimo_ has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
fmccann_ has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
<fury> anyone familiar with the ruby alpine docker image? i can't seem to enter the rails console, it says it can't find rake in any of the sources... the app itself works fine, i can even pull it up in my web browser, or start up another console and say "rails server" and it's aware enough that a server is already running...but "rails console" seems to have no clue
bokayio has joined #ruby
fmccann has joined #ruby
cdg has joined #ruby
eblip has joined #ruby
charliesome has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
chmurifree has joined #ruby
CrazyEddy has joined #ruby
<RickHull> try `gem env`
<RickHull> wherever the ruby binary lives, there should be a rake binary as well, as ruby still comes packaged with rake IIRC
<RickHull> that said, there is a rake gem to get a newer rake
<RickHull> paste the error message you're getting -- use a paste site
<RickHull> also include the output from `gem env` as well as `which ruby` and `which rake`
charliesome has quit [Ping timeout: 264 seconds]
cagomez has quit [Remote host closed the connection]
safetypin has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
jamiejackson has joined #ruby
rhyselsmore has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
my123_ has joined #ruby
my123_ has joined #ruby
despai has joined #ruby
my123 has quit [Ping timeout: 264 seconds]
Klumben has joined #ruby
petervbeck has quit [Quit: WeeChat 1.9.1]
petervbeck has joined #ruby
funburn has quit [Quit: funburn]
cognoscente_ has joined #ruby
chocoelho1 has joined #ruby
cognoscente has quit [Ping timeout: 240 seconds]
chocoelho has quit [Ping timeout: 248 seconds]
chocoelho1 is now known as chocoelho
chromis has joined #ruby
foxxx0 is now known as bsd
bsd is now known as foxxx0
<fury> RickHull: https://gist.github.com/ftab/d9e40e4994e22b182e0e1c26ada9d0f9 - includes the dockerfile and gemfile, hope that helps narrow down what i'm doing wrong
<fury> scroll to the bottom for terminal where i did gem env / rails console / which ruby / which rake
<RickHull> ok, I think you need to do `bundle install` first
<RickHull> it looks like rake 12.3 is a transitive dependency of something in the Gemfile
<fury> in the terminal? says everything's already installed
<RickHull> are you following any instructions or a tutorial?
<RickHull> it says: Could not find rake-12.3.0 in any of the sources Run `bundle install` to install missing gems.
<RickHull> it looks like `bundle install` would be run -- but I'm not sure
Axy has quit [Read error: Connection reset by peer]
<fury> yeah, it does run it, and when i do that in the terminal it just gives me the green light right away, says 19 gemfile dependencies, 74 gems installed
<fury> my init.sh is pretty simple, just bundle exec rake db:create db:migrate then bundle exec rails server -p 80 -b 0.0.0.0
dionysus69 has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
<RickHull> after running `bundle install`
<fury> so that's what it runs on container startup, and that does work, cause the app server works - i can access port 80 of the container and run the app, it talks to my database, etc
<RickHull> can you `grep -i rake Gemfile.lock` ?
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
<fury> two lines, rake (>= 0.8.7) and rake (12.3.0)
<RickHull> you should have a Gemfile.lock somewhere
<fury> yep
<fury> should i delete it and run bundle install again?
<fury> matter of fact Gemfile.lock is in my git repo, not sure if that should be the case or what
<RickHull> find that 12.3.0 line in the Gemfile, and see who needs it
<RickHull> (I'm sure there is a quicker way to resolve this, but we can work through it naively)
<RickHull> sorry, in the Gemfile.lock
<fury> 12.3.0 is in the top level under specs:
<RickHull> hmmm
<fury> the >= 0.8.7 is under railties (5.1.4)
nogic has joined #ruby
<RickHull> i don't know what specs means in the Gemfile.lock -- I haven't used bundler in a while
<RickHull> it sounds like bundler itself depends on rake 12.3
<fury> sounds about right, i never defined it in the gemfile so i'd think it comes with the thing
<RickHull> just for fun, what do you get for `rake --version` ?
<fury> 12.3.0
<RickHull> ok -- you need to do `bundle exec rails console` maybe
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
<fury> same error
<RickHull> `bundle exec rake --version` ?
<fury> 12.3.0 there as well
kapil___ has quit [Quit: Connection closed for inactivity]
<RickHull> sounds FUBAR to me
<fury> this is starting to weird me out... how can it find rake but not be able to find rake :P
Xeago has joined #ruby
<RickHull> anyways, try #bundler maybe, unless someone else can chime in
<fury> everything else works, literally all i was going to use the rails console for was to create a user so i didn't need to add a user signup page to my one-off app for which i reeeeeeally don't want a user signup page (only want a username and password to lock down a database view/edit)
<RickHull> well -- this is something I would want to fix. this is FUBAR IMHO and I wouldn't want to proceed without fixing/understanding
<RickHull> whatever this mystery is, it's likely to cause more pain and mystery later
<fury> yes
redondos has joined #ruby
sammi`_ has joined #ruby
Ouchy has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
<fury> think it has something to do with that path. i was trying to get it to where i could cache the gem building output between builds so my gitlab CI could go a little faster between commits (i tend to do those rapid-fire "maybe this'll work?" "nope, try this" commits when i don't have the environment set up on my local machine)
br0d1n has quit [Quit: Leaving]
pastorinni has joined #ruby
sammi` has quit [Quit: Lost terminal]
rrutkowski has quit [Quit: rrutkowski]
houhoulis has quit []
rrutkowski has joined #ruby
silverdu1t has joined #ruby
<fury> well, that wasn't it, and it put it in the same folder anyway, so dunno
im0nde has joined #ruby
eblip has quit [Quit: WeeChat 1.9.1]
tcopeland has quit [Quit: tcopeland]
jenrzzz has quit [Ping timeout: 240 seconds]
<fury> so when i say gem uninstall rake, that tells me rake is not installed in GEM_HOME
Guest94338 has quit [Ping timeout: 276 seconds]
<fury> thinking i told bundle to install to the wrong location
cdg_ has joined #ruby
eblip has joined #ruby
jordanm has quit [Remote host closed the connection]
halt has joined #ruby
halt is now known as Guest74048
jordanm has joined #ruby
mbr_ is now known as mbr
cdg has quit [Ping timeout: 264 seconds]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
miskatonic has joined #ruby
kenichi_ is now known as kencihi
kencihi is now known as kenichi
garyserj has joined #ruby
exhiled has joined #ruby
<RickHull> fury: yeah, bundler and rubygems have some overlap and can disagree about things. in general, rubygems will put gems in the configured location, and they are "globally" available (not per-project)
bruce_lee has quit [Remote host closed the connection]
<RickHull> this can be in a system location (via sudo) or in a user location
<RickHull> bundler is about installing gems to a per-project location, to avoid incompatibilities (particularly with versioning) against previously installed gems
<RickHull> and this is why `bundle exec` is used -- to make sure only per-project gems are considered
allcentury has quit [Remote host closed the connection]
allcentury has joined #ruby
bmurt has joined #ruby
<RickHull> if you are using bundler, then you should probably *NOT* try to fix things with `gem`
alfiemax_ has quit [Remote host closed the connection]
<RickHull> i.e. `gem install` and `gem uninstall` will not affect projects using bundler
<RickHull> as to what's going on with bundler and rake in your situation, I'm not sure
despai has quit [Quit: ...]
allcentury has quit [Ping timeout: 264 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has quit [Quit: rrutkowski]
mim1k has joined #ruby
<garyserj> why does this code give an error https://repl.it/repls/GreedyCurlyAsianwaterbuffalo I am trying code for writing a file , it tells me "syntax error, unexpected '|', expecting '}' But i'm using code I saw here https://stackoverflow.com/questions/2777802/how-to-write-to-file-in-ruby
bmurt has joined #ruby
<apeiros> garyserj: ruby doesn't like your { being on a new line
friday has quit [Changing host]
friday has joined #ruby
camilasan has joined #ruby
mim1k has quit [Ping timeout: 272 seconds]
<baweaver> .NET left-braces won't work in Ruby.
mtkd has quit [Ping timeout: 240 seconds]
meesles has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ogres has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
tomphp has joined #ruby
Exagone313 has quit [Quit: see ya!]
krawchyk has quit [Quit: Textual IRC Client: www.textualapp.com]
funburn has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
cagomez has joined #ruby
funkytwig has joined #ruby
funkytwig has quit [Client Quit]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exagone313 has joined #ruby
funkytwig has joined #ruby
bmurt has quit [Client Quit]
pastorinni has quit [Remote host closed the connection]
Exagone313 has quit [Client Quit]
jamiejackson has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
Exagone313 has joined #ruby
funburn has quit [Client Quit]
chrisgopher has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
d_kam has joined #ruby
Xiti has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
pb122 has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
Azure|dc is now known as Azure
Azure has quit [Remote host closed the connection]
Azure has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has quit [Quit: Leaving]
<garyserj> thanks.. What is the difference between opening a file for writing with "w" and opening it for writing in binary mode "wb" ?
d_kam has quit [Quit: Lingo: www.lingoirc.com]
chrisgopher has quit []
<meesles> One part is depends on the file. Binary files are useless when opened as text-only, and vice-versa
<meesles> (not ruby-specific)
miskatonic has quit [Remote host closed the connection]
<garyserj> what encoding would ruby use to read a file if no encoding is specified?
<garyserj> if it's just "r"?
<meesles> Text is default I believe
<meesles> That's why there's an explicit *b version of all the file modes
<garyserj> what does text mean.. could be utf8 utf16LE utf16BE
TomyLobo has quit [Ping timeout: 255 seconds]
<meesles> Sure, you can specify additional encoding if needed. I'm just explaining the primary difference between the two modes you asked about
<garyserj> I mean what will it do if no encoding is specified?
<garyserj> will it do utf8? utf16be?
<meesles> Doing the same googling you could be doing
<meesles> Look slike utf8 is default
<garyserj> ok, thanks
<meesles> But I would just specify if you're concerned about it
yeticry has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
gone_haywire has quit [Ping timeout: 248 seconds]
pabs has quit [Quit: leaving]
alex`` has quit [Ping timeout: 255 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
pabs has joined #ruby
minimalism has joined #ruby
eb0t has quit [Ping timeout: 248 seconds]
chocoelho has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
d_kam has joined #ruby
polishdub has quit [Quit: leaving]
guille-moe has joined #ruby
funburn has joined #ruby
tcopeland has joined #ruby
funburn has quit [Client Quit]
funburn has joined #ruby
funburn has quit [Client Quit]
QualityAddict has quit [Ping timeout: 250 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
funburn has joined #ruby
funburn has quit [Client Quit]
funburn has joined #ruby
funburn has quit [Client Quit]
ramfjord has joined #ruby
funburn has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
funburn has quit [Client Quit]
Cohedrin has joined #ruby
im0nde has quit [Ping timeout: 250 seconds]
Cohedrin has quit [K-Lined]
gbailey has joined #ruby
Cohedrin has joined #ruby
knight33 has joined #ruby
clemens3 has quit [Ping timeout: 255 seconds]
<zenspider> rawr
vee__ has joined #ruby
<zenspider> garyserj: Try running `ri File.open` and `ri IO.new`
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
funburn has joined #ruby
hahuang65 has joined #ruby
<baweaver> ohai zenspider
<baweaver> How's things?
<zenspider> not bad! I'm actually plugging away on minitest... trying to get some stuff finalized for the last(?) 5 release
<zenspider> (I hope the last)
<baweaver> (It won't be :P)
<zenspider> well I HOPE it will be
<zenspider> need to fix up serialization to be a bit more solid so we can use that as the precursor for a new minitest-server architecture
SeepingN_ is now known as SeepingN
funburn has quit [Quit: funburn]
elphe has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 272 seconds]
Cohedrin has quit [Quit: Textual IRC Client: www.textualapp.com]
nowhere_man has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
banisterfiend has joined #ruby