Skip to content

Loading…

Make it compatible with GLI-2. #25

Merged
merged 2 commits into from

2 participants

@banafederico

GLI-2 tells you to use just "run(ARGV)", so I changed the executable to do that, otherwise it wouldn't work if someone tried to use it today with the latest version of GLI.

@pote pote merged commit a4091d5 into pote:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2012
  1. Change executable to adapt to gli-2.

    Federico Bana committed
  2. Added "fileutils" to the require statements.

    Federico Bana committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/planet
View
5 bin/planet
@@ -2,8 +2,9 @@
require 'gli'
require 'planet'
+require 'fileutils'
-include GLI
+include GLI::App
TEMPLATES = {
author: '
@@ -147,4 +148,4 @@ on_error do |exception|
true
end
-exit GLI.run(ARGV)
+exit run(ARGV)
Something went wrong with that request. Please try again.