Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nanoc/nanoc
base: 68315516d79f
Choose a base ref
...
head repository: nanoc/nanoc
compare: d573212272d2
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 13, 2016

  1. Discover external commands through Bundler

    Other gems may want to add commands to the nanoc CLI. To do this
    they need to run Nanoc::CLI.add_after_setup_proc. Currently, there
    is no way to hook into the CLI. This commit adds such a way by
    utilizing Bundler. E.g. the gem guard-nanoc could introduce new
    commands when added to the Gemfile in this way:
    
      gem 'nanoc'
      group :nanoc do
        gem 'guard-nanoc'
      end
    
    Presence of any gems in the group :nanoc will cause the library with
    the same name as the gem to be required by Bundler during
    the initialization of the CLI.
    
    A special group :nanoc is used for two reasons:
      * nanoc may not be the only or primary user of the Gemfile,
        and requiring many unrelated gems will slow down every invocation
        of nanoc with no workaround;
      * existing Gemfiles may include specifications for gems that cannot
        be successfully required, so using the group :default would
        break such existing nanoc installations.
    whitequark committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    2643931 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2016

  1. Merge pull request #910 from whitequark/bundler-require

    Discover external commands through Bundler
    denisdefreyne committed Jul 24, 2016
    Configuration menu
    Copy the full SHA
    d573212 View commit details
    Browse the repository at this point in the history