diff --git a/lib/relish/commands/base.rb b/lib/relish/commands/base.rb index 22a7414..69f03c4 100644 --- a/lib/relish/commands/base.rb +++ b/lib/relish/commands/base.rb @@ -57,6 +57,7 @@ def get_api_token def resource(options = {}) options[:user] ||= api_token options[:password] ||= 'X' + options[:headers] = { :client_version => Relish::Version::STRING } RestClient::Resource.new(url, options) end @@ -70,7 +71,6 @@ def valid_option_names def validate_cli_options cli_options.keys.each do |option| - unless valid_option_names.include?(option.to_s) error "'#{option}' is not a valid option." end @@ -107,4 +107,4 @@ def escape(str) end end -end \ No newline at end of file +end diff --git a/relish.gemspec b/relish.gemspec index 3dd300a..52e54fd 100644 --- a/relish.gemspec +++ b/relish.gemspec @@ -1,6 +1,8 @@ +require File.dirname(__FILE__) + '/lib/relish/version' + Gem::Specification.new do |s| s.name = "relish" - s.version = "0.4.0" + s.version = Relish::Version::STRING s.required_rubygems_version = '>= 1.3.5' s.authors = ["Matt Wynne", "Justin Ko"]