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: 240 seconds]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alerante has joined #nanoc
alerante has quit [Ping timeout: 276 seconds]
justicefries has joined #nanoc
cDlm has quit [Remote host closed the connection]
cDlm has joined #nanoc
<guardian> morning
<guardian> if you're into Git CLI but want to integrate with P4Merge: http://goo.gl/YKGvnX
achal has joined #nanoc
terinjokes has quit [*.net *.split]
terinjokes has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
<guardian> ddfreyne: you removed explanations about regex based rules
<guardian> ?
<guardian> can't seem to find that part on http://nanoc.ws/docs/
<guardian> "It can also be a string that contains the * wildcard, which matches zero or more characters. Additionally, it can be a regular expression." <-- imho fails to convey regular expressions have to be given using %r{}
cDlm has quit [Quit: Computer has gone to sleep.]
<ddfreyne> guardian: They don't need to be given with %r{}. You can use // as well
<ddfreyne> guardian: %r{} is easier because you do not need to escape the / in the identifier
<guardian> really?
cDlm has joined #nanoc
<guardian> irb(main):017:0> identifier_to_regex '/foo/bar/xxx-.*\.svg/'
<guardian> => /^\/foo\/bar\/xxx-.(.*?)\.svg\/$/
<guardian> the fuck
<guardian> ah yeah you meant identifier_to_regex /foo\/bar\/xxx-.*\.svg\//
<guardian> because having .* in a string doesn't fly
<guardian> and now I remember I told you I've witnessed people using .* in strings for rules, seen this in various nanoc sites which sources are available on GitHub
<ddfreyne> guardian: Well you can have .* in a string, but it doesn't really make much sense
alerante has joined #nanoc
<ddfreyne> guardian: nanoc 4 patterns will be better in any case :)
<guardian> indeed
<guardian> ddfreyne: did you review the pull requests further btw?
<ddfreyne> guardian: Had no time to look into it properly yet
<guardian> k
<guardian> first matching rule wins right? and others are ignored
<guardian> do I still get this right?
<ddfreyne> guardian: yes
<guardian> can you spot a defect in this fragment? http://pastebin.com/GbdG826m
<guardian> I get svg routed :(
<travis-ci> [travis-ci] nanoc/nanoc-external/dev 31b7af8 Lifepillar: The build passed.
<ddfreyne> guardian: "/#{images_dir}/*.svg/" likely won't work (unless you use the static data source)
<guardian> ah yeah
<guardian> that's the mistake
<guardian> I'm so stupid at times
<guardian> thank you
<guardian> in fact I was doing it with extensions, then went "it's better if I let nanoc rules come into play"
<guardian> thank you denis
<ddfreyne> That'll work in nanoc 4 only :)
<guardian> oh yeah I'm doing so much work around nanoc 3 these days
<guardian> I'm pushing that nanoc 3 factory into production at work
<guardian> to document all the things
<ddfreyne> Nice :)
<guardian> they seem to be very happy about it
<ddfreyne> I may use this at work as well!
achal has quit [Quit: Connection closed for inactivity]
<ddfreyne> Hmmm
<ddfreyne> What do you think of the indicator?
relix has joined #nanoc
relix has quit [Ping timeout: 250 seconds]
relix has joined #nanoc
<guardian> what do you mean by indicator?
<ddfreyne> the red/black sign in the side bar
<guardian> red/black?!
<guardian> yellow black here
<ddfreyne> Yellow black I mean, heh
<guardian> is there a difference between xml = Nokogiri::XML(contents) and xml = Nokogiri::XML.parse(contents)
<guardian> I find reading Nokogiri's doc difficult
<guardian> http://nokogiri.org/Nokogiri/XML.html doesn't seem to mention the former syntax
alerante has quit [Remote host closed the connection]
achal has joined #nanoc
<guardian> damn I'm in a situation where nanoc compile doesn't exit
<guardian> and I don't know how to debug
cDlm has quit [Quit: Computer has gone to sleep.]
cDlm has joined #nanoc
<guardian> I managed to put nanoc into an infinite loop by when inlining another item's compiled content
<guardian> I think I'm "achieving" this because I'm trying to inject foo.compiled_content into an item, but foo is filtered with a buggy filter that returns nil
alerante has joined #nanoc
alerante has quit [Ping timeout: 245 seconds]
<guardian> ddfreyne: where does it happen, the fact that changing a helper marks all items as outdated?
jugglinmike has joined #nanoc
<ddfreyne> guardian: Any change to lib/ marks everything as outdated
<ddfreyne> That's done in the OutdatednessChecker
alerante has joined #nanoc
<guardian> even if in my case? http://pastebin.com/kypU63NS
<guardian> will any change to _factory/lib mark everything as outdated?
<ddfreyne> guardian: Yes
<ddfreyne> guardian: There is no way for nanoc to figure out what the impact of a change in lib/ is, so it has to recompile everything
cDlm is now known as VitamineD
<guardian> ok
<guardian> then that's good
<guardian> well I'm modifying _factory/lib/filters/tidy_svg.rb but my site doesn't recompile stuff
<guardian> need to find out why
<guardian> ddfreyne: I found why I don't have my _factory/lib/**/*.rb helper causing recompile
<guardian> ddfreyne: http://pastebin.com/kypU63NS despite cs.load, I can't find a way to register them into @site.@code_snippets
<guardian> that's because my fragment that adds more code snippets is eval'ed in the TOPLEVEL_BINDING I guess
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
achal has quit [Quit: Connection closed for inactivity]