adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
Tumac55 has joined #ruby
Tumac55 has left #ruby [#ruby]
lghtstkr has quit [Remote host closed the connection]
lightstalker has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
AndreYuhai has quit [Quit: Leaving]
<LACampbell> is there a quick and dirty ruby gem that just serves files locally? preferably CLI
jenrzzz_ has quit [Ping timeout: 252 seconds]
<LACampbell> just for testing, doesn't need to be fast
jasondockers has joined #ruby
<jasondockers> Is it possible to inject dependencies into rake tasks? I want to test some tasks with rspec and mock out dependencies that call out to github
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
jasondockers has quit [Quit: Connection closed]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
evdubs__ has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
evdubs_ has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz__ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jmcgnh has quit [Ping timeout: 260 seconds]
jmcgnh has joined #ruby
Azure has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
gearnode has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
nertzy has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 252 seconds]
neshpion has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
jenrzzz has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
evdubs_ has joined #ruby
evdubs__ has quit [Ping timeout: 265 seconds]
evdubs__ has joined #ruby
jenrzzz has joined #ruby
evdubs_ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
evdubs_ has joined #ruby
m27frogy has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
evdubs__ has quit [Ping timeout: 252 seconds]
evdubs has joined #ruby
evdubs_ has quit [Ping timeout: 268 seconds]
ChmEarl has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
hkais has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 252 seconds]
`Alison has quit [Quit: ZNC 1.7.4+deb4 - https://znc.in]
`Alison has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz__ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
KataREEEna has joined #ruby
<KataREEEna> Hi
<KataREEEna> I'm trying to flip a number to act as a boolean value
<KataREEEna> like !0 should equal 1 and !1 should equal 0
factormystic has quit [Read error: Connection reset by peer]
neshpion has quit [Quit: neshpion]
<pyra> KataREEEna: try something like this https://stackoverflow.com/a/13538276
jenrzzz has quit [Ping timeout: 265 seconds]
<havenwood> &>> class Integer; def !@; !zero? end end; [!0, !1]
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/aybx)
<havenwood> &>> class Integer; def !@; !zero? end end; [!0, !1]
<rubydoc> # => [false, true] (https://carc.in/#/r/ayby)
thinkpad has quit [Ping timeout: 245 seconds]
<havenwood> KataREEEna: def Integer.!@ = !zero?
<havenwood> KataREEEna: Oh, I just reread what you wrote.
howdoi has quit [Quit: Connection closed for inactivity]
<pyra> what is going on there with !@, I've never seen that before
<havenwood> KataREEEna: def Integer.!@ = zero? ? 1 : 0
<pyra> I love it
thinkpad has joined #ruby
<havenwood> pyra: They're called "unary" methods.
<havenwood> pyra: You can do stuff like !@, ~@, -@, +@
<pyra> very interesting
factormystic has joined #ruby
gix- has quit [Ping timeout: 268 seconds]
<havenwood> &>> class Integer; def !@; zero? ? 1 : 0 end end; [!0, !1]
<rubydoc> # => [1, 0] (https://carc.in/#/r/ayc2)
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
<KataREEEna> so I can't go !0
<KataREEEna> and !0
<KataREEEna> !1
<KataREEEna> ruby doesn't like it
<havenwood> KataREEEna: You can make it work by defining a unary !@ method.
<havenwood> KataREEEna: class Integer; def !@; zero? ? 1 : 0 end end
<KataREEEna> sure
<KataREEEna> I mean ideally I just want Ruby to do it
<KataREEEna> but thanks
<KataREEEna> I think you answered my question
<havenwood> KataREEEna: Ruby is flexible enough to work like you'd like but if you want it to work that way out of the box you'll need to design your own language.
<havenwood> KataREEEna: !anything is `false` except for !nil and !false, which are `true`.
jenrzzz_ has quit [Ping timeout: 252 seconds]
<havenwood> You're free to define it yourself to mean whatever else. It's best to use a refinement if you do, since you'll break everyone else's code in any gems you're using.
jenrzzz_ has joined #ruby
<havenwood> &>> module Kata; refine Integer do; def !@; zero? ? 1 : 0; end end end; using Kata; !0
<rubydoc> # => 1 (https://carc.in/#/r/ayc6)
<havenwood> KataREEEna: That's ^ an example of a refinement of Integer, so you can have this behavior locally without messing up any libraries you'd like to use.
<havenwood> (Or messing up Ruby standard library, which also relies on unary bang working with default behavior.
<havenwood> )
<havenwood> KataREEEna: I guess technically you could just compile Ruby with a patch to make it work like you'd like. A refinement is probably more sensible.
<havenwood> We can help with a patch or forking Ruby if that's really the way you want to go.
<havenwood> I like the refinement solution.
<KataREEEna> nah it's ok
<KataREEEna> I'd rather be standard
<KataREEEna> I'm a complete beginner to Ruby
<havenwood> KataREEEna: Welcome!
<KataREEEna> thanks
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<havenwood> For "fun" a mathy solution: def unzero(number); (1 - number.abs2 + number.abs2 * 2) / (1 + number.abs2 * 2) end
evdubs__ has joined #ruby
<havenwood> unzero 0 #=> 1
<havenwood> unzero 1 => 0
<havenwood> unzero 42 => 0
<havenwood> oops, forgot to square it
jenrzzz has joined #ruby
evdubs_ has quit [Ping timeout: 268 seconds]
<leftylink> what was that one cool definition of signum
<leftylink> oh no I remember
ur5us__ has quit [Ping timeout: 245 seconds]
<leftylink> it doesn't work as well in ruby since you have to be a little more explicit
Technodrome has quit [Ping timeout: 265 seconds]
<leftylink> &>> def signum(x); i={true=>1,false=>0}; i[x > 0] - i[x < 0] end; (-2..2).ma
<rubydoc> stderr: -e:4:in `<main>': undefined method `ma' for -2..2:Range (NoMethodError)... check link for more (https://carc.in/#/r/aycl)
<leftylink> &>> def signum(x); i={true=>1,false=>0}; i[x > 0] - i[x < 0] end; (-2..2).map(method(:signum))
<rubydoc> stderr: -e:4:in `map': wrong number of arguments (given 1, expected 0) (ArgumentError)... check link for more (https://carc.in/#/r/aycm)
<leftylink> my goodness sir
<leftylink> &>> def signum(x); i={true=>1,false=>0}; i[x > 0] - i[x < 0] end; (-2..2).map(&method(:signum))
<rubydoc> # => [-1, -1, 0, 1, 1] (https://carc.in/#/r/aycn)
<leftylink> thank you
ur5us__ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<leftylink> so obviously in c you wouldn't have th e i[] bits
<havenwood> leftylink: def signum(x); [x.negative?, x.zero?, x.positive?].index(true).pred end
<leftylink> hey so that pascal's triangle thing... so surely I am not the first person to have the powers and digits idea, so now I want to konow what it's called... I'll do some searching I guess, I'd assume it'd be called the power method or something
jenrzzz has quit [Ping timeout: 246 seconds]
<leftylink> I guess nobody cares about it because if someone wants a row, they would rather use https://stackoverflow.com/questions/15580291/how-to-efficiently-calculate-a-row-in-pascals-triangle instead
jenrzzz has joined #ruby
ur5us__ has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
<leftylink> http://sprunge.us/43Ym5A huh, so they take about the same time to run... honestly, if you were to tell me that ultimately the two things perform the same operation, I might believe it. but I'd have to think a little harder to ese if that's actually true
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 246 seconds]
Tziltzal has joined #ruby
jenrzzz_ has joined #ruby
teclator has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
evdubs_ has joined #ruby
evdubs__ has quit [Ping timeout: 260 seconds]
MalkbabY has joined #ruby
jenrzzz_ has joined #ruby
MalkbabY_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has quit [Ping timeout: 268 seconds]
Pe9le9 has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
gearnode has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
hkais has quit [Ping timeout: 240 seconds]
jla has joined #ruby
jenrzzz_ has joined #ruby
TomyWork has joined #ruby
evdubs_ has quit [Read error: Connection reset by peer]
evdubs_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
vondruch_ has joined #ruby
hkais has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
jenrzzz_ has quit [Ping timeout: 240 seconds]
jla has quit [Ping timeout: 268 seconds]
KataREEEna has quit [Quit: Connection closed]
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
jenrzzz_ has joined #ruby
bucareli has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
coniptor has quit [Ping timeout: 252 seconds]
jla has joined #ruby
jenrzzz_ has joined #ruby
coniptor has joined #ruby
ByronJohnson has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
ByronJohnson has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jess has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
watzon has quit [Quit: Idle for 30+ days]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
Tziltzal has quit []
harlin has joined #ruby
traffic has quit [Quit: ZNC 1.8.2 - https://znc.in]
AndreYuhai has joined #ruby
traffic has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
thinkpad has joined #ruby
<fercell> Hey, what is the situation with RBS
jenrzzz has quit [Ping timeout: 265 seconds]
<fercell> Can it be used with type checkers as Sorbet?
<fercell> Can't find any up to date info
jenrzzz has joined #ruby
DaRock has joined #ruby
bucareli has quit [Quit: leaving]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
sphex has quit [Ping timeout: 260 seconds]
sphex has joined #ruby
ur5us__ has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
coniptor has quit [Ping timeout: 246 seconds]
coniptor has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
ur5us__ has quit [Ping timeout: 250 seconds]
pyra has quit [Quit: Konversation terminated!]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
whyMe has joined #ruby
<whyMe> hello all - 1stly thanks for being here.
<whyMe> 2ndly i am not sure why i get NameError undefined local variable or method on the case 2 here
<whyMe> if someone could point me what am i doing wrong , I will be happy to continue learing further
<whyMe> i think i am still a noob in ruby though i had solved some problems before
<whyMe> !ping
<whyMe> is my message getting delivered? am i connected ?
* whyMe Rolls a 6 sided dice and gets 5
<whyMe> -_-
kashike has quit [Ping timeout: 250 seconds]
<whyMe> :(
zdv has joined #ruby
<zdv> Hello, I know nothing about Ruby I just would like to execute the following request via bash: "Redmine::Activity::Fetcher.new(User.current).events(nil, nil, :last_by_project => true).to_h" Is that possible or in my ignorance I'm asking something very stupid ?
coniptor has quit [Ping timeout: 246 seconds]
<whyMe> zdv i think you should be using $ ruby -e "your statement"
<whyMe> but i am not fully sure
jla has quit [Ping timeout: 268 seconds]
<whyMe> also not sure how ruby or bash would know where to find Redmine and Activity classes
teclator has quit [Ping timeout: 260 seconds]
<adam12> LACampbell: Before ruby 3.0; ruby -run -e httpd
<zdv> whyMe I'm afraid you are right, it doesn't seem to find the class: "-e:1:in `<main>': uninitialized constant Redmine (NameError)"
coniptor has joined #ruby
<jhass> zdv: should be something like bundle exec rails runner '<code>'
<jhass> add a p or puts to get the output
<whyMe> thanks jhass
<jhass> (add in front I should say)
<whyMe> thanks zdv
<jhass> whyMe: you se IRC requires some patience, people don't monitor it constantly :)
<jhass> whyMe: can you add a pastebin with the full unaltered error output you're getting? :)
<whyMe> oh..
<adam12> LACampbell: For 3.0+, webrick isn’t a standard gem so you’d have to install it first.
<whyMe> let me get the error and input
teclator has joined #ruby
<whyMe> jhass - here you go - https://pastebin.ubuntu.com/p/DPj8TdHbPv/
<adam12> Line number are weird.
<adam12> whyMe: Is the first line of your file the shebang? Or does it actually have ### CODE at the top
<whyMe> it is shebang
<whyMe> i put that line to differentiate b/w input and output and stderr below
<jhass> whyMe: so "def" is defining a new method. Each method gets its own namespace for local variables. They cannout access local variables defined anywhere else. However they share CONSTANTS, @instance_variables and $globals with the context they're defined in
harlin has quit [Read error: Connection reset by peer]
<whyMe> but av, bv, anv and bnv are global variables right?
harlin has joined #ruby
<adam12> whyMe: They’re local variables.
<jhass> no, all variables starting with a lowercase letter are local variables. $globals start with a $, @instance_variables start with @ and CONSTANTS start with an uppercase letter
coniptor has quit [Ping timeout: 240 seconds]
<whyMe> ooh... ok.. then let me go refresh on the variables again ...
<whyMe> thanks jhass
coniptor has joined #ruby
<zdv> jhass whyMe Thank you! now the command seems to be executed but it just returns an empty line, I think I would have to investigate more from redmine side
<jhass> zdv: do ... 'p <code>' :)
con3 has quit [Excess Flood]
con3 has joined #ruby
<zdv> jhass "wrong element type Issue at 0 (expected array) (TypeError)"
moldorcoder7 has quit [Quit: %bye mirc%]
<jhass> zdv: sorry that seems to be a redmine specific error and I know nothing about it at those levels :)
<zdv> jhass Yes, I guess too, thank you very much for your help!
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jmcgnh has quit [Ping timeout: 245 seconds]
sagax has quit [Ping timeout: 245 seconds]
con3 has quit [Excess Flood]
d10n-work has quit [Ping timeout: 245 seconds]
con3 has joined #ruby
d10n-work has joined #ruby
jmcgnh has joined #ruby
darthThorik has quit [Ping timeout: 245 seconds]
darthThorik has joined #ruby
coniptor has quit [Ping timeout: 265 seconds]
coniptor has joined #ruby
moldorcoder7 has joined #ruby
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #ruby
harlin has quit [*.net *.split]
m27frogy has quit [*.net *.split]
thinkpad has quit [*.net *.split]
jess has quit [*.net *.split]
elcuervo has quit [*.net *.split]
lightstalker has quit [*.net *.split]
wallacer has quit [*.net *.split]
nickb has quit [*.net *.split]
noodle has quit [*.net *.split]
sunya7a has quit [*.net *.split]
kloeri has quit [*.net *.split]
x0n has quit [*.net *.split]
tinco has quit [*.net *.split]
levifig has quit [*.net *.split]
volix has quit [*.net *.split]
harlin has joined #ruby
m27frogy has joined #ruby
thinkpad has joined #ruby
lightstalker has joined #ruby
jess has joined #ruby
elcuervo has joined #ruby
x0n has joined #ruby
sunya7a has joined #ruby
nickb has joined #ruby
kloeri has joined #ruby
tinco has joined #ruby
levifig has joined #ruby
volix has joined #ruby
shortdudey123 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
noodle has joined #ruby
wallacer has joined #ruby
meimeix has quit [Ping timeout: 240 seconds]
shortdudey123 has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
meimeix has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
moldorcoder7 has quit [Quit: %bye mirc%]
jenrzzz has joined #ruby
jetchisel has joined #ruby
jess has quit [Quit: Reconnecting]
jess has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
thinkpad has quit [Ping timeout: 245 seconds]
moldorcoder7 has joined #ruby
linoge has joined #ruby
thinkpad has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
NL3limin4t0r_afk is now known as NL3limin4t0r
thinkpad has joined #ruby
thinkpad has quit [Read error: Connection reset by peer]
lockweel has joined #ruby
thinkpad has joined #ruby
zdv has quit [Quit: Connection closed]
stonks54 has joined #ruby
stonks54 has quit [Client Quit]
harlin has quit [Quit: Leaving]
jenrzzz has joined #ruby
howdoi has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
shokohsc68 has quit [Quit: The Lounge - https://thelounge.chat]
lucasb has joined #ruby
lucasb has quit [Client Quit]
shokohsc68 has joined #ruby
dzwdz has quit [Ping timeout: 240 seconds]
lucasb has joined #ruby
dzwdz has joined #ruby
lucasb has quit [Client Quit]
bougyman has quit [Ping timeout: 260 seconds]
shokohsc68 has quit [Quit: The Lounge - https://thelounge.chat]
bougyman has joined #ruby
shokohsc68 has joined #ruby
MalkbabY has joined #ruby
MalkbabY_ has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 3.1]
dviola has joined #ruby
sylario has joined #ruby
AndreYuhai has quit [Quit: Lost terminal]
shokohsc68 has quit [Quit: The Lounge - https://thelounge.chat]
ChmEarl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Iarfen has joined #ruby
neshpion has joined #ruby
Rudd0 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
shokohsc68 has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
moldorcoder7 has joined #ruby
naftilos76 has joined #ruby
jenrzzz has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
iNs_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
coniptor has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
TomyWork has quit [Remote host closed the connection]
coniptor has joined #ruby
jenrzzz has joined #ruby
naftilos76 has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
lucasb has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
NL3limin4t0r is now known as NL3limin4t0r_afk
jla has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
adam124 has joined #ruby
FetidToot6 has joined #ruby
jenrzzz__ has joined #ruby
rhe2 has joined #ruby
Kilobyte22 has joined #ruby
KramerC_ has joined #ruby
LenPayne_ has joined #ruby
napcae has joined #ruby
booboy_ has joined #ruby
phenom_ has joined #ruby
daemonwrangler_ has joined #ruby
rann_ has joined #ruby
hahuang65_ has joined #ruby
LtHummus_ has joined #ruby
nertzy_ has joined #ruby
camilasan__ has joined #ruby
raddazong has joined #ruby
diego2 has joined #ruby
nertzy has quit [Ping timeout: 240 seconds]
hahuang65_ has quit [Max SendQ exceeded]
hahuang65_ has joined #ruby
meimeix has quit [*.net *.split]
dviola has quit [*.net *.split]
jenrzzz_ has quit [*.net *.split]
hkais has quit [*.net *.split]
rhe has quit [*.net *.split]
ua_ has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
LtHummus has quit [*.net *.split]
adam12 has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
apoc has quit [*.net *.split]
phenom has quit [*.net *.split]
napcae- has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
LenPayne has quit [*.net *.split]
booboy has quit [*.net *.split]
madhatter has quit [*.net *.split]
meimeix2 has joined #ruby
rann has quit [*.net *.split]
KramerC has quit [*.net *.split]
camilasan_ has quit [*.net *.split]
FetidToot has quit [*.net *.split]
rhe2 is now known as rhe
adam124 is now known as adam12
FetidToot6 is now known as FetidToot
KramerC_ is now known as KramerC
rann_ is now known as rann
diego2 has left #ruby ["WeeChat 3.1"]
dviola has joined #ruby
Emmanuel_Chanel has joined #ruby
ua_ has joined #ruby
apoc has joined #ruby
cow[moo] has quit [Read error: Connection reset by peer]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
jenrzzz__ has quit [Ping timeout: 246 seconds]
FastJack has quit [Ping timeout: 248 seconds]
BSaboia has quit [Ping timeout: 240 seconds]
hahuang65_ is now known as hahuang65
jenrzzz_ has joined #ruby
BSaboia has joined #ruby
gix has joined #ruby
FastJack has joined #ruby
zapata has quit [Ping timeout: 250 seconds]
elcuervo has quit [Ping timeout: 240 seconds]
elcuervo has joined #ruby
zapata has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
whyMe has quit [Ping timeout: 260 seconds]
whyMe has joined #ruby
ShekharReddy has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
jenrzzz_ has joined #ruby
shtirlic has joined #ruby
explorier has joined #ruby
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
robotbee has joined #ruby
explorier has quit [Ping timeout: 252 seconds]
hkais has joined #ruby
cd has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jla has quit [Ping timeout: 265 seconds]
ur5us__ has joined #ruby
jenrzzz_ has joined #ruby
gearnode has quit [Ping timeout: 260 seconds]
gearnode has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
explorier has joined #ruby
fowl has quit [Ping timeout: 260 seconds]
DerekNonGeneric has quit [Ping timeout: 260 seconds]
d0liver has quit [Read error: Connection reset by peer]
grvgr has quit [Read error: Connection reset by peer]
ShekharReddy has quit [Read error: Connection reset by peer]
nickb has quit [Read error: Connection reset by peer]
jerme_ has quit [Read error: Connection reset by peer]
jimcroft has quit [Read error: Connection reset by peer]
ReinH has quit [Read error: Connection reset by peer]
kwilczynski has quit [Ping timeout: 260 seconds]
jerme_ has joined #ruby
DerekNonGeneric has joined #ruby
kwilczynski has joined #ruby
grvgr has joined #ruby
d0liver has joined #ruby
ReinH has joined #ruby
nickb has joined #ruby
jimcroft has joined #ruby
fowl has joined #ruby
ShekharReddy has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
rwb has joined #ruby
jenrzzz_ has joined #ruby
ur5us__ has quit [Ping timeout: 245 seconds]
gearnode has quit [Ping timeout: 250 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jess has quit []
jess has joined #ruby
teclator has quit [Remote host closed the connection]
robotbee has quit [Ping timeout: 252 seconds]
AndreYuhai has joined #ruby
jenrzzz_ has joined #ruby
<AndreYuhai> Hey there, this is kind of a duplicate from the afternoon I think, because then I had to quit
<AndreYuhai> I would like to ask it here again.
<AndreYuhai> I've got this
<AndreYuhai> A DB table with order_id foreign key however it doesn't have null constraint
<AndreYuhai> However, on Heroku I you can see the log that I get a null constraint error
<AndreYuhai> I don't know what causes that, on my local machine I don't have that error somehow and I don't know why that happens on heroku
explorie1 has joined #ruby
explorier has quit [Ping timeout: 260 seconds]
<WA9ACE> sounds like you might want #RubyOnRails
lockweel has quit [Quit: Leaving]
explorie1 has quit [Ping timeout: 265 seconds]
<adam12> AndreYuhai: Connect to pg console on Heroku and get the actual schema for the table. Then compare it to your local table.
Keltia has joined #ruby
Keltia has quit [Changing host]
Keltia has joined #ruby
<AndreYuhai> WA9ACE, sorry for asking it here. I thought I would have a better chance here. :D
<AndreYuhai> adam12, Alright trying it now
<AndreYuhai> Oh yea, on Heroku the order_id column somehow has not null
FastJack has quit [Ping timeout: 240 seconds]
<weaksauce> AndreYuhai how does heroku build the db instance?
<weaksauce> do they run migrations or use schema.rb/sql
FastJack has joined #ruby
<AndreYuhai> They don't run migrations AFAIK, I do it on my own, though I could use a Procfile
naftilos76 has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
<weaksauce> i see
ShekharReddy has quit [Quit: Connection closed for inactivity]
deimos_ has quit [Remote host closed the connection]
ur5us__ has joined #ruby
Pe9le9 has quit [Remote host closed the connection]
cow[moo] has joined #ruby
jenrzzz_ has joined #ruby
reyfi9e has quit [Remote host closed the connection]
reyfi9e has joined #ruby
pyra has joined #ruby
evdubs_ is now known as evdubs
jenrzzz_ has quit [Ping timeout: 265 seconds]
deimos_ has joined #ruby
zapata has quit [Ping timeout: 258 seconds]
zapata has joined #ruby
DaRock has quit [Ping timeout: 240 seconds]
DaRock has joined #ruby
cliluw has joined #ruby
jenrzzz_ has joined #ruby
<AndreYuhai> By the way that was because of the migrations.
<AndreYuhai> The heroku was using the schema but then migrations were overwriting it
<AndreYuhai> So I had to create another migration to remove the constraint
jenrzzz_ has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Rudd0 has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Ping timeout: 252 seconds]
hkais has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
postmodern has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
evdubs_ has joined #ruby
DaRock_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
evdubs__ has joined #ruby
DaRock has quit [Read error: Connection reset by peer]
gearnode has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
evdubs_ has quit [Ping timeout: 268 seconds]
_gilmour has joined #ruby
evdubs_ has joined #ruby
jenrzzz_ has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
evdubs__ has quit [Ping timeout: 240 seconds]
_gilmour has quit [Remote host closed the connection]
cuerbot has joined #ruby
rogergilmour has joined #ruby
elcuervo has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
rogergilmour has quit [Remote host closed the connection]
rogergilmour has joined #ruby
linoge has quit [Remote host closed the connection]
gearnode has quit [Ping timeout: 250 seconds]
sylario has quit [Quit: Connection closed for inactivity]
jenrzzz_ has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
MalkbabY has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
MalkbabY_ has quit [Ping timeout: 252 seconds]
robotbee has joined #ruby
evdubs__ has joined #ruby
evdubs_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
BSaboia has joined #ruby
robotbee has joined #ruby
robotbee has quit [Changing host]
jenrzzz_ has quit [Ping timeout: 265 seconds]