ddfreyne changed the topic of #nanoc to: 3.6.4 (may 29th) | 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
<jachymko> ddfreyne: oh, that's a nice and simple solution :) but i will need to prepend the "content/" path and i need to make sure the jpeg child items are compiled before the parent item
<jachymko> so i'll need to call parent.depend_on(parent.children) in preprocess, right?
<jachymko> oh, depend_on is on filter, not item
louquillio has quit [Remote host closed the connection]
jugglinmike has quit [Quit: Leaving.]
louquillio has joined #nanoc
francois2 has quit [Ping timeout: 264 seconds]
francois2 has joined #nanoc
VitamineD has quit [Quit: VitamineD]
<guardian> o/
forcev is now known as FunkyPenguin
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Changing host]
jadd_ has joined #nanoc
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
pavelkunc has joined #nanoc
jadd_ has quit [Ping timeout: 240 seconds]
<ddfreyne> jachymko: You can use raw_path instead of path to get the raw filename (which will have tmp/ preprended)
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 245 seconds]
<jachymko> ddfreyne: actually, i need the output file path, ie. "output/" + item.path. is the output path available somewhere? on the site object?
<ddfreyne> jachymko: why do you need the output path prefixed by 'output/'?
<ddfreyne> jachymko: raw_path will give you that, but it is not guaranteed to be output/ (the item could reside in tmp/ temporariliy)
<jachymko> oh, i.rep_named(:default).raw_path is exactly what i need
<jachymko> is that different from i.raw_filename?
<jachymko> Item.raw_filename is source, ItemRep.raw_path is output, got it :)
<ddfreyne> Yes
<ddfreyne> i.raw_path(rep: default) is the same as i.rep_named(:default).raw_path btw
<ddfreyne> and i.raw_path is identical to that too (rep is default by default)
<jachymko> where is Item.raw_path defined? i don't see it in https://github.com/nanoc/nanoc/blob/release-3.6.x/lib/nanoc/base/source_data/item.rb
<ddfreyne> Ahh, nevermind... raw_path does not exist
<ddfreyne> (but path does)
<ddfreyne> So yeah, i.rep_named(:default).raw_path !
<ddfreyne> Sorry about that :)
<jachymko> :)
<jachymko> thanks!
<ddfreyne> jachymko: You shouldn't need the CachedFilter
<ddfreyne> jachymko: You will need a depend_on(item.children) to ensure the dependencies are correct though
<jachymko> the CachedFilter is meant to prevent running of the zip and imagemagick filters when I change something in lib/ or Rules
<ddfreyne> yup, makes sense (although I hope to be able to make that obsolete some day)
<jachymko> yeah, it's just a temporary hack to make development less painful
<jachymko> btw how's 4.x coming along? did you start from scratch, or is it more of a refactoring of existing codebase?
pavelkunc has quit [Quit: Leaving.]
jadd_ has joined #nanoc
<ddfreyne> It is an evolution of 3.x
<ddfreyne> A lot of work to go though
<ddfreyne> Ive mostly been focusing on splitting nanoc
jadd_ has quit [Ping timeout: 248 seconds]
pavelkunc has joined #nanoc
aktau has joined #nanoc
<aktau> Top of the noon
<aktau> I'm no ruby dev but I'm liking my nanoc blog
<aktau> There is one thing I can't seem to get in a nice syntax
<aktau> I'd like to do something like: @item[:attr] or "default text"
<aktau> So that if the attribute is not set, it prints something default
<aktau> Is that possible (concisely)?
<guardian> @item[:attr] || "default text"
<aktau> Nice! But now I just reckon that won't work in my case
<aktau> I'd need @item[:attr].join("=") || "default text"
<aktau> I guess maybe I could do: (@item[:attr] || ["none"]).join("=")
<aktau> That works, sweet!
<aktau> Thanks guardian!
<guardian> np
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 256 seconds]
pavelkunc has quit [Quit: Leaving.]
aktau has quit [Read error: Operation timed out]
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 256 seconds]
aktau has joined #nanoc
pavelkunc has joined #nanoc
aktau has quit [Quit: leaving]
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 256 seconds]
jadd_ has joined #nanoc
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
jadd_ has quit [Client Quit]
jadd_ has joined #nanoc
jugglinmike has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
jadd_ has quit [Quit: Linkinus - http://linkinus.com]
jadd_ has joined #nanoc
pavelkunc has joined #nanoc
pavelkunc has quit [Client Quit]
jadd_ has quit [Client Quit]
jadd_ has joined #nanoc
pavelkunc has joined #nanoc
jadd_ has quit [Quit: Linkinus - http://linkinus.com]
<guardian> o/
<guardian> ddfreyne: do you think you can give a look at the dependency stuff this week end? :)
louquillio has quit [Remote host closed the connection]
bghost has joined #nanoc
<ddfreyne> guardian: Will do
<ddfreyne> guardian: I cannot compile your site here. My Mac starts thrashing (cursor lags, even)
<guardian> oh wow
<ddfreyne> I think it has to do with the image manipulation stuff
<guardian> I think it's because of images
<guardian> hmm likely a quick workaround is to change the rules, so that every image rep is in fact the original
<guardian> I can arrange that for you
<guardian> ddfreyne: just delete the 2 lines with filter:image_resize in Rules, just did it and it compiles just fine
<ddfreyne> Yup did that :)
<ddfreyne> guardian: It is a weird issue in any case.
<guardian> do you still have the query where I told you how to make the weird dependency disappear?
<guardian> it's "?#{XXhash.xxh32(target.compiled_content, target.checksum.to_i)}" in lib/helpers:48 that causes it
<ddfreyne> yup
<guardian> the fact that xxhash runs on target.compiled_content (I think I verified it's not caused by target.checksum.to_i but I'm not sure, was a while ago)
<ddfreyne> guardian: Oh!
<ddfreyne> This is exactly this fix
<ddfreyne> I wonder why I did not release nanoc 3.6.5 yet...
<ddfreyne> Ify ou put this in your Gemfile:
<ddfreyne> gem 'nanoc', :github => 'nanoc/nanoc', :branch => 'release-3.6.x'
<ddfreyne> you will see it disappear
<guardian> oh
<guardian> well hmm
<ddfreyne> I'll release nanoc 3.6.5 ;)
<guardian> does 3.6.5 have my pull requests? for sass?
<ddfreyne> guardian: Which one?
<guardian> let me see
<ddfreyne> ?
<guardian> yes
<ddfreyne> Yeah those are in 3.6.4 already
<guardian> but 3.6.4 isn't released right?
<guardian> long time no nanoc release, I built from source
<ddfreyne> It is
<ddfreyne> 3.6.4 is from May
<guardian> hmmm
<ddfreyne> Hmmm wait
<guardian> it's not in 3.6.4
<guardian> I built form release-3.x
<guardian> because it's not in there
<ddfreyne> I believe that's only in 3.7.x
<guardian> yep that's it
<guardian> and release-3.x doesn't have the fix that causes the dependency issue (#329)
<ddfreyne> It does now... git pull ;)
louquillio has joined #nanoc
<ddfreyne> The reason why the fix is not in 3.6.x is because it breaks compatibility in subtle ways
<guardian> lib/nanoc/version.rb is still 3.6.3 so I bump it do 3.7 before building
<ddfreyne> oops, sec
<ddfreyne> pushed
<guardian> ok
<guardian> well
<guardian> that's fixed
<guardian> thank you, you know what I think. if not read humans.txt!
<ddfreyne> haha :)
<ddfreyne> Thanks
<ddfreyne> nanoc still has a long way to go
<ddfreyne> I'll release nanoc 3.6.5 tomorrow (too late to do so atm)
<guardian> *nods*
louquillio has quit [Remote host closed the connection]
alerante has joined #nanoc
bghost has quit [Ping timeout: 264 seconds]
<ddfreyne> I've decided to skip the directory symlink tests in nanoc-cli and nanoc-core on JRuby (they fail because of a JRuby bug)
<ddfreyne> That means the tests will finally be green again!
bghost has joined #nanoc
superkulak has joined #nanoc
superkulak has quit [Read error: Connection reset by peer]
bghost has quit [Ping timeout: 245 seconds]
bghost has joined #nanoc
louquillio has joined #nanoc
bghost has quit [Ping timeout: 240 seconds]
bghost has joined #nanoc
ldk has quit [Ping timeout: 248 seconds]
<bobthecow> ddfreyne: yay green!
VitamineD has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
cDlm has joined #nanoc
VitamineD has quit [Ping timeout: 245 seconds]
cDlm is now known as VitamineD