ddfreyne changed the topic of #nanoc to: 3.6.3 (apr 24th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
cDlm has quit [Quit: cDlm]
bghost has quit [Ping timeout: 256 seconds]
louquillio__ has joined #nanoc
louquillio__ has quit [Client Quit]
louquillio__ has joined #nanoc
Keltia_ has joined #nanoc
louquillio has quit [Disconnected by services]
louquillio__ has quit [Client Quit]
louquillio has joined #nanoc
Keltia has quit [Ping timeout: 245 seconds]
bghost has joined #nanoc
bghost has quit [Ping timeout: 252 seconds]
yogsototh has joined #nanoc
koan has quit [Read error: Connection reset by peer]
koan has joined #nanoc
yogsototh1 has joined #nanoc
yogsototh has quit [Ping timeout: 246 seconds]
rolfb has joined #nanoc
stbuehler has quit [Quit: leaving]
stbuehler has joined #nanoc
kitallis has joined #nanoc
pavelkunc has joined #nanoc
louquillio has quit [Ping timeout: 256 seconds]
louquillio has joined #nanoc
<ddfreyne> btw guard-nanoc 1.0.1 is out
<ddfreyne> The gem has proper dependencies on guard and nanoc now
gkarekinian has joined #nanoc
pavelkunc has quit [Ping timeout: 276 seconds]
zi has quit [Ping timeout: 252 seconds]
<gkarekinian> Hey! I'm looking for a way to get a generated stylesheet's mtime and I can only seem to get my main SCSS file's mtime, which is just including partials and never changes
<gkarekinian> I'd like to avoid adding version attributes to the file just for that. Right now I've switched to appending Time.now.to_i to the stylesheet's route, which works but isn't ideal
zi has joined #nanoc
pavelkunc has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #nanoc
cDlm has joined #nanoc
pavelkunc1 has joined #nanoc
cDlm has quit [Quit: cDlm]
jugglinmike has joined #nanoc
cDlm has joined #nanoc
bghost has joined #nanoc
bghost has quit [Quit: leaving]
<ddfreyne> gkarekinian: Hi!
<ddfreyne> gkarekinian: Hmm. I wanted to add a dependency tracking API (a public one) so you'd be able to get the dependent items and calculate the max mtime, but that is something for nanoc 4.0. In the mean time, I'd suggest finding the included items manually (@items.select { |i| i.identifier =~ %r{^/stylesheets/.*/} } or so) and getting the max mtime from them
<ddfreyne> Also, I am typing on an old Apple Extended Keyboard II. It feels great :D
<gkarekinian> Thanks, I'll give it a try!
zi has quit [Remote host closed the connection]
<gkarekinian> Hooray, my helper is working
<gkarekinian> module Nanoc3::Helpers
<gkarekinian> module StylesheetMtime
<gkarekinian> stylesheets = @items.select { |i| i.identifier =~ %r(^/stylesheets/.*/) }
<gkarekinian> newest_stylesheet = stylesheets.max_by { |i| i[:mtime] }
<gkarekinian> def stylesheet_mtime
<gkarekinian> newest_stylesheet[:mtime].to_i
<gkarekinian> end
<gkarekinian> end
<gkarekinian> end
<ddfreyne> gkarekinian: You can probably just use #max instead of #max_by since you fetch the mtime anyway
cDlm has quit [Ping timeout: 260 seconds]
<gkarekinian> Oooh, yeah it's just two lines now
<gkarekinian> stylesheets = @items.select { |i| i.identifier =~ %r(^/stylesheets/.*/) }
<gkarekinian> stylesheets.map { |s| s[:mtime].to_i }.max
zi has joined #nanoc
zi has left #nanoc [#nanoc]
rolfb has quit [Quit: Leaving...]
Segismond has quit [Quit: Leaving]
Segismond has joined #nanoc
cDlm has joined #nanoc
ankakusu has joined #nanoc
Keltia_ is now known as Keltia
louquillio has quit [Quit: Leaving]
bghost has joined #nanoc
bghost has quit [Client Quit]
bghost has joined #nanoc
cDlm has quit [Ping timeout: 248 seconds]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cDlm has joined #nanoc
nano-_ is now known as nano-
jugglinmike has quit [Quit: Leaving.]
cDlm has quit [*.net *.split]
FunkyPenguin has quit [*.net *.split]
FunkyPenguin has joined #nanoc
yogsototh1 has quit [Remote host closed the connection]
<ddfreyne> gkarekinian: stylesheets.max { |s| s[:mtime].to_i }
<ddfreyne> Even shorter!
cDlm has joined #nanoc