A_Drone has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
freerobby1 has quit [Quit: Leaving.]
tmtwd has joined #ruby
hahuang61 has joined #ruby
mattwashere has joined #ruby
KnownSyntax has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
gix has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
gix has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ensyde has joined #ruby
SuperLag_ has joined #ruby
pawnbox has joined #ruby
SuperLag has quit [Ping timeout: 265 seconds]
SuperLag_ has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
braincrash has joined #ruby
k3rn31 has joined #ruby
bad_ip has quit [Ping timeout: 276 seconds]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
chihhsin has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hannelita has joined #ruby
mattwashere has quit [Ping timeout: 250 seconds]
conta has joined #ruby
matp has quit [Remote host closed the connection]
hannelita has quit [Ping timeout: 260 seconds]
A_Drone has quit [Remote host closed the connection]
A5101 has joined #ruby
k3rn31 has quit [Ping timeout: 252 seconds]
A_Drone has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
irregular has joined #ruby
blackmesa has joined #ruby
chihhsin has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
ur5us has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
ur5us has joined #ruby
ensyde has quit [Ping timeout: 258 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
<irregular>
just want to double check but do method parameters with default values always have to be at the end of a method signature?
benlieb has joined #ruby
benlieb has quit [Client Quit]
blackmesa has quit [Ping timeout: 276 seconds]
<irregular>
i.e. foo(a,b=2) will work but foo(b=2,a) will never work?
exchgr has quit [Ping timeout: 264 seconds]
exchgr has joined #ruby
<banisterfiend>
irregular niether of those do what you think they do
A5101_ has joined #ruby
<irregular>
banisterfiend:i mean def foo(a,b=2) {} and def foo(b=2,a) {}
A5101 has quit [Quit: Leaving]
<irregular>
I'm asking because I get a compile error from pulling a coworker
<irregular>
s code and I'm wondering if it actually worked for him
conta has quit [Ping timeout: 258 seconds]
<banisterfiend>
irregular they have to be at the end
benlieb has joined #ruby
<irregular>
banisterfiend:ok thanks. i'll ping him and i guess get an answer in the morning
<banisterfiend>
irregular no i'm wrong
conta has joined #ruby
dionysus69 has joined #ruby
<banisterfiend>
play with it in irb :)
nando293921 has quit [Ping timeout: 244 seconds]
<irregular>
hmm i am getting syntax error, unexpected '=', expecting ')' but if I switch all the variables with defaults to the end it works
<irregular>
<banisterfiend>
irregular what ruby version?
<irregular>
2.3
<banisterfiend>
irregular: you get a sntax error when you do htis in 2.3.1? def hello(a=1, b); end ?
conta has quit [Ping timeout: 252 seconds]
JesseH has joined #ruby
zacts has joined #ruby
<irregular>
def fill_form(a=1,b,c=2); end doesn't work but def fill_form(b, a=1,c=2); end works
RegulationD has joined #ruby
<irregular>
so i was assuming the ordering is though issue but i also have some confidence my coworker wouldn't push that if that didn't work hmm
<banisterfiend>
irregular that's different, you have default, non default, default
<banisterfiend>
irregular that's not valid in any ruby version. But just having default, non-default is fine
tubuliferous has quit [Ping timeout: 240 seconds]
<banisterfiend>
your original code is default, non-default. That's valid. But the code you just posted now (fill_form) is different, that's default, non default, default. That's not valid
<irregular>
actually the code i pulled is like so def fill_form(a,b,c,d,e=1,f,g=1) end but I'm sure that's also not valid
<irregular>
I'll send him a message. thanks.
<irregular>
wasn't sure if i was missing anything
RegulationD has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: Zzz...]
moei has joined #ruby
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<banisterfiend>
irregular it's not valid
mattwashere has joined #ruby
chihhsin has quit [Ping timeout: 260 seconds]
qguv has quit [Quit: bye]
chihhsin has joined #ruby
qguv has joined #ruby
<irregular>
is fill_form(a,b,c,d,e=1,f) valid? (this compiles fine for me though), just feeling out the rules here
mattwashere has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
nankyokusei has joined #ruby
A_Drone has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
ericsupreme has joined #ruby
SilverKey has quit [Quit: Halted.]
Vingador has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
tlarevo has quit [Ping timeout: 258 seconds]
Silthias1 has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
AndrewIsHere has joined #ruby
tubuliferous has joined #ruby
byteflame has quit [Ping timeout: 240 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
iMadper has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
iMadper is now known as WhatsGoingOn
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nullfxn has quit [Ping timeout: 244 seconds]
grvgr has quit [Quit: Connection closed for inactivity]
AndrewIsHere has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
Spami has joined #ruby
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
craigp has quit [Ping timeout: 244 seconds]
hannelita has joined #ruby
mistermocha has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
JakFrist has joined #ruby
hannelita has quit [Ping timeout: 260 seconds]
irregular has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
tlarevo has joined #ruby
dunpeal has joined #ruby
mistermocha has quit [Remote host closed the connection]
xall has joined #ruby
jorvis has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<jorvis>
I'm completely new to Ruby, but needed to modify someone's gem. When I run the script which calls it I don't see the change. Do gems need to be rebuilt/compiled if the code changes, and how? The file I changed (if it helps with rebuild syntax) is: /var/lib/gems/1.9.1/gems/sequenceserver-1.0.8/lib/sequenceserver/sequence.rb
xall has quit [Ping timeout: 264 seconds]
A_Drone has joined #ruby
dunpeal has quit [Ping timeout: 240 seconds]
Vingador has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: dionysus69]
hutch34 has joined #ruby
dionysus69 has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benvejknrertbrrt has quit [Quit: Leaving]
<jorvis>
I also tried "# gem build sequenceserver.gemspec" and got rebuild output but my change doesn't seem to be evident
blackmesa has joined #ruby
minimalism has quit [Quit: minimalism]
alfiemax has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
strigonLeader has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
benvejknrertbrrt has joined #ruby
madsa has joined #ruby
qbantek has joined #ruby
zacts has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
qbantek has left #ruby [#ruby]
diegoviola has quit [Quit: WeeChat 1.5]
benvejknrertbrrt has quit [Quit: Leaving]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
Rodya_ has quit [Quit: Leaving...]
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
charliesome has joined #ruby
ericsupreme has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
jorvis has quit [Quit: Leaving]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
astrobun_ has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
hannelita has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.2]
hannelita has quit [Ping timeout: 264 seconds]
Derperperd has joined #ruby
Cyrus has quit [Quit: Leaving]
hahuang61 has joined #ruby
Yacker has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
Robert_ has joined #ruby
Robert_ is now known as Guest75688
TomyLobo has joined #ruby
Guest75688 has quit [Client Quit]
Cohedrin has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
flashpoint9 has joined #ruby
saneax_AFK is now known as saneax
aupadhye has joined #ruby
xall has joined #ruby
mahlon has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
matp has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tlarevo has joined #ruby
blackmesa has joined #ruby
rafadc has joined #ruby
A_Drone has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
nullfxn has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
jaguarma_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
vuoto has quit [Remote host closed the connection]
dminuoso has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
xall has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
ecnalyr has joined #ruby
jaguarma_ has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
minotep has joined #ruby
ecnalyr has quit [Ping timeout: 240 seconds]
rafadc has quit [Remote host closed the connection]
jishankai has quit [Ping timeout: 258 seconds]
AndrewIsHere has joined #ruby
anisha has joined #ruby
A_Drone has joined #ruby
l4v2 has quit [Quit: l4v2]
nankyokusei has joined #ruby
howdoi has joined #ruby
binaryplease has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
hannelita has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Remote host closed the connection]
A_Drone has quit [Remote host closed the connection]
<syndikate>
cfec0b8d, no, I am writing a gem
zacts has joined #ruby
<syndikate>
I have some config for that gem stored in a json file
<syndikate>
when I build the gem it is not being included
<syndikate>
I am not sure how to correct gemspec for that
rafadc has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<syndikate>
nvm, figured it
djbkd_ has quit [Remote host closed the connection]
Spami has joined #ruby
ec0 has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
<Hello>
Do you need to use semicolons when ending a statement?
<dminuoso>
Hello: No.
boouy has joined #ruby
astrobun_ has joined #ruby
LoneHermit has joined #ruby
hipertracker has quit [Quit: hipertracker]
charliesome has joined #ruby
hipertracker has joined #ruby
Hyuk has joined #ruby
Hyuk has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 276 seconds]
marr has joined #ruby
tlarevo has quit [Remote host closed the connection]
symm- has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
symm- has quit [Client Quit]
mark_66 has joined #ruby
flashpoint9 has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
Spami has quit [Quit: This computer has gone to sleep]
flashpoint9 has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
koooge has quit [Quit: Leaving...]
Derperperd has quit [Quit: Derperperd]
tlarevo has joined #ruby
hipertracker has quit [Quit: hipertracker]
ReK2 has quit [Remote host closed the connection]
ReK2 has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
Spami has quit [Quit: This computer has gone to sleep]
hannelita has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
Guest48905 has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
tlarevo_ has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
hannelita has quit [Ping timeout: 260 seconds]
tlarevo has quit [Ping timeout: 252 seconds]
skweek has quit [Ping timeout: 276 seconds]
Guest48905 has joined #ruby
Spami has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
craigp has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Client Quit]
lxsameer has joined #ruby
biberu has joined #ruby
<dminuoso>
How would you name an exception that denotes a remote service cannot service an automated request, requiring me to fill out a form and request the information that way instead?
<Zarthus>
I think the exception name matters less than the exception message.
<Zarthus>
<RemoteServiceName>RequestError would work as very basic thing
<rubirc>
RemoteServiceError
<Hello>
Does ruby support m68K
<Hello>
?
<rubirc>
how much memory do you have on your m68K?
karapetyan has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
minotep has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
benlieb has joined #ruby
pawnbox has joined #ruby
koooge has joined #ruby
pawnbox_ has joined #ruby
Silthias has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
koooge has quit [Client Quit]
pawnbox has quit [Ping timeout: 264 seconds]
raeoks has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
benlieb has quit [Quit: benlieb]
giz|work has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
tlarevo has joined #ruby
colegatron has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
kavanagh has joined #ruby
kavanagh has quit [Client Quit]
nettoweb has joined #ruby
rodfersou has joined #ruby
Derperperd has joined #ruby
pard has joined #ruby
<pard>
hello!
<al2o3-cr>
o/
<pard>
:)
<pard>
i'm trying to make the whole ruby syntax known to all!
<pard>
but i actually need help doing that
framling has joined #ruby
<pard>
because i'm not a native speaker of english, and i have terrble markdown skills :\
phrozen77_ has quit [Ping timeout: 244 seconds]
<pard>
take this for example
tvw has joined #ruby
<pard>
>> def l(); l = 12; while true; (l<=0)?(return l):next end; print l
<ruby[bot]>
pard: # => /tmp/execpad-5f75b2940416/source-5f75b2940416:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/613862)
<pard>
>> def l(); l = 12; while true; (l<=0)?(return l):next end; end print l
<ruby[bot]>
pard: # => /tmp/execpad-da7f6443ed1a/source-da7f6443ed1a:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/613863)
<pard>
:\
<pard>
>> def l(); l = 12; while true; (l<=0)?(return l): (next (l-=1)) end; end; print l
<Mon_Ouie>
Use the STDIN constant only if you specifically need to reference the actual standard input, the global variable can be changed e.g. to redirect the input stream
<al2o3-cr>
Mon_Ouie: So if i was to make standard input non-blocking i'd use STDIN?
craigp has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
Probably since you can't usually do that with other types of inputs. You could still argue the other way, e.g. for testing purposes.
alt513 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
skweek has joined #ruby
xall has joined #ruby
ecnalyr has joined #ruby
hipertracker has quit [Ping timeout: 260 seconds]
A_Drone has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
hipertracker has joined #ruby
insanedreamer has joined #ruby
RegulationD has joined #ruby
framling has quit [Remote host closed the connection]
xall has quit [Ping timeout: 244 seconds]
sepp2k has quit [Quit: Leaving.]
last_staff has quit [Quit: last_staff]
weemsledeux has joined #ruby
kreantos has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
xall has joined #ruby
mattwashere has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
mattwash_ has joined #ruby
ellistaa has joined #ruby
<ellistaa>
im building an app kinda like instagram and i was thinking id store the images on s3 … does this sound like a good idea? then id just send the user the url for their browser to display the img?
AndrewIsHere has joined #ruby
xall has quit [Ping timeout: 264 seconds]
hk238 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
freerobby has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
mattwash_ has quit [Remote host closed the connection]
mattwashere has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
A_Drone has quit [Remote host closed the connection]
SilverKey has joined #ruby
jishankai has quit [Ping timeout: 244 seconds]
Rodya_ has quit [Remote host closed the connection]
hwcomcn has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Ping timeout: 252 seconds]
mattwashere has quit [Ping timeout: 244 seconds]
mattwashere has joined #ruby
axl_ has joined #ruby
zacstewart has quit [Quit: leaving]
ellistaa has quit [Quit: ellistaa]
craigp has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
OTORelic has joined #ruby
Rodya_ has joined #ruby
dunpeal has joined #ruby
haxrbyte has joined #ruby
hipertracker has quit [Quit: hipertracker]
[dmp] has quit [Quit: WeeChat 1.3]
haxrbyte has quit [Client Quit]
ellistaa has joined #ruby
hipertracker has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<OTORelic>
/join #freenode
OTORelic has quit [Quit: WeeChat 1.4]
ellistaa has quit [Client Quit]
OTORelic has joined #ruby
insanedreamer has quit [Quit: insanedreamer]
<OTORelic>
å
OTORelic has quit [Client Quit]
shaman42 has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
kobain has joined #ruby
roamingdog has quit [Remote host closed the connection]
pickandmix has quit [Quit: WeeChat 1.5]
pickandmix has joined #ruby
cibs has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Cheerio!]
hipertracker has quit [Quit: hipertracker]
shaman42 has joined #ruby
macsteps has joined #ruby
cibs has joined #ruby
sfvkro has joined #ruby
hipertracker has joined #ruby
maus has joined #ruby
Rodya_ has quit [Remote host closed the connection]
OTORelic has joined #ruby
zacts has joined #ruby
dminuoso has joined #ruby
jdawgaz has joined #ruby
kavanagh has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Mattx has joined #ruby
Spami has joined #ruby
<Mattx>
Hey, I have a function defined in the global (Object?) scope. and I want to know if it's callable from the inside of a method in a class. The name of the function is in a variable myfunc
<Mattx>
So for instance I tried methods.include?(myfunc) and respond_to?(myfunc), but both return false
<ljarvis>
no it's not
<ljarvis>
the "global" scope you're speaking of is not global
<ljarvis>
it's just main
<Mattx>
ok, main, I just didn't know how it was called
hanneli has quit [Remote host closed the connection]
<ljarvis>
yeah, i just mean it's not really global, so you can't access it except from main (without some meta hacking)
<ljarvis>
if you want to define a method available everywhere your best bet is to include it into the Kernel module
<Mattx>
I don't think so, if I try to run the function it works
minotep has quit [Ping timeout: 240 seconds]
Morxander has joined #ruby
<Mattx>
I'm trying to do this: send myfunc, "foo", "bar" if respond_to? myfunc
ekinmur has joined #ruby
<Mattx>
my point is, "send myfunct foo bar" works, it's callable
<ljarvis>
ok, can you show some code?
<Mattx>
sure, one sec
<Morxander>
I compilled/installed Ruby 2.0.0-p684 from source but I need to install Ruby-dev too but when I do through apt-get it needs to install ruby again too which will conflict my installation
kreantos has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 260 seconds]
fergal_ has joined #ruby
kreantos has joined #ruby
mattwashere has quit []
<ljarvis>
Morxander: why will it conflict with your installation?
<OTORelic>
morxander, im pretty sure if you remove youre ruby and install ruby-dev it will have a dependency on a ruby version
dminuoso has quit [Read error: Connection reset by peer]
<OTORelic>
so im not sure if you really wanted to/needed to compile from source
<ljarvis>
also that's an odd ruby version to pick
dminuoso has joined #ruby
mtkd has joined #ruby
<OTORelic>
if anything use RVM or RBENV to manage different ruby versions
<Morxander>
I have to work with this patch 684 and I dont know which patch avalible on the ubuntu repo
<dminuoso>
Mattx: Also point of interest, a method always belongs to a class (or module).
<OTORelic>
youtube.com
<ljarvis>
only if you want to call it :D
<dminuoso>
Unless its an UnboundMethod of course. :)
<ljarvis>
</pedant>
<fergal_>
hi guys, i’m trying to download a zip that contains an executable, but when i download and unzip it with ruby, the executable file is not marked as executable. however, when i download and unzip it manually, the executable is marked as executable. i’m not sure why this is the case, is there something extra i have to do when unzipping the file via ruby to maintain executable permissions on files?
<Mattx>
dminuoso, what's the default class/module when you don't specify one? is it Kernel?
<dminuoso>
Mattx: The so called "default definee"
wcarss has joined #ruby
<dminuoso>
Mattx: And that depends on where you are in your code.
<ljarvis>
main
<wcarss>
does anyone know if there's a doorkeeper irc
<Mattx>
I believe my function is defined there, and I want to check before I run it from a variable (myfunc = :function_name)
<wcarss>
I looked here and on slashnet in doorkeeper and doorkeeper-dev
<ljarvis>
fergal_: not sure, can't you just chmod +x ?
<dminuoso>
Mattx: But it gets added to the singleton class (!) of the main object, which gets created during VM initialization.
<Mattx>
(I'm writing an example anyway, just a moment)
<ljarvis>
Mattx: fwiw (and im not trying to bust your balls), you should refer to them as methods, ruby doesn't have functions per say
<dminuoso>
Mattx: And note this is not pedantry, but accuracy - understanding this removes the magical bits of statements like: def self.blah; ...; end
<Mattx>
it works as I expected, I should be doing something wrong in the real code. I'll double check
<OTORelic>
fergal_ if your doing it in a ruby script and know the name just hardcode the permissions change for the executable after the unzip happens
<ljarvis>
Mattx: im confused at what you want, you say "it works as expected", so you expect this not to work?
chouhoulis has quit [Remote host closed the connection]
<Mattx>
dminuoso, yeah, I know what you mean. I wanted to make it clear the "function" doesn't beloing to a class I have defined. it was "global" (belonging to main or whatever it's called)
dminuoso has quit [Read error: Connection reset by peer]
<Mattx>
alright, that's the problem them. in pry it works as I thought it would, but the real code is obviously run in ruby (not pry)
dunpeal has quit [Read error: Connection reset by peer]
<Mattx>
then *
<Mattx>
so what's the explanation?
<ljarvis>
in pry, your method example is added to Object
<ljarvis>
which means it's callable anywhere
diegoviola has joined #ruby
<ljarvis>
in pry, try def foo() end; p method(:foo)
<ljarvis>
or method(:foo).owner
davedev2_ has quit [Remote host closed the connection]
shinnya has joined #ruby
macsteps has quit [Remote host closed the connection]
<Mattx>
got it, it's Object
zacts has quit [Ping timeout: 258 seconds]
<ljarvis>
actually im confused a bit
<Mattx>
in the real code when I run method(:descriptive) I get #<Method: Repository(Object)#descriptive>
<Mattx>
then I run method(:descriptive).owner and I get Object
shaman42 has quit [Ping timeout: 260 seconds]
<Mattx>
and respond_to? :descriptive returns false
memorasus has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
tvw has quit [Read error: Connection reset by peer]
shaman42 has joined #ruby
senayar has quit []
pwnd_nsfw has joined #ruby
<Morxander>
I can't bundle "Failed to build gem native extension. /usr/local/bin/ruby extconf.rb " does anyone knows what to do?
zipace has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
anisha has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 258 seconds]
davedev24 has quit [Remote host closed the connection]
etetz has joined #ruby
etetz has quit [Client Quit]
axisys has quit [Ping timeout: 250 seconds]
jhack has joined #ruby
Rodya_ has joined #ruby
rippa has joined #ruby
colegatron_origi has joined #ruby
SilverKey has joined #ruby
GodFather has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 276 seconds]
chouhoul_ has joined #ruby
aganov has quit [Remote host closed the connection]
chouhou__ has joined #ruby
BTRE has joined #ruby
Guest48905 has quit [Ping timeout: 258 seconds]
<wcarss>
anyone here have experience with doorkeeper? or know a channel that would be more specific
macsteps has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
<Zarthus>
you could try searching with /msg alis list
<Zarthus>
if you ask your question someone might be able to answer it as well
rodfersou is now known as rodfersou|lunch
<Zarthus>
that is assuming doorkeeper is related to ruby, and not a job to hold the door.
<wcarss>
yes, it's a common authentication gem
chouhoul_ has quit [Ping timeout: 250 seconds]
GodFather has quit [Read error: No route to host]
<Zarthus>
if it's rails related, see ?rails
<wcarss>
I run a server that uses doorkeeper for authorizing oauth applications, and someone has sent a request to me to add an application with a query parameter in it
<rails>
oh god i knew coming in here on this nick was a bad idea
GodFather has joined #ruby
<elomatreb>
rails: lol
cibs has quit [Ping timeout: 240 seconds]
<wcarss>
not a dynamic one, just a static parameter to say what the source of the arrival is
<wcarss>
doorkeeper doesn't allow dynamic query parameters, but I don't see anything that says they disallow static ones
<Zarthus>
rails: coming in anywhere with that name sounds like a bad idea
GodFather has quit [Read error: Connection reset by peer]
<wcarss>
yet when I add a static one... the gem says it's invalid
<rails>
i oper a 25k user network with this nick :>
<havenwood>
wcarss: Since it's an OAuth 2 provider for Rails, the #RubyOnRails channel would be a bit more specific.
tmtwd has joined #ruby
<wcarss>
good suggestion havenwood! thanks
xall has joined #ruby
GodFather has joined #ruby
cibs has joined #ruby
cschnei__ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Morxander has quit [Quit: Page closed]
teclator has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 244 seconds]
DoubleMalt has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
MarkBilk has quit [Ping timeout: 250 seconds]
KCmetro has joined #ruby
kreantos has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has joined #ruby
cdg has joined #ruby
dionysus69 has joined #ruby
jetpackjoe has joined #ruby
rodfersou|lunch is now known as rodfersou|afk
deadnull is now known as _deadnull
xall has quit [Ping timeout: 250 seconds]
Tcheck has joined #ruby
daivyk has joined #ruby
nettoweb has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
<Dysp>
Why am I getting NoMethodError: NoMethodError: undefined method `extract_values' for KincomLoader:Module?
Snowy has quit [Remote host closed the connection]
maus has quit [Remote host closed the connection]
<Dysp>
If I add :extract_values to module_function, then it works. But that makes the function public, right? I don't want that. Load_file should be the only public method here.
sfvkro has quit [Read error: Connection reset by peer]
rodferso1 has joined #ruby
macsteps has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seap has joined #ruby
<drbrain>
Dysp: on line 18 in xerciseclass.rb you don't ned KincomLoader::
<drbrain>
need
<drbrain>
if you instead: data = load_file(file)
<drbrain>
it'll work like you expect
rodfersou has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
<drbrain>
Dysp: include makes methods in the module appear as instance methods in the including class
jackjackdripper has joined #ruby
rodferso1 is now known as rodfersou
failshell has joined #ruby
<Dysp>
drbrain: Thank you. Do you have any great resources on how to build these hierarchies? I find it extremely necessary to understand, but also so incredible hard to comprehend
<Dysp>
drbrain: Actually, still doesn't solve my problem.
seap has quit [Quit: WeeChat 1.5]
<Dysp>
NoMethodError: undefined method `extract_values' for KincomLoader:Module
<Dysp>
I think I am going to build this first and then reread it to try to refactor it. It is hard to understand all the concepts; I've learnt a lot from it, but it is a little abstract for a complete programming newbie like myself.
* drbrain
nods
<Dysp>
But, back to my original problem. Still getting NoMethodError: undefined method `extract_values' for KincomLoader:Module
<Dysp>
Even thought it is right there in the module.
<drbrain>
can you update the gist and include the output of running it?
<Dysp>
There is a lot of noise
<Dysp>
What do you want in particular?
<Dysp>
(Getting a lot of exceptions from a gem that mean nothing)
<drbrain>
the new error, and what line it is on
GodFather has joined #ruby
<drbrain>
ah, running with `-d` then
<drbrain>
`ruby -d`
jhack has quit [Quit: jhack]
jobat has quit [Ping timeout: 250 seconds]
<Dysp>
No, not even
<Dysp>
Just ran that; that was even worse.
<Dysp>
I think it is minitest, but I also haven't figured out how to turn that off.
TomyLobo has joined #ruby
xall has joined #ruby
mrgrieves has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
<Dysp>
Maybe you can tell from my test, though.
agit0 has joined #ruby
LoneHermit has joined #ruby
hipertracker has joined #ruby
<Dysp>
drbrain: Updated gist
OTORelic has quit [Client Quit]
<drbrain>
ah, OK
<drbrain>
so you get the error from line 3 of test.rb
rcvalle has joined #ruby
dmmoody has joined #ruby
<drbrain>
are you using minitest?
<Dysp>
yes
<Dysp>
Only gave you a snippet of the tests, though
<drbrain>
yes to minitest?
<Dysp>
Yes to Minitest. First try with it.
<Dysp>
With everything, really.
<drbrain>
<Dysp>
^_^
<Dysp>
I've come far, trust me :D
<drbrain>
I use one of two strategies for testing modules in minitest
kavanagh has quit [Quit: That's all folks!]
hipertracker has quit [Client Quit]
xall has quit [Ping timeout: 244 seconds]
ChiefAlexander has quit [Remote host closed the connection]
<Dysp>
Well, I am actually testing the class that includes the module
<Dysp>
Could separate it, though. But I wanna keep it a little simple, then I can also get more files (gosh) when the others become a little too complex
firstdayonthejob has joined #ruby
<drbrain>
in the `test_kincom_loading` test you call the method directly on KincomLoader, so in my view you're testing the module directly
<Dysp>
Yes, I am.
<drbrain>
in my gist the first method, include_module, is what I start with for testing modules
<drbrain>
it works great so long as the module doesn't have any state that might conflict with minitest
<drbrain>
when the module starts having extra state I'll switch to the test-only class version so the module's functionality stays isolated
minimalism has quit [Quit: minimalism]
<Dysp>
I wish I had money just to pay you
<Dysp>
hah
Cohedrin_ has joined #ruby
macsteps has quit [Remote host closed the connection]
<drbrain>
no worries
<drbrain>
pay it forward
<Dysp>
Not for this; but to actually do what I am trying to do.
<Dysp>
I wish I could hire someone to collaborate on.
<Dysp>
Nevermind, off topic
Cohedrin has quit [Ping timeout: 250 seconds]
<Dysp>
So I should test the module; but would you do this in another file
<Dysp>
?
<Dysp>
Or in the same file as you test the class?
<Dysp>
(That I originally had the module test in)
<Dysp>
And also which includes the module
xall has joined #ruby
dmmoody has quit []
<drbrain>
since the module methods aren't accessible without adding module_function I would test them separate
dmmoody has joined #ruby
Cohedrin_ has quit [Max SendQ exceeded]
<drbrain>
then, for XerciseClass tests, only have enough of a test to make sure they get called
Cohedrin has joined #ruby
<Dysp>
Yes, I will be splitting them up. Thank you for you help. Would you have any interest in looking through the repository and point out stuff that is stupid and should be made differently?
OTORelic has joined #ruby
fergal_ has quit [Ping timeout: 240 seconds]
etetz has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
fergal_ has joined #ruby
<Dysp>
I mean, I could just share it in here and ask; and even thought I am definetly not creating a potential new Facebook, I still wanna keep some things at least a tiny bit disclosed.
benlieb has quit [Quit: benlieb]
xall has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
kreantos has joined #ruby
karapetyan has joined #ruby
kreantos has quit [Client Quit]
ChiefAlexander has joined #ruby
ekaleido has joined #ruby
<drbrain>
I don't have a bunch of time for looking through things, unfortunately
macsteps has joined #ruby
ekaleido has quit [Client Quit]
TheHodge has quit [Quit: Connection closed for inactivity]
xall has joined #ruby
<Dysp>
Alrighty ^^
bluOxigen has quit [Ping timeout: 244 seconds]
dmmoody has quit [Remote host closed the connection]
d5sx43 has joined #ruby
bluOxigen has joined #ruby
fergal_ has quit [Quit: fergal_]
hipertracker has joined #ruby
bigkevmcd has joined #ruby
memorasus has joined #ruby
Coldblackice has joined #ruby
LoneHerm_ has joined #ruby
xall has quit [Ping timeout: 244 seconds]
byteflame has quit [Quit: leaving]
byteflame has joined #ruby
dmmoody has joined #ruby
d5sx43 has quit [Client Quit]
byteflame has quit [Client Quit]
byteflame has joined #ruby
pard has joined #ruby
pard has quit [Read error: Connection reset by peer]
d5sx43 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 240 seconds]
byteflame has quit [Client Quit]
banisterfiend has joined #ruby
elifoster has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
d5sx43 has quit [Quit: Leaving...]
bluOxigen has joined #ruby
dvinciguerra has joined #ruby
zapata has joined #ruby
aep-shoutlet has joined #ruby
minimalism has joined #ruby
dmmoody has quit [Remote host closed the connection]