scripore has quit [Quit: This computer has gone to sleep]
andersoldahl has quit [Quit: My Mac has gone to sleep.]
mengu has quit [Ping timeout: 265 seconds]
Illusioneer has quit [Ping timeout: 264 seconds]
<musashi1>
I'm having trouble getting my app working on a linux system - i've typically used osx and am trying to get it going here.. It's a sinatra app and the output when i run foreman start is here: https://gist.github.com/anonymous/0bbf820640588a8b6bcf - would someone be so kind as to offer a suggestion as to how i might fix this?
arescorpio has joined #ruby
<musashi1>
or at least what what i should try? i've udpated all my gems, reinstalled ruby (I'm using RVM)
FooMunki has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
Illusioneer has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
r0bby_ has quit [Remote host closed the connection]
andersoldahl has joined #ruby
vickleton has quit [Ping timeout: 272 seconds]
r0bby_ has joined #ruby
balazs has joined #ruby
PaulCapestany has joined #ruby
scottstamp has quit [Ping timeout: 245 seconds]
ged has quit [Read error: Connection reset by peer]
ged has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
akkad has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
mengu has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
scottstamp has joined #ruby
Limix has joined #ruby
Gadgetoid has joined #ruby
emptyflask has joined #ruby
sankaber has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
DerisiveLogic has joined #ruby
mengu__ has joined #ruby
akkad has joined #ruby
fxck has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
ReK2 has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
lidenskap has joined #ruby
work has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
work is now known as fxck
<shevy>
LoadError: cannot load such file -- sqlite3
<shevy>
musashi1 you must install sqlite3 gem
<shevy>
"gem install sqlite3" should suffice BUT you need the header files of sqlite3 I think
<musashi1>
header files of sqlite? ok, i'll look that up. thank you.
apoplexy has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
rhg135 has quit [Remote host closed the connection]
<shevy>
if you compile sqlite3 from source you will have the header files; if you have to rely on a distribution, then you need to first install a devel/dev package of the given package (sqlite3 in this case; the source URL is http://www.sqlite.org/2015/sqlite-autoconf-3080803.tar.gz for one version; look at www.sqlite.org for a newer one if you wish to compile it yourself)
ValicekB has joined #ruby
rhg135 has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
r0bby_ has quit [Remote host closed the connection]
r0bby_ has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
charliesome has quit [Client Quit]
Musashi007 has quit [Client Quit]
Feyn has joined #ruby
riskish has joined #ruby
x1337807x has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has quit [Remote host closed the connection]
scripore has joined #ruby
balazs has joined #ruby
emptyflask has quit [Remote host closed the connection]
mrmargolis has joined #ruby
lidenskap has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
arescorpio has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
r0bby_ is now known as robbyoconnor
Guest83805 has joined #ruby
<musashi1>
@shevy will do - I'm going to try to avoid compiling it myself if at all possible
<musashi1>
@shevy thank you very much
millerti has joined #ruby
<shevy>
\o/
workmad3 has quit [Ping timeout: 248 seconds]
quimrstorres has quit [Remote host closed the connection]
tus has quit [Ping timeout: 264 seconds]
iamninja_ has quit [Read error: Connection reset by peer]
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
grindmodeon has left #ruby [#ruby]
<Technodrome>
for the end.submit , why can’t i just do search_result.end ?
<Technodrome>
it giving me an error i thought that would be the same thing
jamto11 has quit [Ping timeout: 252 seconds]
mengu__ has quit [Remote host closed the connection]
riotjones has joined #ruby
<shevy>
hmm I am looking at databases
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
and reading a passage, there is a distinction between: "relational database management systems" and "object-oriented database management systems", but I think the SQL languages are relational or? and if that is the case, then the relational databases are dominating right?
balazs has quit [Remote host closed the connection]
<shevy>
Technodrome always add the error to your pastie
<shevy>
and use a pastie that has syntax colouring
plutonic has joined #ruby
phutchins has joined #ruby
Azure has joined #ruby
andersoldahl has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 276 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
andersoldahl has joined #ruby
crus has quit [Read error: Connection reset by peer]
FernandoBasso has quit [Quit: leaving]
Yzguy has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
evanjs has quit [Remote host closed the connection]
<shevy>
"IRC has lost 60% of its users since 2003"
<shevy>
We are dying people!
hannahkoala has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
rshetty has joined #ruby
<agent_white>
D:
lxsameer has joined #ruby
mgberlin has quit [Remote host closed the connection]
rshetty has quit []
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
plutonic has quit [Quit: plutonic]
lavros has joined #ruby
krisquigley has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
sameerynho has joined #ruby
pacMakaveli has quit []
ebbflowgo has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
lidenskap has quit [Remote host closed the connection]
mengu has joined #ruby
dj_zubehoer has joined #ruby
PhaseCode has joined #ruby
<PhaseCode>
Hi guys, I have a binary string which I figured has to be parsed with .unpack("B*"), but I also want to get the first 16 bits of the string and remove it
<PhaseCode>
Or the first 2 bytes
_whitelogger has quit [Ping timeout: 272 seconds]
_whitelogger has joined #ruby
<pontiki>
you've probably set some flag
<pontiki>
notify list or som'n
moeabdol has quit [Ping timeout: 240 seconds]
lele has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<shevy>
is it possible to query ruboto about available commands?
<shevy>
I know that ruboto responds to >>
parduse has quit []
ndrei has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
<pontiki>
actually, i'm sorta the opposite of drunk
<pontiki>
slightly manic, no biggie
parduse has joined #ruby
<pontiki>
means i got enough sleep :)
ArchRogem has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<jhass>
shevy: no
quimrstorres has joined #ruby
giuseppesolinas has joined #ruby
<shevy>
pontiki you are hyperactive right now
<shevy>
and scaring me
<shevy>
you typed more just now than the last 3 months combined!
<pontiki>
it's how it is
<pontiki>
more typing, less words of any value or consequence
plutonic has joined #ruby
Crisix has joined #ruby
Crisix has quit [Max SendQ exceeded]
dideler has quit [Remote host closed the connection]
sdothum has joined #ruby
crus has joined #ruby
turtil has quit [Quit: WeeChat 1.1.1]
<apeiros>
man, those were some mean onions
<apeiros>
if I ever make a fantasy RPG, the first level enemies will be some kind of onions
mengu has joined #ruby
<hanmac>
apeiros: i would Fav that!! xD .. maybe with a skill that makes your charas shed tears ;P
<shevy>
people can be allergic to onions
allcentury has quit [Ping timeout: 255 seconds]
<hanmac>
shevy you mean add it as a trait in the RPG: like "50% more damage from onions"? ;P
asmodlol has joined #ruby
<jhass>
apeiros: sounds like you got a bad knife ;P
RegulationD has joined #ruby
FernandoBasso has quit [Quit: leaving]
asmodlol has quit [Read error: Connection reset by peer]
<ytti>
knives get dull pretty fast
quimrstorres has quit [Remote host closed the connection]
<jhass>
sure, I sharpen mine for like every second usage
<pontiki>
a good knife needs a steel
<ytti>
ceramic bit less, but those you pretty much cannot sharpen yourself
<apeiros>
jhass: how does a sharp knife make an onion less aggressive?
<pontiki>
i haven't tried a ceramic knife
<apeiros>
or do you just mean faster cutting?
FernandoBasso has joined #ruby
<jhass>
you cut and no longer squeeze out the cells
<apeiros>
friend tried and says use a good sharpened steel one
<pontiki>
dull knife: crushes more than slices
<jhass>
so you have far less sprinkles if you want to call it that
<apeiros>
ok. my knifes are pretty bad. maybe I should finally get some good ones :)
quimrstorres has joined #ruby
<apeiros>
+ sharpening tool oc
<pontiki>
or just get them sharpened
<jhass>
yeah, the zwilling ones have a pretty good price
mistermocha has quit [Ping timeout: 245 seconds]
<apeiros>
pontiki: my knifes are cheap. I wanted to get decent ones for ages. just never could be bothered to spend time researching.
RegulationD has quit [Ping timeout: 244 seconds]
<pontiki>
are they straight edges, not serated?
<pontiki>
ah, i don't want to stop you from getting good knives, never mind
<apeiros>
:D
quimrstorres has quit [Remote host closed the connection]
<apeiros>
I've got a great kitchen. but there's still so much stuff missing. and I don't know where to put all that missing stuff once I got it :-S
WildBamboo-Josh has quit [Read error: Connection reset by peer]
WildBamboo-Josh has joined #ruby
quimrsto_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
lkba has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
chiel has quit [Ping timeout: 252 seconds]
<jhass>
apeiros: I find sharpening with a stone easier than with a steel btw, makes it easier to get the angle right
chiel has joined #ruby
riotjones has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas has joined #ruby
<apeiros>
jhass: ok
ponga has joined #ruby
Macaveli has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
Macaveli has quit [Client Quit]
bkxd has quit [Ping timeout: 264 seconds]
sagittarian|2 has joined #ruby
Macaveli has joined #ruby
pika_pika has joined #ruby
Macaveli has quit [Client Quit]
krisquigley has joined #ruby
psy_ has quit [Ping timeout: 240 seconds]
lanemeyer has quit []
Narzew has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 246 seconds]
xybre has joined #ruby
xybre has quit [Changing host]
doodlehaus has joined #ruby
doodlehaus has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
codecop_ has joined #ruby
Technodrome has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
robbyoconnor has joined #ruby
keen____ has joined #ruby
psy has joined #ruby
keen___ has quit [Ping timeout: 264 seconds]
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
shoutsid has quit [Remote host closed the connection]
shoutsid has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
pagios has quit [Ping timeout: 276 seconds]
BTRE has quit [Quit: Leaving]
codecop has quit [Quit: Išeinu]
Technodrome has quit [Quit: Technodrome]
<shevy>
a great kitchen
<shevy>
and the laptop in the kitchen
BTRE has joined #ruby
<ponga>
shevy: you cooking?
havenwood has joined #ruby
<ponga>
hi haven
<shevy>
ponga not really... I am a bad cook
stef204 has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
<havenwood>
g'mornin
mistermocha has joined #ruby
davedev24_ has quit [Remote host closed the connection]
lanemeyer has joined #ruby
Conner_A has quit [Write error: Connection reset by peer]
kaspernj has quit [Remote host closed the connection]
Conner_A has joined #ruby
lanemeyer has quit [Client Quit]
decoponyo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
pontiki has quit [Ping timeout: 256 seconds]
decoponio has quit [Ping timeout: 272 seconds]
Narzew has joined #ruby
lanemeyer has joined #ruby
bruno- has joined #ruby
pagios has joined #ruby
lxsameer_ has quit [Quit: Leaving]
millerti has joined #ruby
lidenskap has joined #ruby
dseitz has joined #ruby
Dakuan has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
ponga has quit [Remote host closed the connection]
<ytti>
i guess creating two Date objects at every iteration would be bad
ponga has joined #ruby
Beoran has quit [Ping timeout: 255 seconds]
lifenoodles has quit [Ping timeout: 240 seconds]
psy has quit [Read error: Connection reset by peer]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lifenoodles has joined #ruby
michael_mbp has joined #ruby
psy has joined #ruby
Feyn has quit [Quit: Leaving]
psy has quit [Max SendQ exceeded]
<yh>
apeiros: but if there's a private above - does that make it private: just like def?
psy has joined #ruby
Pupeno has quit [Quit: Leaving...]
<apeiros>
yh: I think not
<apeiros>
you have to use private in the form with an argument
evanjs has quit [Remote host closed the connection]
* hanmac
likes the form of "private def meth; end" ;P
<ytti>
such a small but obvious change
Pupeno has joined #ruby
sleepee has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
lifenoodles has quit [Ping timeout: 256 seconds]
lifenoodles has joined #ruby
bruno- has joined #ruby
doodlehaus has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
lifenoodles has quit [Ping timeout: 265 seconds]
lifenoodles has joined #ruby
<jhass>
jeffleeismyhero: Date also has the between? method
haxrbyte has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
mengu has joined #ruby
thumpba has joined #ruby
scripore has joined #ruby
thumpba has quit [Remote host closed the connection]
ndrei has joined #ruby
<jeffleeismyhero>
Using dates.select { |date| date <= Date.today } seems to meet all of the criteria
pontiki has joined #ruby
dfinninger has quit [Remote host closed the connection]
sankaber has joined #ruby
mgberlin has joined #ruby
pontiki has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Remote host closed the connection]
sankaber has quit [Client Quit]
mary5030 has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
lessless has joined #ruby
mlev has quit [Ping timeout: 248 seconds]
mistermocha has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
niKeITA has joined #ruby
<waxjar>
with ruby-install, `ruby-install ruby` is supposed to install the latest version, isn't it?
<havenn>
waxjar: there's no auto-update for version definitions yet
<havenn>
waxjar: you can `make update` and reinstall ruby-install for latest definitions
mary5030 has quit [Remote host closed the connection]
rshetty has joined #ruby
unreal has quit [Ping timeout: 248 seconds]
Igorshp has joined #ruby
<waxjar>
hmm, i just freshly installed it ruby-install trough homebrew. probably an older version on there then?
Xiti has quit [Quit: Xiti]
<havenn>
waxjar: Homebrew has the latest release of ruby-install, with whatever definitions shipped with it. `brew install ruby-install --HEAD` would get more recent.
<havenn>
waxjar: With whatever version of ruby-install you can: ruby-install ruby 2.2.2 --sha1 de97ec6132ac76bb7c0f92b5ca4682138093af1b
bkulbida has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
lidenskap has quit [Ping timeout: 264 seconds]
<havenn>
waxjar: There are plans for an --update or auto-update of definitions to sync with ruby-versions definitions like `make update` does now.
<waxjar>
havenn: ah i see, intalling HEAD will work nicely. thx.
zotherst2pidguy has quit [Remote host closed the connection]
<waxjar>
i'm writing a bash script to set up a basic environment on a new machine, can't really provide a checksum unfortunately
zotherst2pidguy has joined #ruby
Igorshp has quit [Ping timeout: 250 seconds]
vim_shimm has joined #ruby
endash has joined #ruby
niKeITA has quit [Quit: ZZZzzz…]
<shevy>
ack
<shevy>
a bash script
<shevy>
write it in ruby!
<havenn>
shevy: ack, an ack script!
<waxjar>
i'd have to shell out basically every line then shevy :p
scripore has quit [Quit: This computer has gone to sleep]
naftilos76 has quit [Remote host closed the connection]
Xiti has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
scripore has joined #ruby
scripore has quit [Client Quit]
<shevy>
one day we'll have the mother of all virtual machines
Mon_Ouie has quit [Ping timeout: 256 seconds]
zotherst2pidguy has quit [Remote host closed the connection]
zotherst2pidguy has joined #ruby
jeramy_s has joined #ruby
kanishka has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
jeffleeismyhero has quit [Quit: jeffleeismyhero]
bkulbida has joined #ruby
mitchellhenke has joined #ruby
tmtwd has joined #ruby
Conner_A has quit [Ping timeout: 250 seconds]
Narzew has joined #ruby
lukec has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
<jhass>
shevy: the entire universe is a big virtual machine. Disprove me!
<shevy>
it is true
<shevy>
it's full of bugs
lifenoodles has quit [Ping timeout: 250 seconds]
lukec has quit [Client Quit]
unshadow has joined #ruby
lifenoodles has joined #ruby
Guest98654 has quit [Remote host closed the connection]
lukec has joined #ruby
vim_shimm has quit [Ping timeout: 250 seconds]
<ytti>
that problem recurses
<ytti>
if we are being simulated then it's almost certain that the people running the simulation are in another simulation
<havenn>
jhass: FPS is too high, must be compiled.
Narzew has quit [Ping timeout: 248 seconds]
<unshadow>
We just got a new R&D Manager in the company, I'm the only Ruby programmer there (2 other using C#), he asked me if Ruby is still a thing, I told him the languge is alive and kicking and not only ROR, but, looking at http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html it seems that Ruby is not that popular
<unshadow>
what do you guys think ?
<havenn>
unshadow: TIOBE is bizarre and not to be used for any sane decision making.
<ytti>
unshadow, popularity may not be very useful metric
quimrstorres has quit [Remote host closed the connection]
<havenn>
kubunto: use the falseyness of `nil` instead of the nil checks
robbyoconnor has quit [Ping timeout: 256 seconds]
hackeron has quit [Ping timeout: 246 seconds]
quimrstorres has joined #ruby
rshetty has joined #ruby
<havenn>
kubunto: drop all the returns other than the line ~39 one. they do nothing.
redlegion has quit [Quit: leaving]
Pupeno has quit [Remote host closed the connection]
balazs_ has joined #ruby
lifenoodles has quit [Ping timeout: 256 seconds]
edwinvdgraaf has joined #ruby
<havenn>
kubunto: the `for` loop in main.rb isn't idiomatic. i'd use the Slop gem for option parsing, or if you prefer OptionParser in the stdlib.
<havenn>
kubunto: like i said i'd use Slop, but just for an example: if ARGV.any? { |param| %w[-f --file].include? param } ...
<jhass>
kubunto: don't prefix accessor methods with get_ or set_, name them foo and foo=
yh has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
lifenoodles has joined #ruby
quimrstorres has quit [Ping timeout: 244 seconds]
ych has joined #ruby
Pupeno has joined #ruby
ych is now known as Guest7525
Channel6 has joined #ruby
shellfu_afk has quit [Remote host closed the connection]
rocco88 has joined #ruby
<kubunto>
ok i put in the return unless on my end and choped off get from get_state
mary5030 has joined #ruby
<kubunto>
what do you mean exactly by not idiomatic?
thumpba has joined #ruby
<yh>
get return outta my ruby
ramfjord has joined #ruby
mgberlin has quit [Remote host closed the connection]
colorados has quit [Ping timeout: 264 seconds]
<kubunto>
then how do i refactor them out?
lifenoodles has quit [Ping timeout: 240 seconds]
<yh>
kubunto: if you only have one exit point from a method, remove "return" and just have its final line evaluate to the value you'd like returned
<yh>
if you have multiple exit points, extract methods such that they do not
pontiki has joined #ruby
lifenoodles has joined #ruby
mengu has quit [Remote host closed the connection]
<havenn>
kubunto: We don't use `for` loops for a couple sundry reasons. Try `3.times { |i| puts i }` or `0.upto(2) { |i| puts i }`. But where you used the `for` loop we'd not use the index at all. Look at the #any? example I gave above.
Morrolan has quit [Quit: ZNC: Shutting down.]
mgberlin has joined #ruby
_2_nel has joined #ruby
<kubunto>
havenn: i pulled up the slop doc and it looks pretty awesome
_2_nel has quit [Quit: WhatsChat IRC Android APP]
zz_twistedpixels is now known as twistedpixels
Morrolan has joined #ruby
NoNMaDDeN has joined #ruby
<kubunto>
yh: could you give me an example using one of the methods?
Narzew has quit [Ping timeout: 250 seconds]
Naypalm has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
<Naypalm>
having problems with 'nokogiri' on centos 6. it will not install with bundle install, but it will with the package manager
<Naypalm>
but then the app doesn't load if it's the system's version
The_Phoenix has quit [Read error: Connection reset by peer]
<havenn>
Naypalm: What's the failure with `bundle install`?
edwinvdgraaf has quit [Remote host closed the connection]
<havenn>
I don't know where in that code they think it's checking for an empty dir...?
krisquigley has quit [Ping timeout: 265 seconds]
balazs_ has quit [Remote host closed the connection]
<Naypalm>
why install an older version?
<havenn>
They forgot an: && Dir.entries(@tmp).empty?
timonv has quit [Ping timeout: 248 seconds]
allcentury has joined #ruby
<havenn>
Naypalm: So you can see the log of the failure. Since they're nuking the log in newer versions of bundler it appears.
zotherstupidguy has quit [Ping timeout: 272 seconds]
zotherstupidguy has joined #ruby
<Naypalm>
installed, how do I make sure I'm using it?
<havenn>
Naypalm: You could just fix the issue in the current version of bundler. You can just edit the gem, it's just text. However you want to do it.
bruno- has joined #ruby
<Naypalm>
ok
<Naypalm>
I was going to build it from source
<havenn>
Naypalm: Uninstalling the other versions of bundler is one way.
<Naypalm>
I ran `rake bla:bla` but not sure how ruby modules work
<havenn>
Naypalm: You can just `gem open bundler` and go edit it.
<havenn>
Naypalm: However you want to do it.
zz_Outlastsheep has quit [Remote host closed the connection]
<havenn>
Naypalm: If you edit a gem, you can restore it to factory conditions with `pristine`, e.g.: gem pristine bundler
fxck has quit [Read error: Connection reset by peer]
scripore has joined #ruby
jamto11 has quit [Remote host closed the connection]
swgillespie has joined #ruby
<havenn>
Naypalm: I would just `gem open bundler`, add `&& Dir.entries(@tmp).empty?` to `lib/bundler.rb` line 220, then try it. Then go back to pristine.
totimkopf has joined #ruby
<havenn>
So you don't forget and leave a modified bundler laying around!
charliesome has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
edwinvdgraaf has joined #ruby
a5i has joined #ruby
bkulbida has quit [Ping timeout: 248 seconds]
towski_ has joined #ruby
hannahkoala has joined #ruby
unshadow has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
zorak8 has quit [Quit: Leaving]
bkulbida has joined #ruby
freerobby has quit [Quit: Leaving.]
edwinvdgraaf has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
ta_ has joined #ruby
bruno- has joined #ruby
lukequaint has joined #ruby
<sohrab>
i just started fooling around with the socket library. you can pretty much create a lightweight api with it, right? why bother with sinatra?
Dakuan has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
ta_ has quit [Ping timeout: 252 seconds]
SHyx0rmZ has joined #ruby
bruno- has joined #ruby
claptor has quit [Quit: this channel is bakas]
<Naypalm>
deary me
hellome has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
hellome has joined #ruby
SouL_|_ has joined #ruby
quimrstorres has joined #ruby
tus has joined #ruby
totimkopf has quit [Quit: leaving]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
hellome has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellome has joined #ruby
MXfive has joined #ruby
NoNMaDDeN has quit [Quit: Leaving...]
ag4ve_ has quit [Ping timeout: 245 seconds]
hellome has quit [Remote host closed the connection]
hellome has joined #ruby
<jhass>
sohrab: because of rack. sinatra is basically a nice DSL for a rack app
quimrstorres has quit [Ping timeout: 240 seconds]
ag4ve_ has joined #ruby
<apeiros>
sohrab: socket? so you want to write the webserver yourself too?
<jhass>
of course! all the other ones suck and do stuff I don't want!
MXfive has quit [Read error: Connection timed out]
<sohrab>
hm, i don't have any specific goal. i'm just trying to learn how it works at the lower level
lavros has quit [Quit: leaving]
lidenskap has joined #ruby
dj_zubehoer has joined #ruby
MXfive has joined #ruby
<havenn>
sohrab: Have you tried making a plain vanilla Rack app?
DerisiveLogic has quit [Ping timeout: 252 seconds]
<sohrab>
havenn, no, do you recommend that? maybe i'll try it out now
mrmargolis has joined #ruby
balazs_ has joined #ruby
emptyflask has joined #ruby
pontiki has joined #ruby
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
balazs_ has quit [Ping timeout: 256 seconds]
mary5030 has quit [Remote host closed the connection]
<sohrab>
huh... that was easy
balazs_ has joined #ruby
<havenn>
sohrab: Now you can use any Rack webserver, so try `gem install puma` then: rackup -s puma
<ruboto>
Technodrome, Just ask your question, if anyone has, they will respond.
<Technodrome>
er sorry yeah
allcentury has quit [Ping timeout: 265 seconds]
<adaedra>
eh
<Technodrome>
i believe the mechanize module overrides .at but i can’t find it
doodlehaus has quit [Remote host closed the connection]
<jhass>
.method(:at).source_location
<jhass>
.owner can help too
<certainty>
[_emacs
<certainty>
meh
balazs_ has joined #ruby
<adaedra>
[_vim
<jhass>
certainty: nice troll
ta has quit [Ping timeout: 276 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
<kracker>
Hello everyone, I'm very new to ruby but not programing in general, I'm trying to authorize my ruby based shell script oath application but i'm failing to understand how to do this as the docs are very unclear (to me). I am trying to follow this step in the Readme.md, https://github.com/peter-murach/github#34-application-oauth
<kracker>
I'm just not clear how to get the authorization_code variable mentioned in the docs
mengu__ has joined #ruby
<kracker>
i'm happy to answer any questions on how i'm doing exactly what i'm doing and as always any help would be greatly appreciated
<jhass>
you probably ask the user for it
<jhass>
that's why I still used the token API besides it being deprecated as I understood it
<certainty>
jhass: nah my keyboard didn't seem to respond
nettoweb has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
lidenskap has joined #ruby
<adaedra>
kracker: do you understand how oauth works?
dj_zubehoer has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
<kracker>
jhass: i'm wrtting a shell script ..
<kracker>
adaedra: yes, a little, i've done oauth integrations before but they were all browser based
<adaedra>
ah
<jhass>
kracker: kracker yeah, the authorization API you linked to is more suited for browser applications where you can redirect the user and github can redirect back
<kracker>
fg
<kracker>
oops :\
BTRE has quit [Quit: Leaving]
<adaedra>
so, if I understand correctly, it’s the code you’re supposed to get from the user, yes
<kracker>
jhass: thank you for this response, i did wonder
<adaedra>
you will give him the address generated by the code snippet, he opens it, follow directions, and get the code he gives back to you
ismaelga has joined #ruby
oddskill is now known as oddskill_away
spider-mario has joined #ruby
towski_ has quit [Remote host closed the connection]
<kracker>
jhass: i'm just trying to write a github api using shell script to query github for the most basic information (read-only), any suggestions on an alternative? i started rewriting my script to use oath and the above linked library because i was getting 403 responses to my existing script i guess because i was making to many unauthenticated requests (as I was debugging and extending the script)
pika_pika has joined #ruby
<adaedra>
yeah, github api has a low limit on unauth requests iirc
babykosh has quit [Quit: babykosh]
<adaedra>
I hit it with homebrew the other day
<kracker>
adeponte: can i do this via cli lynx and re-use the authorization_code in my app?
lidenskap has quit [Remote host closed the connection]
<adaedra>
kracker: it’s not something I already did, I’m guessing from experience on oauth as user
<kracker>
hmm, i've already started going down the github application path btw
workmad3 has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
<adaedra>
kracker: but I think you’ll have explcitely to ask the user to go there (by opening a web brower maybe, but I’m not sure lynx is a good idea for this) and get back the code by input from the user, which will get it from website
<adaedra>
are you writing something that will be executed in cli-only environment?
<kracker>
yes
<adaedra>
that may be a problem then
BTRE has joined #ruby
<kracker>
i previously tried to do what you suggest adaedra but was afraid my different server ip my be a problem
<jhass>
I still didn't grasp what the new flow should be for CLI apps either, but the one I implemented there still works well and without a browser
<kracker>
and it didn't work
bmn has quit [Quit: obai]
sriehl has joined #ruby
<Naypalm>
is there an alternative to 'pg' that works with ruby 1.9.3?
<Naypalm>
I am migrating this client's site and the headaches I'm experiencing are out of this world
<adaedra>
an older pg ?
riotjones has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
Naypalm: so what makes you imply it's not compatible
<jhass>
?
lolmaus has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
<sohrab>
does the environment hash that rack accepts come from the web server?
<Naypalm>
oops yeah jhass, it was not finding my pg_config
<Naypalm>
well I just don't really expect packages to be maintained for ancient versions of ruby, jhass
bmn has joined #ruby
charliesome has joined #ruby
<jhass>
hehe
longfeet has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
<Naypalm>
I mean we're on 2.2.2, if I decide to use 1.8 I don't expect everything to work
DerisiveLogic has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
lukequaint has quit [Quit: Bye!]
sriehl has quit []
zotherstupidguy has quit [Ping timeout: 240 seconds]
<jhass>
1.8 -> 1.9 was a much bigger step than 1.9 -> 2.2 still is though
<jhass>
2.0-2.2 mostly added new features
<jhass>
the most breaking changes are things like .chars returning arrays instead of enumerators
<kracker>
special thanks to jhass and adaedra ... i think i finally figured out how to 'manually' authorize my application and get my access_token. i think i'm good to go .. for now at least ;D
<adaedra>
good
zotherstupidguy has joined #ruby
<Naypalm>
the only change I remember was 1.7 to 1.8, then I moved to Python haha
<Technodrome>
undefined method `instance_methods' doesn’t every method have this?
<Naypalm>
before that I was a Perler
MatthewsFace has quit [Ping timeout: 256 seconds]
<Naypalm>
the good old 1.8 days
<Naypalm>
find_executable: checking for pg_config... -------------------- no
<Naypalm>
arrrr die y'bastard
<jhass>
Technodrome: no, only classes and modules
<jhass>
which makes sense if you look the methods names
<jhass>
*name
krisquigley has quit [Ping timeout: 264 seconds]
<jhass>
what would be the instance methods an object contains? it's not a Module or Class that would contain a list of methods
anthony has joined #ruby
<jhass>
all objects respond to .methods though, which lists all methods the object itself responds to
anthony is now known as Guest25720
balazs_ has joined #ruby
odin22 has joined #ruby
zotherstupidguy has quit [Ping timeout: 245 seconds]
phpmaster has left #ruby [#ruby]
CatMartyn has joined #ruby
rgb-one has joined #ruby
thumpba has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 276 seconds]
shevy has joined #ruby
codecop_ has quit [Remote host closed the connection]
sohrab has quit [Ping timeout: 255 seconds]
sohrab has joined #ruby
rgb-one has quit [Remote host closed the connection]
<Naypalm>
Can't handle 1.9.x yet
Technodrome has quit [Quit: Technodrome]
<Naypalm>
-.-
<Naypalm>
bloody ruby-debug-base
zotherstupidguy has joined #ruby
<jhass>
Naypalm: get pry
Technodrome has joined #ruby
bim has joined #ruby
<jhass>
Naypalm: on 1.9 pry-debugger makes it a full debugger, on 2.0+ use pry-byebug. Add pry-stack_explorer on both
bim is now known as Guest91367
yfeldblum has joined #ruby
yqt has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rombocua has joined #ruby
<rombocua>
1-2+3-4+5-6 ...
nettoweb has joined #ruby
<jhass>
rombocua: it's getting boring
<rombocua>
jhass: why?
<jhass>
because nobody really reacts to it anymore (so it's offtopic and no conversation) and not a Ruby topic
odin22 has quit [Quit: Leaving]
<jhass>
just say "hi"
<jhass>
and maybe decide on a nick ;)
<rombocua>
I just trying to be original!
Timba-as has joined #ruby
banister has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
banister has quit [Max SendQ exceeded]
<Naypalm>
ty jhass
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Guest91367 has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
mengu__ has quit [Ping timeout: 256 seconds]
zotherstupidguy has joined #ruby
cefkamcau has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
freerobby has quit [Quit: Leaving.]
cuaromboide has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mitchellhenke has joined #ruby
lolmaus has joined #ruby
scripore has joined #ruby
sigurding has joined #ruby
lolmaus has quit [Client Quit]
mengu_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
lidenskap has joined #ruby
colorisco has quit [Ping timeout: 264 seconds]
hanmac has quit [Quit: Leaving.]
gkra_ has joined #ruby
mengu__ has joined #ruby
gkra has quit [Ping timeout: 250 seconds]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dj_zubehoer has joined #ruby
colorisco has joined #ruby
hanmac has joined #ruby
dj_zubehoer has quit [Ping timeout: 264 seconds]
kyrylo has quit [Ping timeout: 244 seconds]
dc has quit [Read error: Connection reset by peer]
stef204 has joined #ruby
sigurding has quit [Quit: sigurding]
dc has joined #ruby
Dakuan has joined #ruby
lkba_ has joined #ruby
towski_ has joined #ruby
blt has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 252 seconds]
gkra_ has quit [Remote host closed the connection]
gkra has joined #ruby
codefo has joined #ruby
aphprentice_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
hanmac has quit [Quit: Leaving.]
Narzew has joined #ruby
pontiki has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
Dakuan has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<Technodrome>
jhass: I see
<Technodrome>
i would just love to see what methods this object responds to without all the buit in crap
<pipework>
Sounds like a job for exploring ruby!
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elaptics is now known as elaptics_away
<havenwood>
?pry Technodrome
<ruboto>
Technodrome, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc