<teyas>
can someone please point me to a place that describes step by step gem compilation ?
<teyas>
I googled, its kind of confusing
<TzilTzal>
havenwood: what if that installation is part of bundle?
<TzilTzal>
Even after I install it, bundle doesn't detect it and tries to redo it.
fphilipe has joined #ruby
<teyas>
I need to compile ruby-debug-ide for platforms x64-mingw32
<teyas>
& x86_64-linux
<havenwood>
teyas: do you mean what happens when building the gem or installing the gem?
techsethi has joined #ruby
phaul has joined #ruby
<havenwood>
TzilTzal: There are multiple ways to deal with it, I suppose. One is: bundle config --local local.rrdiff /path/to/patched/rrdiff
Intelo_ has quit [Ping timeout: 252 seconds]
<havenwood>
TzilTzal: Or you could fork the gem and point Bundler to your repo.
<TzilTzal>
I specify --path bundle/vendor, btw
<havenwood>
TzilTzal: The best long-term thing is to submit an upstream patch.
<teyas>
nope. I mean - earlier there was no bundler usage, now a friend of mine has moved to bundler for pinning down specific version for easier distribution of his libraries. I used to use ruby-debug-ide gem for debugging my ruby code with VSCode IDE
<teyas>
now I can't do that anymore since he moved to using the bundler. He said I need to recompile the gem for x64-mingw32 and x86_64-linux and upload it tohis artifactory server for common usage
<teyas>
I am confused - have never done this before. please suggest
JohanP has quit [Ping timeout: 245 seconds]
<teyas>
he also said something about FAT binaries.
phaul has quit [Ping timeout: 276 seconds]
<teyas>
I have these pieces to hold together and figure out the complete picture
JohanP has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
Inline has quit [Quit: Leaving]
JohanP has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
JohanP has joined #ruby
andikr has joined #ruby
Intelo_ has joined #ruby
phaul has joined #ruby
<teyas>
any comments ?
JohanP has quit [Ping timeout: 245 seconds]
<havenwood>
teyas: the easiest way to compile for those systems is to build the gems on those systems
psmolen has quit [Ping timeout: 240 seconds]
<havenwood>
teyas: cross compiling is possible, but tends to be difficult.
<havenwood>
teyas: Are you trying to build a gem then ship it, for some reason? That's ^ what I took away.
<havenwood>
teyas: I'm confused. You're making a gem?
<havenwood>
teyas: Can you clarify what gem you're talking about here: "He said I need to recompile the gem for x64-mingw32 and x86_64-linux and upload it tohis artifactory server for common usage"
<havenwood>
teyas: Recompile what gem? ruby-debug-packaged? You can do that like I show above then `bundle install --local` from wherever you ship it to. But I'm not sure I'm understanding what you're asking.
ravenousmoose has joined #ruby
<havenwood>
teyas: Why doesn't it work readily? What's the matter?
<havenwood>
teyas: Then you mention FAT binaries. What's the purpose? What are you trying to do?
<teyas>
this what the other guy said ---> we’ll need a native x86-64 “fat” gem we can push up so that it can be installed in windows environments which do not have the ruby devkit. Unlike nokogiri and FFI, the gem maintainers don’t build one, so we’ll have to do that ourselves.
<havenwood>
teyas: Check out Ruby Packer and Traveling Ruby. Or consider JRuby.
<havenwood>
teyas: That's ^ my best powershell guess, which probably isn't very good.
<teyas>
last command --> bundle package --all-platforms doesn't work
<havenwood>
teyas: gem install bundler
<teyas>
do I need to get the source code for the gem and try it ?
<havenwood>
teyas: what's the failure?
<havenwood>
"doesn't work"
<havenwood>
error?
<teyas>
since we cannot use pastebin here, I am pasting the error, sorry about that - its just one liner
<teyas>
[!] There was an error parsing `Gemfile`: Undefined local variable or method `g' for Gemfile. Bundler cannot continue. /ruby-debug-packaged/Gemfile:8 # g e m r u b y - d e b u g - i d e > # # frozen_string_literal: true #
<havenwood>
teyas: heh, edit that Gemfile file so at the bottom it has: gem 'ruby-debug-ide'
<havenwood>
teyas: If there's too much gibberish to clean up, delete it and do a fresh: bundle init
<teyas>
okay
<havenwood>
teyas: Once you have the `gem 'ruby-debug-ide'` directive added: bundle package --all-platforms
phaul has joined #ruby
<teyas>
it worked
<teyas>
:) this seems good. now what artifacts should I hand over to the other guy so that he can push this gem to his server ?
phaul has quit [Ping timeout: 240 seconds]
<teyas>
and is this the said "FAT" gem, how to check that ?
jenrzzz has joined #ruby
<havenwood>
teyas: the ones in the vendor directory - or just zip this directory - they're in it, and this is set up to install with a `bundle install --local` if just unzipped
<havenwood>
teyas: You could make a fat binary with ruby-packer, which I linked above. I don't know what binary you're even shipping?
<havenwood>
teyas: I'm not at all sure what this person meant or what you're doing, but good luck!
<teyas>
haha. I got something to start with
phaul has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
Intelo_ has quit [Ping timeout: 240 seconds]
infinityfye has joined #ruby
techsethi has quit [Remote host closed the connection]
Intelo_ has joined #ruby
altious has quit [Read error: Connection reset by peer]
altious has joined #ruby
za1b1tsu has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
Intelo_ has quit [Remote host closed the connection]
Intelo_ has joined #ruby
MrCrackPot has quit [Quit: Leaving]
jenrzzz has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
conta1 is now known as conta
chalkmonster has quit [Quit: WeeChat 2.6]
fphilipe has joined #ruby
sergioro has joined #ruby
mikecmpbll has joined #ruby
sergioro has quit [Quit: leaving]
Intelo_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
arekushi has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
DaRock has quit [Quit: No Ping reply in 180 seconds.]
DaRock has joined #ruby
lxsameer has joined #ruby
Intelo_ has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
teyas has quit [Remote host closed the connection]
DaRock has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
Intelo has joined #ruby
Intelo_ has quit [Quit: Leaving]
teyas has joined #ruby
MrCrackPot has joined #ruby
teyas has quit [Remote host closed the connection]
teyas has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
conta1 is now known as conta
shaman42 has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
zlogan has quit [Quit: Leaving]
zlogan has joined #ruby
zming has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
chalkmonster has joined #ruby
ravenousmoose has joined #ruby
TzilTzal has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
ravenousmoose has quit [Ping timeout: 252 seconds]
greypack has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
im0nde has joined #ruby
<im0nde>
Hello, I'm trying to use rvm without sudo (root) accesss.
<im0nde>
but when I do "rvm install ruby" it asks me for a sudo password
<im0nde>
"Installing requirements for ubuntu"
<im0nde>
Is there a way around this? I dont' want the user that is going to use rvm to have sudo access
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
lalitmee has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
<im0nde>
Anybody here?
teyas has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 250 seconds]
teyas has joined #ruby
queip has joined #ruby
teyas has quit [Remote host closed the connection]
phaul has joined #ruby
teyas has joined #ruby
phaul_ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
phaul has joined #ruby
TzilTzal has joined #ruby
teyas has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
phaul has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
phaul has joined #ruby
bvdw has joined #ruby
NODE has quit [Quit: changing servers]
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
NODE has joined #ruby
errst_ has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
queip has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 276 seconds]
queip_ has joined #ruby
lucasb has joined #ruby
Swyper has quit [Remote host closed the connection]
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
phaul has joined #ruby
ravenousmoose has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 246 seconds]
queip_ is now known as queip
ravenousmoose has quit [Ping timeout: 250 seconds]
<NL3limin4t0r>
im0nde: There is no way around that, since sertain depencies are needed to run RVM. However after installation you don't need a root password to use RVM, it should simply be installed for the user running the command listed by you.
<NL3limin4t0r>
You can install new Ruby versions, install gems etc all without root password. Those are stored in the `~/.rvm` directory by default.
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
<NL3limin4t0r>
When installing RVM for other users the system resources are already installed. Meaning it's only needed during the first installation of RVM.
AJA4350 has joined #ruby
<im0nde>
NL3limin4t0r: I solved the problem. What I had to do was:
baojg has quit [Remote host closed the connection]
<im0nde>
rvm autolibs disable
donofrio has joined #ruby
drincruz has joined #ruby
baojg has joined #ruby
baojg has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
teyas has joined #ruby
phaul_ has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]
queip has joined #ruby
<NL3limin4t0r>
im0nde: 👍
jenrzzz has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Technodrome has joined #ruby
queip has joined #ruby
phaul_ has joined #ruby
Swyper has quit [Remote host closed the connection]
teyas has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
drincruz has joined #ruby
Swyper has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
Swyper has joined #ruby
Xiti has quit [Quit: Xiti]
queip has quit [Ping timeout: 240 seconds]
zming has joined #ruby
queip has joined #ruby
nius has quit [Read error: Connection reset by peer]
nius has joined #ruby
andikr has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
drincruz has quit [Ping timeout: 276 seconds]
Xiti has joined #ruby
errst_ has joined #ruby
teyas has joined #ruby
zming has quit [Ping timeout: 245 seconds]
akemhp has quit [Ping timeout: 246 seconds]
cd has quit [Quit: cd]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
conta has quit [Read error: Connection reset by peer]
conta2 has joined #ruby
conta2 is now known as conta
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
TzilTzal has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Intelo has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
swyper19 has joined #ruby
queip_ has joined #ruby
swyper19 has quit [Remote host closed the connection]
queip has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
queip_ is now known as queip
DaRock has quit [Quit: No Ping reply in 180 seconds.]
teyas has quit [Ping timeout: 245 seconds]
DaRock has joined #ruby
Swyper has joined #ruby
hutch has joined #ruby
<Bish>
how do i quickly allocate alot of memory with ruby?
<Bish>
for testing purposes?
<Bish>
found a good way, nvm
alfiemax has quit [Remote host closed the connection]
akemhp has joined #ruby
alfiemax has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
Swyper has quit [Remote host closed the connection]
ExoUNX has quit [Quit: later fam...]
fig-le-deunch has joined #ruby
sagax has joined #ruby
Swyper has joined #ruby
queip_ has joined #ruby
Axy has quit [Ping timeout: 250 seconds]
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
krawchyk has joined #ruby
errst_ has quit [Ping timeout: 245 seconds]
DaRock has quit [Quit: No Ping reply in 180 seconds.]
DaRock has joined #ruby
conta has quit [Ping timeout: 246 seconds]
drincruz has joined #ruby
alfiemax has quit [Remote host closed the connection]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
hey2 has joined #ruby
akemhp has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 276 seconds]
queip has joined #ruby
NODE has quit [Quit: changing servers]
Intelo has joined #ruby
NODE has joined #ruby
skx86 has joined #ruby
AJA4350 has joined #ruby
Inline has joined #ruby
falconfox has joined #ruby
jenrzzz has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
rubyguy has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<hey2>
Hey, think I asked in here last night but I dozed off at my computer and don't have history lol
<hey2>
I'm new to Rails stuff, have been tasked with adding some functionality to a legacy application
<hey2>
I noticed that the endpoints are defined like this -
<hey2>
get '/api/vi/myEndpoint' => 'api/v1/myEndpoint#foo'
<hey2>
Is that idiomatic Rails? Am I just taking the verb and the endpoint, hash mapping it to the endpoint w/ a # appended followed by the function that I want to handle the request?
<adam12>
hey2: Likely more appropriate in the Rails channel, but the endpoint is the namespace to a controller class with the action (method) defined after the #.
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<adam12>
hey2: Rails will turn api/v1/myEndPoint into a constant like Api::V1::MyEndPointController. I don't know the exact value off the top of my head but you could probably get it using something like "api/v1/myEndpoint".constantize
phaul has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
<hey2>
That makes sense! Was wondering how it related back to the controller class
<hey2>
Thank you :) I guess, my only two other questions then would be
DTZUZO has quit [Ping timeout: 240 seconds]
<hey2>
Is the conversion to the Api::V1::foo part of Rails, or defined in the controller classes? And, why is it doing a =>? Is that just reuse of the same operator, or is it actually making a hashmap?
<hey2>
I didn't know there was a Rails channel either, like I said - don't really do much Ruby, mostly do Go or C++ these days
<adam12>
?rails hey2
<ruby[bot]>
hey2: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<hey2>
Ok :(
<hey2>
Thank you
<adam12>
hey2: not yet!
TomyWork has quit [Ping timeout: 246 seconds]
<adam12>
hey2: That command is just easier since it has the nickserv bits
<adam12>
hey2: but since we're already talking, might as well finish.
al2o3-cr has quit [Quit: WeeChat 2.6]
duderonomy has joined #ruby
phaul has joined #ruby
<adam12>
hey2: Rails does the conversion to Api::V1::foo. I believe it's two parts but I'm not 100%. The part from /api/v1/foo is part of ActiveSupport, which gives you String.constantize. The part where it's inferred is probably in ActionController.
<adam12>
hey2: It's indeed a hash argument, with the path being the key and the controller/action as the value. get({"api/v1/myEndpoint" => "api/v1/myEndpoint#foo
<NL3limin4t0r>
adam12: Before it can call #constantize it first has to call #classify
<adam12>
NL3limin4t0r: Right! I'm mostly anti-ActiveSupport so I haven't seen the API in a _long_ time :\
<hey2>
Thank you Adam - very helpful :)
<hey2>
What's wrong with the ActiveSupport?
queip_ has joined #ruby
<hey2>
Lol, question scope creep - but curiosity is piqued, this was made for us by a third party provider
<hey2>
and we've been noticing lots of bugs
queip has quit [Ping timeout: 245 seconds]
al2o3-cr has joined #ruby
<adam12>
hey2: It's probably fine for most people, but its a heavy library that adds many methods to core classes. That's how a String is aware of it's role in becoming a constant.
queip_ is now known as queip
<hey2>
Guess I got some reading to do
<hey2>
Thanks again - really appreciate it
phaul has quit [Ping timeout: 240 seconds]
<adam12>
hey2: Rails docs are great. Definitely give them a read.
<NL3limin4t0r>
hey2: I would personally go with `get '/api/vi/myEndpoint', to: 'api/v1/myEndpoint#foo'` or namespace your current position. Which allows a shorter definition like `get 'myEndpoint', to: 'myEndpoint#foo'`.
<NL3limin4t0r>
^ assuming you're nested in the `/api/v1` namespace.
<NL3limin4t0r>
If I'm not mistaken that should both namespace the route and the controller to which you're pointing.
queip has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
queip_ has joined #ruby
queip_ is now known as queip
<NL3limin4t0r>
If you have only one route in this namespace this might be a bit cumbersome, but when adding more routes I find the aproach cleaner than writing out the namespace for every route.
jenrzzz has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
krawchyk has quit [Quit: krawchyk]
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
TzilTzal has joined #ruby
Sina has joined #ruby
TzilTzal has quit [Client Quit]
phaul has joined #ruby
davor has quit [Quit: Bye]
errst has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
phaul has quit [Ping timeout: 250 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
phaul has joined #ruby
davor has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
dbugger has joined #ruby
dbugger has quit [Remote host closed the connection]
davor_ has joined #ruby
davor has quit [Read error: Connection reset by peer]
davor_ is now known as davor
queip has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
queip has joined #ruby
krawchyk has joined #ruby
Intelo has quit [Ping timeout: 240 seconds]
davor has quit [Ping timeout: 250 seconds]
MrCrackPot has quit [Remote host closed the connection]
hey3 has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
hey2 has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
ravenousmoose has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
queip has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 240 seconds]
MrCrackPot has joined #ruby
infinityfye has quit [Quit: Leaving]
queip has joined #ruby
krawchyk has quit [Quit: krawchyk]
ravenousmoose has quit [Ping timeout: 245 seconds]
phaul has joined #ruby
errst has quit [Ping timeout: 240 seconds]
krawchyk has joined #ruby
krawchyk has quit [Client Quit]
andikr has quit [Remote host closed the connection]
queip has quit [Ping timeout: 245 seconds]
queip_ has joined #ruby
Ai9zO5AP has joined #ruby
queip_ is now known as queip
phaul has quit [Ping timeout: 252 seconds]
davor has joined #ruby
poontangmessiah has joined #ruby
alfiemax has joined #ruby
phaul has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 240 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
za1b1tsu has quit [Remote host closed the connection]
Mia has joined #ruby
MrCrackPot has quit [Quit: Leaving]
suukim has joined #ruby
phaul has joined #ruby
Norimo has joined #ruby
aesthe has joined #ruby
queip has quit [Ping timeout: 245 seconds]
phaul has quit [Ping timeout: 276 seconds]
queip has joined #ruby
<Swyper>
I have a weird request
shokohsc has joined #ruby
<Swyper>
where can I get some cool Ruby stickers for my laptop
<Swyper>
;o
phaul has joined #ruby
mgraf has joined #ruby
krawchyk has joined #ruby
alfiemax has quit [Remote host closed the connection]