ddfreyne changed the topic of #nanoc to: 3.8.0 (May 4th) | 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
jugglinmike1 has joined #nanoc
jugglinmike has quit [Read error: Connection reset by peer]
jugglinmike1 has quit [Ping timeout: 256 seconds]
pkunc has joined #nanoc
FabianB has joined #nanoc
FabianB is now known as Guest4763
Guest79223 has quit [Ping timeout: 250 seconds]
guardian` has joined #nanoc
<nanoc-gh> [nanoc] ddfreyne pushed 2 new commits to master: http://git.io/vUZ0U
<nanoc-gh> nanoc/master eefd543 Denis Defreyne: Do not expose @site in preprocessor context
<nanoc-gh> nanoc/master 5c9d31e Denis Defreyne: Let shell cmd env use views
<nanoc-gh> [nanoc] ddfreyne force-pushed master from 5c9d31e to af874bc: http://git.io/vfYCs
<nanoc-gh> nanoc/master af874bc Denis Defreyne: Let shell cmd env use views
<travis-ci> nanoc/nanoc/master 5c9d31e Denis Defreyne: The build has errored.
<travis-ci> nanoc/nanoc/master af874bc Denis Defreyne: The build passed.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUZwl
<nanoc-gh> nanoc/master 080146d Denis Defreyne: Simplify and update datasource documentation
<travis-ci> nanoc/nanoc/master 080146d Denis Defreyne: The build passed.
<nanoc-gh> [nanoc] ddfreyne created glob-patterns (+2 new commits): http://git.io/vUnrt
<nanoc-gh> nanoc/glob-patterns 819e65b Denis Defreyne: wip
<nanoc-gh> nanoc/glob-patterns f490e91 Denis Defreyne: wip
<nanoc-gh> [nanoc] ddfreyne force-pushed glob-patterns from f490e91 to 2b50067: http://git.io/vUnKT
<nanoc-gh> nanoc/glob-patterns 2b50067 Denis Defreyne: Introduce Nanoc::Int::Pattern
<nanoc-gh> [nanoc] ddfreyne force-pushed glob-patterns from 2b50067 to 83505a7: http://git.io/vUnKT
<nanoc-gh> nanoc/glob-patterns 83505a7 Denis Defreyne: Add support for new-style syntax (WIP)
<nanoc-gh> nanoc/glob-patterns fb3dc19 Denis Defreyne: Introduce Nanoc::Int::Pattern
<travis-ci> nanoc/nanoc/glob-patterns 2b50067 Denis Defreyne: The build was canceled.
<nanoc-gh> [nanoc] ddfreyne force-pushed glob-patterns from 83505a7 to 8dd97e5: http://git.io/vUnKT
<nanoc-gh> nanoc/glob-patterns 8dd97e5 Denis Defreyne: Add support for new-style syntax (WIP)
<nanoc-gh> [nanoc] ddfreyne force-pushed glob-patterns from 8dd97e5 to 0036963: http://git.io/vUnKT
<nanoc-gh> nanoc/glob-patterns 0036963 Denis Defreyne: Add support for glob syntax
<nanoc-gh> [nanoc] ddfreyne force-pushed glob-patterns from 0036963 to 04ee6c4: http://git.io/vUnKT
<nanoc-gh> nanoc/glob-patterns 04ee6c4 Denis Defreyne: Add support for glob syntax
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to glob-patterns: http://git.io/vUnHM
<nanoc-gh> nanoc/glob-patterns 0c3891d Denis Defreyne: Enable FNM_EXTGLOB
<cDlm> hm
<cDlm> seems like I'm using verboten stuff in Nanoc 4
cDlm is now known as VitamineD
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to glob-patterns: http://git.io/vUn7J
<nanoc-gh> nanoc/glob-patterns 13645ca Denis Defreyne: Improve pattern specs
<ddfreyne> VitamineD: What are you using?
<VitamineD> I had a convenience extension method on Item, moved it to MutableItemView
<VitamineD> now #items is undefined in SiteView
<VitamineD> did you generate the yard docs somewhere?
<ddfreyne> VitamineD: SiteView#items doesn’t exist. You don’t need it; you can get the items through @items anyway
<ddfreyne> VitamineD: API docs live at http://nanoc.ws/docs/api/pre/
<VitamineD> aren't there problems with lexical scope ?
<ddfreyne> VitamineD: Can you share your extensions with me?
<ddfreyne> I’d like to take a look
<ddfreyne> VitamineD: Instead of @site.items in the Feed class, ou can instantiate it with items and use @items directly.
<VitamineD> I'm writing code as methods in a module, so using instance variables from the preprocess context is really confusing
<ddfreyne> VitamineD: @site also comes from the preprocessor though, just like @items
<ddfreyne> So @site.items would just become @items, because @items is set in Feed#initialize
<ddfreyne> Oh, MutableItemCollectionView does not have #concat, so that’ll fail… I will add that.
<VitamineD> yup
<VitamineD> seems I'm just using the items list anyway
<VitamineD> I'm accessing item attributes too
<VitamineD> line 71
<ddfreyne> I suppose MutableItemView could have a method #update_attributes which does pretty much that
<ddfreyne> In the mean time you’ll have to iterate over each @root[:entries_info] pair :)
<ddfreyne> VitamineD: #attributes was meant to be private all along in nanoc 3.x, but it was public by accident.
<travis-ci> nanoc/nanoc/glob-patterns 13645ca Denis Defreyne: The build failed.
<ddfreyne> Hrm, there’s a random `uninitialized constant Nanoc::CLI::Commands::Compile` that sometimes pops up…
<ddfreyne> VitamineD: Having any luck?
<VitamineD> I'm not very focused :)
<VitamineD> there is the CopenhagenSuborbitals BPM-5 test burn soon
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUcva
<nanoc-gh> nanoc/master 2df9d02 Denis Defreyne: Set up CLI before running tests...
<nanoc-gh> [nanoc] ddfreyne pushed 5 new commits to master: http://git.io/vUcU5
<nanoc-gh> nanoc/master 04ee6c4 Denis Defreyne: Add support for glob syntax
<nanoc-gh> nanoc/master 0c3891d Denis Defreyne: Enable FNM_EXTGLOB
<nanoc-gh> nanoc/master fb3dc19 Denis Defreyne: Introduce Nanoc::Int::Pattern
<travis-ci> nanoc/nanoc/master 2df9d02 Denis Defreyne: The build passed.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUcO2
<nanoc-gh> nanoc/master ef701b9 Denis Defreyne: Remove unused #create_object implementations
<travis-ci> nanoc/nanoc/master 6d2af13 Denis Defreyne: The build was broken.
<VitamineD> ok I have a problem creating items
<VitamineD> new_items is not in scope
<VitamineD> I could use items.create… but that merges item creation and side-effect
<VitamineD> I'm missing MutableItemView#has_key
<travis-ci> nanoc/nanoc/master ef701b9 Denis Defreyne: The build was broken.
<ddfreyne> VitamineD: #new_item exists in DataSource, which is what you want, I think
<VitamineD> no, i'm building pagination items in #preprocess
<ddfreyne> VitamineD: You’re running all this in the preprocessor, right?
<VitamineD> it's not a datasource
<ddfreyne> VitamineD: What’s wrong with items.create?
<VitamineD> it does both instanciation and adding to the list
<ddfreyne> You’d want to add them to the list at some point anyway though, right?
<VitamineD> my code was written with the side-effects isolated in the caller method
<ddfreyne> Hmm, yeah, I see
<ddfreyne> VitamineD: The reason why items.create exists is so that it doesn’t expose internal classes
<ddfreyne> VitamineD: I suppose you could instantiate your own type, and feed that to items.create
<ddfreyne> VitamineD: You can’t rely on the return value of items.create anyway (that should return nil, really)
<nanoc-gh> [nanoc] ddfreyne created full-style-identifiers (+2 new commits): http://git.io/vUc4K
<nanoc-gh> nanoc/full-style-identifiers bae5d3a Denis Defreyne: Remove static data source
<nanoc-gh> nanoc/full-style-identifiers 9db4e73 Denis Defreyne: Support full-style identifiers (WIP)
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUcRE
<nanoc-gh> nanoc/master 41ea5fa Denis Defreyne: Remove unused #not_implemented method
<nanoc-gh> [nanoc] ddfreyne pushed 2 new commits to full-style-identifiers: http://git.io/vUc2s
<nanoc-gh> nanoc/full-style-identifiers 40c45c8 Denis Defreyne: Use full-style identifiers by default (WIP)
<nanoc-gh> nanoc/full-style-identifiers 0bcb0c7 Denis Defreyne: Use full-style identifiers by default
<nanoc-gh> [nanoc] ddfreyne force-pushed full-style-identifiers from 0bcb0c7 to 4ffb0e0: http://git.io/vUc2u
<nanoc-gh> nanoc/full-style-identifiers 4f01718 Denis Defreyne: Support full-style identifiers (WIP)
<nanoc-gh> nanoc/full-style-identifiers af29b00 Denis Defreyne: Use full-style identifiers by default (WIP)
<nanoc-gh> nanoc/full-style-identifiers b40dcdb Denis Defreyne: Remove static data source
<nanoc-gh> [nanoc] ddfreyne force-pushed full-style-identifiers from 4ffb0e0 to 2383a3c: http://git.io/vUc2u
<nanoc-gh> nanoc/full-style-identifiers 2383a3c Denis Defreyne: Use full-style identifiers by default
<VitamineD> how do I query the site config from preprocess (I now have @site.config)
<ddfreyne> VitamineD: @config
<ddfreyne> (You might have to pass that through)
<VitamineD> ok
<VitamineD> …and I'm using item.attributes.fetch do…end :)
<VitamineD> I don't like nil checks…
<ddfreyne> VitamineD: Yeah, I think I’ll add #fetch to ItemView.
<VitamineD> \o/
<travis-ci> nanoc/nanoc/full-style-identifiers 2383a3c Denis Defreyne: The build was canceled.
<travis-ci> nanoc/nanoc/master 41ea5fa Denis Defreyne: The build was canceled.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUcPE
<nanoc-gh> nanoc/full-style-identifiers 83d4225 Denis Defreyne: Allow calling ItemArray#[] with glob
<VitamineD> I'm using item.parent… doesn't look like an extension I did
<ddfreyne> VitamineD: Oh, that one’s missing
<ddfreyne> VitamineD: ItemView#parent should just proxy to Nanoc::Int::Item#parent. I’ll add it to the issue I created.
<VitamineD> I'm using #fetch on @config as well
<ddfreyne> Added :)
<ddfreyne> I love using #fetch. For some reason, I rarely do it in nanoc.
<ddfreyne> (ConfigView#key? also needs to exist then, I guess)
<VitamineD> I prefer #at:ifAbsent: :)
<ddfreyne> Doesn’t exist!
<VitamineD> but even in Pharo those protocols could be more uniform
<ddfreyne> I was longing for a #find method in Ruby that had a fallback… but that’s kinda hard with Ruby’s syntax.
<VitamineD> yup
<ddfreyne> .find(default: 0) { … } maybe
<ddfreyne> .find { … }.or(0) if you’re using a monadic interface :P
<VitamineD> I guess I'll wait for a2 to avoid making too many temporary monkey patches
<ddfreyne> VitamineD: I think you can centralise them pretty easily
<ddfreyne> lib/_nanoc_4_patches.rb P
<ddfreyne> lib/_nanoc_4_patches.rb :P
<travis-ci> nanoc/nanoc/full-style-identifiers 83d4225 Denis Defreyne: The build failed.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUcHs
<nanoc-gh> nanoc/full-style-identifiers 8d0bfe8 Denis Defreyne: Allow specifying layouts by glob
<ddfreyne> Ah dammit.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUc5s
<nanoc-gh> nanoc/full-style-identifiers c9019f9 Denis Defreyne: Tighten up Identifier#initialize API
<ddfreyne> Ruby 1.9.x and JRuby can no longer be supported because they don’t have FNM_EXTGLOB :(
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUcFe
<nanoc-gh> nanoc/full-style-identifiers 6d885ca Denis Defreyne: Improve and test Identifier#prefix
<travis-ci> nanoc/nanoc/full-style-identifiers 8d0bfe8 Denis Defreyne: The build is still failing.
jugglinmike has joined #nanoc
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUcAW
<nanoc-gh> nanoc/full-style-identifiers 7d84370 Denis Defreyne: Improve #with_ext
<ddfreyne> nanoc 4.0.0a2 will be nice.
<ddfreyne> And it will have new features. I totally lied!
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUcp1
<nanoc-gh> nanoc/full-style-identifiers ba8fe34 Denis Defreyne: Prevent #with_ext on stripped identifiers
jugglinmike has quit [Read error: Connection reset by peer]
jugglinmike1 has joined #nanoc
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUch9
<nanoc-gh> nanoc/full-style-identifiers c8a0e0b Denis Defreyne: Document pattern_syntax
<ddfreyne> VitamineD: Haha, I love how you overrode the default colors to match your solarized ones :)
jugglinmike1 has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
<travis-ci> nanoc/nanoc/full-style-identifiers c9019f9 Denis Defreyne: The build is still failing.
<ddfreyne> VitamineD: There’ll be a nanoc 3.8.x release that adds some of the nanoc 4 methods, which will make it easier to migrate
<ddfreyne> VitamineD: So you can have a site that is both compileable on nanoc 3.x and 4.x
<VitamineD> ok
<ddfreyne> The nanoc site has a compat layer, and upgrading to nanoc 4 means removing that: https://github.com/nanoc/nanoc.ws/pull/89/files
<VitamineD> no need to panic anyway… I didn't update my site in a long while, and I'm thinking of redoing it in a more minimalistic way
jugglinmike has quit [Quit: Leaving.]
jugglinmike1 has joined #nanoc
jugglinmike1 has quit [Ping timeout: 246 seconds]
<travis-ci> nanoc/nanoc/full-style-identifiers 7d84370 Denis Defreyne: The build is still failing.
<guardian`> ddfreyne: why #563? what does it bring to have those methods renamed to __nanoc_xxx?
<ddfreyne> guardian`: They’re part of the private API, and renaming them will explicitly break code that uses those
<ddfreyne> guardian`: I intend to remove them because monkeypatching is icky :(
<nanoc-gh> [nanoc] ddfreyne pushed 3 new commits to full-style-identifiers: http://git.io/vUCiZ
<nanoc-gh> nanoc/full-style-identifiers 082d073 Denis Defreyne: Support multiple files with same basename
<nanoc-gh> nanoc/full-style-identifiers 696f532 Denis Defreyne: Verify Identifier error message
<nanoc-gh> nanoc/full-style-identifiers b5524cd Denis Defreyne: Simplify and test #identifier_for_filename usage
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to full-style-identifiers: http://git.io/vUCib
<nanoc-gh> nanoc/full-style-identifiers 4a3625b Denis Defreyne: Remove debug line
<travis-ci> nanoc/nanoc/full-style-identifiers ba8fe34 Denis Defreyne: The build is still failing.
<nanoc-gh> [nanoc] ddfreyne pushed 2 new commits to master: http://git.io/vUCDk
<nanoc-gh> nanoc/master 0f9a8a7 Denis Defreyne: Remove 1.9.3 from Travis CI
<nanoc-gh> nanoc/master d58647a Denis Defreyne: Only build master and PRs
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUC9C
<nanoc-gh> nanoc/master 94402a6 Denis Defreyne: Use JRuby HEAD instead of JRuby 1.7.x
<nanoc-gh> [nanoc] ddfreyne pushed 2 new commits to master: http://git.io/vUCHT
<nanoc-gh> nanoc/master a1111b4 Denis Defreyne: Test on latest Ruby
<nanoc-gh> nanoc/master be88e73 Denis Defreyne: Remove Rubinius
<travis-ci> nanoc/nanoc/master be88e73 Denis Defreyne: The build failed.
<ddfreyne> Nooo! Can’t get the build to pass.
<ddfreyne> 100% JRuby’s fault now.
<nanoc-gh> [nanoc] ddfreyne pushed 1 new commit to master: http://git.io/vUC5r
<nanoc-gh> nanoc/master c334c4d Denis Defreyne: Do not check stderr in gem test
<nanoc-gh> [nanoc] ddfreyne force-pushed full-style-identifiers from 4a3625b to 0e9fcd8: http://git.io/vUc2u
<nanoc-gh> nanoc/full-style-identifiers 0e9fcd8 Denis Defreyne: Support full-style identifiers...
<travis-ci> nanoc/nanoc/master c334c4d Denis Defreyne: The build is still failing.
jugglinmike has joined #nanoc
pkunc has quit [Quit: Leaving.]
jugglinmike has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
VitamineD has quit [Ping timeout: 265 seconds]
VitamineD has joined #nanoc
jugglinmike has quit [Ping timeout: 252 seconds]