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://gist.github.com | 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 joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
patr0clus has joined #ruby
r29v has quit [Quit: r29v]
balr0g has quit [Ping timeout: 255 seconds]
r29v has joined #ruby
redlegion has quit [Ping timeout: 250 seconds]
oz has quit [Ping timeout: 256 seconds]
nowz has quit [Ping timeout: 256 seconds]
oz has joined #ruby
redlegion has joined #ruby
patr0clus has quit [Ping timeout: 276 seconds]
patr0clus has joined #ruby
n13z has joined #ruby
vonfry has joined #ruby
patr0clus has quit [Ping timeout: 255 seconds]
patr0clus has joined #ruby
trinaldi has joined #ruby
trinaldi has quit [Client Quit]
vonfry_ has joined #ruby
vonfry has quit [Remote host closed the connection]
zyxtant has joined #ruby
vonfry_ has quit [Client Quit]
white_lilies has joined #ruby
AJA4350 has quit [Quit: AJA4350]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
balr0g has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.2]
cagomez has quit [Ping timeout: 264 seconds]
meinside has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
r29v has quit [Quit: r29v]
kapil___ has quit [Quit: Connection closed for inactivity]
mikhael_k33hl_ has joined #ruby
<mikhael_k33hl_> I'm trying to use this gem: https://github.com/jbussdieker/ruby-rsync and want to extract only the change containing the total size, I can't seem to follow the code specially when the module Change#changed? is called
<mikhael_k33hl_> It has this if/else statement that return :no_change, but that return value isn't even one of the option though
GodFather has joined #ruby
aninaki has quit [Ping timeout: 268 seconds]
n13z has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
ur5us has joined #ruby
Guest83186 has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
sylario has quit [Quit: Connection closed for inactivity]
cagomez has quit [Ping timeout: 240 seconds]
frem has quit [Quit: Connection closed for inactivity]
Guest83186 has quit [Ping timeout: 240 seconds]
n13z has joined #ruby
n13z has quit [Ping timeout: 268 seconds]
ErhardtMundt has quit [Remote host closed the connection]
ciro has quit [Quit: WeeChat 2.2]
n13z has joined #ruby
<havenwood> mikhael_k33hl_: You are correct.
<havenwood> mikhael_k33hl_: :no_update != :no_change
<havenwood> mikhael_k33hl_: the author made a mistake and it's not tested
<havenwood> mikhael_k33hl_: as it's written, #changed? always returns true.
<havenwood> mikhael_k33hl_: They *meant*: update_type != :no_update
<havenwood> mikhael_k33hl_: Do a PR and close this issue: https://github.com/jbussdieker/ruby-rsync/issues/15
<havenwood> mikhael_k33hl_: def changed?; update_type != :no_update end
<mikhael_k33hl_> havenwood: thanks for confirming that one
Xiti` is now known as Xiti
jp has joined #ruby
alfiemax_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
tty has quit [Quit: tty]
tty has joined #ruby
alyptik has joined #ruby
jp has quit [Ping timeout: 268 seconds]
alyptik has quit [Excess Flood]
jp has joined #ruby
kapil___ has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
reber has quit [Remote host closed the connection]
nowhere_man has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
lytol_ has quit [Remote host closed the connection]
gix has quit [Disconnected by services]
orbyt_ has joined #ruby
Guest83186 has joined #ruby
Guest83186 has quit [Ping timeout: 268 seconds]
alfiemax has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patr0clus has quit [Ping timeout: 240 seconds]
ryzokuken_ is now known as ryzokuken
patr0clus has joined #ruby
patr0clus has quit [Client Quit]
patr0clus has joined #ruby
white_lilies has quit [Ping timeout: 240 seconds]
patr0clus has quit [Client Quit]
patr0clus has joined #ruby
patr0clus has quit [Quit: WeeChat 2.1]
alfiemax has joined #ruby
Guest83186 has joined #ruby
Puffball has joined #ruby
voiceftp has joined #ruby
voice_ftp has joined #ruby
voice_ftp has quit [Remote host closed the connection]
Guest83186 has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
sauvin has joined #ruby
iMadper has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Excess Flood]
Inline has quit [Remote host closed the connection]
Demos has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
bak1an has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
<zenspider> I *might* be starting to grok haskell... who knew?!?
venmx has joined #ruby
arekushi has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Puffball has quit [Quit: Puffball]
snickers has joined #ruby
jp has quit [Read error: Connection reset by peer]
jp has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
venmx has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
<arahael> zenspider: Lost, are you? :)
tristanp has quit [Ping timeout: 276 seconds]
nowhere_man has joined #ruby
yohji has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
sysvalve has joined #ruby
conta has joined #ruby
clemens3_ has joined #ruby
dionysus69 has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
mtkd has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch_ is now known as vondruch
Liothen has quit [Ping timeout: 256 seconds]
Liothen has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 256 seconds]
devyn has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.6]
Alina-malina has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
jmcgnh_ has quit [Client Quit]
avelldiroll has joined #ruby
za1b1tsu has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
edwardly has quit [Ping timeout: 256 seconds]
thejoecarroll has quit [Ping timeout: 256 seconds]
gsgx has quit [Ping timeout: 256 seconds]
Map has quit [Ping timeout: 256 seconds]
Cybergeek has quit [Ping timeout: 256 seconds]
thinkpad has quit [Ping timeout: 256 seconds]
havenwood has quit [Quit: ZNC 1.7.1 - https://znc.in]
CrazyEddy has quit [Read error: Connection reset by peer]
jsaak has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
moei has quit [Ping timeout: 256 seconds]
spider-mario has quit [Ping timeout: 256 seconds]
nettie has quit [Ping timeout: 256 seconds]
edwardly has joined #ruby
shortdudey123 has quit [Ping timeout: 240 seconds]
gsingh93 has joined #ruby
spider-mario has joined #ruby
thinkpad has joined #ruby
Bish has quit [Quit: leaving]
jmcgnh has joined #ruby
havenwood has joined #ruby
CrazyEddy has joined #ruby
shortdudey123 has joined #ruby
scrptktty has quit [Quit: Connection closed for inactivity]
Alina-malina has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
georgie has joined #ruby
User458764 has joined #ruby
User458764 has quit [Client Quit]
alfiemax has joined #ruby
Dbugger has joined #ruby
snickers has quit [Ping timeout: 260 seconds]
gnufied has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
wildermind has joined #ruby
tristanp has joined #ruby
Blaguvest has joined #ruby
venmx has joined #ruby
dr3w_ has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
Guest83186 has joined #ruby
reber has joined #ruby
Beams has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
bak1an has joined #ruby
Blaguvest has quit [Ping timeout: 248 seconds]
venmx has quit [Quit: leaving]
alfiemax has quit [Remote host closed the connection]
dbrandon has quit [Ping timeout: 245 seconds]
postmodern has quit [Quit: Leaving]
galeido_ is now known as galeido
conta has quit [Quit: conta]
InfinityFye has joined #ruby
arekushi has joined #ruby
iMadper has quit [Remote host closed the connection]
alfiemax has joined #ruby
mikecmpbll has joined #ruby
sagax has quit [Quit: Konversation terminated!]
alex-kid has joined #ruby
<alex-kid> Hi
<alex-kid> Is there a way to implement function signature?
<alex-kid> or have to handle different behaviours in single one function :|
<alex-kid> ?
dionysus69 has quit [Ping timeout: 260 seconds]
<ineb> any way wo write this shorter? (1..5).map{|x| h = {}; h[1] = x; h[2] = x*x; h } ?
<leah2> >> (1..5).map { |x| {1=>x,2=>x*x} }
ciro has joined #ruby
<leah2> hm, no evalbot
<ineb> >> p 'thx'
<leah2> yw :)
alfiemax has quit [Ping timeout: 268 seconds]
<ineb> alex-kid: not in an easy/convienient way.
<ineb> it makes no sense in a typeless language if you think about it
alfiemax has joined #ruby
konsolebox has joined #ruby
sylario has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
<elomatreb> alex-kid: Generally you approach this kind of thing in Ruby by using default values for arguments, and selecting these so that all different behaviors are special cases of one general behavior
<alex-kid> Yep
<alex-kid> The function can becomes really biggy
<alex-kid> instead of separating the behaviour in different implementation
<alex-kid> / signature
<elomatreb> This sadly is the downside of non-strict typing, as there is no consistent concept of signature in Ruby
<alex-kid> Crystal looks great in that regard
<alex-kid> "Fast as C, slick as Ruby"
<apeiros> alex-kid: if it's different behaviors, it should be different methods IMO
<apeiros> after all, a method should say what it does. and if it does different things, then it can't possibly do that.
<alex-kid> Is there inner / outer named parameters?
<elomatreb> There are keyword arguments that work basically like named parameters, not sure what you mean by inner/outer
hahuang65 has joined #ruby
<alex-kid> # External names
<elomatreb> No, Ruby does not have this
<alex-kid> and to know if a method takes named arguments?
tristanp has joined #ruby
<alex-kid> I forget how to do
<elomatreb> You can't differentiate between named parameters and positionals (and optional vs. required) at runtime, you need to look at the source
<alex-kid> I’m sure there is some hacky way
dionysus69 has joined #ruby
<alex-kid> method, parameters = case message
alfiemax has quit [Ping timeout: 240 seconds]
<alex-kid> when ...
<elomatreb> For methods that are defined in Ruby (i.e. not a native extension) you can look at Method#source to get their source code, and interpret that. But don't.
<alex-kid> [:method, { a: 1 }]
<alex-kid> end
alfiemax has joined #ruby
tristanp has quit [Ping timeout: 265 seconds]
<alex-kid> #parameters can help
<ineb> when in ruby mindset, there is rarely a situation where you need function signatures
<ineb> at least thats what iam experiencing.
<ineb> if you really need a distinction then you must do type checking one way or another
AJA4350 has joined #ruby
<alex-kid> when Proc
<alex-kid> I would like to call the function rightly
<alex-kid> something like
<alex-kid> command.positional?
cschneid_ has joined #ruby
<alex-kid> ? command.call *arguments
<alex-kid> : command.call **arguments
<livcd> alex-kid: i would assume this would be possible with sorbet.rb
<ineb> the issue is the case statement before which returns symbols or procs
Alina-malina has quit [Max SendQ exceeded]
<ineb> one stupid way to fix the case for Symbol or Proc is to return a Proc in every case with needed actions inside that Proc
<ineb> lots of code duplication of course
cschneid_ has quit [Ping timeout: 260 seconds]
<ineb> i dont know the code but in your example you only have one case which returns a Proc and it has empty arguments anyway
<ineb> why not [:inspect, Commands.to_h ] or something like that
<ineb> anyway.. all i want to say is that a requirement for function signatures in ruby is often a design smell
<alex-kid> What is the method name for "foo".match ['foo','bar'] ?
<alex-kid> (not ['foo','bar'].include? 'foo')
<ineb> ?
<ineb> "foo".match(%r{foo|bar}) ?
<alex-kid> I would the equivalent of: arrayOfValues.includes? value
<alex-kid> but calling on value.{name} arrayOfValues
<alex-kid> class Proc
<alex-kid> def positional?
<alex-kid> parameters.length.zero? or [:req, :rest].include? parameters.first.first
<alex-kid> end
<alex-kid> end
<alex-kid> foo = -> { 1 }
<alex-kid> foo.positional? # true
<alex-kid> foo = -> { |a, b| a + b }
<alex-kid> foo.positional? # true
<alex-kid> foo = -> (a:, b:) { a + b }
<alex-kid> foo.positional? # false
kapowaz has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
jhill has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
AndroidKitKat has quit [Remote host closed the connection]
strmpnk has quit [Remote host closed the connection]
graingert has quit [Remote host closed the connection]
mitsuhiko has quit [Remote host closed the connection]
incomprehensibly has quit [Remote host closed the connection]
Guest53256 has quit [Remote host closed the connection]
ryzokuken has quit [Remote host closed the connection]
knowtheory_ has quit [Remote host closed the connection]
mroth has quit [Write error: Connection reset by peer]
sylario has quit [Remote host closed the connection]
afisher has quit [Remote host closed the connection]
ReinH has quit [Remote host closed the connection]
arcturiaen_ has quit [Remote host closed the connection]
stephenh has quit [Remote host closed the connection]
Zinder has quit [Remote host closed the connection]
Majost has quit [Remote host closed the connection]
sparc has quit [Remote host closed the connection]
err_ok has quit [Remote host closed the connection]
jmhmccr has quit [Remote host closed the connection]
rflot has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
Alina-malina has joined #ruby
Zinder has joined #ruby
jmhmccr has joined #ruby
sylario has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
za1b1tsu has quit [Ping timeout: 256 seconds]
<alex-kid> I’m looking for a built-in #in? method
<apeiros> there is none. since there's little sense for an object to know how each collection type works.
<apeiros> of course you can implement it by delegating it to the collection object, as in: class Object; def in?(collection); collection.include?(self); end; end
<alex-kid> Ouki
<apeiros> but IMO that's pointless. just let the one which has the required knowledge do it directly.
<alex-kid> What do you think of the Proc#positional? implementation above
<alex-kid> is it robust enough?
<apeiros> I'm not quite sure what I'd use it for
<apeiros> I tend to reserve introspection for debugging
<alex-kid> for tmux-msg
<alex-kid> command, parameters
<alex-kid> when parsing the command-line
AJA4351 has joined #ruby
AndroidKitKat has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Alina-malina has joined #ruby
<alex-kid> apeiros: found an old code
<alex-kid> with bind
<alex-kid> jjjjjjj
<alex-kid> oups
<apeiros> not parameters.find { |type, name| type == :key }.nil? --> parameters.any? { |type, name| type == :key }
<apeiros> I still don't really see the point of having that :-/
mikecmpbll has joined #ruby
<apeiros> looks a bit like currying to me, but not sure since I rarely use those techniques. maybe talk to baweaver.
<alex-kid> yep it’s currying
AJA4351 has joined #ruby
ciro has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 is now known as AJA4350
dr3w___ has joined #ruby
dr3w_ has quit [Ping timeout: 248 seconds]
ciro has joined #ruby
User458764 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
alfiemax has quit [Ping timeout: 268 seconds]
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
zyxtant has quit [Quit: Leaving]
conta has joined #ruby
za1b1tsu has joined #ruby
arekushi has quit [Quit: Gateway shutdown]
za1b1tsu has quit [Ping timeout: 260 seconds]
augcesar has joined #ruby
rikkipitt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ec has joined #ruby
User458764 has joined #ruby
GodFather has joined #ruby
User458764 has quit [Client Quit]
Zaab1t has joined #ruby
mikhael_k33hl_ has quit [Ping timeout: 252 seconds]
lunarkitty7 has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Quit: Leaving...]
cagomez has joined #ruby
conta has quit [Quit: conta]
cagomez has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 276 seconds]
Blaguvest has joined #ruby
fmcgeough has joined #ruby
strmpnk has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros__ has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
dendazen has joined #ruby
joast has quit [Ping timeout: 248 seconds]
beefjoe has joined #ruby
bmurt has joined #ruby
p4p0l0 has joined #ruby
mikecmpbll has joined #ruby
Rapture has joined #ruby
gnufied has joined #ruby
mgilles has joined #ruby
mgilles has quit [Client Quit]
beefjoe has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unshackled has joined #ruby
joast has joined #ruby
_Caerus has joined #ruby
Inline has joined #ruby
Caerus has quit [Ping timeout: 260 seconds]
Zaab1t has quit [Quit: Zaab1t]
uplime is now known as nchambers
alfiemax has joined #ruby
elcuervo has joined #ruby
biberu has quit []
Mike11 has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Max SendQ exceeded]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
Alina-malina has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
johnny56 has quit [Ping timeout: 276 seconds]
ivanskie has joined #ruby
ivanskie has quit [Client Quit]
Cybergeek has joined #ruby
elcuervo has quit [Remote host closed the connection]
rippa has joined #ruby
ivanskie has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
conta has joined #ruby
Alina-malina has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
conta has quit [Quit: conta]
vondruch has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
tcopeland has joined #ruby
tcopeland has quit [Client Quit]
ivanskie has quit [Client Quit]
fury has left #ruby [#ruby]
psychicist__ has joined #ruby
AJA4350 has quit [Remote host closed the connection]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has joined #ruby
qolq has joined #ruby
millerti has joined #ruby
ivanskie has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
cajone has joined #ruby
cajone has left #ruby [#ruby]
tristanp has joined #ruby
dviola has joined #ruby
lunarkitty7 has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
Mike11 has quit [Quit: Leaving.]
cagomez has joined #ruby
[Butch] has joined #ruby
maryo has joined #ruby
<maryo> I have executed bundle command as root and it looks like it has broken ruby environment for all the users. Can someone guide on how to fix this issue?
sysvalve has quit [Quit: Leaving]
alex-kid has quit [Ping timeout: 240 seconds]
yohji has quit [Remote host closed the connection]
bak1an has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
graft has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
<havenwood> maryo: What type of issues are you running into? System gems ahead of user gems in the PATH?
<vutral|kali> maryo: why dont you use rvm
<maryo> havenwood, yep exactly
<havenwood> maryo: Do you want to uninstall all system gems, then? Was it just default-installed gems before you sudo bundled?
eckhardt has joined #ruby
<maryo> havenwood, I have managed to fix the issue. Now while trying to run the command 'gem install bundler' as non root user. I am getting this error https://dpaste.de/DuGN
<havenwood> maryo: Did you delete rdoc on purpose? You can switch to not build documentation to work around this, or get rdoc working. Which do you prefer?
edwardly has quit [Ping timeout: 240 seconds]
<maryo> havenwood, which ever is the easies one. Probably fixing the rdoc. I hope I have deleted it by mistake
<havenwood> maryo: What version of Ruby?
<maryo> havenwood, ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
<havenwood> Actually, rdoc is a default gem... it's not supposed to be removable!
<havenwood> mmm
<havenwood> Maybe the way Ruby was packaged?
Alina-malina has joined #ruby
<havenwood> maryo: Is this a Ruby 2.0 package? Which OS/distro?
<maryo> havenwood, CentOS 7 (ruby-2.0.0.648-33.el7_4.x86_64)
<havenwood> maryo: Try installing the ruby-doc package.
conta has joined #ruby
<havenwood> maryo: yum install ruby-doc
<havenwood> maryo: Or skip documentation when installing gems with the `--no-document` flag.
<maryo> havenwood, Package rubygem-rdoc-4.0.0-33.el7_4.noarch already installed and latest version
<maryo> . Hopefully reinstallation will help?
Alina-malina has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
edwardly has joined #ruby
Alina-malina has joined #ruby
chouhoulis has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
orbyt_ has joined #ruby
Beams has quit [Quit: .]
<maryo> havenwood, I have installed dashing using bundle install command as non root user. But it is not able to find the binary. Any idea what could be wrong? https://dpaste.de/2336#
krawchyk has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
jp has joined #ruby
<maryo> in addition whenever I execute gem info gem_name I get this error https://dpaste.de/JrE4
yorickpeterse has joined #ruby
yorickpeterse has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Remote host closed the connection]
InfinityFye has left #ruby ["Leaving"]
Demos has joined #ruby
jcarl43 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 244 seconds]
cats has quit [Ping timeout: 260 seconds]
cats has joined #ruby
ivanskie has joined #ruby
Dbugger has quit [Remote host closed the connection]
lomex has joined #ruby
bipul has quit [Ping timeout: 264 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MyMind has quit [Ping timeout: 260 seconds]
Pisuke has joined #ruby
gnufied has quit [Ping timeout: 255 seconds]
Demos has quit [Remote host closed the connection]
conta has quit [Quit: conta]
conta has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Alina-malina has joined #ruby
<g-> maryo: sounds like your PATH does not include the location of the binary.
samosaphile has joined #ruby
<g-> maryo: perhaps something like `export PATH="/path/to/binary/dir:$PATH"`
ldepandis has joined #ruby
gnufied has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
Demos has joined #ruby
conta has quit [Quit: conta]
tolland has joined #ruby
ldepandis has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
<tolland> on fedora im trying to run jekyll but I'm getting the error `Ignoring eventmachine-1.2.5 because its extensions are not built.` however it looks like there is a ~/.gem/ruby/extensions/x86_64-linux/2.5.0/eventmachine-1.2.5/rubyeventmachine.so and also a ~/.gem/ruby/gems/eventmachine-1.2.5/ext/rubyeventmachine.so
<tolland> presumably it's looking in the wrong place, but I don't see any options to set that path
<tolland> (I'm trying to run jekyll with `bundle exec jekyll serve`)
biberu has joined #ruby
Alina-malina has joined #ruby
<g-> tolland: was the eventmachine gem install with bundler?
Eiam has joined #ruby
def_jam has joined #ruby
<tolland> I ran `bundle install` in the jekyll folder before... and it tried to install eventmachine
eblip has quit [Ping timeout: 256 seconds]
AJA4350 has joined #ruby
<tolland> ok, it's also missing native extensions for others... here is the output of `bundle install` https://paste.fedoraproject.org/paste/Z2h2vKmhMfLtpjZXLC7e2g
<tolland> if I strace running jekyll `strace -o strace.log -f -e trace=file bundle exec jekyll serve`
<tolland> it seems to be looking in 2 places for the gem.build_complete file
<tolland> it's not looking in the local directory
<havenwood> maryo: You can do something like: export PATH="$(gem env gemdir)/bin:$PATH"
SeepingN has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
patr0clus has joined #ruby
<tolland> actually, there is a system eventmachine native extension here - /usr/share/gems/gems/eventmachine-1.2.5/ext/rubyeventmachine.so
[Butch] has joined #ruby
apeiros__ has quit [Remote host closed the connection]
apeiros has joined #ruby
[Butch] has quit [Client Quit]
patr0clus is now known as s3nd1v0g1us
<tolland> ok. so if I install them manually using `sudo gem install xxxx --version 1.2.3` then those native extensions are put under /usr/lib64/gems/ruby/ and `bundle exec` will run.
<tolland> but it would be nice to get bundler to look in the ~/.gem/ folder for gem.build_complete
<tolland> as this makes a mess of things
sauvin has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 268 seconds]
\void has joined #ruby
maryo_ has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
<qolq> i've just seen an instance method named 'new' in production ruby code
<qolq> i'm inclined to think this is badly named
<qolq> is it? or is this normal in ruby?
maryo has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samosaphile has quit [Ping timeout: 252 seconds]
s3nd1v0g1us has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
[Butch] has joined #ruby
<havenwood> qolq: I'm curious, on a module or class?
<havenwood> Oh, instance method.
<qolq> class
<z64> yeah. i would be inclined to argue that should be named more explicitly
<havenwood> I don't see problems beyond naming.
<havenwood> qolq: The ::new that #initialize uses won't mind if there's a #new.
<qolq> yeah. i played around with it on irb and it works fine
<qolq> my concern was potential confusion with the class method
<qolq> but then i thought maybe it could be a common thing ruby
<z64> i mean you can very well do `klass = Foo`, `klass.new #=> <Foo ..>`. does it actually return a new instance of T?
<z64> i.e. some sort of custom .dup?
<qolq> that would return a new instance of Foo
<qolq> but if you did klass.new.new, it would call the instance method you defined
<z64> yeah i get you. i'm just curious about the code in question
<z64> like, what does this #new actually do
<qolq> i don't really remember
<qolq> i don't have the code on hand
<qolq> but it was something that could very easily have been named something else
<qolq> something less confusing
<z64> my point of `klass = Foo` is that you could write code that might look like its an instance method, so i think its a reason for a double-take for sure
<qolq> definitely
<qolq> just wanted to make sure
<qolq> :)
<qolq> thanks!
millerti has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
dendazen has quit [Ping timeout: 276 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maryo_> havenwood, as of now when I do "gem install dashing". the binary by default gets installed in this path /usr/bin/dashing and this is a global path.. Not sure why its happening like this. any idea?
<havenwood> maryo_: Where were you expecting it to install?
<havenwood> maryo_: Sanity check that you're using the `gem` you're expecting: command -v gem
<Demos> honestly gem should just never install in /usr/bin
<Demos> unless gem calls out to the system package manager
<havenwood> maryo_: Is GEM_HOME set?: printenv GEM_HOME
<Demos> but yes try `type gem`
<havenwood> maryo_: I'm kinda curious what all Rubies you have installed. What do you get for?: which -a gem
<maryo_> havenwood, GEM_HOME is not set
<Demos> my gem (from rubygems-2.7.6-93.fc28.noarch) installs to /home/<me>/bin by defaulkt
<maryo_> havenwood, $ which -a gem
<maryo_> /usr/bin/gem
<maryo_> Demos, $ type gem
<maryo_> gem is hashed (/usr/bin/gem)
<maryo_> Demos, yep that location seems to be perfect. I am also expecting that it should go under /home/<me>/bin
<havenwood> maryo_: You can set GEM_HOME for an alternate installation location. There's also a --user-install flag for installing in your home dir rather than GEM_HOME.
<havenwood> There's also an --install-dir flag.
<Demos> distros love to patch install locations for these sorts of tools <glares>
<Demos> <directly at debian>
<havenwood> maryo_: You can set --user-install to be persisted by adding it to your ~/.gemrc: gem: "--user-install"
konsolebox has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
nowhere_man has joined #ruby
<maryo_> havenwood, thank you. Can you also please guide me in setting the PATH for the executables? This is what I get -> https://dpaste.de/7SJ5
dionysus69 has joined #ruby
AJA4350 has quit [Quit: AJA4350]
gnufied has quit [Ping timeout: 268 seconds]
<havenwood> maryo: export PATH="$(gem env gemdir)/bin:$PATH"
<havenwood> maryo_: Or if you want to hardcode it: export PATH="/home/maryo/.gem/ruby/2.1.0/bin:$PATH"
<maryo_> havenwood, gem env gemdir shows "/usr/lib/ruby/gems/2.1.0" instead of "/home/maryo/.gem/ruby/2.1.0/bin:$PATH" why so?
<havenwood> maryo_: I guess gemdir isn't --user-install aware.
<havenwood> There should also be a gembindir, or whatever it should be called.
trinaldi has joined #ruby
trinaldi has quit [Client Quit]
sticaz has quit [Quit: My name Heff]
lytol_ has joined #ruby
trinaldi has joined #ruby
trinaldi has quit [Client Quit]
trinaldi has joined #ruby
orbyt_ has joined #ruby
trinaldi has quit [Client Quit]
trinaldi has joined #ruby
trinaldi has quit [Client Quit]
gnufied has joined #ruby
mondz has joined #ruby
sticaz has joined #ruby
Dbugger has joined #ruby
giraffe has joined #ruby
bmurt has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
zapata has quit [Read error: Connection reset by peer]
def_jam is now known as eblip
biberu has quit []
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
AJA4351 has joined #ruby
lomex has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has joined #ruby
machinewar has joined #ruby
<machinewar> anyone know what the FI is on the end of this unicode code point? \u0000FI
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
fmcgeough has quit [Quit: fmcgeough]
orbyt_ has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> machinewar: that's a rather vague question... but I suggest you puts it
<machinewar> yes it just prints FI because its not part of the codeponit
<machinewar> I'm getting this value from Redis
<machinewar> I wonder if redis has a custom encoding?
maryo_ has quit [Quit: Leaving]
r29v has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
DarthGandalf has quit [Quit: Bye]
weaksauce has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
r29v has quit [Quit: r29v]
<zenspider> I doubt it
s3nd1v0g1us has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
ivanskie has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DarthGandalf has joined #ruby
krawchyk has quit [Quit: krawchyk]
GodFather has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 256 seconds]
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
beowuff has joined #ruby
jcalla has quit [Quit: Leaving]
eddof13 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dr3w_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
weaksauce has joined #ruby
akaiiro has quit [Remote host closed the connection]
weaksauce has quit [Client Quit]
r29v has joined #ruby
akaiiro has joined #ruby
machinewar has quit []
AJA4351 has joined #ruby
venmx has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
dviola has quit [Quit: WeeChat 2.2]
fmcgeough has joined #ruby
sonOfRa has quit [Remote host closed the connection]
fmcgeough has quit [Client Quit]
sonOfRa has joined #ruby
beowuff has quit [Read error: Connection reset by peer]
venmx has quit [Remote host closed the connection]
beowuff has joined #ruby
eckhardt has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
jottr has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
ricer2 has joined #ruby
dviola has joined #ruby
reber has quit [Remote host closed the connection]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
sameerynho has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
tty has quit [Quit: tty]
apeiros has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
eckhardt has joined #ruby
Blaguvest is now known as semtex-h
r29v has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 260 seconds]
patr0clus has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
moei has joined #ruby
Dbugger has quit [Ping timeout: 245 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildermind has quit [Quit: Connection closed for inactivity]
patr0clus has quit [Quit: WeeChat 2.1]
bmurt has joined #ruby
paraxial has quit [Ping timeout: 240 seconds]
paraxial has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pisuke has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
cyberRodent has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
cyberRodent has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
venmx has joined #ruby
white_lilies has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
beowuff has quit [Ping timeout: 264 seconds]
ellcs has quit [Ping timeout: 265 seconds]
beowuff has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
psychicist__ has quit [Ping timeout: 244 seconds]
white_lilies has quit [Ping timeout: 240 seconds]