diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2014-12-17 09:09:10 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2014-12-17 09:09:10 +0000 |
commit | 4e0e6bda6fd2aa441602686083764913fbdefb6b (patch) | |
tree | d01e5488b6e0100bff27893876437b57d354b493 | |
parent | 94c79db0ce1df73f2a2cc5859e42adc943868959 (diff) | |
download | slop-4e0e6bda6fd2aa441602686083764913fbdefb6b.tar.gz |
Add VERSION, stop managing it separately in gemspec
-rw-r--r-- | lib/slop.rb | 2 | ||||
-rw-r--r-- | slop.gemspec | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/slop.rb b/lib/slop.rb index 4c7c0e1..5e0c48b 100644 --- a/lib/slop.rb +++ b/lib/slop.rb @@ -6,6 +6,8 @@ require 'slop/types' require 'slop/error' module Slop + VERSION = '4.0.0' + def self.parse(items = ARGV, **config, &block) Options.new(config, &block).parse(items) end diff --git a/slop.gemspec b/slop.gemspec index b14425d..1720e31 100644 --- a/slop.gemspec +++ b/slop.gemspec @@ -1,6 +1,9 @@ +$:.unshift './lib' +require 'slop' + Gem::Specification.new do |s| s.name = 'slop' - s.version = '3.4.6' + s.version = Slop::VERSION s.summary = 'Simple Lightweight Option Parsing' s.description = 'A simple DSL for gathering options and parsing the command line' s.author = 'Lee Jarvis' |