havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
johnny56 has quit [Ping timeout: 240 seconds]
bambanx has quit [Read error: Connection reset by peer]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dualfade has quit [Ping timeout: 260 seconds]
dualfade has joined #ruby
dfucci_ has quit [Ping timeout: 260 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
johnny56 has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
TCZ has quit [Quit: Leaving]
chihhsin has joined #ruby
johnny56 has joined #ruby
ur5us has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
meinside has joined #ruby
DaRock has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 240 seconds]
mangoicedtea has quit [Quit: Leaving]
bruce_lee has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Flonk has joined #ruby
cnsvc has quit [Quit: WeeChat 2.9]
Arkaniad has joined #ruby
Technodrome has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 264 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56 has joined #ruby
matto has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
matto is now known as matcouto
matcouto is now known as matto
matto is now known as matcouto
<matcouto> Hey I’ve create a simple gem with bundle gem awesome_gem, created a /lib/awesome_gem/test.rb, added require awesome_gem/test to the /lib/awesome_gem.rb file, created the gem with gem build awesome_gem.gemspec, moved the gem file inside the main app lib’s folder for testing purpose, and added it to the Gemfile using the "path: ‘lib’" property
<matcouto> it gets installed but I can’t get to use the gem from within the rails console. I try to user the gem by requiring the gem, "require ‘awesome_gem’" but it doesn’t find it. Any idea?
Rudd0 has quit [Ping timeout: 240 seconds]
elcuervo has quit [Read error: Connection reset by peer]
<havenwood> matcouto: Have you run `bundle` after editing the Gemfile? Do you see it in the Gemfile.lock?
<havenwood> matcouto: Are you running Rails console with?: bin/rails console
<havenwood> matcouto: Or with?: bundle exec rails console
elcuervo has joined #ruby
<havenwood> matcouto: You shouldn't need to require the gem even after bundling, since Rails autoloads.
johndotpub_ has joined #ruby
johndotpub has quit [Quit: /dev/zero]
roshanavand_ has joined #ruby
<matcouto> havenwood: yes It did run `bundle`, and it's also in the Gemfile.lock
<matcouto> running with bundle exec rails c
ramfjord has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
roshanavand_ is now known as roshanavand
drincruz has joined #ruby
howdoi has joined #ruby
cthu| has quit [Ping timeout: 258 seconds]
drincruz has quit [Ping timeout: 256 seconds]
DTZUZU_ has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
jenrzzz_ has joined #ruby
probonic1 has joined #ruby
tabakhase has quit [Ping timeout: 258 seconds]
probonic has quit [Quit: Ping timeout (120 seconds)]
jenrzzz has quit [Ping timeout: 258 seconds]
j416 has quit [Ping timeout: 258 seconds]
llua has quit [Ping timeout: 258 seconds]
hiroaki has quit [Ping timeout: 258 seconds]
hiroaki has joined #ruby
tabakhase has joined #ruby
llua has joined #ruby
j416 has joined #ruby
Rudd0 has joined #ruby
neshpion has quit [Ping timeout: 240 seconds]
RiPuk_ has quit [Quit: ZNC 1.8.1 - https://znc.in]
zacts has joined #ruby
RiPuk has joined #ruby
dualfade has quit [Ping timeout: 260 seconds]
secret-fire__ has quit [Remote host closed the connection]
secret-fire__ has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
Rudd0^ has joined #ruby
dualfade has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
neshpion has joined #ruby
secret-fire__ has quit [Quit: Leaving]
Secret-Fire has joined #ruby
ChmEarl has quit [Quit: Leaving]
alfiemax has joined #ruby
<havenwood> matcouto: Shouldn't that be?: path: 'lib/awesome_gem'
Rudd0 has joined #ruby
Rudd0^ has quit [Read error: Connection reset by peer]
aandrew has joined #ruby
Rudd0^ has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
Rudd0 has quit [Ping timeout: 256 seconds]
<matcouto> havenwood: let me try it out
<matcouto> havenwood: actually, no. It should work that way, cos what I have it's the actual gem file(awesome_hem-0.1.3.gem). Unless I unpack the file?!
<havenwood> matcouto: Oohhh
<havenwood> matcouto: Yeah, unpack the gem
<havenwood> matcouto: I'm confused now what you're doing. I thought you were just putting a proto-gem in lib.
<matcouto> havenwood: https://github.com/matcouto/misc/tree/master an example
Rudd0 has joined #ruby
<havenwood> matcouto: I think I assumed incorrect things. :O I was way off.
<matcouto> I want to generate a gem file 'awesome_gem-0.1.3.gem' and I add to an locally for testing purpose only
<matcouto> *add to a local app
<matcouto> But yeah I guess I can just point to the unpacked folder then
<havenwood> matcouto: A Rails app or what kind of app?
<matcouto> Rails app
<havenwood> matcouto: Yeah, it's fairly normal to wire up a gem in lib/ but not with the .gem file, just the directory of Ruby code.
Rudd0^ has quit [Ping timeout: 260 seconds]
<havenwood> matcouto: You can then pretty easily cut a real gem, maybe incrementally using a repo like this one in the Gemfile, preferably pointing to a specific commit or tag.
<havenwood> matcouto: There's a process of extracting a gem temporarily to lib/ then cutting it for real locally or on GitHub then publishing it to RubyGems. You can do it in steps if you like.
<matcouto> havenwood: Ooh. That's what I need. Thanks a lot =]
<havenwood> matcouto: You're welcome. :) I assumed you meant a "gem-like directory"-style proto gem initially - hence my confusion.
<matcouto> ha sorry for the confusion
<havenwood> no prob at all
<havenwood> matcouto: This article doesn't mention it, but somewhere between having a local gem and pushing to RubyGems for real is to point at your gem's GitHub repo.
<matcouto> havenwood: but I believe that by just adding a path in the Gemfile pointing to my lib/awesome_gem dir, I should be able to use the awesome classes inside the main app via rails console?!
<matcouto> *gem 'awesome_gem', '0.1.3', path: 'lib/awesome_gem'*
<havenwood> matcouto: Yes, that sounds right. I usually use a repo rather than local path, so it works on other folks's machines too, so I forget the local incantation.
<matcouto> Yeah that's better. Cool.
<matcouto> Thanks again :)
<havenwood> matcouto: It's pretty easy to use a remote repo. Pushing to RubyGems for real is almost easier. :) Any time. Happy coding!
<havenwood> matcouto: Let us know if you ever want Ruby code review! Folk here are always eager for some Ruby code to ponder.
<matcouto> All good. I've created some engines before, but somehow I thought I could build a gem file and consume it off directly from the .gem file. :facepalm_emoji:
<havenwood> matcouto: yeah, kinda funny it's actually unpacked locally - even for regular gems
<matcouto> yep
<havenwood> the .gem is just a .tar.gz with a fancy nametag ;)
eldritch has quit [Ping timeout: 264 seconds]
<havenwood> nice for transport but not much else
eldritch has joined #ruby
pwnd_sfw has quit [Ping timeout: 265 seconds]
zacts has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elxbarbosa has quit [Remote host closed the connection]
cd has quit [Quit: cd]
bocaneri has joined #ruby
pwnd_sfw has joined #ruby
zacts has quit [Quit: leaving]
jmcgnh has quit [Ping timeout: 258 seconds]
jmcgnh_ has joined #ruby
akemhp has quit [Ping timeout: 256 seconds]
phage has joined #ruby
akemhp has joined #ruby
phage has quit [Client Quit]
dfucci has joined #ruby
neshpion has quit [Quit: WeeChat 2.9]
howdoi has quit [Quit: Connection closed for inactivity]
schne1der has joined #ruby
sarna has joined #ruby
ujjain2 has joined #ruby
vondruch has joined #ruby
Phoebus has joined #ruby
alexherbo2 has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
phage has joined #ruby
brainfunnel has quit [Quit: whoops]
phage has quit [Read error: Connection reset by peer]
gix- has quit [Ping timeout: 246 seconds]
imode has quit [Ping timeout: 256 seconds]
TomyWork has joined #ruby
ujjain2_ has joined #ruby
ujjain2_ has quit [Client Quit]
ujjain2 has quit [Read error: Connection reset by peer]
va5c0 has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
ropeney has quit [Ping timeout: 260 seconds]
ujjain2 has joined #ruby
sylario has joined #ruby
ujjain2 has quit [Client Quit]
_whitelogger has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
ujjain2 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
xco has joined #ruby
alexherbo2 has quit [Ping timeout: 258 seconds]
TCZ has joined #ruby
alexherbo2 has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helmer72 has joined #ruby
<helmer72> hi
mikecmpbll has quit [Ping timeout: 240 seconds]
markoong has joined #ruby
mikecmpbll has joined #ruby
Twemlow has joined #ruby
Twemlow has quit [Client Quit]
schne1der has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
rapha has joined #ruby
<rapha> hi
<rapha> anyone here of the Facets project?
<rapha> (or 500, not quite sure...)
ujjain2 has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infinityfye has joined #ruby
alexherbo2 has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
va5c0 has quit [Ping timeout: 240 seconds]
akemhp has quit [Remote host closed the connection]
va5c0 has joined #ruby
ropeney has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
ujjain2 has quit [Quit: Textual IRC Client: www.textualapp.com]
<helmer72> no
<helmer72> did some here manage to install maglev?
<helmer72> I am new to ruby
<helmer72> I habe this error message:
<helmer72> "/usr/share/rvm/rubies/truffleruby-20.0.0/lib/mri/rubygems.rb:283:in `find_spec_for_exe': can't find gem rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
<helmer72> "
<helmer72> what did I do wrong? What is the right way?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
matcouto has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
matcouto has joined #ruby
matcouto has quit [Client Quit]
weaksauce has quit [Ping timeout: 264 seconds]
matcouto has joined #ruby
sh7d has quit [Quit: meh]
sh7d has joined #ruby
matcouto has quit [Client Quit]
howdoi has joined #ruby
ujjain2 has joined #ruby
x0n has quit [Quit: ZNC - https://znc.in]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ropeney has quit [Quit: ZNC 1.7.4 - https://znc.in]
chalkmonster has joined #ruby
x0n has joined #ruby
drincruz has joined #ruby
ujjain2_ has joined #ruby
ujjain2 has quit [Ping timeout: 240 seconds]
dualfade has quit [Ping timeout: 258 seconds]
dualfade has joined #ruby
TCZ has quit [Quit: Leaving]
dfucci has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
ropeney has joined #ruby
chalkmonster has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
akemhp has joined #ruby
drincruz has joined #ruby
matcouto has joined #ruby
roshanavand has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
lunarkitty has quit [Ping timeout: 260 seconds]
infinityfye has quit [Ping timeout: 240 seconds]
helmer72 has quit [Ping timeout: 256 seconds]
dfucci has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
helmer72 has joined #ruby
spetex has joined #ruby
Technodrome has joined #ruby
ujjain2_ has quit [Ping timeout: 246 seconds]
joast has quit [Quit: Leaving.]
ujjain2 has joined #ruby
alexherbo2 has joined #ruby
akemhp has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
fercell has joined #ruby
spetex has quit [Quit: WeeChat 2.8]
matcouto has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
joast has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
va5c0 has quit [Ping timeout: 246 seconds]
chalkmonster has quit [Quit: WeeChat 2.9]
bmurt has joined #ruby
TCZ has joined #ruby
helmer72 has quit [Remote host closed the connection]
helmer72 has joined #ruby
va5c0 has joined #ruby
<adam12> helmer72: Maybe try updating rubygems? `gem update --system`
<adam12> helmer72: A full paste of the error at somewhere like dpaste.de would be helpful too.
<adam12> rapha: Likely just the URL has changed. https://github.com/rubyworks/facets/wiki
spetex has joined #ruby
helmer72 has quit [Ping timeout: 256 seconds]
spetex has quit [Client Quit]
spetex has joined #ruby
gitter1234 has joined #ruby
spetex has quit [Client Quit]
schne1der has quit [Ping timeout: 260 seconds]
adu has joined #ruby
fowl_ has quit []
ujjain2 has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders__ is now known as maxmanders
maryo has joined #ruby
alfiemax has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
x0n has quit [Read error: Connection reset by peer]
x0n- has joined #ruby
mydog2 has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 240 seconds]
hiroaki has quit [Ping timeout: 240 seconds]
mydog2 has joined #ruby
alfiemax has joined #ruby
akemhp has joined #ruby
alfiemax has quit [Remote host closed the connection]
sarna has quit [Quit: Connection closed]
dionysus69 has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ChmEarl has joined #ruby
cd has joined #ruby
wallace_mu has joined #ruby
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 260 seconds]
coniptor has quit [Ping timeout: 258 seconds]
coniptor has joined #ruby
DaRock has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Leaving]
fercell has quit [Quit: WeeChat 2.9]
akemhp has quit [Ping timeout: 265 seconds]
smurfke has quit [Remote host closed the connection]
fercell has joined #ruby
TomyWork has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
braincrash has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
akemhp has joined #ruby
cthu| has joined #ruby
rippa has joined #ruby
dfucci_ has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
SeepingN has joined #ruby
dfucci_ has quit [Ping timeout: 256 seconds]
vondruch has quit [Ping timeout: 256 seconds]
aandrew has left #ruby [#ruby]
jmcgnh_ has quit [Ping timeout: 265 seconds]
stryek has joined #ruby
Asa has joined #ruby
Asa is now known as Guest57823
va5c0 has quit [Ping timeout: 256 seconds]
Eiam has joined #ruby
va5c0 has joined #ruby
va5c0 has quit [Client Quit]
GodFather has quit [Ping timeout: 244 seconds]
Guest57823 has quit [Remote host closed the connection]
fercell has quit [Quit: WeeChat 2.9]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
markoong has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
weaksauce has joined #ruby
jmcgnh has joined #ruby
whathappens has joined #ruby
calicoday has joined #ruby
calicoday has quit [Remote host closed the connection]
calicoday has joined #ruby
chamunks has quit [Quit: Don't worry I'm not gone yet.]
roshanavand has joined #ruby
davispuh has joined #ruby
w10x12 has left #ruby ["WeeChat 2.3"]
ropeney has quit [Ping timeout: 260 seconds]
calicoday has quit [Remote host closed the connection]
spetex has joined #ruby
chamunks has joined #ruby
dfucci has joined #ruby
ByronJohnson has quit [Ping timeout: 246 seconds]
ByronJohnson has joined #ruby
Fischmiep has joined #ruby
bocaneri has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
roshanavand_ has joined #ruby
neshpion has joined #ruby
cgfbee has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 265 seconds]
roshanavand_ is now known as roshanavand
cgfbee has joined #ruby
x0n- has quit [Ping timeout: 260 seconds]
x0n has joined #ruby
kashike has joined #ruby
gix has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
hiroaki has joined #ruby
GodFather has joined #ruby
va5c0_ has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
dualfade has quit [Ping timeout: 258 seconds]
dualfade has joined #ruby
SeepingN has quit [Ping timeout: 256 seconds]
va5c0_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
imode has joined #ruby
LtHummus has quit [Quit: ZNC 1.8.1 - https://znc.in]
LtHummus has joined #ruby
Fischmiep has quit [Quit: WeeChat 2.3]
Rudd0 has quit [Ping timeout: 258 seconds]
maryo has quit [Read error: Connection reset by peer]
whathappens has quit [Remote host closed the connection]
akemhp has quit [Quit: Good nite]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
whathappens has quit []
braincrash has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
ellcs has joined #ruby
ropeney has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
markoong has joined #ruby
GodFather has joined #ruby
lunarkitty has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 265 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
va5c0 has joined #ruby
SeepingN has joined #ruby
Rudd0 has joined #ruby
Rudd0 has quit [Remote host closed the connection]
<weaksauce> why would bundler not pick the latest version of a gem when you do a bundle install?
<weaksauce> like version 14 of a gem is out and bundler used version 7 from way back in 2016
<weaksauce> a pined version and a bundle upgrade fixed that but i find it strange
<apotheon> Is it choosing something that works on your platform? Do you have a Gemfile.lock that won't let it upgrade? Do you have a version specification in a Gemfile that won't let it choose something newer?
bmurt has joined #ruby
Rudd0 has joined #ruby
dfucci has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spetex has quit [Quit: WeeChat 2.8]
dfucci has quit [Ping timeout: 256 seconds]
Rudd0^ has joined #ruby
adu has quit [Quit: adu]
Rudd0 has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
Rudd0 has joined #ruby
_aeris_ has joined #ruby
Rudd0^ has quit [Read error: Connection reset by peer]
<havenwood> weaksauce: When you have a Gemfile.lock and haven't changed the Gemfile, the `bundle install` command just installs the exact versions specified in the Gemfile.lock.
braincrash has quit [Ping timeout: 265 seconds]
<havenwood> weaksauce: I'm not personally a fan of `bundle install`'s conflated purposes, but it resolves dependencies from the Gemfile if the Gemfile changes or there is no Gemfile.lock.
<havenwood> weaksauce: You can `bundle upgrade` or delete the Gemfile.lock and `bundle install` to get a fresh Gemfile.lock.
<havenwood> weaksauce: It's expected that `bundle install` with a Gemfile.lock and unchanged Gemfile will just install the versions specified in the Gemfile.lock.
<havenwood> weaksauce: The general idea is that once you have a Gemfile.lock, versions are locked and should be installed exactly.
Rudd0^ has joined #ruby
<havenwood> weaksauce: Unlock them by breaking the lock by deleting it or you can be more conservative with `bundle upgrade` flags.
<havenwood> (Specify gems one at a time to upgrade, use the --conservative flag, etc.)
Rudd0 has quit [Ping timeout: 264 seconds]
adu has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 260 seconds]
Rudd0^ has quit [Ping timeout: 260 seconds]
schne1der has quit [Read error: Connection reset by peer]
markoong has quit [Ping timeout: 258 seconds]
va5c0 has quit [Remote host closed the connection]
reaVer has quit [Remote host closed the connection]
mangoicedtea has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby