baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RougeR has joined #ruby
akaiiro has joined #ruby
RougeR has left #ruby [#ruby]
jcarl43 has quit [Quit: WeeChat 2.2]
apeiros has joined #ruby
akaiiro7 has joined #ruby
akaiiro has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 245 seconds]
Puffball has joined #ruby
lxsameer has joined #ruby
akaiiro7 has quit [Ping timeout: 246 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
apeiros has joined #ruby
Puffball has quit [Remote host closed the connection]
jane_booty_doe has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
alexandrino has joined #ruby
Puffball has joined #ruby
cagomez has joined #ruby
redlegion has quit [Remote host closed the connection]
apeiros has joined #ruby
r3dc0d3r has quit [Ping timeout: 272 seconds]
mrush has quit [Quit: leaving]
redlegion has joined #ruby
r3dc0d3r has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 246 seconds]
lemonandroid has quit [Remote host closed the connection]
thy0 has quit [Quit: TTFN]
apeiros has joined #ruby
troulouliou_dev has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
troulouliou_dev has quit [Quit: Leaving]
SoulFunk has joined #ruby
<clorisu> does anyone know why I'm getting undefined local variable/method 'items' for these?: https://gist.github.com/brasscapon/c6c2547324e91982e580661f3469aaee https://gist.github.com/brasscapon/e6142ae50f8815b3f5d652310b3b5030
Azure has quit [Ping timeout: 240 seconds]
<SoulFunk> I need assistance with compiling the Ruby 2.5 port on FreeBSD/powerpc. Getting the following error: Unsupported relocation type 10 in non-PLT relocations
Azure has joined #ruby
<baweaver> clorisu: Try putting a puts statement in the required file to see if it even runs.
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clorisu> baweaver: i get hashCanvasChallenge2.rb:6:in `<main>': undefined local variable or method `items' for main:Object (NameError)
<baweaver> SoulFunk: Sure you have all the dependencies right?
<clorisu> because ive moved the items method into a different file im trying to retrieve from
<baweaver> Most of what I find out on Google indicates something wasn't built right or build deps are missing
<clorisu> sorry, items variable*
<baweaver> clorisu: Why the different file?
<baweaver> and are you _sure_ that file is actually getting included?
<SoulFunk> baweaver: I believe so, the port Makefile usually handles all that
<baweaver> I was seeing some things along the line of this: The problem is that when libclamav.so was built .o files were put in that
<baweaver> were not built -FPIC.
<clorisu> baweaver: i'm separating a file for coursework that i'm using to practice. i'm sure its being included in the sense that i'm sure they are in the same directory, thats about it. as for why its not working im not sure
<baweaver> clorisu: Put a puts statement in the required file
<baweaver> If it shows up, it worked
<baweaver> If not, well...
apeiros has joined #ruby
<clorisu> yeah, it worked baweaver
<clorisu> so it seems its including the file but not the variable for some reason. is it because its a local variable?
<baweaver> Probably.
<clorisu> okay, that fixed it. lol
<baweaver> I forget because I never have to do something like that.
<clorisu> i guess only instance variables work in required
joast has quit [Quit: Leaving.]
<baweaver> That seems like you're making a bit of a mess though.
<baweaver> Why do you need them to be in separate files?
joast has joined #ruby
<baweaver> If you're looking to have your data separated that's fine, but I'd serialize it in JSON
<baweaver> Then: require 'json'; items = JSON.parse(File.read('path/to/file.json'))
apeiros has quit [Ping timeout: 246 seconds]
<clorisu> i'm yet to learn json. whats the benefit of using it?
<clorisu> i'm just separating their files to teach myself how to require
<baweaver> I wouldn't use require for that
<baweaver> Most data you find in the wild is in JSON or YAML
<baweaver> including from APIs online that you might call
<baweaver> So learning how to use it and deal with it now will be a big help in understanding and recognizing it later.
<baweaver> If you have something as a Ruby hash, then only Ruby can really read that
<baweaver> If you have it as JSON then it's in a common format anything can use.
<clorisu> thanks, ill look into learning it today. appreciate the help
dbz has joined #ruby
AJA4350 has quit [Remote host closed the connection]
dbz has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
dbz has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
arescorpio has quit [Remote host closed the connection]
apeiros has joined #ruby
safetypin has joined #ruby
safetypin has quit [Client Quit]
apeiros has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sspreitz has quit [Ping timeout: 246 seconds]
dbz has quit [Remote host closed the connection]
sspreitz has joined #ruby
braincrash has quit [Quit: bye bye]
baweaver is now known as baweaver_away
braincrash has joined #ruby
apeiros has joined #ruby
LiftLeft has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
despai has quit [Ping timeout: 246 seconds]
idiocrash has joined #ruby
LiftLeft has joined #ruby
LiftLeft has quit [Ping timeout: 240 seconds]
gnufied has quit [Quit: Leaving]
<JJonah> is it possible to dynamically create a method (with `define_method` or any other way) whose arguments have default values?
dbz has joined #ruby
dbz has quit [Remote host closed the connection]
dviola has joined #ruby
LiftLeft has joined #ruby
<woodruffw> JJonah: yes, you can define default values via the block that you pass to `define_method`
<woodruffw> see: https://eval.in/1052921
<JJonah> woodruffw: thanks. i actually have a hash, and i want the keys of the hash to be the named arguments and its values to be their defaults. i can't figure out how to adjust your example for this case...
<JJonah> (the hash is dynamic)
<woodruffw> hmm...this maybe? https://eval.in/1052922
cagomez has quit [Remote host closed the connection]
<woodruffw> you should be able to split a hash in there instead, e.g., `foo **your_hash`
<woodruffw> splat*, not split
<woodruffw> that eval service is giving me internal server errors, maybe i should have chosen a better one :p
dbz has joined #ruby
Nuru has quit [Quit: Nuru]
LiftLeft has quit [Ping timeout: 240 seconds]
<JJonah> woodruffw: I actually want something more like this: https://hastebin.com/efexuwodil.ruby
<woodruffw> JJonah: yeah, i don't know if you can get both arbitrary keyword arguments *and* default values under ruby, unfortunately
<woodruffw> you can get what you want in that example, but i think you'll lose flexibility in terms of passing an arbitrary hash
dbz has quit [Remote host closed the connection]
<woodruffw> this works, but it doesn't handle default values for the trailing hash: https://hastebin.com/awupogezat.sql
<woodruffw> you could fake it by storing a default set of values somewhere and comparing the ones passed in **hsh to those
<JJonah> woodruffw: thanks. i'm gonna see if i can hack it with eval.
<woodruffw> good luck!
Lyfe has quit [Ping timeout: 240 seconds]
LiftLeft has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<JJonah> woodruffw: thanks, got it working with class_eval
<woodruffw> nice; glad it works
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MoritaShinobu has joined #ruby
\void has joined #ruby
MoritaShinobu has quit [Ping timeout: 246 seconds]
MoritaShinobu has joined #ruby
ivanskie has joined #ruby
clorisu has quit [Ping timeout: 245 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has quit [Quit: Bye]
clorisu has joined #ruby
Freshnuts has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Dbugger has joined #ruby
reber has joined #ruby
doubledup has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
dellavg_ has joined #ruby
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 2.2]
SoulFunk has quit [Quit: leaving]
dionysus69 has joined #ruby
nrk has quit [Quit: WeeChat 1.4]
tpendragon has quit [Remote host closed the connection]
JoL1hAHN has joined #ruby
t0x has left #ruby [#ruby]
sticaz has joined #ruby
drew00 has joined #ruby
tpendragon has joined #ruby
dellavg_ has quit [Ping timeout: 245 seconds]
sameerynho has joined #ruby
herbmillerjr has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
mniip has quit [Ping timeout: 630 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mniip has joined #ruby
duderonomy has joined #ruby
conta1 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
drew00 has quit [Quit: drew00]
desperek has joined #ruby
mikecmpbll has joined #ruby
doubledup has quit [Quit: Leaving]
doubledup has joined #ruby
dhollin3 has joined #ruby
Freshnuts has quit [Quit: Leaving]
dhollinger has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
drew00 has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
MoritaShinobu has quit [Ping timeout: 252 seconds]
qolq has quit [Ping timeout: 272 seconds]
MoritaShinobu has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
jenenliu has joined #ruby
<clorisu> does anyone know why my ruby doesnt return the last line to terminal? ive tried across many files
leitz has joined #ruby
mikecmpb_ has quit [Ping timeout: 252 seconds]
RougeR has joined #ruby
FernandoBasso has joined #ruby
Bish has quit [Ping timeout: 252 seconds]
arekushi has joined #ruby
arekushi is now known as Guest18202
turt2live has quit [Read error: Connection reset by peer]
bastilian has quit [Remote host closed the connection]
Demos[m] has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
<leitz> Is this a proper way to list class names in an array? The test is @integer_options.include?(@result.class). @integer_options = [Integer, Fixnum]
<leitz> Or use @result.class.to_s and put quotes around the array items. Both seem to work.
deadnull has joined #ruby
deadnull has quit [Client Quit]
DTZUZO has joined #ruby
deadnull has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
RougeR has joined #ruby
olivierjanss has quit [Read error: Connection reset by peer]
olivierjanss has joined #ruby
turt2live has joined #ruby
bastilian has joined #ruby
Demos[m] has joined #ruby
deadnull has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
deadnull has joined #ruby
deadnull has quit [Client Quit]
deadnull has joined #ruby
TomyLobo has joined #ruby
<TomyLobo> hi
<TomyLobo> https://github.com/jnunemaker/httparty/pull/569/files this PR adds multipart/form-data to HTTParty. it's been merged since 0.16. I checked the spec files added in that PR, but I can't figure out how to actually enable multipart/form-data
<TomyLobo> do i need to just post files and it automatically switches to multipart/form-data or how does it work?
FernandoBasso has quit [Read error: Connection reset by peer]
MoritaShinobu has quit [Ping timeout: 252 seconds]
conta1 has quit [Quit: conta1]
deadnull has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tty has quit [Quit: tty]
MoritaShinobu has joined #ruby
<leitz> Hey TomyLobo, we usually have some smart people from Europe on around this time. They may be sleeping in though. If you don't get an answer I'd just try stuff and see what doesn't blow up.
<TomyLobo> :D
deadnull has joined #ruby
AJA4350 has joined #ruby
doubledup has quit [Ping timeout: 240 seconds]
MoritaShinobu has quit [Ping timeout: 245 seconds]
doubledup has joined #ruby
Puffball has quit [Remote host closed the connection]
n13z has joined #ruby
deadnull has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
MoritaShinobu has joined #ruby
deadnull has joined #ruby
drew00 has quit [Quit: drew00]
deadnull has quit [Client Quit]
deadnull has joined #ruby
deadnull has quit [Client Quit]
Zaab1t has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
kapil___ has joined #ruby
deadnull has joined #ruby
deadnull has quit [Client Quit]
Azure has quit [Ping timeout: 245 seconds]
despai has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
deadnull has joined #ruby
spiette has quit [Quit: ZNC 1.7.1 - https://znc.in]
spiette has joined #ruby
deadnull has quit [Client Quit]
al2o3-cr has quit [Quit: WeeChat 2.2]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
tristanp has joined #ruby
tristanp has quit [Ping timeout: 244 seconds]
<pyrmont> @TomyLobo: It looks like it automatically switches. The request.rb file checks the value of Body#multipart? method and that just checks whether the params respond appropriately.
deadnull has joined #ruby
deadnull has quit [Client Quit]
cyberRodent has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
Azure has joined #ruby
deadnull has joined #ruby
GodFather has joined #ruby
deadnull has quit [Client Quit]
sticaz has quit [Quit: BELLA LI!]
clorisu has quit [Remote host closed the connection]
thy0 has joined #ruby
nowhere_man has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
sticaz has joined #ruby
fmcgeough has joined #ruby
<TomyLobo> cool, thanks
despai has quit [Quit: ...]
deadnull has joined #ruby
deadnull has quit [Client Quit]
<href> OA
deadnull has joined #ruby
deadnull has quit [Client Quit]
postmodern has quit [Quit: Leaving]
sticaz has quit [Quit: BELLA LI!]
thy0 has quit [Quit: TTFN]
TomyLobo has quit [Read error: Connection reset by peer]
fmcgeough has quit [Quit: fmcgeough]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
MoritaShinobu has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
MoritaShinobu has joined #ruby
troulouliou_dev has joined #ruby
alexandrino has quit [Remote host closed the connection]
thy0 has joined #ruby
sticaz has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
dbz has joined #ruby
conta1 has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
k0mpa has joined #ruby
MoritaShinobu has quit [Ping timeout: 252 seconds]
discopatrick has joined #ruby
MoritaShinobu has joined #ruby
idiocrash has joined #ruby
orbyt_ has joined #ruby
arup_r has joined #ruby
troulouliou_dev has joined #ruby
conta1 has quit [Quit: conta1]
apeiros has quit [Read error: Connection reset by peer]
apeiros__ has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
TomyLobo has joined #ruby
sagax has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
sticaz has quit [Quit: BELLA LI!]
arup_r has quit []
reber has quit [Remote host closed the connection]
reber has joined #ruby
lomex has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
reber has quit [Remote host closed the connection]
reber has joined #ruby
lomex has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has joined #ruby
lomex has joined #ruby
DTZUZO has quit [Ping timeout: 272 seconds]
lightstalker has quit [*.net *.split]
lightstalker has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
troulouliou_dev has joined #ruby
Nuru has joined #ruby
kapil___ has joined #ruby
dbz has quit [Remote host closed the connection]
KeyJoo has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unsymbol has quit [*.net *.split]
oz has quit [*.net *.split]
booboy has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
xMopx has quit [*.net *.split]
leonthemisfit has quit [*.net *.split]
lupine has quit [*.net *.split]
maciuszek has quit [*.net *.split]
adambeynon has quit [*.net *.split]
flips has quit [*.net *.split]
Auv has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
skmp has quit [*.net *.split]
jhill has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
jabreity has quit [*.net *.split]
mr-robert has quit [*.net *.split]
eising has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
avdi has quit [*.net *.split]
Koshian has quit [*.net *.split]
diegok has quit [*.net *.split]
untitaker has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
csaunders has quit [*.net *.split]
andersh has quit [*.net *.split]
craysiii has quit [*.net *.split]
DEac- has quit [*.net *.split]
csaunders has joined #ruby
Guest47999 has joined #ruby
Apocalypse has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
nemesit|znc has joined #ruby
leonthemisfit has joined #ruby
xMopx has joined #ruby
lupine has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
flips has joined #ruby
RougeR has joined #ruby
booboy has joined #ruby
matthewd has joined #ruby
zxq2 has joined #ruby
k0mpa has quit [Remote host closed the connection]
leitz_ has joined #ruby
leitz_ has quit [Client Quit]
dbz has joined #ruby
dbz has quit [Ping timeout: 246 seconds]
Zaab1t has quit [Quit: Zaab1t]
teej has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
MoritaShinobu has quit [Quit: Leaving]
Demos[m] has quit [Remote host closed the connection]
bastilian has quit [Read error: Connection reset by peer]
turt2live has quit [Read error: Connection reset by peer]
KnownSyntax has joined #ruby
dellavg_ has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
doubledup has quit [Remote host closed the connection]
tty has joined #ruby
doubledup has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
akaiiro7 has joined #ruby
turt2live has joined #ruby
bastilian has joined #ruby
Demos[m] has joined #ruby
nofxx has joined #ruby
snickers has joined #ruby
reber__ has joined #ruby
reber has quit [Read error: Connection reset by peer]
dinfuehr has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
<leitz> How bad is a "Leaked file descriptor" when compiling Ruby?
tristanp has joined #ruby
dbz has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
<leitz> Why does root trying to "gem install" fail to find a gem on rubygems.org?
<nofxx> leitz, not sure the leaked, there's no bin packages on your OS?
<nofxx> gem install <gems>
DTZUZO has joined #ruby
<leitz> nofxx, I just compiled Ruby and removed OS versions.
<leitz> This sort of works but gives an error on specs. /usr/local/bin/gem install -s https://rubygems.org/gems ftl_chargen
<leitz> WARNING: Unable to pull data from 'https://rubygems.org/gems/': bad response Not Found 404 (https://api.rubygems.org/gems/specs.4.8.gz)
<nofxx> leitz, it should work without the -s, dont?
<leitz> nofxx, it does not.
<leitz> Let me log out and reboot and see if that clears the environments. brb
leitz has quit [Quit: Leaving]
leitz has joined #ruby
<leitz> Still does not work without -s
<leitz> Is there a rubygem to install to use rubygems?
<leitz> Ah...it may be that rubygems.org can't work with Ruby 2.6dev?
akaiiro7 has quit [Remote host closed the connection]
<leitz> Not a crisis, I wrote the gems so I have them locally. Of course, I can't test them now. :(
<leitz> Well, test the gem install and remove process.
Freshnuts has joined #ruby
dbz has quit [Remote host closed the connection]
kennethd has joined #ruby
dbz has joined #ruby
dbz has quit [Ping timeout: 250 seconds]
<apeiros__> leitz: https://rubygems.org/gems is probably wrong for a source, just https://rubygems.org
<apeiros__> and since rubygems.org is the default, you shouldn't need to provide that via -s
apeiros__ is now known as apeiros
<apeiros> also, "no, does not work" is still a terrible problem description and you should know better :-p
snickers has quit [Ping timeout: 250 seconds]
lomex has joined #ruby
<leitz> apeiros, I think it's the gem version; 3.0.0.beta1
<leitz> I thought I put in the error before I rebooted.
<apeiros> 22:32 nofxx: leitz, it should work without the -s, dont?
<apeiros> 22:33 leitz: nofxx, it does not.
<leitz> <leitz> WARNING: Unable to pull data from 'https://rubygems.org/gems/': bad response Not Found 404 (https://api.rubygems.org/gems/specs.4.8.gz)
<apeiros> yeah, that's the one with -s
<apeiros> but for without, all you gave was "doesn't work"
reber__ has quit [Read error: Connection reset by peer]
<leitz> gem install ftl_tools ERROR: Could not find a valid gem 'ftl_tools' (>= 0) in any repository ERROR: Possible alternatives: fgltools, atc-tools, bt-tools, fintools, flx-tools
<leitz> Except that now that I've installed it locally once, it now installs.
<leitz> Ah, if I remove the local copy it fails again.
<leitz> gem install free_trader
<leitz> ERROR: Possible alternatives: freerider, feedreader, free_spider, fsxtrader, sheet_reader
<leitz> ERROR: Could not find a valid gem 'free_trader' (>= 0) in any repository
<leitz> Gems should be up on Rubygems.org: ftl_tools, ftl-chargen, free_trader
<leitz> Err...ftl_chargen
jcalla has quit [Quit: Leaving]
clorisu has joined #ruby
<apeiros> leitz: see, so it was a different error. and what it means is that you wrote ftl_tools into the gemspec as a dependency, but didn't push it to rubygems
<apeiros> once you install it locally, it doesn't have to fetch it from rubygems.org anymore, hence that error vanishes
<leitz> So if I remove all three I should be able to install them from rubygems?
<apeiros> well, make sure you pushed all to rubygems first
<leitz> All three should be there. I pushed them before the Ruby upgrade.
<leitz> Let me test this. Hang on.
<apeiros> .pre.alpha
<apeiros> that's not considered in a normal install
<leitz> If you looked at my code you'd agree. ;P
Dbugger has quit [Ping timeout: 240 seconds]
<apeiros> maybe. but gem list will not list betas, alphas etc.
<apeiros> i.e. anything with an alphabetical part in the version is considered "prerelease"
<leitz> gem list |egrep "ftl|free"
<leitz> ftl_tools (0.0.2.pre.alpha, 0.0.1.pre.alpha)
<leitz> ftl_chargen (0.0.5)
<apeiros> and if you put that into the dependencies, you must be explicit with the version, or install with --pre (though, not sure that applies to dependencies)
<leitz> I've already removed free_trader
<leitz> Can you see ftl_tools on rubygem.org?
<leitz> And I get the "could not find" on ftl_tools.
<apeiros> I'll repeat: won't install without --pre
<apeiros> ah, and I misspoke, `gem search` won't list it, not `gem list`. latter is for gems you installed.
kapil___ has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
<leitz> And you're right, adding --pre to the install let them install. Good to know since mine are going to be "pre" for a while.
* leitz goes to update his notes.
jottr has quit [Ping timeout: 246 seconds]
\void has joined #ruby
mnemon has joined #ruby
jane_booty_doe has joined #ruby
Tharbakim has quit [Quit: Something has gone terribly wrong. Send help.]
tristanp has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desperek has quit [Quit: xoxo]
* leitz gets miffed when his tests fail to find an error.
doubledup has quit [Remote host closed the connection]
jottr has joined #ruby
<leitz> Ah, gem 3.0.0 can't push gems. ERROR: You are using a beta release of RubyGems (3.0.0.beta1) which is not
<leitz> allowed to push gems. Please downgrade or upgrade to a release version.
jottr has quit [Ping timeout: 250 seconds]
teej has quit [Quit: Connection closed for inactivity]
mrush has joined #ruby
cagomez has joined #ruby
<mrush> is code written for 1.9 likely to run on 2.5
<leitz> mrush, some, yes.
<mrush> okay. thank you leitz.
<leitz> Some things changed, like Fixnum and Bignum though.
<leitz> How large is the codebase?
<mrush> i did run into that
<lupine> 1.8 -> 1.9 was a bigger jump
<baweaver_away> Assuming you mean 1.9.3 it
<baweaver_away> 's pretty well a clean one
baweaver_away is now known as baweaver
<leitz> baweaver, the page says up to 1.9.2.
<leitz> So it might be tricky. I've written code that worked from 1.8.7 to 2.6, but my code base is usually very small and only using the standard library.
dbz has joined #ruby
<leitz> mrush, you could clone the repo and run the tests. See what breaks. I don't think the owners will care.
<leitz> Or fork it to your own repo and press on.
<leitz> What are you trying to accomplish?
<mrush> leitz, will do. it'll be slow since i'm not great at ruby yet. basically i'd rather learn and implement whatever is necessary in order to have a ruby alternative to pydbg.
<leitz> baweaver or apeiros might know of a more current tool. And Welcome to Ruby!
<mrush> thank you leitz :) if anyone does know of more current scriptable debuggers implemented in ruby, please do let me know.
dbz has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<leitz> I'm starting to hate the rubygems API.
<leitz> How do I change this to allow any version? s.add_runtime_dependency 'ftl_tools', '>= 0.0.1.pre.alpha'
<darix> leitz: leave out the 2nd param?
<leitz> darix, changed it to ">= 0", but omitting sounds better. I hate having to increment the gem version because rubygems won't let you upload the same version.
jottr has joined #ruby
<canton7> that makes sense, surely? If someone is depending on a particular version of your gem, you shouldn't be able to just break that
ellcs has joined #ruby
m27frogy has quit [Ping timeout: 252 seconds]
<leitz> canton7, to a degree, yes. But when the changes are small, like fixing the gemspec, it seems like Rubygems isn't trusting your.
<leitz> you.
<darix> leitz: uploading a version is like freezing it. think of it as immutable. version numbers are cheap.
<darix> no
m27frogy has joined #ruby
<darix> you never change a release
<darix> ever
<canton7> but if they let you fix the gemspec, they let everyone else completely break things
<_ari> does ruby/rails+reactjs work at all?
<darix> leitz: example: many distros verify that the checksum of the upstream tarball (a gem in your case) doesnt change
<darix> leitz: so if you upload 2 different tarballs for the same version ... you would break that. and the first assumption would be ... someone broke into your account
<darix> _ari: 1. #rails 2. why wouldnt it?
jottr has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
<_ari> i dont think #rails exists on freenode
<leitz> Okay, so I've removed the version parameter. https://github.com/makhidkarun/free_trader/blob/master/free_trader.gemspec#L18
<leitz> Running gem with --pre per apeiros, gem install free_trader --pre
<leitz> And back to the error. ERROR: Could not find a valid gem 'ftl_tools' (>= 0) in any repository
<leitz> And ftl_tools 0.0.2.pre.alpha is installed already.
Tharbakim has joined #ruby
<leitz> Okay, time to close this up for the night. Too much frustration, too little understanding.
<leitz> Tomorrow is another day.
cagomez has quit [Remote host closed the connection]
<leitz> _ari, did you try the rails channel from the welcome message?
cagomez has joined #ruby
Sembei has joined #ruby
leitz has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 252 seconds]
fredlinhares has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
savolla has joined #ruby