<Radar>
I think rb_obj_as_string is equiv. to calling `to_s` on the output, and using Array#to_s and Hash#to_s matches up with the `puts` output, so I think I'm irght there.
<Radar>
I don't know what "string:" does on 7863 there though
<Radar>
7683*
gix has joined #ruby
asphyxia has joined #ruby
<asphyxia>
if Ruby constants are not like traditional languages in that they CAN be changed, can I set an array as a constant?
<Radar>
asphyxia: You can change them but the Ruby interpreter will warn you when you do so.
<Radar>
>> A = 1; A = 2;
<ruby[bot]>
Radar: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Radar>
ruby[bot]: dead to me
<Radar>
(irb):1: warning: already initialized constant A
<Radar>
(irb):1: warning: previous definition of A was here
<asphyxia>
Radar: haha thanks
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akem__ has quit [Remote host closed the connection]
arekushi is now known as Guest18202
Guest18202 is now known as arekushi
ciscam has joined #ruby
akem__ has joined #ruby
ZzZombo has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 246 seconds]
gregf_ has quit [Ping timeout: 256 seconds]
venmx has quit [Remote host closed the connection]
wojnar has joined #ruby
venmx has joined #ruby
KeyJoo has quit [Ping timeout: 246 seconds]
stan has joined #ruby
stan has quit [Quit: stan]
Francisco has quit [Ping timeout: 272 seconds]
Fr4n has joined #ruby
ciscam has quit [Ping timeout: 272 seconds]
ciscam has joined #ruby
tristanp has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
Fr4n has quit [Ping timeout: 246 seconds]
ZzZombo has joined #ruby
apparition has joined #ruby
mike11 has quit [Quit: Leaving.]
beefjoe has joined #ruby
rkoller has joined #ruby
akem__ has quit [Ping timeout: 272 seconds]
AJA4350 has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
bak1an has joined #ruby
ciscam has quit [Ping timeout: 252 seconds]
ciscam has joined #ruby
beefjoe has quit [Quit: <3]
tristanp has quit [Ping timeout: 252 seconds]
Fr4n has joined #ruby
beefjoe has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
marz_d`ghostman has joined #ruby
<marz_d`ghostman>
I'm trying out rspec, how do I test something like this? http://termbin.com/3lcuh I want to test that the run_pre_cmd and run_post_cmd are invoked.
<Bish>
how do i get the class name without modules in front of it?
<apeiros>
Bish: `Your::Module.name[/[^:]*\z/]`, remember though that A::B::C does not necessarily return "A::B::C" for .name, and that there are even anonymous modules/classes
spiette has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
arekushi has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
clemens3 has quit [Ping timeout: 252 seconds]
patr0clus has quit [Quit: WeeChat 2.1]
venmx has quit [Ping timeout: 244 seconds]
patr0clus has joined #ruby
cabotto has joined #ruby
kpoman has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
RedNifre has joined #ruby
kpoman2 has joined #ruby
kpoman2 is now known as kpoman1
RedNifre_ has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
cabotto has quit []
jordanm has quit [Quit: Konversation terminated!]
conta1 has joined #ruby
jordanm has joined #ruby
ua has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
cd has quit [Quit: cd]
ua has joined #ruby
schneider1 has joined #ruby
Inline has joined #ruby
schneider1 has quit [Client Quit]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
esrse has joined #ruby
tdy has joined #ruby
conta1 has quit [Quit: conta1]
<dostoyevsky>
Can I somehow convince ruby when installing from source to install itself in a way that's compatible with existing ruby installations, like calling the ruby binaries like ruby25 or so
beefjoe has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
yohji has quit [Remote host closed the connection]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
MoritaShinobu has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
<havenwood>
dostoyevsky: Yes, you can do whatever you want!
conta1 has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
<havenwood>
dostoyevsky: With gem names as well if you'd like - they make it easy.
<dostoyevsky>
havenwood: yeah, I know... I just thought maybe there is a ./configure switch I could use... that would make it automatic
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
<havenwood>
dostoyevsky: There's a --format-executable flag for RubyGems that will append the version to executables. Let me check on the Ruby build flag.
prestorium has quit [Quit: prestorium]
<havenwood>
dostoyevsky: --[no-]format-executable Make installed executable names match Ruby. If Ruby is ruby18, foo_exec will be foo_exec18
<dostoyevsky>
havenwood: I don't see that option in the output of "./configure --help" though
<dostoyevsky>
Well, I guess it's just the ruby and the irb executable I have to rename
<havenwood>
dostoyevsky: With ruby-install we manually change Ruby executable names. I'm looking to see if I can find a flag for the version on executable path.
<dostoyevsky>
havenwood: thanks"
<dostoyevsky>
!
patr0clus has quit [Quit: WeeChat 2.1]
Xiti has quit [Quit: Xiti]
patr0clus has joined #ruby
Xiti has joined #ruby
Technodrome has joined #ruby
<havenwood>
dostoyevsky: --program-suffix="25"
<havenwood>
dostoyevsky: --program-suffix=SUFFIX append SUFFIX to installed program names
aufi has quit [Ping timeout: 245 seconds]
soniya29 has joined #ruby
<havenwood>
dostoyevsky: So looks like --program-suffix="25" along with --format-executable would get you ruby25, gem25, rails25, etc.
soniya29_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MoritaShinobu has joined #ruby
Eiam has joined #ruby
<dostoyevsky>
havenwood: great! thank you so much!
postmodern has joined #ruby
<havenwood>
dostoyevsky: you're welcome
lxsameer has quit [Ping timeout: 244 seconds]
desperek has joined #ruby
DTZUZO_ has quit [Ping timeout: 252 seconds]
lytol_ has joined #ruby
patr0clus is now known as s3nd1v0g1us
Beams has quit [Quit: .]
mikecmpb_ has quit [Quit: inabit. zz.]
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
teej has quit [Quit: Connection closed for inactivity]
beefjoe has quit [Quit: <3]
idiocrash has joined #ruby
helloworld1101 has joined #ruby
<helloworld1101>
help
Beams has joined #ruby
Pisuke has quit [Ping timeout: 246 seconds]
MyMind has joined #ruby
ineb has quit [Quit: WeeChat 2.2]
nowhereman_ has quit [Ping timeout: 252 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
Beams has quit [Quit: .]
Beams has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
<havenwood>
helloworld1101: Enter the method name you want to look up. >>
<havenwood>
Enter a blank line to exit.
<helloworld1101>
<havenwood>
I guess this isn't irb.
<havenwood>
helloworld1101: What can we help with?
<helloworld1101>
how can i make a blank line? do i just need to hit Enter
Beams has quit [Ping timeout: 260 seconds]
<havenwood>
helloworld1101: I was just joking, as that's the message when you type `help` from IRB.
<havenwood>
helloworld1101: Have a Ruby problem?
marmotini has joined #ruby
chouhoulis has joined #ruby
Beams has joined #ruby
<helloworld1101>
I am trying to contribute to Ruby but get confused with right step to do it
<helloworld1101>
I am trying to contribute to Ruby but get confused with right step to do it
<helloworld1101>
suppose i edit a file and run test to make sure i didn't screw up anything, does it sound right?
chouhoulis has quit [Ping timeout: 240 seconds]
marmotini has quit [Quit: Leaving]
<havenwood>
helloworld1101: If Ruby compiles after your patch, that's a good start.
orbyt_ has joined #ruby
MoritaShinobu has quit [Ping timeout: 240 seconds]
esrse has quit [Ping timeout: 252 seconds]
<havenwood>
helloworld1101: Then check `make test`, `make test-all` and `make test-rubyspec`.
<havenwood>
You can do it the other way around, with eval_gemfile in your Gemfile, but that means changing your Gemfile - which seems to be something you're avoiding?
idiocrash has joined #ruby
conta1 has joined #ruby
conta1 has quit [Quit: conta1]
s3nd1v0g1us has quit [Ping timeout: 272 seconds]
Rapture has quit [Ping timeout: 260 seconds]
<allan>
havenwood: the reason I need this:
<allan>
I made a replacement for Jekyll (the static site generator)
<allan>
Jekyll allow plugins which are specified in the Gemfile
<allan>
since I offer compatibility with Jekyll (90%), I also load these plugins
<allan>
unfortunately some plugins are really bad (i.e. messing around with internal stuff)
<allan>
so I have a mapping that maps bad plugins to good (different and new) ones
<allan>
I could of course let my program require all the replacement plugins in its gemspec
<allan>
but the idea is that the list of mappings is dynamic
<allan>
and also, users who do not use bad plugins should not pay for these compatibility kludges
<allan>
havenwood: what you answered above, that seems to be about making my script run with a different Gemfile, but that is not really what I want
<dostoyevsky>
hmmm.. I did an install from source and now I want to install gems but I get this error: /usr/local/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- auto_gem (LoadError)
agent_white has quit [Quit: brb]
discopatrick has quit [Quit: Connection closed for inactivity]
<dostoyevsky>
when calling ``gem25 list''
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
<dostoyevsky>
Found the error in google, seems to be an issue with gentoo
<dostoyevsky>
This fixed the error message: % unset RUBYOPT; sudo env-update
<dostoyevsky>
> As the main gem you're trying to use has that outdated dependency, the simplest option is probably to avoid the built-in too-new json gem by installing and using Ruby 2.3 instead.
<dostoyevsky>
Oh man
<dostoyevsky>
So I have to downgrade to ruby23
<dostoyevsky>
Because of: Unable to activate twitter-5.17.0, because json-2.1.0 conflicts with json (~> 1.8) (Gem::ConflictError)
wojnar has quit [Remote host closed the connection]
fluxAeon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has joined #ruby
<havenwood>
allan: Well, it makes your script run with *both* the additional Gemfile and the original.
<havenwood>
allan: You could just add a single gem to the additional Gemfile.
<havenwood>
allan: It kinda defies the purpose of Bundler to have the dependencies not be in the Gemfile.
<havenwood>
allan: Hence they've not been eager to accept PRs that enable that sort of thing. What you can do is combine multiple Gemfiles, one or more of which you add.
<havenwood>
dostoyevsky: The latest version of JSON 1.8 actually does work on Ruby 2.4 and 2.5, afaik.
yaiyaich1 has joined #ruby
<havenwood>
dostoyevsky: That should be resolvable.
yaiyaich1 has quit [Client Quit]
za1b1tsu has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
yaiyaichu has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
yaiyaichu has quit [Quit: leaving]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
akem has quit [Remote host closed the connection]
BTRE has quit [Read error: Connection reset by peer]
dellavg_ has quit [Ping timeout: 252 seconds]
doubledup has quit [Quit: Leaving]
DLSteve has joined #ruby
im0nde has quit [Quit: im0nde]
sanscoeu_ has joined #ruby
jinie_ has joined #ruby
sanscoeu_ has quit [Client Quit]
im0nde has joined #ruby
wolfshappen has quit [Ping timeout: 252 seconds]
sanscoeur has quit [Ping timeout: 260 seconds]
wolfshappen has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
nemesit|znc has quit [Ping timeout: 240 seconds]
wolfshappen has quit [Ping timeout: 252 seconds]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
wolfshappen has joined #ruby
mike11 has quit [Quit: Leaving.]
im0nde has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 244 seconds]
ciscam has joined #ruby
BTRE has joined #ruby
Fr1eza has quit [Quit: Leaving]
kapil___ has quit [Quit: Connection closed for inactivity]
akem has joined #ruby
d^sh has joined #ruby
im0nde has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
sgen has joined #ruby
mochiyoda has joined #ruby
mattp_ has joined #ruby
DTZUZO_ has quit [Ping timeout: 252 seconds]
Cork has quit [Remote host closed the connection]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
mattwc has quit [Ping timeout: 252 seconds]
desperek has quit [Quit: xoxo]
Krzysiek1 has quit [Remote host closed the connection]
fowlduck has quit [Ping timeout: 252 seconds]
Krzysiek1 has joined #ruby
mattwc has joined #ruby
fowlduck has joined #ruby
reber__ has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
ramfjord has joined #ruby
alem0lars has quit [Ping timeout: 252 seconds]
Cork has joined #ruby
KeyJoo has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
impermanence has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ciscam has joined #ruby
RougeR has joined #ruby
donofrio has quit [Remote host closed the connection]
<dostoyevsky>
havenwood: Yeah, but json 2.1 cannot be removed as it ships with ruby... so 1.8 can never be loaded... but I just edited some gemspec files in the ruby installation and that made it stop complaining