ddfreyne changed the topic of #nanoc to: 3.6.9 (apr 15th) | 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
jugglinmike has quit [Quit: Leaving.]
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 245 seconds]
louquillio_ has quit [Ping timeout: 240 seconds]
louquillio_ has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
achal has joined #nanoc
<guardian> morning
<guardian> ddfreyne: do you know how I could alter http://pastebin.com/kypU63NS so that it ALSO populate @site.@code_snippets so that outdateness checker notices when those additional snippets change?
relix has joined #nanoc
alerante has joined #nanoc
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures a4f6279 Denis Defreyne: The build is still failing.
alerante has quit [Ping timeout: 276 seconds]
<ddfreyne> guardian: Where does that code live?
<guardian> that's again the same situation I described in this comment: https://github.com/nanoc/nanoc/pull/414#issuecomment-39829349
<guardian> except now there's product/lib/_factory.lib that contains the code: http://pastebin.com/kypU63NS
<guardian> this allows me to have the product nanoc site load the helpers from the "nanoc factory" and eventually have its own helpers
<ddfreyne> guardian: Where is that code called? (The code that creates and loads the code snippets)
<guardian> I cd product/
<guardian> product/lib/_factory.rb == http://pastebin.com/kypU63NS
<guardian> so when I'm inside product/, nanoc compile loads product/lib/_factory.rb which loads more snippets
<guardian> but @site.@code_snippets only contains product/lib/_factory.rb and isn't aware of all the helpers coming from _factory/lib/**/*.rb
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures c855872 Denis Defreyne: The build is still failing.
<ddfreyne> guardian: You should call the code that creates code snippets in the preprocess block
<guardian> I tried that but it doesn't work
<guardian> and even if I call that excerpt from preprocessor: http://pastebin.com/kypU63NS
<guardian> how does that solve "new helpers must be appended to @site.@code_snippets"? because once in preprocessor I can alter @site.@code_snippets?
<ddfreyne> It's @site.code_snippets, not @site.@code_snippets (the latter is invalid Ruby syntax)
<ddfreyne> guardian: In the preprocess block you can modify that, kyes
<guardian> ah ok :)
<guardian> I'll try that again
<guardian> thanks for taking the time to understand where I am :)
<guardian> damn I'm at the same time tyding SVG coming out of inkscape with Nokogiri... removing all cruft is not so easy
<guardian> that's nice my GF drives while I'm working over my 4G link. the future is now
<guardian> listening to soundcloud :)
<ddfreyne> Haha :)
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures cc1824f Denis Defreyne: The build is still failing.
<ddfreyne> Nice
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 6ed5ab6 Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 49d33fa Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 532565a Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 2511262 Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 007c00f Denis Defreyne: The build is still failing.
alerante has joined #nanoc
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures b9dfaac Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures afb20fd Denis Defreyne: The build is still failing.
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 6eb0da2 Denis Defreyne: The build was fixed.
VitamineD has quit [Quit: Computer has gone to sleep.]
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures 48282da Denis Defreyne: The build passed.
<ddfreyne> Review requested:
<ddfreyne> Relatedly, I'd love to get more people aboard nanoc development. Would be great to have a bunch of people that are willing to do code reviews.
<ddfreyne> If interested, talk to me!
VitamineD has joined #nanoc
VitamineD has quit [Ping timeout: 245 seconds]
jutah has joined #nanoc
VitamineD has joined #nanoc
VitamineD_ has joined #nanoc
VitamineD has quit [Ping timeout: 276 seconds]
VitamineD_ has quit [Quit: Computer has gone to sleep.]
<guardian> ddfreyne: interested, but not sure I can always provide useful feedback
<travis-ci> [travis-ci] nanoc/nanoc/bug/fix-jruby-failures f885fe7 Denis Defreyne: The build passed.
<guardian> ddfreyne: Now you have to update that warning message would Nokogiri issues be fixed. Why not reference #422 in the warning msg?
<ddfreyne> guardian: It's OK not to be able to always provide feedback. It's mostly just so PRs get more exposure before beign merged and bobthecow does not have sole responsibility for reviewing :)
<ddfreyne> guardian: I could mention #422 in the warning message I guess.
<guardian> ddfreyne: so loading the _factory/lib/**/*.rb code snippets from _factory/Rules 's preprocess block works but _factory/Rules uses some helpers in the compile/route definitions (like an images_dir helper that looks up inside @config)
<guardian> maybe I should get rid of this images_dir helper and replace it by straight @config[:images_dir]
<ddfreyne> Hmm, that is annoying…
<guardian> well... that's annoying but a clean solution involves exposing a helper search path to nanoc.yaml
<ddfreyne> Or let the Rules file determine where to load code snippets from
<ddfreyne> (So you'd have some sort of #require-like functionality in there)
<guardian> in fact, adding snippets to @site.code_snippets from _factory/Rules' preprocess block doesn't work in the end
<guardian> after the site has compiled successfully, I get: http://pastebin.com/jztgsidA
<ddfreyne> guardian: How are you adding the code snippets?
<ddfreyne> (How are you adding it to @site.code_snippets I mean)
<ddfreyne> guardian: Yeah, that's worng and exactly what I suspected :)
<ddfreyne> #<< adds a single element; the single element in this case being the entire array
<guardian> ah crap
<guardian> so, do you still want me onboard? :))))
<ddfreyne> You need #concat
<guardian> well at least I think I'm a behaving student :)
<ddfreyne> Heh
<ddfreyne> Alright, off to dinner
<ddfreyne> seeya!
<guardian> o/
<guardian> thx for the help
<guardian> when you have more time I'm interested in discussing about a solution to have the Rules file tell from which code_snippets should be loaded. When you say "(So you'd have some sort of #require-like functionality in there)" are you thinking of augmenting the DSL?
<guardian> in the meantine, I have product/lib/_factory.rb that loads _factory/**/*.rb, "that loads" == "code_snippets.each { |cs| cs.load }"
<guardian> and I ALSO have _factory/Rules that looks up _factory/**/*.rb files but this time doesn't call cs.load but just concat @site.code_snippets
<guardian> that's icky but that unblock my current situation
FunkyPenguin has quit [Ping timeout: 240 seconds]
FunkyPenguin has joined #nanoc
alerante has quit [Remote host closed the connection]
gregkare_ has joined #nanoc
gregkare_ has quit [Client Quit]
FunkyPenguin has quit [Ping timeout: 240 seconds]
FunkyPenguin has joined #nanoc
gregkare has quit [Quit: bye]
FunkyPenguin has quit [Excess Flood]
gregkare has joined #nanoc
FunkyPenguin has joined #nanoc
achal has left #nanoc [#nanoc]
alerante has joined #nanoc
jutah has quit [Quit: Connection closed for inactivity]
FunkyPenguin has quit [Ping timeout: 276 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 240 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Excess Flood]
FunkyPenguin has joined #nanoc
VitamineD_ has joined #nanoc
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 276 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 240 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #nanoc
FunkyPenguin has quit [Excess Flood]
FunkyPenguin has joined #nanoc
<ddfreyne> guardian: This may require some backwards-incompatible reworking I think… would definitely be useful to think about this in nanoc 4.
jutah has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]