marxarelli|afk has quit [Read error: No route to host]
davee_ has quit [Quit: Leaving]
AndBobsY_ has joined #ruby
davezd has joined #ruby
dgarstang has joined #ruby
duderonomy has joined #ruby
AndBobsY_ has quit [Client Quit]
dcluna has quit [Ping timeout: 245 seconds]
dgarstang has quit [Ping timeout: 276 seconds]
harai has joined #ruby
dcluna has joined #ruby
irondocwatson has joined #ruby
irondocwatson has quit [Ping timeout: 258 seconds]
saneax-_-|AFK is now known as saneax
<zacts>
*mew*
<adam12>
o/
duckpupp1 has joined #ruby
davezd is now known as davezd_
dcluna has quit [Ping timeout: 255 seconds]
centrx has quit [Remote host closed the connection]
segy has joined #ruby
sarbs has quit [Read error: Connection reset by peer]
centrx has joined #ruby
enterprisey has quit [Remote host closed the connection]
segy has quit [Client Quit]
<zacts>
Ƭ̵̬̊
<zacts>
^ the artist formerly known as prince btw
<zacts>
anyway, back to #ruby
<zacts>
:-P
dcluna has joined #ruby
jackjackdripper has joined #ruby
kht has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Client Quit]
segy has joined #ruby
jackjackdripper has joined #ruby
enterprisey has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarbs has joined #ruby
dcluna has quit [Ping timeout: 245 seconds]
segy has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 260 seconds]
sebastiansier has quit [Remote host closed the connection]
jphase has joined #ruby
segy has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
dezren39 has quit [Quit: Leaving]
cyberarm_ has left #ruby ["Kidnapped by swan."]
dezren39 has joined #ruby
amclain has quit [Quit: Leaving]
pilne has quit [Quit: Quitting!]
gix has quit [Ping timeout: 240 seconds]
optiz0r has joined #ruby
ketket has joined #ruby
dez has joined #ruby
gix has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dez has quit [Remote host closed the connection]
ketket has quit [Remote host closed the connection]
ruby-lang495 has joined #ruby
dezren39 has quit [Quit: Leaving]
<ruby-lang495>
guys i am about to learn rails
dezren39 has joined #ruby
<ruby-lang495>
would you guys recommend me to learn both html & css along with rails together?
<ruby-lang495>
?
BB has joined #ruby
Guest2797 is now known as ged
hobodave has joined #ruby
ged is now known as Guest61862
xall has joined #ruby
dezren39 has quit [Remote host closed the connection]
dezren39 has joined #ruby
NeverTired has joined #ruby
ketket has joined #ruby
dez has joined #ruby
ketket has quit [Remote host closed the connection]
dezren39 has quit [Remote host closed the connection]
dez has quit [K-Lined]
csk has quit [Quit: ZZZzzz…]
BB has quit [Remote host closed the connection]
jshjsh has joined #ruby
JoshS has quit [Ping timeout: 276 seconds]
harai has quit [Ping timeout: 256 seconds]
<adam12>
ruby-lang495: That's a lot of stuff to learn, as you're learning SQL too.
duckpupp1 has joined #ruby
gusrub has joined #ruby
<adam12>
ruby-lang495: And without HTML/CSS knowledge, Rails will be like 75% useless to you, unless you're building an API which my guess is you're not.
gusrub has quit [Client Quit]
frewsxcv_ is now known as frewsxcv_old
<adam12>
ruby-lang495: I say you learn HTML, then HTML+Sinatra, then HTML+CSS+Sinatra, then Rails... or just add a database layer to Sinatra.
ruby-lang495 has quit [Ping timeout: 260 seconds]
enyo has joined #ruby
<adam12>
*sigh*
Technodrome has joined #ruby
vali_ has joined #ruby
duckpupp1 has quit [Ping timeout: 245 seconds]
TheWhip has joined #ruby
duckpupp1 has joined #ruby
enyo has quit [Ping timeout: 256 seconds]
ruby-lang811 has joined #ruby
duckpupp1 has quit [Ping timeout: 240 seconds]
Guest40_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
testingrag has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
nanoz has joined #ruby
centrx has quit []
Coldblackice has joined #ruby
dcluna has joined #ruby
duckpupp1 has joined #ruby
Channel6 has quit [Quit: Leaving]
aidalgol has joined #ruby
duckpupp1 has quit [Ping timeout: 248 seconds]
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby
_djbkd has joined #ruby
redhedded1 has quit [Quit: Leaving]
miggr has joined #ruby
duckpupp1 has joined #ruby
<miggr>
i'm so confused about what i can do with ruby
<miggr>
i am a novice and i don't know what i can use it in besides ruby on rails
<adam12>
You can do anything you want - why would you think otherwise?
<miggr>
i don't know
<adam12>
At one point in time there was a guy flying Drone's with Ruby
<adam12>
And some people make games
tmtwd has joined #ruby
<adam12>
I made a tiny script today to remove duplicate lines from a 3000 line file ...
armyriad has quit [Read error: Connection reset by peer]
<adam12>
miggr: What did you want to do with Ruby?
<miggr>
did you use regex?
arescorpio has quit [Quit: Leaving.]
djbkd has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
<miggr>
or did you use a sorting algorithm and then check if the previous line is identical to the current?
<adam12>
miggr: I used a Set, walking each line to check if the line already existed in the set. I can show you if you want
<miggr>
interesting
<adam12>
See - not even that complicated, mr fancy pants
<miggr>
lol
<miggr>
i'm not a good programmer
<miggr>
i'm very bad at it
<ruby-lang811>
is it wise to learn html && css together?
<miggr>
yes
<miggr>
if you just learn html you will be sort of confused
<adam12>
ruby-lang811: Yes.
<ruby-lang811>
i am using agile web development
<adam12>
miggr: It's like everything else - experience makes you better
<ruby-lang811>
with rais 5
<miggr>
ruby-lang811: what you need to learn from css very well is: layout and box model
<adam12>
miggr: Chef's don't start out being fantastic cooks. They burn a bunch of food first.
<ruby-lang811>
the book doesen't teach you step by step
TheWhip has quit [Ping timeout: 248 seconds]
<miggr>
from html you need to learn different tags and why they're used
<ruby-lang811>
unlike like ruby they teach you step by step
<ruby-lang811>
that's why i can understand ruby
<ruby-lang811>
haha
tsunamie has quit [Ping timeout: 240 seconds]
<miggr>
basically you have to memorize all the common html tags and always ask yourself what the content in that area of the site describes
<miggr>
html you have to describe
<miggr>
css you have to describe too, but you describe the appearance
irondocwatson has quit [Ping timeout: 264 seconds]
xen0fon has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Mortomes|Train has joined #ruby
Derperperd has joined #ruby
gigetoo has joined #ruby
nofxxx has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
harai has quit [Ping timeout: 258 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
Imiteme has quit [Quit: Page closed]
vondruch has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<zacts>
hi rubyists
gigetoo has quit [Ping timeout: 255 seconds]
Guest72712 is now known as ged
LoneHermit has joined #ruby
Imiteme_ has quit [Ping timeout: 260 seconds]
ged is now known as Guest81788
gigetoo has joined #ruby
johnny56_ has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
dgarstang has joined #ruby
last_staff has joined #ruby
Rodya_ has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 240 seconds]
<dionysus69>
any particular reason rvm wrapper may not be generated for some gems but is generated for some ?
<dionysus69>
oh btw I had this problem for 2 days and just figured it out
aryaching has joined #ruby
<dionysus69>
gems installed from Gemfile with bundler don't get wrappers created. only if u do "gem install someGem".
<dionysus69>
sounds like a bug
dgarstang has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
blackmes1 has joined #ruby
enyo has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
aryaching_ has quit [Ping timeout: 276 seconds]
johnny56_ has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
Burgestrand has joined #ruby
gigetoo has joined #ruby
mark_66 has joined #ruby
xberg has joined #ruby
_geoff_ has quit [Read error: Connection reset by peer]
_geoff has joined #ruby
hogetaro has quit [Read error: Connection reset by peer]
nchambers has quit [Ping timeout: 240 seconds]
shortdudey123 has quit [Ping timeout: 240 seconds]
hogetaro has joined #ruby
russt has quit [Ping timeout: 240 seconds]
TheWhip has quit [Remote host closed the connection]
vali_ has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
SuperLag has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
russt has joined #ruby
nchambers has joined #ruby
Mortomes|Train has quit [Ping timeout: 260 seconds]
shortdudey123 has joined #ruby
Sammichmaker has joined #ruby
aryaching_ has joined #ruby
xberg has quit []
aryaching has quit [Ping timeout: 240 seconds]
<a-109-107>
is there a general cause for an application to report "can't load library /usr/lib/.../.../lib.so (file not found)" but when I go to that place, I clearly see the file being there?
<apeiros>
you might not have read rights
<apeiros>
or the file might be corrupt
<apeiros>
or any number of reasons
<a-109-107>
apeiros excluding corruption, I assume that I have read pemissions because I didn't place the lib myself and I see that I have 'r' permissions in 'ls -lah'
<apeiros>
almost certainly better than your custom generator
gigetoo has quit [Ping timeout: 245 seconds]
<testuser2>
ok!
matp has quit [Remote host closed the connection]
gigetoo has joined #ruby
matp has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
mikecmpbll has joined #ruby
faces has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
hightower2 has joined #ruby
flying has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
raldu has quit [Ping timeout: 240 seconds]
faces has joined #ruby
flying has quit [Remote host closed the connection]
z4j5 has quit [Ping timeout: 256 seconds]
jsrn_ has joined #ruby
raldu has joined #ruby
TheWhip has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
blackwind_123 has quit [Ping timeout: 252 seconds]
flying has joined #ruby
gigetoo has joined #ruby
harai has joined #ruby
hahuang61 has joined #ruby
noregret_ has quit [Quit: leaving]
blackmes1 has quit [Ping timeout: 252 seconds]
g_maeda has joined #ruby
xen0fon has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
g_maeda has quit [Client Quit]
heyguys has joined #ruby
<heyguys>
hey guys umm can i ask a ruby question
heyguys has joined #ruby
heyguys has quit [Changing host]
pjaspers has quit [Ping timeout: 240 seconds]
tekacs has quit [Ping timeout: 276 seconds]
<manveru>
no?
irondocwatson has joined #ruby
<manveru>
it's not like this channel is called #ruby or anything
leah2 has quit [Ping timeout: 240 seconds]
<heyguys>
:P
<manveru>
but nobody really knows anything about minerals
pjaspers has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
leah2 has joined #ruby
tekacs has joined #ruby
<heyguys>
when i try to open a .rb file it wont open like the interpreter opens for a split second and closes just as fast
jameser has joined #ruby
hutch34_ has joined #ruby
<heyguys>
ruby interpreter cui 2.3.3 p222 x64mingw32
jameser has quit [Client Quit]
gigetoo has quit [Read error: Connection reset by peer]
agit0 has quit [Ping timeout: 258 seconds]
daveyboi[m] has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
daveyboi[m] has joined #ruby
frozengeek__ has joined #ruby
<Burgestrand>
manveru you joke, but I actually had a gemstone enthusiast at a fairly recent meetup
<manveru>
heyguys: you need to do it from the comandline
<manveru>
i think on windows also .rbw files open a terminal that doesn't close immediately
<Burgestrand>
manveru a very confusing first two hours for this person until we talked and realized they were probably in the wrong place (but were very welcome to stick around anyway!)
hutch34_ has quit [Ping timeout: 252 seconds]
<manveru>
:D
<manveru>
two hours man
harai has quit [Ping timeout: 245 seconds]
jameser has joined #ruby
Guest81788 is now known as ged
Kug3lis is now known as Kug3lis_off
ged is now known as Guest49520
Guest26208 has quit [Ping timeout: 276 seconds]
<Burgestrand>
haha, yes :)
<manveru>
oh well, it's like my boss who gets confused as hell when i start talking about gem names
rprimus has joined #ruby
majoh has quit [Ping timeout: 258 seconds]
<Burgestrand>
in their defense we did start off with sandwiches and random mingling, but nobody thought to question their profession of "I'm a miner" until much later
<Burgestrand>
manveru haha
ruby-lang601 has joined #ruby
rprimus is now known as Guest22916
tomphp has joined #ruby
chee has quit [Ping timeout: 248 seconds]
majoh has joined #ruby
ruby-lang601 has quit [Client Quit]
lucas has quit [Ping timeout: 264 seconds]
lucas has joined #ruby
Python has joined #ruby
dhollinger has quit [Ping timeout: 252 seconds]
chee has joined #ruby
dhollinger has joined #ruby
ziprar has quit [Ping timeout: 240 seconds]
SesMan has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
Guest93002 has joined #ruby
<Python>
p Net::Ping::TCP.new('91.121.108.50', 'http').ping
<Python>
p Net::Ping::TCP.new('91.121.108.50', 'http').ping? = true
Fernando-Basso has joined #ruby
Shashikant86 has joined #ruby
Python has quit [Quit: Page closed]
<heyguys>
manveru: ruby interpreter doesnt work on windows? i gotta do stuff through cmd?
<manveru>
heyguys: cmd is part of windows
Xbox_Live_Gamer has joined #ruby
patarr has joined #ruby
<manveru>
and yes, until you write a graphical user interface, your program will only know how to output to a terminal
<Xbox_Live_Gamer>
it will
<Xbox_Live_Gamer>
im so confused
<Xbox_Live_Gamer>
are we talking about .rbw
mburns has quit [Read error: Connection reset by peer]
<Xbox_Live_Gamer>
cause CLI
<manveru>
.rbw is a special file extension used for ruby on windows so you don't have to open cmd, cd to your program, and run it
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* dminuoso
pokes adaedra
<apeiros>
testuser2: (num*100).round
<dminuoso>
o_o
<apeiros>
one is 1500, the other is 150000
jaruga____ has joined #ruby
<apeiros>
it's not really "deleting a dot".
<dminuoso>
apeiros: Who knows. Maybe its just a local issue.
<testuser2>
:-)
<dminuoso>
locale
<dminuoso>
Speaking of locale
<apeiros>
unless you misrepresented your problem
<dminuoso>
apeiros: oracle locale is the most annoying ever.
xen0fon has quit [Quit: xen0fon]
<testuser2>
apeiros: i want to delete . . E.g. if its "Ten" then I want 1000
<dminuoso>
Horrid documentation, horrid syntax..
<apeiros>
and meant to say: how can I delete a . in a string? "1500.00" => "150000"
<testuser2>
10.00 USD = 1000 UDS
<dminuoso>
testuser2: Are you asking how to multiply by a hundred?
<testuser2>
NO.
<dminuoso>
...
<dminuoso>
?xz
<ruby[bot]>
dminuoso: I don't know anything about xz
<dminuoso>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<testuser2>
No.
<apeiros>
testuser2: yeah, from ten to thousand is multiply by 100
<apeiros>
and you might want to take a look at the money gem
Kug3lis has joined #ruby
* apeiros
hopes it has good documentation about best practices too…
amarsharma has joined #ruby
<testuser2>
The amount of the transaction, expressed in the smallest currency unit. The amount must not
<testuser2>
contain any decimal points, thousands separators or currency symbols. For example, $12.50 is
<testuser2>
expressed as 1250.
gigetoo has quit [Read error: Connection reset by peer]
<testuser2>
how to do that?
gigetoo has joined #ruby
<apeiros>
testuser2: how much repeating of the same info do you need?
<testuser2>
ok. i will just multiply.
<testuser2>
:-(
<apeiros>
why ":-("?
<testuser2>
12.50 * 100 = 1250.0 . Expected is 1250
<apeiros>
testuser2: yeah, well, if you don't read what I write, then I can't help
wezaui has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 248 seconds]
koneko has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Mortomes|Work has joined #ruby
gigetoo has joined #ruby
xen0fon has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 245 seconds]
_fg has joined #ruby
Guest61094 is now known as ged
ged is now known as Guest13571
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
z4j5 has joined #ruby
duckpupp1 has joined #ruby
T-Co_ has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
duckpupp1 has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
lxsameer has joined #ruby
Technodrome has joined #ruby
rakesh_verma has joined #ruby
<T-Co_>
Hello! I have 0 experience with ruby and gems. I'm trying to install a logstash plugin and the plugin manager apparently uses gems in the background. For some reason I get An error occurred while installing rest-client (2.0.0), and Bundler cannot continue. Make sure that `gem install rest-client -v '2.0.0'` succeeds before bundling.
StoneCypher has joined #ruby
<T-Co_>
Even though I installed the rest client I still get the same error message...
chouhoulis has quit [Remote host closed the connection]
tk__ has quit [Quit: ばいばい]
TheWhip has quit [Remote host closed the connection]
kht has joined #ruby
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Snickers has joined #ruby
z4j5 has quit [Ping timeout: 240 seconds]
Kug3lis has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 245 seconds]
leonthemisfit_ has left #ruby ["Leaving"]
mr_foto has quit []
gigetoo has joined #ruby
jud^ has joined #ruby
jhack has joined #ruby
maddmaxx has joined #ruby
conta has quit [Ping timeout: 255 seconds]
psychicist__ has quit [Ping timeout: 255 seconds]
jud has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
heftig_ is now known as heftig
chouhoulis has joined #ruby
psychicist__ has joined #ruby
jhack has quit [Ping timeout: 240 seconds]
walterheck has quit [Ping timeout: 276 seconds]
futilegames has left #ruby [#ruby]
leonthemisfit_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
_fg has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
timmow has quit [*.net *.split]
LoneHermit has joined #ruby
jhack has joined #ruby
timmow has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
dgarstang has joined #ruby
Snickers has quit [Quit: Snickers]
gigetoo has joined #ruby
saslam_ has quit [Read error: Connection reset by peer]
saslam_ has joined #ruby
LoneHermit has quit [Ping timeout: 245 seconds]
jhack has quit [Ping timeout: 255 seconds]
dgarstang has quit [Ping timeout: 255 seconds]
chussenot has joined #ruby
irondocwatson has quit [Quit: WeeChat 1.6]
_fg has joined #ruby
z4j5 has joined #ruby
flashbang has quit [Remote host closed the connection]
flashbang has joined #ruby
chussenot has quit [Client Quit]
aganov has quit [Remote host closed the connection]
gestrella has joined #ruby
saslam_ has quit [Read error: Connection reset by peer]
saslam_ has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
saslam_ has quit [Read error: Connection reset by peer]
saslam_ has joined #ruby
valeth1 has joined #ruby
georgie has quit [Ping timeout: 256 seconds]
anjen has joined #ruby
gigetoo has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 240 seconds]
valeth has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
anjen has quit [Client Quit]
mark_66 has quit [Remote host closed the connection]
mwlang has joined #ruby
Xentil has joined #ruby
jhack has joined #ruby
<mwlang>
I’m running rspec for the carrierwave gem locally and it’s hard-crashing after a bit. The trouble is, I can’t discern *where* in carrierwave’s specs it’s happening from this traceback: https://gist.github.com/mwlang/82ae2187769eef8b80725fe1ca5ecea9 Every line reported is entirely inside the rspec library with no lines from the project/spec noted. Any ideas how to debug further?
StoneCypher has joined #ruby
<dminuoso>
mwlang: The following is happening
<dminuoso>
mwlang: Some exception is being thrown by a spec, rspec catches it and tries to present the stack trace. While doing it, rspec crashes due to an invalid ASCII codepoint.
jhack_ has joined #ruby
gigetoo has joined #ruby
<dminuoso>
mwlang: One less than elegant way to debug this, is to open up the raw gem (/Users/mwlang/.rvm/gems/ruby-2.3.1/gems/rspec-core-3.4.4/lib/rspec/core/source.rb) and drop in a binding.pry - and inspect source
charliesome has joined #ruby
<dminuoso>
To see what exactly it's being fed to get an idea.
<mwlang>
yeah, I’m monkey patching that now to force encoding without erroring.
gigetoo has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
<mwlang>
Ah. that makes sense what I’m seeing.
hobodave has joined #ruby
jhack has quit [Ping timeout: 248 seconds]
<dminuoso>
mwlang: This is definitely an rspec bug the way I see it.
jhack_ is now known as jhack
<dminuoso>
mwlang: You can't force encode, as the codepoint is not valid in US-ASCII.
<dminuoso>
mwlang: It's probably a byte between 126-255
cdg has quit [Ping timeout: 255 seconds]
patarr has joined #ruby
<mwlang>
dminuoso: I was unclear…I just meant I’d do this: source.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
<mwlang>
which at least got me past the error and to see what the offending test case is.
hahuang61 has quit [Ping timeout: 276 seconds]
prestorium has joined #ruby
<dminuoso>
mwlang: Ah. I'd be very curious as to what the cause it, if you don't mind sharing your findings when you figure it out.
<dminuoso>
mwlang: Do you have a # encoding: us-ascii at the top of your spec file?
lubekpl has joined #ruby
<mwlang>
dminuoso: so, this is spec/orm/activerecord_spec.rb and lines 509, 514, 1230, 1235. and no, there’s no encoding us-ascii on the file.
<dminuoso>
mmm
gigetoo has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
lubekpl has quit [Client Quit]
gigetoo has joined #ruby
<mwlang>
dminuoso: are you involved with the carrierwave project, or just very curious?
<dminuoso>
Yes.
chouhoulis has quit [Remote host closed the connection]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* mwlang
dumb “OR” conditional question. :-p
<dminuoso>
mwlang: The thing that surprises me, is that Ruby by default assumes UTF-8 encoding since 2.0 I believe.
<dminuoso>
And last I checked 2.3.1 was newer than 2.0
<dminuoso>
But my math could be wrong
<mwlang>
LOL
Kug3lis_off is now known as Kug3lis
<mwlang>
let me try saving the file with my editor to see if that changes things.
nowhere_man has joined #ruby
<dminuoso>
mwlang: No it wont, it has nothing to do with it
<dminuoso>
mwlang: There's an obvious work around (adding a magic comment to set the encoding to utf-8) - but that shouldn't be necessary
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
vali_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
saslam_ has quit [Read error: Connection reset by peer]
<mwlang>
dminuoso: ah, well right you are. My thought was new UTF-8 byte sequence would be written by the editor.
saslam_ has joined #ruby
<mwlang>
hold the phone….let me see what Ruby thinks my default encoding should be.
<dminuoso>
mwlang: The editor just writes codepoints. There's no way to tell for an outside program what encoding your file is written in.
govg has joined #ruby
<dminuoso>
Which is why you either follow convention, or you somehow add metadata so that programs know (magic comments)
<dminuoso>
It's a rather poor reality.
Shashikant86 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gagrio has quit [Quit: Leaving...]
<dminuoso>
mwlang: Though some research indicates that this is common with rspec. Just drop a magic comment at the top, specifying the encoding for your file.
<dminuoso>
And the spec is fixed.
<mwlang>
default external encoding is US-ASCII
<dminuoso>
mwlang: That does not seem right.
<dminuoso>
That would explain the issue you are experiencing.
saslam_ has quit [Read error: Connection reset by peer]
<dminuoso>
Is that Ruby-wide for you?
jrafanie_ has quit [Ping timeout: 240 seconds]
zipace has joined #ruby
<mwlang>
I think it is normally US-ASCII
saslam_ has joined #ruby
<mwlang>
I’m checking a few other ruby versions and in other projects and it seems consistent.
<dminuoso>
mwlang: No, it should be UTF-8
<dminuoso>
It's been set as UTF-8 by default since 2.0
<mwlang>
wouldn’t rspec files be treated as “external” since it’s really DSL and not “just Ruby”
<dminuoso>
It's Ruby DSL.
<dminuoso>
It's just pure Ruby code from Ruby's point of view.
pandaant has joined #ruby
<dminuoso>
So yeah, that's the issue you have.
<mwlang>
dminuoso: ok, not that, then…
<dminuoso>
Well, no it *is* the issue.
<dminuoso>
mwlang: The external encoding is set to US-ASCII wrongfully somehow, which is why the file is being interpreted as an US-ASCII file.
gigetoo has quit [Ping timeout: 240 seconds]
<mwlang>
dminuoso: cyberspace crossing. I agree with you on the encoding issue and agreeing with you that it’s not treating rspec files as “external”
Rodya_ has joined #ruby
<mwlang>
the question I’m trying to answer now is why my system is US-ASCII by default….(going to check on a couple of servers...)
gigetoo has joined #ruby
dionysus69 has joined #ruby
<dminuoso>
mwlang: Mmm ohh.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
mwlang: I mixed up two things. The default setting for *source* files is UTF-8, but external_encoding depends on LANG
gestrella has quit [Remote host closed the connection]
<dminuoso>
I guess if you set your locale correctly, rspec will behave
saslam_ has quit [Read error: Connection reset by peer]
<mwlang>
on my servers, it’s invariably: ENV["LANG"] => "en_US.UTF-8"
saslam_ has joined #ruby
<dminuoso>
mwlang: Guess we found the issue finally. :)
username_ has joined #ruby
<mwlang>
to my knowledge, I’ve never set the LANG env explicitly, like ever.
nodesman has joined #ruby
nodesman has quit [Client Quit]
<dminuoso>
mwlang: On OSX LANG is indirectly set through System Preferences > Language and Text
<mwlang>
but then again, I’ve been on this same mac essentially since 2007, (always upgrading the OS)….
glspi has joined #ruby
<dminuoso>
You can of course also just override it in your shell
<dminuoso>
Or maybe your terminal?
<dminuoso>
Im really not sure, it's a huge big mess on OSX.
pandaant has quit [Remote host closed the connection]
<dminuoso>
mwlang: But it's quite amazing how some error in the depts from rspec can be caused by a simple system preference.
<mwlang>
dminuoso: I’ll have to dig for this one. more than likely, LANG got set way back in the day when 1.9 was coming around.
dgarstang has quit [Ping timeout: 258 seconds]
<mwlang>
indeed. and I did a lot of work in the early days of 1.9 to migrate encoding sensitive gems from 1.8 to 1.9 and 2.x, so it’s probably my own two feet I’m stumbling over at this point.
Takumo has quit [Remote host closed the connection]
vali_ has joined #ruby
<dminuoso>
Heh I've been there.
dgarstang has joined #ruby
StoneCypher has joined #ruby
Guest7360 has quit [Ping timeout: 248 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
senayar has quit []
Bounga has joined #ruby
dgarstang has quit [Ping timeout: 245 seconds]
<mwlang>
dminuoso: geez…terminal sets the LANG to UTF-8 while term2 sets it to US-ASCII
<dminuoso>
mwlang: I just have the option "set locales automatically"
gajus has joined #ruby
<dminuoso>
Whatever that may do..
<dminuoso>
But it's magic.
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
<mwlang>
that’s checked for me as well.
<mwlang>
Character Encoding under Emulation is Western (ASCII), though...
<dminuoso>
mwlang: Whats your defaults read -g AppleLocale ?
<dminuoso>
mwlang: Character Encoding is just for presentation.
<dminuoso>
and that means: $ defaults read -g AppleLocale
<dminuoso>
btw
<mwlang>
dminuoso: en_US
<dminuoso>
mwlang: Or maybe that "set locale variables" is the actual problem.. idk
<mwlang>
are you sure about “just for presentation”? I just changed that setting to UTF-8 and restarted and now locale is reporting UTF-8 across the board.
<dminuoso>
Mmm.
<dminuoso>
Guess not.
<dminuoso>
iTerm crashing rspec.
<dminuoso>
Ill remember this under that title.
<dminuoso>
:-)
milardovich has joined #ruby
<mwlang>
how I made it all these years with my OSX encoding defaults being different from my servers is completely beyond me.
amclain has joined #ruby
<mwlang>
but rspec now works just fine on the activerecord specs now.
<dminuoso>
Though honesty locales is a pure mess on Linux too.
gigetoo has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Rodya_ has quit [Remote host closed the connection]
gigetoo has joined #ruby
<mwlang>
dminuoso: probably the only reason I’ve avoided issues on Linux is that I usually start with fresh installs with each new hardware upgrade.
<dminuoso>
mwlang: Even on fresh Ubuntu installations things dont work right.
<dminuoso>
It's fine as long as your Ubuntu is configured with all things US/English in the installer.
<mwlang>
whereas my development machine has gone through every OSX upgrade starting with Tiger and just gets super-duped and cloned to each new macbook I buy.
<dminuoso>
Its not if you dont.
<mwlang>
yeah, I’m US/English all the way in Linux.
milardovich has quit [Ping timeout: 258 seconds]
aupadhye has quit [Ping timeout: 258 seconds]
flying has quit []
<baweaver>
🇺🇸
maddmaxx_ has joined #ruby
Eiam has joined #ruby
matp_ has quit [Ping timeout: 255 seconds]
matp has joined #ruby
jsrn_ has quit [Quit: Leaving]
maddmaxx has quit [Read error: No route to host]
raul782 has joined #ruby
maddmaxx__ has joined #ruby
maddmaxx__ is now known as maddmaxx
Rodya_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
maddmaxx_ has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
raul782 has quit [Ping timeout: 248 seconds]
minimalism has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
blackmes1 has joined #ruby
z4j5 has quit [Ping timeout: 240 seconds]
z4j5 has joined #ruby
flashbang has quit [Ping timeout: 264 seconds]
antoniobeyah has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
saslam_ has quit [Read error: Connection reset by peer]
Beams has quit [Quit: .]
alexar has joined #ruby
saslam_ has joined #ruby
<mwlang>
dminuoso: had to tweet that one out. I still marvel I haven’t had *more* issues with encoding than I did.
chouhoulis has joined #ruby
saslam_ has quit [Read error: Connection reset by peer]
jaruga____ has joined #ruby
saslam_ has joined #ruby
jaruga____ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
bum has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vrlogrs has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
<vrlogrs>
hi guys
nicoulaj has joined #ruby
gigetoo has joined #ruby
<havenwood>
g'mornin'
neuraload has joined #ruby
<vrlogrs>
im trying to write a regex that catches all md5's in a string -- but the md5 cannot be surrounded by any character other than space/blank/empty
<havenwood>
vrlogrs: What's not working? Have a gist that shows example values, the code that results in unexpected return values, and the desired return values?
<dminuoso>
havenwood: The thing that consues me is that the website considers \h to be a horizontal whitespace character..
<dminuoso>
Which makes sense..
<dminuoso>
Because that's not a Ruby regex site.
<vrlogrs>
OH
neuraload has quit [Quit: This computer has gone to sleep]
gigetoo has quit [Read error: Connection reset by peer]
<toretore>
why does your table contain 'cl_image_tag("image.jpg")' and not 'image.jpg'?
glspi has quit [Ping timeout: 255 seconds]
<merlin2049er>
ok, sorry my mistake
gigetoo has joined #ruby
<merlin2049er>
i thought putting the whole thing in the table would help
hoov has quit [Quit: Leaving]
<toretore>
put "image.jpg" in your db. then do <%= cl_image_tag(@image.uri) %>
<merlin2049er>
thank you
<r3bbit>
Hello every one
minimalism has quit [Quit: minimalism]
patarr_ has joined #ruby
slappy16 has joined #ruby
gix has quit [Ping timeout: 240 seconds]
<merlin2049er>
thanks it worked
patarr has quit [Ping timeout: 258 seconds]
<merlin2049er>
now i've got to figure out how to put these images in a carosel from the db
duderonomy has joined #ruby
markholmes has joined #ruby
gix has joined #ruby
M107262[m] has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
LoneHermit has joined #ruby
Derperperd has quit [Read error: Connection reset by peer]
Derperpe1 has joined #ruby
vali_ has joined #ruby
LoneHermit has quit [Ping timeout: 255 seconds]
hightower3 has quit [Ping timeout: 240 seconds]
bocaneri has quit [Remote host closed the connection]
georgie has joined #ruby
minimalism has joined #ruby
sepp2k has quit [Quit: Leaving.]
cyberarm_ has left #ruby ["Kidnapped by swan."]
gigetoo has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
gigetoo has joined #ruby
Rodya_ has joined #ruby
patarr_ has quit [Ping timeout: 264 seconds]
<Jameson_>
@merlin2049er you could use bootstrap and they have a carousel element
patarr has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
mhib has joined #ruby
mhib has quit [Client Quit]
hightower3 has joined #ruby
milardovich has quit [Remote host closed the connection]
gheegh has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
aef has joined #ruby
rfoust has joined #ruby
bmurt has joined #ruby
matrix9180[away] has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 248 seconds]
patarr has quit [Ping timeout: 260 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mburns has joined #ruby
psychicist__ has joined #ruby
jhack has joined #ruby
Guest37686 is now known as ged
ged is now known as Guest89689
DevilTiger has joined #ruby
<DevilTiger>
anyone care to help me troubleshoot issues? I'm about to slam head against desk
blackmesa has quit [Ping timeout: 264 seconds]
mburns has left #ruby [#ruby]
<toretore>
?ask DevilTiger
<ruby[bot]>
DevilTiger: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
neuraload has quit [Read error: Connection reset by peer]
<DevilTiger>
i'm getting errors about gems not being found. they are indeed not found where it is looking for them. how to get them install there, i have no idea.
__Yiota has quit [Remote host closed the connection]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
TheWhip has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
jdawgaz has joined #ruby
maxirater has joined #ruby
merlin2049er has quit [Quit: Page closed]
duckpupp1 has joined #ruby
Kug3lis has joined #ruby
elena_ has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
maxirater has quit [Quit: Leaving]
duckpupp1 has quit [Ping timeout: 276 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hobodave_ has quit [Quit: Computer has gone to sleep.]
ruby[bot] has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
tercenya has joined #ruby
walterheck has joined #ruby
Kug3lis is now known as Kug3lis_off
sepp2k has quit [Read error: Connection reset by peer]
Pisuke has joined #ruby
maxirater has joined #ruby
maxirater has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
MyMind has quit [Ping timeout: 276 seconds]
kht has joined #ruby
milardovich has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Xentil has quit [Ping timeout: 264 seconds]
lacour has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
alxs has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
<CalimeroTeknik>
hello, I would like bundler to accept any version of the dependencies listed, how can I do that?
<CalimeroTeknik>
I really want to do it. I oppose the idea of a Gemfile.lock file.
gigetoo has quit [Ping timeout: 252 seconds]
pilne has joined #ruby
sarcas has joined #ruby
<zenspider>
CalimeroTeknik: I hate bundler myself and even I think that's a dumb idea
gigetoo has joined #ruby
xen0fon has joined #ruby
<zenspider>
I suppose you run `bundler lock` before every invocation but that's really really heavyweight... or you stop using bundler
Guest5554 is now known as ged
chussenot has quit [Quit: chussenot]
<zenspider>
(which is what I do 99% of the time)
ged is now known as Guest27988
polishdub has quit [Quit: Leaving]
<CalimeroTeknik>
ah, bundler lock solves the version thing automagically?
xen0fon has quit [Client Quit]
<zenspider>
"Solves the version thing"?
<zenspider>
no... it recalculates a Gemfile.lock
<CalimeroTeknik>
er, bundler complaining about a version of a gem not being found
<CalimeroTeknik>
I'll try that right away
<zenspider>
well... no. you're gonna have to do a bundler install every time. not just recalculate the lockfile
<zenspider>
what are you REALLY trying to do?
<CalimeroTeknik>
oh, I don't use bundler to install the dependencies, my distro takes care of that
<CalimeroTeknik>
I just want the thing to stop complaining when I update gems system-side
<CalimeroTeknik>
but the thing uses bundler
<CalimeroTeknik>
so I just edit Gemfile.lock manually every time
<zenspider>
so, you're trying to use bundler to run but you hand installed stuff via your OS's package managment system?
<CalimeroTeknik>
yes
<apeiros>
uhm, bundler shouldn't complain when you update system gems
<zenspider>
that's going to be very painful for you
<CalimeroTeknik>
Gemfile.lock has to exist and cannot state "whatever version", apparently
<apeiros>
you're doing it wrong?
<CalimeroTeknik>
yes, but I want to. if it's absolutely needed I'll rip bundler off the ruby project
<zenspider>
apeiros: I think the gemfile is speccing something they don't actually have and getting conflicts
<CalimeroTeknik>
more like it says the gem is not found at that exact version
<zenspider>
right
<CalimeroTeknik>
(because the package management of my distro upgraded it to a newer one)
<CalimeroTeknik>
and that's fine
<zenspider>
so why are you installing via distro instead of via bundler?
<havenwood>
CalimeroTeknik: Is this an app you're talking about?
<apeiros>
zenspider: yeah, but then you bundle install once and it's done
<CalimeroTeknik>
yeah, IRC bot
<zenspider>
the versions via bundler are the ones that code was tested against
<apeiros>
that is - until the gemfile.lock changes
<zenspider>
honestly... Every linux's pkg handling of rubygems has been broken beyond belief. there's a reason why rvm and friends are so popular, and it's name is linux
<zenspider>
I would avoid what you're trying to do like the plague. Install a non-pkg ruby, (I use rbenv + ruby-install), install bundler, bundle install, be done and move on
<apeiros>
^+1
<apeiros>
linux isn't the only baddy there. osx isn't any better. and windows… well…
<zenspider>
I wouldn't even use pkg to install rbenv or ruby-install, because they might have patches against it that enforce their dogma
gigetoo has quit [Ping timeout: 252 seconds]
<zenspider>
apeiros: I completely disagree. I've been using stock ruby on osx for years and don't have problems with it
<zenspider>
I only use rbenv for testing against multiple versions
<apeiros>
zenspider: stock ruby is 2.0.0
<zenspider>
I'm well aware
<apeiros>
I prefer using a current and non-eol ruby
<zenspider>
apeiros: that's completely irrelevant to the above
gigetoo has joined #ruby
<apeiros>
orthogonal
<zenspider>
apple doesn't patch ruby to enforce their dogma. They actually upstream stuff to rubygems to make it work with their setup
<apeiros>
yes, if you can live with an old ruby, it may work fine
djbkd has quit [Remote host closed the connection]
<apeiros>
iirc you shouldn't install gems, though
<apeiros>
at least I faintly remember having run into issues with that
<zenspider>
not orthogonal, irrelevant. you made a claim. I refuted. you went off on a tangent that has nothing to do with it
<apeiros>
disagree
<apeiros>
your claim was package managers are bad wrt ruby
<apeiros>
and part of a package manager is installing new versions
<apeiros>
there's no such thing with osx
Fernando-Basso has quit [Quit: WeeChat 1.7]
<apeiros>
so no, osx isn't that much better. it's better in the "don't enforce own dogma" area
<apeiros>
it's not better in managing the package
__Yiota has joined #ruby
mim1k|work has quit [Ping timeout: 240 seconds]
* zenspider
sighs
A124 has quit [Quit: '']
gusrub has quit []
<havenwood>
Though there are nice modern Ruby packages for brew, pkgsrc, fink and macports on OS X - if you just need one Ruby more modern than macOS system Ruby.
<havenwood>
ruby-install ftw :-P
<zenspider>
clearly you need to be right about something even if it has nothing to do with what we're talking about... have at it.
<zenspider>
does fink still work on osx?
* baweaver
grabs popcorn
<CalimeroTeknik>
"Every linux's pkg handling of rubygems has been broken beyond belief" → I think you've only ever tried debian or rpm-based distros?
<zenspider>
baweaver: no point (except that popcorn is tasty). I'm done
Lord_of_Life has quit [Excess Flood]
mim1k|work has joined #ruby
<CalimeroTeknik>
anyway, can I make bundler not even look at the dependencies' versions, or should I start considering ripping it out from the project and just using require "module" # no version check?
<zenspider>
CalimeroTeknik: I don't know how many I've tried over the years. lots. Show me a distro that doesn't have patches against rubygems and I'll be impressed.
<apeiros>
CalimeroTeknik: you can always just run the project without bundler
<zenspider>
CalimeroTeknik: no, you can't (I don't think)... that's the whole point of bundler
<apeiros>
it's a bad idea
<zenspider>
not a bad idea if all the gems are installed.
<baweaver>
skimming through this sounds super hacky
<baweaver>
have you considered perl?
Lord_of_Life has joined #ruby
<zenspider>
I use ohmygems to set a private gem repo, bundle install, and then avoid bundler like the plague unless forced to by upstream
j416 has joined #ruby
<zenspider>
once the gems are installed and GEM_HOME is set to the private repo, just use rake/ruby and things work (and much much faster than with bundle exec)
Cohedrin_ has quit [Read error: Connection reset by peer]
<CalimeroTeknik>
oh; how can I start the project without bundler?
<apeiros>
how do you run it with bundler?
<CalimeroTeknik>
require 'bundler/setup' I think
<CalimeroTeknik>
but if I remove that line, modules are missing
FastJack has joined #ruby
<CalimeroTeknik>
require 'rubygems' also, just above it
ZJAY has joined #ruby
<zenspider>
probably just because of bundler's worst feature: autorequire
<apeiros>
you mean you write your own executable and load the library in there?
StoneCypher has quit [Ping timeout: 240 seconds]
<apeiros>
require "rubygems" is obsolete ever since ruby 1.9
<apeiros>
replace require 'bundler/setup' with the proper requires for all gems in your gemfile (might be possible to reduce it, but that's the naive approach)
Cohedrin_ has joined #ruby
ZJAY has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 255 seconds]
douglascorrea has joined #ruby
kht has quit [Ping timeout: 258 seconds]
gigetoo has joined #ruby
<zenspider>
there's 3 git repos ... not sure about those... but the list at the bottom of the gemfile should be more or less what you want to require (at the maximum)
StoneCypher has joined #ruby
milardovich has joined #ruby
<apeiros>
well, git clone, gem build, gem install those 3. but yes, they take extra effort.
* apeiros
didn't bother to actually read the gemfile :-|