<tnewman>
i've supplied the environment variables, and when i do 'rake export' i can see that its trying to hit my redmine instance
<tnewman>
but it doesnt appear to be doing anything with the entities.xml file.. i know this is a super crappy thing to come to IRC about. thank you in advance <3
<tnewman>
even if not "make the whole thing work" pick a part of it to start trying to make work and go from there
<tnewman>
from what i can tell, its supposed to go through a jira project export called 'entities.xml' and convert all that into sql statements to be thrown at a redmine database
<tnewman>
also i think its supposed to download attachments (files) too
<jhass>
I gathered what it is supposed to do
<jhass>
I asked what it is doing for you then
<jhass>
just hanging there?
<jhass>
what's the output?
<tnewman>
no, it completes
<tnewman>
i'll show you
<jhass>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
some puts debugging in the load_ methods there also can't hurt
<tnewman>
i'll check the XML
<tnewman>
as far as debugging
<tnewman>
like printing variables?
<jhass>
yeah
<jhass>
puts is ruby's print (adds a newline)
<jhass>
p(var) sometimes has nicer output
<jhass>
just check stuff contains what you'd expect it to contain (like be not empty)
<tnewman>
i understand
<tnewman>
thats a good place to start
<tnewman>
i dont have ruby installed on my local
<tnewman>
i have this repository mounted in a ruby container
<tnewman>
i can make changes to files, but is it advisable to try to run one script at a time, or make some changes and run 'rake export' every time?
<jhass>
I mean I'd probably use a redmine instance as target that I don't care about (like it's fine to recreate the DB on it), but just rerunning the whole thing is probably easiest
<tnewman>
yes, thats what i've got
<tnewman>
my docker compose has this ruby thing, redmine, and a mariadb
<tnewman>
the redmine starts up fine, populating mariadb with starter stuff
<tnewman>
well
<tnewman>
schema, whatever
regedit has joined #ruby
chouhoulis has joined #ruby
Dara has joined #ruby
<tnewman>
i think i should be checking the 'exporter' stuff first
<tnewman>
before the 'connector'
<tnewman>
yes, like what you said before :D
chouhoulis has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
yasumi2136_ has quit [Quit: Konversation terminated!]
Rudd0 has joined #ruby
<tnewman>
i really appreciate the help jhass, do you have a recommended guide for getting started with ruby? i'm having trouble 'reading' the source. perhaps if i got my hands wet writing some ruby, reading ruby would become easier.
<jhass>
tnewman: tbh it's not the most beautiful ruby code I've seen :D
<jhass>
sure, don't hold back with any questions :)
<tnewman>
thanks, i really appreciate it
<tnewman>
from your experience, despite this particular project not being very beautifully written
<tnewman>
is there much exotic stuff going on?
<tnewman>
after some exposure to to ruby, do i have have a reasonable chance to troubleshoot this and make it work
ruurd has quit [Quit: bye folks]
drale2k has joined #ruby
darkstardev13 has joined #ruby
snosk8r has quit [Ping timeout: 260 seconds]
Rudd0 has quit [Remote host closed the connection]
snosk8r has joined #ruby
Rudd0 has joined #ruby
<zofrex>
is there a rule of thumb for when error conditions should have separate error classes to raise, vs the same error class and different messages?
<zofrex>
in a public API
darkstardev13 has quit [Ping timeout: 240 seconds]
snosk8r has quit [Excess Flood]
snosk8r has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
<jhass>
tnewman: I only had a quick glance, but nothing extremely exotic, no :)
<jhass>
zofrex: my personal one would be asking myself the question, if I were to consume this API, do I want to handle this error differently than this other error? A nice thing to do is to have a base error class for your library, in case the consumer wants to ignore everything coming from it or such
<jhass>
of course that's a trade off to making your error classes subclasses of standard error classes, which can make a lot of sense for things like IOError
<zofrex>
that's a useful guidline, thank you jhass :)
ruurd has joined #ruby
<IsoLinCHiP>
Ok, wait, did I so basically misunderstand bundler? I thought even in a distrutable gem I would use Bundler.setup in my entrypoint under bin/whatever which then delegates to the classes etc living under lib/**.rb ?
<IsoLinCHiP>
^ adam12
<jhass>
No, never call anything Bundler in your library :)
<jhass>
in a gem, bundler can make sense to manage your test dependencies and such
<jhass>
but that's about it
<IsoLinCHiP>
Ok, so that I should only do in my dev setup?
<jhass>
yeah
<IsoLinCHiP>
I just wanted to avoid constantly typing bundle exec
<jhass>
alias be=bundle exec :D
<jhass>
thing is, Bundler.setup mocks with $LOAD_PATH, which your library shouldn't own, only the application should
<IsoLinCHiP>
well, I am referencing my exe from itself, so I would need to keep changing the shellout from 'be/bundle exec' to not
<jhass>
and for Bundler.require, that would read the application's Gemfile, not your gem's
<IsoLinCHiP>
Oh, ok. No I just did Bundle.setup in bin/cmd. its nowhere under lib/**.rb
<jhass>
well, as long as you don't put your bin/cmd into spec.executables that's fine then I guess
<jhass>
but it would break once your gem is installed
<IsoLinCHiP>
Phew, this part is so confusing. This is the first gem with executable I am trying to build, and feels the whole semantics are totally different to rails/capistrano etc.
<jhass>
shelling out to your own code is a bit weird tbh, why do you need that?
<IsoLinCHiP>
Its a wrapper around FZF
<IsoLinCHiP>
and the FZF preview shells out back to my code
<jhass>
ah
<IsoLinCHiP>
Otherwise I would obviously not do that ;-)
<jhass>
well, I think I would try to avoid bundler here for anything but test/dev dependencies
<jhass>
so just plain old spec.add_dependency's and require's
<IsoLinCHiP>
Still, I am unsure how to solve the issue of having the bin's path hardcoded in the strings to FZF and being able to use my dev modules like pry jard and whatnot
<IsoLinCHiP>
otherwise the ruby -rpry works like a charm
<jhass>
honestly, I'd just install them globally in this case
<jhass>
require_relative "../lib/foo" in your bin/cmd and call it a day
<IsoLinCHiP>
Hmm, I guess ill just make a bin/dev and `require pry` and make the shellouts user configurable. Probably a usefull feature anyway
<jhass>
sounds good
<IsoLinCHiP>
Excellent, thanks for the input :)
<IsoLinCHiP>
Now onward to figuring out why the damn Rack::Cache isnt caching, eventhough there are no headers in the responce disallowing caching
ap4y has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
dfucci has joined #ruby
<IsoLinCHiP>
Awesome... just dug through the source of Rack::Cache and found 'Responses with neither a freshness lifetime (Expires, max-age) nor cache validator (Last-Modified, ETag) are considered uncacheable.' Now the API I am using so happens to omit all mentioned headers on resources that never change and only supplies them if the resource may change. Any ideas for a workaround?
ap4y has quit [Ping timeout: 265 seconds]
DaRock has quit [Ping timeout: 256 seconds]
DaRock has joined #ruby
infinityfye has joined #ruby
stryek has joined #ruby
mn3m has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudd0 has quit [Remote host closed the connection]
alexherbo2 has quit [Ping timeout: 258 seconds]
<Thaodan>
I have the issue that ruby install arch dependend modules to /usr/share/ruby/arch and not /usr/lib/ruby. What can I do?
drale2k has joined #ruby
<Thaodan>
I invoke configure like this: configure --with-rubylibprefix=/usr/share/ruby --with-archlibdir='/usr/lib/ruby' --with-rubyarchprefix='/usr/lib/ruby' --with-ruby-version=''
drincruz has joined #ruby
GodFather has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
drale2k has joined #ruby
chalkmonster has joined #ruby
TCZ has quit [Quit: Leaving]
greengriminal has joined #ruby
gonza has joined #ruby
rkoller has joined #ruby
donofrio has joined #ruby
rkoller has quit [Client Quit]
gonza has quit [Client Quit]
meinside has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
drincruz has quit [Ping timeout: 240 seconds]
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_ChanelW has quit [Quit: Leaving]
drincruz has joined #ruby
fercell has joined #ruby
drale2k has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 256 seconds]
skryking has joined #ruby
dfucci has joined #ruby
dualfade has quit [Ping timeout: 264 seconds]
TCZ has joined #ruby
dualfade has joined #ruby
GodFather has joined #ruby
sarna has quit [Quit: Connection closed]
sgen has joined #ruby
jegade_ is now known as jegade
rippa has joined #ruby
banister_ has joined #ruby
chouhoulis has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
roshanavand_ is now known as roshanavand
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
IsoLinCHiP: put a middleware before that adds the header in this case? :D
TCZ has quit [Quit: Leaving]
roshanavand_ has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 256 seconds]
roshanavand_ is now known as roshanavand
Itsame1 has joined #ruby
UncleCidd has quit [Quit: Leaving]
skape has joined #ruby
UncleCid has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
factormystic has quit [Ping timeout: 265 seconds]
uplime has joined #ruby
adu has joined #ruby
roshanavand_ has quit [Ping timeout: 258 seconds]
Itsame1 has quit [Quit: Itsame1]
howdoi has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dualfade has quit [Ping timeout: 240 seconds]
dualfade has joined #ruby
BlakSAM has joined #ruby
emulated has joined #ruby
dviola has joined #ruby
<emulated>
Hi, I have a question: how do I prevent `gem install` from installing binary files under `~/bin`? I would rather use `~/.local/bin`
<havenwood>
emulated: You can set GEM_HOME and GEM_PATH.
chouhoulis has joined #ruby
<havenwood>
emulated: GEM_HOME Default repository location for gem installation.
<havenwood>
emulated: GEM_PATH A colon-separated list of gem repository directories.
TCZ has joined #ruby
kaivai has joined #ruby
<jhass>
emulated: you're looking for the -n / --bindir flag
<emulated>
havenwood, When setting GEM_PATH, ~/.local/bin gets polluted with other gem-related directories. I would like to just have the *binaries* of installed gems to go in ~/.local/bin, just like python's pip does
<emulated>
*how
<jhass>
but ~/bin shouldn't be a default
<havenwood>
emulated: You can persist gem --bindir setting in your .gemrc file.
<havenwood>
I didn't catch the bin part >.>
BlakSAM has quit [Quit: leaving]
fercell has quit [Quit: WeeChat 2.8]
cthu| has joined #ruby
<emulated>
havenwood, I have tried with --bindir but I get "You don't have write permissions for the /usr/share/gems directory" when running gem install. I don't understand why it tries to write under /usr/share if I have set --bindir ro ~/.local/bin
DaRock has quit [Ping timeout: 240 seconds]
<emulated>
*to
<havenwood>
emulated: Are the parts other than bin going to /usr/share? You can set --user-install or pick a dir with --install-dir.
<havenwood>
emulated: See: gem install --help
<emulated>
OK, thank you. It work with either --user-install or sudo
dionysus69 has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
davispuh has joined #ruby
sgen has quit [Ping timeout: 240 seconds]
emulated has quit [Quit: Leaving]
tnewman has quit [Read error: Connection reset by peer]
tnewman has joined #ruby
orbyt_ has joined #ruby
shortdudey123 has quit [Ping timeout: 256 seconds]
mbrndtgn2 has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
mbrndtgn has quit [Read error: Connection reset by peer]
mbrndtgn2 is now known as mbrndtgn
ruurd has quit [Ping timeout: 240 seconds]
BH23 has quit [Ping timeout: 240 seconds]
shortdudey123 has joined #ruby
BH23 has joined #ruby
vondruch has joined #ruby
banisterfiend_ has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
banisterfiend_ is now known as banisterfiend
banisterfiend_ has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
banisterfiend_ is now known as banisterfiend
dfucci has quit [Ping timeout: 264 seconds]
hiroaki has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
Rudd0 has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
cd has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has quit [Ping timeout: 240 seconds]
xco has joined #ruby
AndreYuhai has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
sgen has joined #ruby
sgen has quit [Max SendQ exceeded]
sgen has joined #ruby
bocaneri has quit [Remote host closed the connection]
ctOS has joined #ruby
llua has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
gix has joined #ruby
dfucci has joined #ruby
orbyt_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
UncleCid has quit [Quit: Leaving]
MadLamb has quit [Remote host closed the connection]
dfucci has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
dfucci has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
JohnB has joined #ruby
<zofrex>
is it me or has rubydoc.info been very unreliable lately? also, is there a mirror anywhere? or any other site that builds docs for all gems?
drincruz has quit [Ping timeout: 256 seconds]
hiroaki has quit [Ping timeout: 260 seconds]
cthulchu_ has joined #ruby
Benett has quit [Quit: ]
cthu| has quit [Ping timeout: 258 seconds]
Benett has joined #ruby
llua has joined #ruby
sgen has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Quit: Lost terminal]
jenrzzz has joined #ruby
sgen has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
skape has quit [Quit: Connection closed for inactivity]
juniper_ has joined #ruby
code_zombie has joined #ruby
TCZ has joined #ruby
GodFather has quit [Ping timeout: 258 seconds]
sagax has quit [Remote host closed the connection]
ap4y has joined #ruby
dionysus69 has joined #ruby
ap4y has quit [Read error: Connection reset by peer]
akem_ has joined #ruby
akem_ has quit [Remote host closed the connection]
akem has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
BTRE has quit [Remote host closed the connection]
<IsoLinCHiP>
jhass: That is indeed, sadly how I had to solve it. First it looked like I could get away with setting a default_ttl, but then it turned out the API misbehaved even more, as in some endpoints that never return immutable data also had no cache-control header, so I had to implement a middleware that checked the path and added it or not. :facepalm:
chalkmonster has quit [Quit: WeeChat 2.9]
akem has joined #ruby
<IsoLinCHiP>
zofrex: Also been noticing that, varnish keeps erroring out for me increasingly
skape has joined #ruby
<zofrex>
yeah that's what I'm getting too IsoLinCHiP
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuhai has quit [Quit: Leaving]
Ai9zO5AP has joined #ruby
dualfade has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
wildtrees has joined #ruby
GodFather has quit [Remote host closed the connection]
juniper_ has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
drincruz has joined #ruby
dualfade has joined #ruby
GodFather has joined #ruby
GodFather_ has joined #ruby
<adam12>
Loren's been spending time trying to make Rubydoc stable.
<adam12>
but I think Varnish is being slightly challenge.
<adam12>
I had pitched to him keeping docs just statically generated forever but apparently it's a huge issue about size. Some gems produce like 50+MB of docs.
<adam12>
It's been a lot better for me lately tho. I haven't seen an issue in a few months.
GodFather_ has quit [Ping timeout: 265 seconds]
GodFather has quit [Ping timeout: 256 seconds]
<adam12>
Don't forget you can always run your own yard server. `yard server --gemfile`
GodFather has joined #ruby
BTRE has joined #ruby
JohnB has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
drincruz has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
GodFather has joined #ruby
dasher00 has joined #ruby
nutcr4ck3r has joined #ruby
ap4y has joined #ruby
wildtrees has quit [Quit: Leaving]
Kilo`byte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yasumi2136 has joined #ruby
Kilo`byte has joined #ruby
Kilo`byte has quit [Client Quit]
Kilo`byte has joined #ruby
Kilo`byte has quit [Client Quit]
Kilo`byte has joined #ruby
banisterfiend has joined #ruby
Rudd0 has joined #ruby
orbyt_ has joined #ruby
nutcr4ck3r has quit [Ping timeout: 265 seconds]
adu has quit [Quit: adu]
GodFather_ has joined #ruby
DaRock has joined #ruby
chalkmonster has joined #ruby
cnsvc has joined #ruby
dionysus69 has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
dfucci has joined #ruby
GodFather_ has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has quit [Quit: GTFO]
dasher00 has joined #ruby
infinityfye has quit [Quit: Leaving]
sgen has quit [Ping timeout: 240 seconds]
dasher00 has quit [Quit: GTFO]
drincruz has quit [Ping timeout: 258 seconds]
dasher00 has joined #ruby
sagax has joined #ruby
skape has quit [Quit: Connection closed for inactivity]
ap4y has quit [Read error: Connection reset by peer]
ap4y has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
phenom has quit [Remote host closed the connection]