00:00
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:01
sanscoeur has quit [Ping timeout: 248 seconds]
00:03
jtdoncas has quit [Ping timeout: 248 seconds]
00:03
sanscoeu_ has quit [Ping timeout: 268 seconds]
00:04
neo95 has joined #ruby
00:05
prometheus_falli has joined #ruby
00:05
mtkd has quit [Ping timeout: 276 seconds]
00:07
mtkd has joined #ruby
00:08
jtdoncas has joined #ruby
00:11
prometheus_falli has quit [Remote host closed the connection]
00:11
pastorinni has quit [Remote host closed the connection]
00:11
prometheus_falli has joined #ruby
00:12
cschneid_ has quit [Remote host closed the connection]
00:13
jtdoncas has quit [Ping timeout: 248 seconds]
00:15
Vile` has joined #ruby
00:16
ResidentBiscuit has joined #ruby
00:16
<
leitz >
I have a gem that I'm developing. I've installed an early version and continue to develop it. Now the issue is that the LOAD_PATH puts the gem's lib directory before the newest one. Is there any way besides "ruby -Ilib mycode" to force the LOAD_PATH to load the dev version first?
00:18
jtdoncas has joined #ruby
00:21
kies has quit [Ping timeout: 248 seconds]
00:21
kies has joined #ruby
00:22
r3kz has joined #ruby
00:23
jtdoncas has quit [Ping timeout: 248 seconds]
00:24
chocoelho has joined #ruby
00:30
jtdoncas has joined #ruby
00:31
pastorinni has joined #ruby
00:31
chocoelho has quit [Quit: chocoelho]
00:32
jobewan has quit [Ping timeout: 240 seconds]
00:35
jtdoncas has quit [Ping timeout: 248 seconds]
00:36
lytol_ has quit [Remote host closed the connection]
00:38
cremes has quit [Quit: cremes]
00:40
jtdoncas has joined #ruby
00:41
<
Radar >
leitz: How did you create that gem?
00:41
<
Radar >
leitz: `bundle exec <gem>` is usually how I'd do it because I use `bundle gem` to generate the gem.
00:41
pb122-two has quit [Quit: Leaving]
00:43
bronson has joined #ruby
00:43
c785127 has joined #ruby
00:43
<
leitz >
Radar, not quite sure. It's been a little bit. I know that I do basic stuff and I doubt I used bundle.
00:44
<
Radar >
leitz: does it have a Gemfile at least?
00:45
Vapez has quit [Remote host closed the connection]
00:45
<
leitz >
Yup. Though I'm not sure I'm communicating well. The gem works.
00:46
<
leitz >
However, when I change code in the development directory the changes aren't seen if the installed gem's files come before the development version in the LOAD_PATH.
00:47
c785127 has quit [Ping timeout: 248 seconds]
00:47
bronson has quit [Ping timeout: 256 seconds]
00:47
orbyt_ has joined #ruby
00:48
c785127 has joined #ruby
00:51
jenrzzz has quit [Ping timeout: 240 seconds]
00:51
pastorinni has quit [Remote host closed the connection]
00:51
blindmoe has quit [Ping timeout: 248 seconds]
00:52
pastorinni has joined #ruby
00:52
pastorinni has quit [Remote host closed the connection]
00:53
c785127 has quit [Ping timeout: 265 seconds]
00:53
TomyLobo has quit [Ping timeout: 272 seconds]
00:58
marxarelli is now known as marxarelli|afk
00:59
mniip has quit [Ping timeout: 240 seconds]
01:00
blackmesa1 has quit [Ping timeout: 250 seconds]
01:02
blindmoe has joined #ruby
01:02
blindmoe has quit [Changing host]
01:02
blindmoe has joined #ruby
01:03
jtdoncas has quit [Ping timeout: 248 seconds]
01:08
blindmoe has quit [Ping timeout: 260 seconds]
01:09
<
Radar >
leitz: do you have the "gemspec" line in that Gemfile?
01:09
mniip has joined #ruby
01:09
cdg has joined #ruby
01:09
<
Radar >
If so, I thought "bundle exec <gem>" would execute that gem in the directory, rather than the one that is loaded.
01:10
helpa has quit [Remote host closed the connection]
01:10
helpa has joined #ruby
01:11
Vile` has quit [Ping timeout: 256 seconds]
01:12
badeball has quit [Ping timeout: 268 seconds]
01:12
badeball has joined #ruby
01:12
kke has quit [Ping timeout: 276 seconds]
01:12
jinie has quit [Ping timeout: 268 seconds]
01:13
CustosLimen has quit [Ping timeout: 240 seconds]
01:13
jinie has joined #ruby
01:13
<
leitz >
Ah, interesting. Let me try that. Thanks Radar!
01:13
jsaak has quit [Ping timeout: 268 seconds]
01:13
jsaak has joined #ruby
01:14
linduxed has quit [Ping timeout: 276 seconds]
01:14
cdg has quit [Ping timeout: 265 seconds]
01:14
kke has joined #ruby
01:14
nit3rid3_ has joined #ruby
01:14
<
leitz >
Looks like bundle isn't installed.
01:14
hyperreal has quit [Ping timeout: 240 seconds]
01:14
<
leitz >
Or there's more to the command line.
01:15
linduxed has joined #ruby
01:15
CustosLimen has joined #ruby
01:15
nit3rid3 has quit [Read error: Connection reset by peer]
01:17
Barrt has joined #ruby
01:17
selim has quit [Ping timeout: 260 seconds]
01:17
blindmoe has joined #ruby
01:17
blindmoe has quit [Changing host]
01:17
blindmoe has joined #ruby
01:17
<
Radar >
leitz: "gem install bundler"
01:17
jrgifford has quit [Quit: Connection closed for inactivity]
01:18
sspreitz has quit [Ping timeout: 260 seconds]
01:19
ResidentBiscuit has quit [Remote host closed the connection]
01:19
<
leitz >
No real need. I can build the gem without it and use the -Ilib option to specify the current directory. I try to not add a lot of software that I barely understand; there's already enough that I barely understand. :)
01:19
ledestin has joined #ruby
01:19
sspreitz has joined #ruby
01:19
selim has joined #ruby
01:20
c785127 has joined #ruby
01:20
ResidentBiscuit has joined #ruby
01:20
hyperreal has joined #ruby
01:21
marr has quit [Ping timeout: 248 seconds]
01:21
eightlimbed has quit [Remote host closed the connection]
01:22
eightlimbed has joined #ruby
01:22
blindmoe has quit [Ping timeout: 248 seconds]
01:23
cagomez has quit [Remote host closed the connection]
01:23
jtdoncas has joined #ruby
01:23
cagomez has joined #ruby
01:24
blindmoe has joined #ruby
01:24
blindmoe has quit [Changing host]
01:24
blindmoe has joined #ruby
01:24
paddy_ has quit [Quit: paddy_]
01:27
<
leitz >
Radar, I found my command. It was just "gem build <gemspec file>"
01:27
c785127 has quit [Ping timeout: 268 seconds]
01:28
cremes has joined #ruby
01:29
cagomez has quit [Ping timeout: 252 seconds]
01:31
nwm has quit [Ping timeout: 250 seconds]
01:32
SeepingN has quit [Ping timeout: 264 seconds]
01:35
Azure has quit [Read error: Connection reset by peer]
01:35
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:35
Azure has joined #ruby
01:36
elphe has quit [Ping timeout: 256 seconds]
01:36
nwm has joined #ruby
01:37
alfiemax has joined #ruby
01:38
c785127 has joined #ruby
01:42
alfiemax has quit [Ping timeout: 268 seconds]
01:42
AgentVenom has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
01:42
c785127 has quit [Ping timeout: 240 seconds]
01:43
bronson has joined #ruby
01:43
cdg has joined #ruby
01:47
dviola has quit [Quit: WeeChat 2.0.1]
01:47
troys_ is now known as troys
01:48
cdg has quit [Ping timeout: 265 seconds]
01:48
leitz has quit [Quit: Nappy time]
01:49
cdg has joined #ruby
01:49
bronson has quit [Ping timeout: 268 seconds]
01:56
ledestin has joined #ruby
01:57
elphe has joined #ruby
01:57
kapil___ has joined #ruby
02:03
gizmore|2 has joined #ruby
02:04
c785127 has joined #ruby
02:04
bmurt has joined #ruby
02:06
gizmore has quit [Ping timeout: 240 seconds]
02:07
guardianx has joined #ruby
02:08
c785127 has quit [Ping timeout: 252 seconds]
02:09
eightlimbed has quit [Ping timeout: 260 seconds]
02:10
John__ has quit [Read error: Connection reset by peer]
02:10
AJA4350 has quit [Quit: AJA4350]
02:10
ResidentBiscuit has quit []
02:12
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:13
chocoelho has joined #ruby
02:14
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:15
chocoelho has quit [Client Quit]
02:16
eightlimbed has joined #ruby
02:19
elphe has quit [Quit: leaving]
02:20
ctp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:26
halt has joined #ruby
02:26
halt is now known as Guest96386
02:27
nit3rid3_ has quit [Quit: Leaving]
02:33
theRealGent has joined #ruby
02:35
mostly-harmless has quit [Ping timeout: 265 seconds]
02:36
c785127 has joined #ruby
02:36
mostly-harmless has joined #ruby
02:40
c785127 has quit [Ping timeout: 240 seconds]
02:41
bmurt has joined #ruby
02:44
orbyt_ has joined #ruby
02:45
bronson has joined #ruby
02:47
lele has quit [Ping timeout: 272 seconds]
02:47
nertzy has quit [Quit: Leaving]
02:49
bronson has quit [Ping timeout: 260 seconds]
02:50
lele has joined #ruby
02:50
guardianx has quit []
02:50
pilne has quit [Quit: Quitting!]
02:50
eightlimbed has quit [Ping timeout: 260 seconds]
02:51
cdg has quit [Remote host closed the connection]
02:51
c785127 has joined #ruby
02:52
mjolnird has joined #ruby
02:53
mistergibson has quit [Quit: Leaving]
02:54
nertzy has joined #ruby
02:54
warreng_ has joined #ruby
02:54
<
warreng_ >
14880 == Zlib::GzipReader.new(StringIO.new(File.read("/private/tmp/127135\ 3/127135_2018-01-03_0\#18.json.gz"))).read.length
02:55
<
warreng_ >
159706438 == `cat /private/tmp/127135\\ 3/127135_2018-01-03_0\#18.json.gz | gzip -d`.length
02:55
<
warreng_ >
can anybody shed some light on why Zlib::GzipReader is only returning the first 9 lines of a gzipped file?
02:56
c785127 has quit [Ping timeout: 252 seconds]
02:57
deafscribe has quit [Quit: Leaving]
02:57
<
warreng_ >
14880 == f=File.open("/private/tmp/127135\ 3/127135_2018-01-03_0\#18.json.gz", "rb"); Zlib::GzipReader.new(f).read.length
02:57
KeyJoo has quit [Ping timeout: 264 seconds]
02:57
<
warreng_ >
(it's not StringIO)
02:59
troys is now known as troys_
03:01
mgtuiw1131 has joined #ruby
03:02
Rouge has joined #ruby
03:03
cdg has joined #ruby
03:05
rrutkowski has joined #ruby
03:05
alfiemax has joined #ruby
03:06
eightlimbed has joined #ruby
03:07
cdg_ has joined #ruby
03:08
darkhanb has joined #ruby
03:08
cdg has quit [Ping timeout: 240 seconds]
03:08
cdg has joined #ruby
03:10
alfiemax has quit [Ping timeout: 248 seconds]
03:11
rrutkowski has quit [Ping timeout: 248 seconds]
03:12
cdg_ has quit [Ping timeout: 260 seconds]
03:13
cdg has quit [Ping timeout: 265 seconds]
03:15
rrutkowski has joined #ruby
03:18
warreng_ has quit [Ping timeout: 260 seconds]
03:19
rrutkowski has quit [Client Quit]
03:20
rrutkowski has joined #ruby
03:22
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:23
c785127 has joined #ruby
03:26
orbyt_ has joined #ruby
03:28
c785127 has quit [Ping timeout: 240 seconds]
03:28
Yzguy has joined #ruby
03:30
rrutkowski has quit [Quit: rrutkowski]
03:30
uZiel has joined #ruby
03:35
despai has joined #ruby
03:39
neo95 has quit [Quit: Leaving]
03:39
beauby_ has joined #ruby
03:40
nofxx__ has joined #ruby
03:41
bocobit has joined #ruby
03:42
rrutkowski has joined #ruby
03:42
nofxx_ has quit [Ping timeout: 264 seconds]
03:44
rrutkowski has quit [Client Quit]
03:44
uZiel has quit [Remote host closed the connection]
03:45
rrutkowski has joined #ruby
03:45
ur5us has quit [Remote host closed the connection]
03:46
bronson has joined #ruby
03:46
rrutkowski has quit [Remote host closed the connection]
03:46
ur5us has joined #ruby
03:46
pastorinni has joined #ruby
03:46
cibs has quit [Remote host closed the connection]
03:49
vichib has joined #ruby
03:50
ur5us has quit [Ping timeout: 248 seconds]
03:50
bronson has quit [Ping timeout: 240 seconds]
03:52
Rouge_ has joined #ruby
03:54
Yzguy has quit [Quit: Cya]
03:55
Rouge has quit [Ping timeout: 248 seconds]
03:55
uZiel has joined #ruby
03:55
eightlimbed has quit [Ping timeout: 240 seconds]
03:56
eightlimbed has joined #ruby
03:59
beauby_ has quit [Quit: leaving]
04:00
c785127 has joined #ruby
04:01
alfiemax has joined #ruby
04:01
rrutkowski has joined #ruby
04:05
c785127 has quit [Ping timeout: 268 seconds]
04:05
despai has quit [Quit: ...]
04:05
alfiemax has quit [Ping timeout: 240 seconds]
04:11
juggler has joined #ruby
04:11
Rouge_ has quit [Ping timeout: 248 seconds]
04:25
brent__ has quit [Quit: Connection closed for inactivity]
04:26
kapil___ has quit [Quit: Connection closed for inactivity]
04:27
rrutkowski has quit [Quit: rrutkowski]
04:28
rrutkowski has joined #ruby
04:30
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:31
guardianx has joined #ruby
04:36
rrutkowski has quit [Ping timeout: 248 seconds]
04:36
alfiemax has joined #ruby
04:37
tdy has joined #ruby
04:37
tdy has quit [Client Quit]
04:38
rrutkowski has joined #ruby
04:39
theRealGent has quit [Ping timeout: 265 seconds]
04:40
c785127 has joined #ruby
04:40
tdy has joined #ruby
04:45
c785127 has quit [Ping timeout: 268 seconds]
04:46
cdg has joined #ruby
04:46
bholzer has joined #ruby
04:47
bronson has joined #ruby
04:47
bayed has quit [Quit: WeeChat 1.7]
04:51
guardianx has quit []
04:51
bronson has quit [Ping timeout: 248 seconds]
04:53
alfiemax_ has joined #ruby
04:55
zacts has quit [Quit: WeeChat 1.9.1]
04:55
webguynow has quit [Ping timeout: 256 seconds]
04:56
webguynow has joined #ruby
04:56
c785127 has joined #ruby
04:57
alfiemax has quit [Ping timeout: 264 seconds]
04:57
gix- has joined #ruby
04:57
gix has quit [Disconnected by services]
04:58
zacts has joined #ruby
05:01
bholzer has quit [Remote host closed the connection]
05:02
c785127 has quit [Ping timeout: 260 seconds]
05:03
alfiemax_ has quit [Ping timeout: 248 seconds]
05:04
mr_rich101 has joined #ruby
05:04
alfiemax has joined #ruby
05:06
cdg has quit [Remote host closed the connection]
05:07
nowhere_man has quit [Remote host closed the connection]
05:08
nowhere_man has joined #ruby
05:14
justicefries has joined #ruby
05:14
justicefries has quit [Client Quit]
05:17
rrutkowski has quit [Ping timeout: 260 seconds]
05:17
bocobit has quit [Remote host closed the connection]
05:18
bholzer has joined #ruby
05:22
zwliew has joined #ruby
05:24
uZiel has quit [Ping timeout: 272 seconds]
05:27
guardianx has joined #ruby
05:34
guardianx has quit []
05:36
uZiel has joined #ruby
05:37
cdg has joined #ruby
05:41
cdg_ has joined #ruby
05:41
cdg has quit [Ping timeout: 265 seconds]
05:45
anisha has joined #ruby
05:46
cdg_ has quit [Ping timeout: 250 seconds]
05:46
cdg has joined #ruby
05:46
ur5us has joined #ruby
05:47
bronson has joined #ruby
05:49
pastorinni has quit [Remote host closed the connection]
05:50
cdg has quit [Ping timeout: 250 seconds]
05:51
alfiemax_ has joined #ruby
05:51
ur5us has quit [Ping timeout: 248 seconds]
05:52
alfiemax has quit [Read error: Connection reset by peer]
05:52
bronson has quit [Ping timeout: 260 seconds]
05:53
postmodern has joined #ruby
05:54
za1b1tsu has joined #ruby
05:54
aupadhye has joined #ruby
05:55
<
za1b1tsu >
How do I use #<BigDecimal:567dcc8,'0.0',9(18)> ? I can't even manipulate in the consoles it expects some more lines?
05:55
<
za1b1tsu >
Basically I pulling it from a db, do some calculations and then updated the db, but it doesn't like the #<BigDecimal:567dcc8,'0.0',9(18)> format
05:56
<
elomatreb >
It won't, that's the format used by ruby's #inspect method.
05:57
<
elomatreb >
How you get an arbitrary precision number into your database depends on the adapter, the easy if hacky fix is to convert it to a float with #to_f, but that will lose accuracy
05:58
<
za1b1tsu >
I have a [x:=>bigdecimal, y:=>bigdecimal, ....] and I used inspect to get it to (value, value, value)
05:58
<
za1b1tsu >
that's why has that fromat
05:59
cdg has joined #ruby
05:59
<
za1b1tsu >
but now I have to it without inspec
06:02
hyperreal has joined #ruby
06:02
<
za1b1tsu >
So puts uses inspect on big decimals?
06:02
KeyJoo has joined #ruby
06:03
<
za1b1tsu >
Anyway I can print it without inspect?
06:03
cdg has quit [Ping timeout: 265 seconds]
06:08
troys_ is now known as troys
06:11
<
za1b1tsu >
How can I do {[x:=>bigdecimal, y:=>bigdecimal, ....], [..], [...]} to (bigdecimal, bigdecimal ..),(....) without inspect
06:11
hyperreal has left #ruby ["Leaving"]
06:11
sundhell_away is now known as sundhell
06:12
c785127 has joined #ruby
06:13
<
za1b1tsu >
data.map do |k, v|
06:13
<
za1b1tsu >
v.merge(:id => k)
06:13
<
za1b1tsu >
"(" + v.values.to_a.join(",") + ")"
06:13
<
za1b1tsu >
end.join(",") Is this nice I have the merge because I also have a key that I need as value
06:16
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:16
c785127 has quit [Ping timeout: 256 seconds]
06:17
darkhanb has joined #ruby
06:17
darkhanb has quit [Client Quit]
06:21
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:23
troys has quit [Quit: Bye]
06:25
mtkd has quit [Ping timeout: 252 seconds]
06:27
mtkd has joined #ruby
06:27
cibs has joined #ruby
06:32
c785127 has joined #ruby
06:33
eightlimbed has quit [Ping timeout: 268 seconds]
06:33
jina has joined #ruby
06:33
zautomata has joined #ruby
06:34
mikhael_k33hl has joined #ruby
06:36
darkhanb has joined #ruby
06:36
c785127 has quit [Ping timeout: 240 seconds]
06:38
LocaMocha has joined #ruby
06:40
darkhanb has quit [Client Quit]
06:42
zautomata has quit [Quit: WeeChat 1.7]
06:43
despai has joined #ruby
06:47
DmitryBochkarev has joined #ruby
06:48
bronson has joined #ruby
06:48
c785127 has joined #ruby
06:53
<
mikhael_k33hl >
If I create another thread where will the output of that thread be displayed?
06:53
bholzer has quit [Remote host closed the connection]
06:53
c785127 has quit [Ping timeout: 256 seconds]
06:53
bronson has quit [Ping timeout: 265 seconds]
06:55
despai has quit [Quit: ...]
06:58
darkhanb has joined #ruby
06:59
pelegreno has quit [Read error: Connection reset by peer]
06:59
ta_ has quit [Remote host closed the connection]
06:59
pelegreno has joined #ruby
07:00
kriskropd has quit [Ping timeout: 240 seconds]
07:05
jtdoncas_ has joined #ruby
07:05
bkxd has joined #ruby
07:07
jtdoncas has quit [Ping timeout: 252 seconds]
07:09
jtdoncas has joined #ruby
07:09
c785127 has joined #ruby
07:11
jtdoncas_ has quit [Ping timeout: 268 seconds]
07:12
kculpis has quit [Ping timeout: 246 seconds]
07:14
c785127 has quit [Ping timeout: 248 seconds]
07:16
rabajaj has joined #ruby
07:23
guardianx has joined #ruby
07:27
bkxd_ has joined #ruby
07:27
pelegreno has quit [Remote host closed the connection]
07:30
bkxd has quit [Ping timeout: 268 seconds]
07:33
guardianx has quit []
07:34
conta has joined #ruby
07:36
qba73 has joined #ruby
07:37
qba73 has quit [Remote host closed the connection]
07:37
qba73 has joined #ruby
07:37
kriskropd has joined #ruby
07:37
ctp_ has joined #ruby
07:37
qba73 has quit [Remote host closed the connection]
07:38
qba73 has joined #ruby
07:39
qba73 has quit [Remote host closed the connection]
07:39
pelegreno has joined #ruby
07:39
qba73 has joined #ruby
07:40
qba73 has quit [Remote host closed the connection]
07:41
qba73 has joined #ruby
07:41
qba73 has quit [Remote host closed the connection]
07:42
qba73 has joined #ruby
07:42
qba73 has quit [Remote host closed the connection]
07:42
nwm has quit [Ping timeout: 265 seconds]
07:42
qba73 has joined #ruby
07:43
qba73 has quit [Remote host closed the connection]
07:45
nwm has joined #ruby
07:46
c785127 has joined #ruby
07:47
ur5us has joined #ruby
07:49
rippa has joined #ruby
07:49
bronson has joined #ruby
07:50
bkxd_ has quit [Ping timeout: 248 seconds]
07:51
c785127 has quit [Ping timeout: 252 seconds]
07:51
tfitts has joined #ruby
07:51
ta_ has joined #ruby
07:52
InfinityFye has joined #ruby
07:53
oetjenj has joined #ruby
07:53
milardovich has joined #ruby
07:54
InfinityFye has left #ruby [#ruby]
07:54
bronson has quit [Ping timeout: 264 seconds]
07:59
aufi has joined #ruby
08:00
bkxd has joined #ruby
08:00
bkxd has quit [Max SendQ exceeded]
08:01
bkxd has joined #ruby
08:01
InfinityFye has joined #ruby
08:01
bkxd has quit [Max SendQ exceeded]
08:01
bkxd has joined #ruby
08:02
bkxd has quit [Max SendQ exceeded]
08:02
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:02
bkxd has joined #ruby
08:02
c785127 has joined #ruby
08:03
reaVer_ has quit [Remote host closed the connection]
08:04
reaVer has joined #ruby
08:05
despai has joined #ruby
08:07
c785127 has quit [Ping timeout: 252 seconds]
08:07
kriskropd has quit [Ping timeout: 265 seconds]
08:13
mostlybadfly has quit [Quit: Connection closed for inactivity]
08:14
despai has quit [Quit: ...]
08:15
dionysus69 has joined #ruby
08:19
milardovich has quit [Remote host closed the connection]
08:19
milardovich has joined #ruby
08:20
qba73 has joined #ruby
08:20
<
dminuoso >
>> class Foo < (Class.new); end
08:21
SqREL has joined #ruby
08:22
Azure has quit [Ping timeout: 240 seconds]
08:23
claudiuinberlin has joined #ruby
08:23
milardovich has quit [Ping timeout: 248 seconds]
08:27
alfiemax has joined #ruby
08:28
avelldiroll has quit [Quit: WeeChat 1.6]
08:28
alfiemax_ has quit [Ping timeout: 256 seconds]
08:29
mark_66 has joined #ruby
08:31
zwliew has quit [Quit: Connection closed for inactivity]
08:32
avelldiroll has joined #ruby
08:34
kriskropd has joined #ruby
08:36
ahrs has quit [Remote host closed the connection]
08:36
alfiemax_ has joined #ruby
08:37
ahrs has joined #ruby
08:38
alfiemax has quit [Ping timeout: 240 seconds]
08:39
c785127 has joined #ruby
08:41
oyj has joined #ruby
08:41
oyj has left #ruby [#ruby]
08:44
c785127 has quit [Ping timeout: 265 seconds]
08:47
ur5us has quit [Remote host closed the connection]
08:50
bronson has joined #ruby
08:51
marr has joined #ruby
08:53
ur5us has joined #ruby
08:54
<
mikhael_k33hl >
anyone using concurrent ruby? my script seems to be stuck on creating Futures, e.g.: future = Concurrent::Future.new(executor: pool) { puts 'bright future' }
08:55
bronson has quit [Ping timeout: 252 seconds]
08:56
jokke has quit [Quit: WeeChat 2.0.1]
08:59
jokke has joined #ruby
09:00
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:01
dinfuehr has quit [Ping timeout: 248 seconds]
09:02
dinfuehr has joined #ruby
09:07
bkxd_ has joined #ruby
09:07
alfiemax has joined #ruby
09:08
jenrzzz has joined #ruby
09:08
jtdoncas has quit [Ping timeout: 252 seconds]
09:08
bkxd has quit [Ping timeout: 248 seconds]
09:09
mikecmpbll has joined #ruby
09:10
alfiemax_ has quit [Ping timeout: 268 seconds]
09:12
Defenestrate has joined #ruby
09:12
Defenestrate has joined #ruby
09:13
sundhell is now known as sundhell_away
09:16
c785127 has joined #ruby
09:16
alfiemax_ has joined #ruby
09:16
guille-moe has joined #ruby
09:16
jenrzzz has quit [Ping timeout: 256 seconds]
09:18
alfiemax has quit [Ping timeout: 256 seconds]
09:18
cdg has joined #ruby
09:19
biberu has joined #ruby
09:20
c785127 has quit [Ping timeout: 240 seconds]
09:23
cdg has quit [Ping timeout: 255 seconds]
09:28
cdg has joined #ruby
09:29
mjuhl has quit [Ping timeout: 246 seconds]
09:31
Dimik has quit [Ping timeout: 240 seconds]
09:32
cdg has quit [Ping timeout: 265 seconds]
09:34
jtdoncas has joined #ruby
09:34
alfiemax has joined #ruby
09:36
c785127 has joined #ruby
09:37
alfiemax_ has quit [Ping timeout: 248 seconds]
09:39
jtdoncas has quit [Ping timeout: 252 seconds]
09:41
c785127 has quit [Ping timeout: 252 seconds]
09:43
alfiemax has quit [Ping timeout: 250 seconds]
09:44
dionysus69 has quit [Ping timeout: 264 seconds]
09:44
jtdoncas has joined #ruby
09:44
alfiemax has joined #ruby
09:46
Defenestrate has quit [Quit: Leaving]
09:46
nwm has quit [Ping timeout: 240 seconds]
09:49
bkxd has joined #ruby
09:49
jtdoncas has quit [Ping timeout: 252 seconds]
09:50
bkxd__ has joined #ruby
09:51
bronson has joined #ruby
09:52
bkxd_ has quit [Ping timeout: 248 seconds]
09:53
bkxd has quit [Ping timeout: 248 seconds]
09:56
jaruga has joined #ruby
09:56
bronson has quit [Ping timeout: 252 seconds]
09:57
amatas has joined #ruby
10:00
Beams has joined #ruby
10:01
herbmillerjr has quit [Excess Flood]
10:02
herbmillerjr has joined #ruby
10:02
InfinityFye has left #ruby ["Leaving"]
10:05
jenrzzz has joined #ruby
10:06
rrutkowski has joined #ruby
10:09
kies has quit [Ping timeout: 260 seconds]
10:12
amatas has quit [Quit: amatas]
10:13
c785127 has joined #ruby
10:13
rrutkowski_ has joined #ruby
10:15
rrutkowski_ has quit [Client Quit]
10:15
rrutkowski has quit [Ping timeout: 240 seconds]
10:15
rrutkowski_ has joined #ruby
10:16
jtdoncas has joined #ruby
10:17
c785127 has quit [Ping timeout: 265 seconds]
10:17
ur5us has quit [Remote host closed the connection]
10:18
mikecmpbll has quit [Ping timeout: 248 seconds]
10:19
alfiemax_ has joined #ruby
10:20
S007 has joined #ruby
10:21
mikecmpbll has joined #ruby
10:21
jtdoncas has quit [Ping timeout: 240 seconds]
10:23
alfiemax has quit [Ping timeout: 248 seconds]
10:27
z4phod has joined #ruby
10:28
<
z4phod >
I did something strange, i dont understand how/why that's works with rails 4.2
10:28
Cavallari has joined #ruby
10:29
c785127 has joined #ruby
10:29
<
z4phod >
Controller : def new/@object = Model.new/end ; def create/@object.save/end => works ?! (without @object = Model.create(params[:object]))
10:30
TheBrayn has quit [Quit: WeeChat 2.0]
10:30
rrutkowski_ has quit [Quit: rrutkowski_]
10:30
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
10:30
<
z4phod >
I don't understand how this code works, why @object exists in create action ? (i did this code by error, and i seen that work)
10:31
rrutkowski_ has joined #ruby
10:31
Ishido has joined #ruby
10:32
jenrzzz has quit [Ping timeout: 248 seconds]
10:32
<
dminuoso >
z4phod: Do you have any before_action/before_filter?
10:34
c785127 has quit [Ping timeout: 276 seconds]
10:35
qba73 has quit [Ping timeout: 248 seconds]
10:35
rrutkowski_ has quit [Client Quit]
10:35
TomyWork has joined #ruby
10:36
rrutkowski_ has joined #ruby
10:36
<
z4phod >
yes, but the function doesn't set @object
10:36
SqREL has quit [Ping timeout: 264 seconds]
10:37
<
z4phod >
(an another @sector)
10:37
SqREL has joined #ruby
10:38
brodul has quit [Quit: My hovercraft is full of eels!!]
10:38
brodul has joined #ruby
10:38
<
z4phod >
oh i seen somethings, maybe : load_and_authorize_resource param_method: :object_params
10:39
uZiel has quit [Ping timeout: 272 seconds]
10:39
<
z4phod >
(cancancan)
10:39
blackmesa1 has joined #ruby
10:39
ddffg has joined #ruby
10:41
qba73 has joined #ruby
10:43
kies has joined #ruby
10:43
zwliew has joined #ruby
10:45
alfiemax_ has quit [Ping timeout: 260 seconds]
10:46
alfiemax has joined #ruby
10:47
nadir has quit [Quit: Connection closed for inactivity]
10:50
miah has quit [Remote host closed the connection]
10:50
jtdoncas has joined #ruby
10:51
uZiel has joined #ruby
10:52
bronson has joined #ruby
10:54
jtdoncas has quit [Ping timeout: 248 seconds]
10:55
jenrzzz has joined #ruby
10:55
jenrzzz has quit [Changing host]
10:55
jenrzzz has joined #ruby
10:56
AJA4350 has joined #ruby
10:56
bronson has quit [Ping timeout: 248 seconds]
11:00
ferr has joined #ruby
11:00
jenrzzz has quit [Ping timeout: 265 seconds]
11:00
ferr has left #ruby [#ruby]
11:01
milardovich has joined #ruby
11:01
rrutkowski_ has quit [Ping timeout: 248 seconds]
11:02
TheBrayn has joined #ruby
11:03
oleo has quit [Remote host closed the connection]
11:03
tomphp has joined #ruby
11:03
oleo has joined #ruby
11:04
tomphp has quit [Client Quit]
11:05
cdg_ has joined #ruby
11:07
mikecmpbll has quit [Ping timeout: 252 seconds]
11:10
eightlimbed has joined #ruby
11:10
cdg_ has quit [Ping timeout: 250 seconds]
11:10
Cavallari1 has joined #ruby
11:11
Cavallari has quit [Ping timeout: 264 seconds]
11:11
Cavallari1 is now known as Cavallari
11:11
uZiel has quit [Ping timeout: 272 seconds]
11:12
TheBrayn has quit [Quit: WeeChat 2.0.1]
11:12
TheBrayn has joined #ruby
11:15
cdg_ has joined #ruby
11:16
jnyw has quit [Quit: WeeChat 2.0.1]
11:19
cdg_ has quit [Ping timeout: 240 seconds]
11:19
alfiemax_ has joined #ruby
11:21
jtdoncas has joined #ruby
11:24
ddffg has quit [Quit: Leaving]
11:24
alfiemax has quit [Ping timeout: 268 seconds]
11:25
amatas has joined #ruby
11:25
jtdoncas has quit [Ping timeout: 240 seconds]
11:29
mikecmpbll has joined #ruby
11:31
tfitts has quit [Quit: Connection closed for inactivity]
11:35
vichib has quit [Ping timeout: 264 seconds]
11:40
jina has quit [Quit: Connection closed for inactivity]
11:41
amatas has quit [Quit: amatas]
11:41
matthewd has quit [Ping timeout: 265 seconds]
11:42
amatas has joined #ruby
11:43
Psybur has quit [Ping timeout: 240 seconds]
11:44
za1b1tsu has quit [Ping timeout: 265 seconds]
11:46
matthewd has joined #ruby
11:49
qba73 has quit [Remote host closed the connection]
11:50
qba73 has joined #ruby
11:50
alex`` has quit [Quit: WeeChat 1.9]
11:52
jtdoncas has joined #ruby
11:52
bronson has joined #ruby
11:57
jtdoncas has quit [Ping timeout: 248 seconds]
11:57
bronson has quit [Ping timeout: 256 seconds]
12:01
Azure has joined #ruby
12:03
postmodern has quit [Quit: Leaving]
12:04
deadnull has joined #ruby
12:05
plexigras has quit [Ping timeout: 265 seconds]
12:07
plexigras has joined #ruby
12:11
Psybur has joined #ruby
12:18
ur5us has joined #ruby
12:19
dinfuehr has quit [Ping timeout: 256 seconds]
12:20
Azure has quit [Quit: Oops.]
12:22
ltd has joined #ruby
12:22
dinfuehr has joined #ruby
12:22
ur5us has quit [Ping timeout: 240 seconds]
12:26
Azure has joined #ruby
12:28
blackmesa1 has quit [Quit: WeeChat 2.0.1]
12:31
jtdoncas has joined #ruby
12:31
aupadhye has quit [Ping timeout: 248 seconds]
12:32
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:34
marcux has joined #ruby
12:35
ltd has quit [Quit: leaving]
12:35
ltd has joined #ruby
12:35
jtdoncas has quit [Ping timeout: 256 seconds]
12:37
VladGh has quit [Quit: Lost terminal]
12:38
VladGh has joined #ruby
12:39
chocoelho has joined #ruby
12:39
chocoelho has quit [Client Quit]
12:41
[yas] has joined #ruby
12:44
milardovich has quit []
12:50
juggler has quit [Quit: Leaving]
12:53
bronson has joined #ruby
12:55
cdg_ has joined #ruby
12:56
qba73 has quit [Ping timeout: 264 seconds]
12:58
qba73 has joined #ruby
12:59
lxsameer has quit [Quit: WeeChat 1.9.1]
12:59
bronson has quit [Ping timeout: 265 seconds]
12:59
cdg_ has quit [Ping timeout: 265 seconds]
13:00
guardianx has joined #ruby
13:00
alfiemax_ has quit [Remote host closed the connection]
13:01
jtdoncas has joined #ruby
13:02
beanish has joined #ruby
13:02
guardianx has quit [Client Quit]
13:04
cdg_ has joined #ruby
13:05
aceruser has joined #ruby
13:06
mark_66 has quit [Remote host closed the connection]
13:06
jtdoncas has quit [Ping timeout: 265 seconds]
13:07
mark_66 has joined #ruby
13:08
qba73 has quit [Ping timeout: 240 seconds]
13:09
cdg_ has quit [Ping timeout: 252 seconds]
13:09
lxsameer has joined #ruby
13:14
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:14
InfinityFye has joined #ruby
13:15
InfinityFye has left #ruby [#ruby]
13:15
dviola has joined #ruby
13:15
sundhell_away is now known as sundhell
13:16
beanish has joined #ruby
13:16
howdoi has quit [Quit: Connection closed for inactivity]
13:17
despai has joined #ruby
13:18
nchambers has quit [Ping timeout: 248 seconds]
13:20
conta1 has joined #ruby
13:21
conta1 has quit [Client Quit]
13:21
nankyokusei has joined #ruby
13:21
eightlimbed has quit [Ping timeout: 248 seconds]
13:21
conta1 has joined #ruby
13:21
aceruser has quit [Quit: aceruser]
13:24
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:24
nchambers has joined #ruby
13:26
cdg_ has joined #ruby
13:26
rwb has quit [Ping timeout: 265 seconds]
13:29
amatas has quit [Ping timeout: 250 seconds]
13:31
cdg_ has quit [Ping timeout: 252 seconds]
13:31
mtkd has quit [Ping timeout: 240 seconds]
13:33
jtdoncas has joined #ruby
13:33
_aeris_ has quit [Write error: Connection reset by peer]
13:33
k0mpa has quit [Read error: Connection reset by peer]
13:33
jnollette has quit [Read error: Connection reset by peer]
13:33
prometheus_falli has quit [Read error: Connection reset by peer]
13:33
mtkd has joined #ruby
13:35
jnollette has joined #ruby
13:36
prometheus_falli has joined #ruby
13:36
raynold has quit [Quit: Connection closed for inactivity]
13:37
jtdoncas has quit [Ping timeout: 248 seconds]
13:39
_aeris_ has joined #ruby
13:41
mniip has quit [Ping timeout: 240 seconds]
13:44
mniip has joined #ruby
13:45
marcux has quit [Ping timeout: 260 seconds]
13:45
cdg_ has joined #ruby
13:47
leitz has joined #ruby
13:48
dinfuehr has quit [Ping timeout: 252 seconds]
13:48
dionysus69 has joined #ruby
13:49
dinfuehr has joined #ruby
13:50
bmurt has joined #ruby
13:50
rahul_bajaj has joined #ruby
13:50
cdg__ has joined #ruby
13:50
cdg_ has quit [Ping timeout: 276 seconds]
13:51
ahrs has quit [Remote host closed the connection]
13:52
rabajaj has quit [Ping timeout: 240 seconds]
13:52
shinnya has joined #ruby
13:52
ahrs has joined #ruby
13:52
despai has quit [Quit: ...]
13:53
cdg_ has joined #ruby
13:54
aScottishBoat has joined #ruby
13:54
cdg__ has quit [Ping timeout: 250 seconds]
13:55
bronson has joined #ruby
13:57
cdg_ has quit [Ping timeout: 250 seconds]
13:58
ecuanaso has joined #ruby
13:59
bronson has quit [Ping timeout: 240 seconds]
13:59
jrafanie has joined #ruby
13:59
qba73 has joined #ruby
14:02
workmad3 has quit [Ping timeout: 248 seconds]
14:03
nankyokusei has quit []
14:03
Cavallari has quit [Quit: Cavallari]
14:04
John__ has joined #ruby
14:05
nowhere_man has quit [Ping timeout: 240 seconds]
14:07
jtdoncas has joined #ruby
14:08
_aeris_ has quit [Remote host closed the connection]
14:08
cdg_ has joined #ruby
14:09
_aeris_ has joined #ruby
14:09
cdg__ has joined #ruby
14:10
shtirlic has quit [Ping timeout: 264 seconds]
14:11
k0mpa has joined #ruby
14:12
jtdoncas has quit [Ping timeout: 256 seconds]
14:12
cdg_ has quit [Ping timeout: 246 seconds]
14:13
cdg__ has quit [Ping timeout: 250 seconds]
14:14
cdg_ has joined #ruby
14:15
mikkelsen has joined #ruby
14:15
cdg__ has joined #ruby
14:17
aScottishBoat has quit [Ping timeout: 240 seconds]
14:18
cdg_ has quit [Ping timeout: 240 seconds]
14:19
ur5us has joined #ruby
14:20
cdg__ has quit [Ping timeout: 250 seconds]
14:20
cdg_ has joined #ruby
14:20
aScottishBoat has joined #ruby
14:22
mikkelsen has quit [Ping timeout: 250 seconds]
14:24
ur5us has quit [Ping timeout: 264 seconds]
14:24
conta has quit [Ping timeout: 248 seconds]
14:24
conta1 is now known as conta
14:24
cdg_ has quit [Ping timeout: 250 seconds]
14:25
conta1 has joined #ruby
14:25
_aeris_ has quit [Remote host closed the connection]
14:26
_aeris_ has joined #ruby
14:26
cdg_ has joined #ruby
14:29
rwb has joined #ruby
14:31
cdg_ has quit [Ping timeout: 250 seconds]
14:31
tvw has joined #ruby
14:32
aef has quit [Remote host closed the connection]
14:33
tvw has quit [Client Quit]
14:33
jobewan has joined #ruby
14:34
aScottishBoat has quit [Ping timeout: 268 seconds]
14:34
despai has joined #ruby
14:34
aef has joined #ruby
14:37
alfiemax has joined #ruby
14:39
jtdoncas has joined #ruby
14:39
za1b1tsu has joined #ruby
14:41
nwm has joined #ruby
14:42
alfiemax has quit [Ping timeout: 256 seconds]
14:42
nwm_ has joined #ruby
14:43
jtdoncas has quit [Ping timeout: 240 seconds]
14:43
A124 has quit [Ping timeout: 248 seconds]
14:45
qba73 has quit [Ping timeout: 240 seconds]
14:45
jeffreylevesque has quit [Ping timeout: 248 seconds]
14:46
nwm has quit [Ping timeout: 265 seconds]
14:46
cdg_ has joined #ruby
14:48
cdg__ has joined #ruby
14:49
ta_ has quit [Remote host closed the connection]
14:49
jokke has quit [Ping timeout: 252 seconds]
14:50
rabajaj has joined #ruby
14:51
cdg_ has quit [Ping timeout: 265 seconds]
14:51
cdg_ has joined #ruby
14:51
r3kz has quit [Quit: Connection closed for inactivity]
14:52
rahul_bajaj has quit [Ping timeout: 248 seconds]
14:52
cdg__ has quit [Ping timeout: 265 seconds]
14:53
mikhael_k33hl has quit [Ping timeout: 260 seconds]
14:54
alfiemax has joined #ruby
14:55
bronson has joined #ruby
14:56
cdg_ has quit [Ping timeout: 265 seconds]
14:56
qba73 has joined #ruby
14:57
cdg_ has joined #ruby
15:00
bronson has quit [Ping timeout: 252 seconds]
15:00
cdg_ has quit [Remote host closed the connection]
15:00
cdg_ has joined #ruby
15:03
minimalism has quit [Quit: minimalism]
15:03
jokke has joined #ruby
15:03
camilasan has quit [Ping timeout: 276 seconds]
15:03
beanish has joined #ruby
15:03
despai has quit [Quit: ...]
15:04
chocoelho has joined #ruby
15:06
Rapture has joined #ruby
15:06
camilasan has joined #ruby
15:09
chocoelho has quit [Quit: chocoelho]
15:10
rikai has quit [Quit: No Ping reply in 180 seconds.]
15:12
jtdoncas has joined #ruby
15:14
vondruch has quit [Ping timeout: 248 seconds]
15:15
nwm_ is now known as nwm
15:15
rikai has joined #ruby
15:15
Riddell has quit [Ping timeout: 248 seconds]
15:15
shinnya has quit [Ping timeout: 248 seconds]
15:17
jtdoncas has quit [Ping timeout: 260 seconds]
15:17
Riddell has joined #ruby
15:17
safetypin has joined #ruby
15:17
minimalism has joined #ruby
15:19
jeffreylevesque has joined #ruby
15:22
qba73 has quit [Remote host closed the connection]
15:23
qba73 has joined #ruby
15:23
Vashy has quit [Ping timeout: 246 seconds]
15:27
ctp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:27
rfoust has quit [Ping timeout: 265 seconds]
15:28
al2o3-cr has quit [Quit: 你变得越安静,你就越能听到]
15:28
Vashy has joined #ruby
15:29
minimalism has quit [Quit: minimalism]
15:30
ctp_ has joined #ruby
15:31
ctp_ has quit [Client Quit]
15:32
zwliew has quit [Quit: Connection closed for inactivity]
15:33
rwb has quit [Remote host closed the connection]
15:33
rwb1 has joined #ruby
15:35
rwb1 is now known as rwb
15:37
wolfshappen has quit [Ping timeout: 248 seconds]
15:37
lroca has joined #ruby
15:37
amatas has joined #ruby
15:38
zwliew has joined #ruby
15:39
minimalism has joined #ruby
15:39
DaniG2k has joined #ruby
15:40
milardovich has joined #ruby
15:41
[Butch] has joined #ruby
15:43
minimalism has quit [Client Quit]
15:46
amatas_ has joined #ruby
15:47
yrstrly has joined #ruby
15:47
<
yrstrly >
can someone help fix my while loop
15:48
A124 has joined #ruby
15:48
jtdoncas has joined #ruby
15:49
<
havenwood >
yrstrly: what's wrong with it?
15:49
<
yrstrly >
can I Just copy and paste it in here?
15:49
rabajaj has quit [Remote host closed the connection]
15:49
<
yrstrly >
while i < limit-1 n = n[i] + n[i+1..limit-1].reverse i =+ 1 end
15:50
<
yrstrly >
im trying to reverse this string then keep the position fixed and reverse the rest until it reaches the end of the string
15:50
DaniG2k has quit [Quit: leaving]
15:50
<
yrstrly >
so 012 would become 210 then 201
15:50
<
yrstrly >
limit is equal to the length of the original string
15:50
dionysus69 has quit [Ping timeout: 248 seconds]
15:51
jeffreylevesque has quit [Remote host closed the connection]
15:52
wolfshappen has joined #ruby
15:53
<
havenwood >
yrstrly: Just doing it for fun? Using the values?
15:53
jtdoncas has quit [Ping timeout: 260 seconds]
15:53
<
havenwood >
>> s = '012'; s.size.times.map { |n| s.chars.rotate(n).join }
15:54
<
yrstrly >
good lord
15:54
<
yrstrly >
i have no idea how that even works
15:54
[yas] has left #ruby ["Leaving"]
15:54
<
yrstrly >
what was wrong with my loop though?
15:56
bronson has joined #ruby
15:56
cschneid_ has joined #ruby
15:57
<
havenwood >
yrstrly: I'm not sure what you're expecting from the loop.
15:58
<
yrstrly >
to just go a long the string from the start, fixing each position and then reversing the rest and that becoming the new string
15:58
<
havenwood >
yrstrly: I'd suggest doing a gist with a working example so we can see what's going on. Let us know what was expected.
15:59
aScottishBoat has joined #ruby
15:59
<
havenwood >
>> 'yrstrly'.chars.rotate(-1).join
15:59
PsyCypher has joined #ruby
15:59
PsyCypher has quit [Read error: Connection reset by peer]
16:00
<
yrstrly >
so if the method was passed a string like Hello I reverse it first outside the loop to , then position 0 stays the same, rest reverses until you reach the end of the string
16:00
Ltem has joined #ruby
16:00
<
yrstrly >
that code you posted returns something different
16:01
bronson has quit [Ping timeout: 248 seconds]
16:01
<
yrstrly >
If i have 012345 it should return 504132, not 501234
16:01
<
yrstrly >
["012345", "123450", "234501", "345012", "450123", "501234"]
16:02
al2o3-cr has joined #ruby
16:02
<
havenwood >
>> s = '012345'; s.size.times.map { |n| s.chars.rotate(n).join }
16:02
<
havenwood >
yrstrly: like that ^?
16:03
<
havenwood >
or you just want?: 504132
16:04
qba73 has quit [Ping timeout: 260 seconds]
16:04
<
yrstrly >
almost, if the passed string is 543210, id like it to return ["012345", "054321", "051234", "051432", "051423"]
16:04
mark_66 has quit [Quit: Leaving.]
16:05
<
yrstrly >
if I reverse the string outside of the loop
16:05
<
yrstrly >
and then use this i = 0 while i < limit-1 n = n[i] + n[i+1..limit-1].reverse i =+ 1 end
16:06
<
yrstrly >
i don't understand why doesn't that give me what I want, surely it should?
16:06
<
havenwood >
yrstrly: Gist your full code and someone can probably grok what you're wanting.
16:10
deadnull has quit [Quit: deadnull]
16:11
<
yrstrly >
is that right?
16:11
<
yrstrly >
thanks for your time btw
16:12
<
havenwood >
yrstrly: it looks like `limit` is undefined in that method
16:12
conta1 has quit [Quit: conta1]
16:13
tomphp has joined #ruby
16:13
<
yrstrly >
if I defined it to be
16:13
<
yrstrly >
n.length.to_i outisde of the while loop
16:13
<
yrstrly >
would that fix it?
16:14
troys has joined #ruby
16:15
<
yrstrly >
i put it through and it took too long to compile
16:15
tomphp has quit [Client Quit]
16:15
conta has quit [Ping timeout: 256 seconds]
16:16
bweston92 has joined #ruby
16:19
ams__ has joined #ruby
16:20
ur5us has joined #ruby
16:20
r00twrh has joined #ruby
16:20
<
r00twrh >
Hi folks... When rendering json in Rails I can do something like... "render json: @items, :methods => :extra_method_on_item" .... That works. Question is: how do I call multiple methods when rendering?
16:21
GodFather has joined #ruby
16:22
roshanavand has joined #ruby
16:23
<
gizmore|2 >
r00twrh: i am not sure, but you could try a hashmap/dict/array: :methods => [:method_name, :method2_name]
16:24
<
gizmore|2 >
not sure if that would work... but "methodS" indicate you can supply multiple methods... never used that
16:24
aufi has quit [Quit: Leaving]
16:24
gizmore|2 is now known as gizmore
16:24
ur5us has quit [Ping timeout: 264 seconds]
16:25
<
r00twrh >
gizmore: That worked! Thank you!
16:25
<
gizmore >
:) welcome
16:25
minimalism has joined #ruby
16:27
Vapez has joined #ruby
16:27
despai has joined #ruby
16:27
jtdoncas has joined #ruby
16:28
despai has quit [Client Quit]
16:28
<
havenwood >
yrstrly: I replied to your gist. See if that example helps you narrow down to the part you're not expecting.
16:28
<
havenwood >
yrstrly: try running that ^ code
16:31
aScottishBoat has quit [Ping timeout: 260 seconds]
16:33
jtdoncas has quit [Ping timeout: 268 seconds]
16:33
uZiel has joined #ruby
16:33
gix- has quit [Quit: Client exiting]
16:36
elphe has joined #ruby
16:36
gix has joined #ruby
16:36
uZiel has quit [Remote host closed the connection]
16:38
uZiel has joined #ruby
16:41
mtkd has quit [Ping timeout: 268 seconds]
16:42
pastorinni has joined #ruby
16:42
mtkd has joined #ruby
16:43
SqREL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:44
dinfuehr has quit [Ping timeout: 248 seconds]
16:46
dinfuehr has joined #ruby
16:49
orbyt_ has joined #ruby
16:50
cagomez has joined #ruby
16:50
chocoelho has joined #ruby
16:51
orbyt_ has quit [Client Quit]
16:53
sepp2k has joined #ruby
16:53
amatas_ has quit [Quit: amatas_]
16:57
bronson has joined #ruby
16:59
<
havenwood >
It's interesting that you can't deserialized a marshalled kwarg struct. I hope that gets fixed in 2.5.1, because I want to use them!
17:01
bronson has quit [Ping timeout: 240 seconds]
17:03
millerti has joined #ruby
17:03
elphe has quit [Ping timeout: 252 seconds]
17:04
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:04
yrstrly has quit [Ping timeout: 260 seconds]
17:05
jtdoncas has joined #ruby
17:05
nowhere_man has joined #ruby
17:05
orbyt_ has joined #ruby
17:06
orbyt_ has quit [Client Quit]
17:07
ctp_ has joined #ruby
17:07
uZiel has quit [Ping timeout: 272 seconds]
17:09
jtdoncas has quit [Ping timeout: 248 seconds]
17:11
jamesaxl has joined #ruby
17:15
ecuanaso has joined #ruby
17:16
despai has joined #ruby
17:18
despai has quit [Client Quit]
17:20
darkhanb has joined #ruby
17:20
jtdoncas has joined #ruby
17:24
k0mpa has quit [Remote host closed the connection]
17:29
za1b1tsu_ has joined #ruby
17:31
cschnei__ has joined #ruby
17:32
nadir has joined #ruby
17:32
mikecmpbll has quit [Ping timeout: 248 seconds]
17:33
za1b1tsu has quit [Ping timeout: 248 seconds]
17:35
cschneid_ has quit [Ping timeout: 240 seconds]
17:36
marxarelli|afk is now known as marxarelli
17:36
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:36
despai has joined #ruby
17:37
jrafanie has joined #ruby
17:37
orbyt_ has joined #ruby
17:38
tcopeland has quit [Quit: tcopeland]
17:40
troys is now known as troys_
17:43
anisha has quit [Quit: This computer has gone to sleep]
17:44
sanscoeur has joined #ruby
17:44
c_nick has joined #ruby
17:45
za1b1tsu_ has quit [Read error: Connection reset by peer]
17:46
<
c_nick >
Hi .. I am trying to load a C++ DLL inside my Ruby application .. I have registered the Interface using regsrv32 and loading the Dll using Win32OLE .. but if i am running a 64 bit variant of Ruby i cannot register a 32 bit C++ dll can anyone help?
17:46
SeepingN has joined #ruby
17:46
roshanavand has quit [Ping timeout: 255 seconds]
17:48
Dreamer3 has quit [Quit: Computer has gone to sleep.]
17:50
despai_ has joined #ruby
17:50
despai has quit [Ping timeout: 248 seconds]
17:51
alfiemax has quit [Remote host closed the connection]
17:53
zwliew has quit [Quit: Connection closed for inactivity]
17:53
chocoelho1 has joined #ruby
17:53
chocoelho has quit [Ping timeout: 250 seconds]
17:53
chocoelho1 is now known as chocoelho
17:53
alfiemax has joined #ruby
17:53
alfiemax has quit [Read error: Connection reset by peer]
17:53
alfiemax has joined #ruby
17:55
chocoelho has quit [Client Quit]
17:57
alfiemax has quit [Remote host closed the connection]
17:57
sameerynho has joined #ruby
17:58
bronson has joined #ruby
17:58
Beams has quit [Quit: .]
18:00
pilne has joined #ruby
18:00
k1l0b1t has joined #ruby
18:00
DmitryBochkarev has quit [Ping timeout: 248 seconds]
18:01
k1l0b1t has quit [Quit: Ik ga weg]
18:01
troys_ is now known as troys
18:02
DmitryBochkarev has joined #ruby
18:02
alfiemax has joined #ruby
18:02
roshanavand has joined #ruby
18:02
bronson has quit [Ping timeout: 248 seconds]
18:05
guille-moe has quit [Ping timeout: 268 seconds]
18:05
c_nick has quit [Ping timeout: 260 seconds]
18:06
alfiemax has quit [Ping timeout: 248 seconds]
18:07
jeffreylevesque has joined #ruby
18:08
Ishido has quit [Remote host closed the connection]
18:09
tcopeland has joined #ruby
18:11
justicefries has joined #ruby
18:11
Ishido has joined #ruby
18:14
John___ has joined #ruby
18:14
despai_ has quit [Quit: ...]
18:16
safetypin has quit [Ping timeout: 265 seconds]
18:16
workmad3 has joined #ruby
18:16
John__ has quit [Ping timeout: 252 seconds]
18:17
eckhardt has joined #ruby
18:18
lroca has quit [Ping timeout: 248 seconds]
18:18
ur5us has joined #ruby
18:21
TomyWork has quit [Ping timeout: 240 seconds]
18:21
guille-moe has joined #ruby
18:22
ur5us has quit [Ping timeout: 248 seconds]
18:23
jottr has joined #ruby
18:27
lagweezle has joined #ruby
18:27
lagweezle has left #ruby [#ruby]
18:29
alfiemax has joined #ruby
18:29
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:30
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:31
zautomata has joined #ruby
18:31
orbyt_ has joined #ruby
18:32
justicefries has joined #ruby
18:32
nit3rid3 has joined #ruby
18:34
Papierkorb has joined #ruby
18:34
raynold has joined #ruby
18:35
cschneid_ has joined #ruby
18:36
safetypin has joined #ruby
18:37
alfiemax has quit [Ping timeout: 264 seconds]
18:38
TomyLobo has joined #ruby
18:39
cschnei__ has quit [Ping timeout: 240 seconds]
18:41
Nowaker has left #ruby [#ruby]
18:42
lroca has joined #ruby
18:43
mtkd has quit [Ping timeout: 250 seconds]
18:43
alfiemax has joined #ruby
18:44
safetypin has quit [Quit: ZZZzzz…]
18:44
k0mpa has joined #ruby
18:45
cibs has quit [Quit: Lost terminal]
18:45
jaruga has quit [Ping timeout: 268 seconds]
18:45
lroca has quit [Remote host closed the connection]
18:45
zautomata has quit [Ping timeout: 240 seconds]
18:45
safetypin has joined #ruby
18:46
lroca has joined #ruby
18:46
cdg_ has quit [Remote host closed the connection]
18:46
mtkd has joined #ruby
18:46
cdg has joined #ruby
18:47
zautomata has joined #ruby
18:48
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:48
davic has joined #ruby
18:50
orbyt_ has joined #ruby
18:50
cdg has quit [Ping timeout: 246 seconds]
18:51
lroca has quit [Quit: lroca]
18:51
jottr has quit [Quit: WeeChat 2.0.1]
18:53
bweston92 has quit [Quit: Connection closed for inactivity]
18:54
lroca has joined #ruby
18:54
PaulCape_ has joined #ruby
18:55
kirun has joined #ruby
18:55
PaulCapestany has quit [Read error: Connection reset by peer]
18:58
r00twrh has quit [Quit: Leaving]
18:59
bronson has joined #ruby
19:00
lroca is now known as _roca
19:02
tcopeland has quit [Ping timeout: 268 seconds]
19:03
zautomata1 has joined #ruby
19:03
bronson has quit [Ping timeout: 248 seconds]
19:06
despai has joined #ruby
19:06
safetypin has quit [Ping timeout: 246 seconds]
19:06
zautomata has quit [Ping timeout: 248 seconds]
19:07
jenrzzz has joined #ruby
19:07
jenrzzz has quit [Changing host]
19:07
jenrzzz has joined #ruby
19:08
mikecmpbll has joined #ruby
19:08
mjolnird has quit [Remote host closed the connection]
19:10
alfiemax_ has joined #ruby
19:13
alfiemax has quit [Ping timeout: 240 seconds]
19:16
workmad3 has quit [Ping timeout: 248 seconds]
19:16
jottr has joined #ruby
19:16
nit3rid3 has quit [Quit: Leaving]
19:17
pastorinni has quit [Remote host closed the connection]
19:17
pastorinni has joined #ruby
19:18
pastorinni has quit [Remote host closed the connection]
19:19
Dimik has joined #ruby
19:28
LocaMocha has quit [Ping timeout: 240 seconds]
19:33
mr_foto has joined #ruby
19:33
cschneid_ has quit [Remote host closed the connection]
19:37
rwb has quit [Ping timeout: 260 seconds]
19:37
wald0 has joined #ruby
19:38
tdy has quit [Quit: WeeChat 1.9.1]
19:38
milardovich has quit []
19:38
troulouliou_div2 has joined #ruby
19:39
lunarkitty7 has quit [Quit: WeeChat 2.0]
19:41
despai has quit [Quit: ...]
19:41
dionysus69 has joined #ruby
19:42
mr_foto has quit []
19:45
zautomata2 has joined #ruby
19:47
zautomata1 has quit [Ping timeout: 250 seconds]
19:51
troulouliou_div2 has quit [Remote host closed the connection]
19:51
BTRE has quit [Ping timeout: 252 seconds]
19:51
zautomata3 has joined #ruby
19:51
despai has joined #ruby
19:52
BTRE has joined #ruby
19:52
zautomata2 has quit [Ping timeout: 252 seconds]
19:54
zautomata4 has joined #ruby
19:55
bweston92 has joined #ruby
19:56
zautomata3 has quit [Ping timeout: 264 seconds]
19:58
troys is now known as troys_
19:59
troys_ is now known as troys
20:00
oetjenj has joined #ruby
20:00
romeoh has joined #ruby
20:01
chouhoulis has joined #ruby
20:01
chouhoulis has quit [Remote host closed the connection]
20:01
chouhoulis has joined #ruby
20:01
nowhereman has joined #ruby
20:02
workmad3 has joined #ruby
20:03
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:03
nowhere_man has quit [Ping timeout: 248 seconds]
20:04
despai has quit [Quit: ...]
20:04
ur5us has joined #ruby
20:05
zautomata has joined #ruby
20:05
lytol_ has joined #ruby
20:07
zautomata4 has quit [Ping timeout: 268 seconds]
20:07
workmad3 has quit [Ping timeout: 248 seconds]
20:07
zautomata1 has joined #ruby
20:08
dionysus69 has quit [Ping timeout: 260 seconds]
20:09
r3kz has joined #ruby
20:09
zautomata has quit [Ping timeout: 240 seconds]
20:11
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:13
guille-moe has quit [Remote host closed the connection]
20:13
Dreamer3 has joined #ruby
20:13
cagomez has quit [Remote host closed the connection]
20:13
guille-moe has joined #ruby
20:15
GodFather has quit [Ping timeout: 252 seconds]
20:16
jenrzzz has quit [Ping timeout: 240 seconds]
20:17
my123 has quit [Read error: Connection reset by peer]
20:17
my123 has joined #ruby
20:17
my123 has joined #ruby
20:20
guille-moe has quit [Ping timeout: 248 seconds]
20:20
bmurt has joined #ruby
20:21
despai has joined #ruby
20:22
eightlimbed has joined #ruby
20:25
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:25
oetjenj has joined #ruby
20:25
guille-moe has joined #ruby
20:26
oetjenj has quit [Client Quit]
20:26
chocoelho has joined #ruby
20:26
oetjenj has joined #ruby
20:26
oetjenj has quit [Client Quit]
20:27
oetjenj has joined #ruby
20:27
oetjenj has quit [Client Quit]
20:28
oetjenj has joined #ruby
20:28
chocoelho has quit [Client Quit]
20:28
oetjenj has quit [Client Quit]
20:28
oetjenj has joined #ruby
20:29
oetjenj has quit [Client Quit]
20:29
rwb has joined #ruby
20:30
chouhoulis has quit [Remote host closed the connection]
20:31
teej has joined #ruby
20:33
Psybur has quit [Ping timeout: 240 seconds]
20:33
claudiuinberlin has joined #ruby
20:36
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:37
jtdoncas has quit [Ping timeout: 256 seconds]
20:41
mostlybadfly has joined #ruby
20:42
guille-moe has quit [Ping timeout: 268 seconds]
20:43
joes has joined #ruby
20:45
mikeiniowa has quit [Remote host closed the connection]
20:45
cdg has joined #ruby
20:45
cagomez has joined #ruby
20:45
despai has quit [Quit: ...]
20:46
despai has joined #ruby
20:46
despai has quit [Client Quit]
20:48
tcopeland has joined #ruby
20:49
eckhardt has joined #ruby
20:49
orbyt_ has joined #ruby
20:49
mtkd has quit [Ping timeout: 260 seconds]
20:50
cagomez has quit [Ping timeout: 248 seconds]
20:50
pastorinni has joined #ruby
20:50
mtkd has joined #ruby
20:51
mikeiniowa has joined #ruby
20:54
marxarelli is now known as marxarelli|afk
20:56
jottr has quit [Quit: WeeChat 2.0.1]
20:56
KeyJoo has quit [Ping timeout: 264 seconds]
20:56
cagomez has joined #ruby
20:58
QualityAddict has quit [Remote host closed the connection]
20:59
cschneid_ has joined #ruby
21:00
QualityAddict has joined #ruby
21:00
bronson has joined #ruby
21:03
jtdoncas has joined #ruby
21:04
chouhoulis has joined #ruby
21:04
nopolitica has joined #ruby
21:05
bronson has quit [Ping timeout: 248 seconds]
21:05
tdy has joined #ruby
21:06
beanish has quit [Ping timeout: 248 seconds]
21:06
Olipro has quit [Ping timeout: 272 seconds]
21:07
jeffreylevesque has quit [Ping timeout: 260 seconds]
21:08
jtdoncas has quit [Ping timeout: 264 seconds]
21:11
guille-moe has joined #ruby
21:13
nicesignal has quit [Remote host closed the connection]
21:13
nicesignal has joined #ruby
21:15
Olipro has joined #ruby
21:16
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
21:16
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:16
jtdoncas has joined #ruby
21:17
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:17
zautomata1 has quit [Quit: WeeChat 1.7]
21:17
romeoh has quit [Remote host closed the connection]
21:17
cdg has quit [Remote host closed the connection]
21:18
romeoh has joined #ruby
21:21
jtdoncas has quit [Ping timeout: 260 seconds]
21:22
romeoh has quit [Ping timeout: 252 seconds]
21:23
chouhoulis has quit [Remote host closed the connection]
21:25
leitz has quit [Quit: Nappy time]
21:25
cdg has joined #ruby
21:26
alfiemax_ has quit [Remote host closed the connection]
21:27
alfiemax has joined #ruby
21:30
cdg has quit [Ping timeout: 265 seconds]
21:30
jenrzzz has joined #ruby
21:33
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:34
marxarelli|afk is now known as marxarelli
21:34
ta_ has joined #ruby
21:35
elphe has joined #ruby
21:35
jenrzzz has quit [Ping timeout: 264 seconds]
21:37
sepp2k has quit [Read error: Connection reset by peer]
21:37
jenrzzz has joined #ruby
21:37
jenrzzz has joined #ruby
21:37
jenrzzz has quit [Changing host]
21:38
eckhardt has joined #ruby
21:41
jenrzzz has quit [Ping timeout: 240 seconds]
21:44
chouhoulis has joined #ruby
21:44
cdg has joined #ruby
21:45
tomphp has joined #ruby
21:46
Riddell has quit [Ping timeout: 248 seconds]
21:47
Riddell has joined #ruby
21:47
jenrzzz has joined #ruby
21:47
jenrzzz has quit [Changing host]
21:47
jenrzzz has joined #ruby
21:50
ecuanaso has joined #ruby
21:52
jenrzzz has quit [Ping timeout: 256 seconds]
21:52
jtdoncas has joined #ruby
21:52
aef has quit [Remote host closed the connection]
21:52
Ltem has quit [Quit: good night]
21:53
eightlimbed has quit [Ping timeout: 248 seconds]
21:53
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:54
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
21:54
jenrzzz has joined #ruby
21:54
jenrzzz has quit [Changing host]
21:54
jenrzzz has joined #ruby
21:54
cdg_ has joined #ruby
21:56
DTZUZU has quit [Quit: WeeChat 1.9]
21:57
banisterfiend has joined #ruby
21:57
jtdoncas has quit [Ping timeout: 268 seconds]
21:57
cdg has quit [Ping timeout: 256 seconds]
21:58
aef has joined #ruby
21:59
guille-moe has quit [Ping timeout: 268 seconds]
22:00
mikecmpbll has quit [Quit: inabit. zz.]
22:01
bronson has joined #ruby
22:03
workmad3 has joined #ruby
22:05
bronson has quit [Ping timeout: 240 seconds]
22:05
nowhereman has quit [Ping timeout: 240 seconds]
22:06
nowhereman has joined #ruby
22:07
ctp_ has quit [Ping timeout: 248 seconds]
22:08
chouhoulis has quit [Remote host closed the connection]
22:08
workmad3 has quit [Ping timeout: 248 seconds]
22:13
troys is now known as troys_
22:14
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:14
jrafanie has joined #ruby
22:16
DTZUZU has joined #ruby
22:20
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:21
my123 has quit [Read error: Connection reset by peer]
22:21
my123 has joined #ruby
22:21
my123 has joined #ruby
22:21
KeyJoo has joined #ruby
22:24
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:25
jtdoncas has joined #ruby
22:25
jnyw has joined #ruby
22:27
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:29
Psybur has joined #ruby
22:30
jtdoncas has quit [Ping timeout: 260 seconds]
22:30
elphe_ has joined #ruby
22:30
orbyt_ has joined #ruby
22:31
elphe_ has quit [Client Quit]
22:32
c_nick has joined #ruby
22:33
jenrzzz_ has joined #ruby
22:36
jenrzzz has quit [Ping timeout: 268 seconds]
22:37
pastorinni has quit [Remote host closed the connection]
22:38
lytol_ has quit [Remote host closed the connection]
22:38
mjolnird has joined #ruby
22:38
chouhoulis has joined #ruby
22:39
dviola has quit [Quit: WeeChat 2.0.1]
22:40
spiette has joined #ruby
22:41
eightlimbed has joined #ruby
22:43
chouhoulis has quit [Ping timeout: 263 seconds]
22:43
elphe has quit [Ping timeout: 240 seconds]
22:44
bweston92 has quit [Quit: Connection closed for inactivity]
22:45
dviola has joined #ruby
22:48
ta_ has quit [Remote host closed the connection]
22:50
marxarelli is now known as marxarelli|afk
22:52
ta_ has joined #ruby
22:54
mtkd has quit [Ping timeout: 265 seconds]
22:55
marxarelli|afk is now known as marxarelli
22:56
mtkd has joined #ruby
22:57
sorah___ has quit [Ping timeout: 276 seconds]
22:57
nso95 has joined #ruby
22:59
jtdoncas has joined #ruby
23:01
alfiemax has quit [Remote host closed the connection]
23:01
bronson has joined #ruby
23:02
pastorinni has joined #ruby
23:03
alfiemax has joined #ruby
23:04
jtdoncas has quit [Ping timeout: 268 seconds]
23:06
jamesaxl has quit [Quit: WeeChat 1.9.1]
23:06
bronson has quit [Ping timeout: 248 seconds]
23:07
alfiemax has quit [Ping timeout: 248 seconds]
23:08
raz has joined #ruby
23:09
eightlimbed has quit [Ping timeout: 252 seconds]
23:09
<
raz >
when i have a method `def foo(a:, b:, c:)` - is there a away to access the parameters as a hash?
23:10
<
chaos95 >
c_nick: you will have to run a 32-bit variant of ruby, I suspect
23:10
eightlimbed has joined #ruby
23:11
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:12
ecuanaso has joined #ruby
23:13
<
c_nick >
chaos95, is there another way as opposed to win32Ole to actually access bitness independent bin object?
23:13
despai has joined #ruby
23:13
<
chaos95 >
c_nick: if you're feeling adventurous you can use ATL to create a COM wrapper exe for your 32-bit dll
23:13
<
chaos95 >
c_nick: please note that my windows dev knowledge is ~6 years out of date so I don't know if this is still the way it's done
23:14
nso95 has quit [Quit: nso95]
23:14
despai has quit [Client Quit]
23:16
<
c_nick >
hmm then i guess i am left to forking out processes
23:17
<
c_nick >
thanks, chaos95!
23:17
c_nick has quit [Quit: ciaos]
23:18
c_nick has joined #ruby
23:18
lucz has joined #ruby
23:20
jeffreylevesque has joined #ruby
23:22
elphe has joined #ruby
23:22
k0mpa has quit [Remote host closed the connection]
23:22
<
al2o3-cr >
raz: how so?
23:23
<
raz >
al2o3-cr: when called as `foo(a: 1, b: 2, b:3)` i would like to get all arguments as a hash { a:1, b:2, b:2 }
23:23
<
raz >
that way one could define a "schema" in the method signature and directly use the provided arguments e.g. in a database call
23:24
<
raz >
like... create_user(email:, password:) { User.create **kwargs }
23:24
<
raz >
(missing a 'def' in front of create_user ;) )
23:24
<
al2o3-cr >
send def foo(a:, b:, c:) method(__method__).parameters.map { |_, p| [p,binding.local_variable_get(p)] }.to_h end, {a: 1, b: 2, c: 3}
23:25
<
raz >
ok, that looks very hacky and probably slow, but i'm glad there is a way at all ;)
23:25
<
raz >
was hoping there might be an idiomatic shortcut that i had been missing
23:26
<
al2o3-cr >
not that i can recall.
23:26
<
raz >
if my japanese wasn't so rusty i'd be inclined to propose it
23:27
<
raz >
having to repeat the args in the method body often feels very unruby'ish
23:27
<
al2o3-cr >
raz: what do you want foo to return?
23:28
k0mpa has joined #ruby
23:28
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:29
jtdoncas has joined #ruby
23:29
<
raz >
al2o3-cr: nothing special. my example above is the pattern i most often run into. convenience wrappers such as `def create_user(email:, password:) { User.create **kwargs }`
23:29
<
raz >
without the imaginary '**kwargs' (or your crazy reflection stunt) you have to repeat all the kwargs inside the method body
23:29
<
raz >
often more than once, and often there are quite a few more than two...
23:30
<
al2o3-cr >
gotcha ;) yeah i can't see anything simple.
23:30
<
al2o3-cr >
with regard to this.
23:31
eckhardt has joined #ruby
23:31
<
raz >
yup, i should just learn me some japanese and hit up matz on tinder
23:31
<
al2o3-cr >
does it have to be require args?
23:31
<
al2o3-cr >
*required
23:31
<
raz >
well yes, that's the whole point, to have that minimum of validation
23:32
<
raz >
validation/visibility
23:32
<
raz >
it's much better than anonymous opts-hashes, esp. with multiple people working on the code
23:33
<
raz >
i mean, that's what i do in practice... i downgrade the method to an anonymous opts-hash, and validate that manually
23:33
jtdoncas has quit [Ping timeout: 248 seconds]
23:33
<
raz >
ending up with effectively the same that your reflection code would do - but in a way that doesn't force me to explain it to a different co-worker every day ;)
23:33
<
al2o3-cr >
raz: ok, then i think you're stuck, unless someone knows.
23:35
_roca has quit [Ping timeout: 250 seconds]
23:35
orbyt_ has joined #ruby
23:35
eightlimbed has quit [Ping timeout: 248 seconds]
23:37
a549 has joined #ruby
23:38
a549 has left #ruby [#ruby]
23:38
mlehrer has quit [Ping timeout: 250 seconds]
23:41
icarus has quit [Ping timeout: 264 seconds]
23:44
troys_ is now known as troys
23:45
oetjenj has joined #ruby
23:45
jtdoncas has joined #ruby
23:45
alfiemax has joined #ruby
23:47
TomyLobo has quit [Ping timeout: 252 seconds]
23:50
Psybur has quit [Ping timeout: 264 seconds]
23:50
despai has joined #ruby
23:51
alfiemax has quit [Ping timeout: 252 seconds]
23:51
amatas has quit [Quit: amatas]
23:52
c_nick has quit [Quit: ciaos]
23:53
pastorinni has quit [Remote host closed the connection]
23:53
Dreamer3 has quit [Quit: Computer has gone to sleep.]
23:57
alfiemax has joined #ruby
23:57
lucz has quit [Quit: Leaving...]