ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
ChmEarl has quit [Quit: Leaving]
Dreamer3 has quit [Quit: Leaving...]
TCZ has quit [Quit: Leaving]
d3bug has joined #ruby
GodFather has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 265 seconds]
imode has quit [Ping timeout: 240 seconds]
imode has joined #ruby
ericm has quit [Quit: Leaving]
Zubov has joined #ruby
r3my has quit [Quit: Connection closed for inactivity]
Esa__ has quit []
rmnull has joined #ruby
Zubov has quit [Remote host closed the connection]
imode has quit [Ping timeout: 272 seconds]
brool has quit [Quit: WeeChat 2.8]
imode has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
<SuperLag>
Is rspec part of ruby or separate from ruby? I was trying to see if I could find rspec docs and add the to Zeal.
<havenwood>
SuperLag: RSpec is a gem that doesn't ship with Ruby.
<havenwood>
SuperLag: The testing framework that ships with Ruby is Minitest.
<havenwood>
SuperLag: Look at that, on each of these lines "Ruby" is at the same position.
akem has quit [Ping timeout: 260 seconds]
<havenwood>
That's the important thing. The chr position of Ruby.
<SuperLag>
havenwood: I'm sorry, but the last part makes no sense to me
<SuperLag>
havenwood: I use rspec to test Chef cookbooks. I know it's ruby at heart, but I'm trying to find docs for rspec and add it to an app that I use on Windows that's kinda like Dash is for Mac.
<havenwood>
SuperLag: Never mind that!! Minitest ships with Ruby but RSpec doesn't.
<havenwood>
SuperLag: You can run a gem server with RSpec docs locally with: gem server
<havenwood>
SuperLag: If you had RDoc disabled, you can generate docs with: gem rdoc --all
<havenwood>
SuperLag: Does the app support RDoc?
CrazyEddy has quit [Remote host closed the connection]
golevka has quit [Read error: Connection reset by peer]
ChmEarl has joined #ruby
pandakekok9 has quit [Quit: good night]
TCZ has quit [Quit: Leaving]
cnsvc has joined #ruby
giorgian has quit [Quit: restart emacs]
giorgian has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
yxhuvud has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
greypack has quit [Ping timeout: 240 seconds]
greypack has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
m27frogy has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
balo has quit [*.net *.split]
Fraeon has quit [*.net *.split]
mkaito_ has quit [*.net *.split]
go|dfish has quit [*.net *.split]
bodgix has quit [*.net *.split]
lnx has quit [*.net *.split]
bodgix has joined #ruby
podman has quit [*.net *.split]
liKe2k1 has quit [*.net *.split]
arthurnn has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
DEac- has quit [*.net *.split]
xtsee has quit [*.net *.split]
shenghi has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
marahin has quit [*.net *.split]
shenghi has joined #ruby
marahin has joined #ruby
liKe2k1 has joined #ruby
podman has joined #ruby
nemesit|znc has joined #ruby
arthurnn has joined #ruby
justinmcp has joined #ruby
akem has joined #ruby
cnsvc has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
sergioro has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Garb0 has joined #ruby
Julius_Longmind has joined #ruby
<Julius_Longmind>
Hi! I have qestion regarding gemspec file and a dependency check for facter.
<Julius_Longmind>
"/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'facter' (>= 2.0.1, < 4) among 58 total gem(s) (Gem::MissingSpecError)"
<Julius_Longmind>
Facter is not installed as a gem, but as a system package, therefore this check fails.
<Julius_Longmind>
What is correct was to check if facter is installed as system package in a gemspec file?
<Julius_Longmind>
what is the difference between the gemspec file in the gem directory and the gemspec file in the specifications directory?
Esa__ has quit [Ping timeout: 265 seconds]
greypack has quit [Read error: Connection reset by peer]
greypack has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
dhollinger has quit [Ping timeout: 258 seconds]
dhollinger has joined #ruby
cnsvc has joined #ruby
greypack has quit [Quit: All your IRC are belong to ZNC]
greypack has joined #ruby
careta has quit [Ping timeout: 264 seconds]
carbone5 has joined #ruby
carbone5 has quit [Client Quit]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
Ai9zO5AP has joined #ruby
Ai9zO5AP has quit [Excess Flood]
Ai9zO5AP has joined #ruby
<havenwood>
Julius_Longmind: When you say "gem directory" do you mean the root directory of the gem source code?
<Julius_Longmind>
havenwood: yes
<Julius_Longmind>
havenwood: I don't know whether you seen the original issue.
<havenwood>
Julius_Longmind: Reading the backlog now.
<havenwood>
Julius_Longmind: A system package manager installed gem should be detected from the system ruby and rubygems. Are you sure you're using the right Ruby?
<havenwood>
Julius_Longmind: which -a ruby
<havenwood>
Julius_Longmind: which -a gem
Ai9zO5AP has quit [Excess Flood]
<havenwood>
Julius_Longmind: Link to the facter gem package you're using?
<Julius_Longmind>
havenwood: The trick that on linux the facter package is not a gem file.
<Julius_Longmind>
As you can see in the package contents, it doesn't contains gem file.
<Julius_Longmind>
It is just an executable binary, headers, ruby file, jar ..., but no gem.
<havenwood>
Julius_Longmind: The facter lib is different than the facter gem. The gem requires the lib, since it links against it. The facter gem provides bindings to the facter lib.
<havenwood>
Julius_Longmind: (At least on first impression, that's what it looks like to me.)
<havenwood>
Julius_Longmind: I don't have personal experience with arch packaged gems, so someone else might be better to help on this one.
Garb0 has joined #ruby
<havenwood>
Julius_Longmind: Are you using ruby2.7-bundler or what to get this error?
<Julius_Longmind>
havenwood: balks?
<havenwood>
Julius_Longmind: If you say more about the Ruby environment you're using in arch, someone here will probably be able to help with wiring it up.
<havenwood>
Julius_Longmind: I mean, what are you running that results in the error.
<havenwood>
Julius_Longmind: What command with what Ruby?
<Julius_Longmind>
havenwood: í2puppetserver ca" command with ruby 2.7.0
<Julius_Longmind>
havenwood: "puppetserver ca" command with ruby 2.7.0
<havenwood>
Julius_Longmind: System Ruby from arch package mannager?
<Julius_Longmind>
havenwood: yes
<havenwood>
Julius_Longmind: What is your?: gem env gempath
<havenwood>
Julius_Longmind: Can you just install the facter gem?
<Julius_Longmind>
havenwood: /usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'facter' (>= 2.0.1, < 4) among 58 total gem(s) (Gem::MissingSpecError)
<Julius_Longmind>
Checked in 'GEM_PATH=/root/.gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0', execute `gem env` for more information
<pwnd_nsfw>
array = [:peanut, :butter, :and, :jelly], why is array[4,0] == [] but [5,0] == nil?
<pwnd_nsfw>
They're both out of bounds, no?
roadie has quit [Ping timeout: 244 seconds]
<havenwood>
pwnd_nsfw: From the docs: "Additionally, an empty array is returned when the starting index for an element range is at the end of the array."
<havenwood>
pwnd_nsfw: It's just a special case.
<pwnd_nsfw>
ahh
<pwnd_nsfw>
Thanks!
<pwnd_nsfw>
I was foolish to not think that answer would not be in the docs and I apologize lol
greypack has joined #ruby
<havenwood>
pwnd_nsfw: It's kinda hidden in the docs. :)
<pwnd_nsfw>
Sneaky
<havenwood>
Yeah, it follows a negative line in a paragraph about negative indexes so easy to miss when scanning.
<pwnd_nsfw>
So negative your eyes decide to look directly past it
howdoi has joined #ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
markopasha has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
roadie has joined #ruby
sergioro has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
kristian_on_linu has quit [Remote host closed the connection]