Permalink
Browse files

Added gemspec

  • Loading branch information...
1 parent c3be2f2 commit 211a997b6e9db5c0e3890ccde78cd127375c476f @seejohnrun seejohnrun committed Oct 13, 2012
Showing with 28 additions and 0 deletions.
  1. +17 −0 argh.gemspec
  2. +2 −0 lib/argh.rb
  3. +5 −0 lib/argh/version.rb
  4. +4 −0 spec/examples/basic_spec.rb
View
@@ -0,0 +1,17 @@
+require File.dirname(__FILE__) + '/lib/argh/version'
+
+spec = Gem::Specification.new do |s|
+ s.name = 'argh'
+ s.author = 'John Crepezzi'
+ s.add_development_dependency('rspec')
+ s.description = 'Easy command-line argument building in Ruby'
+ s.email = 'johnc@broadstreetads.com'
+ s.files = Dir['lib/**/*.rb']
+ s.has_rdoc = false
+ s.homepage = 'https://github.com/broadstreetads/argh'
+ s.platform = Gem::Platform::RUBY
+ s.require_paths = ['lib']
+ s.summary = 'Easy command-line arguments'
+ s.test_files = Dir.glob('spec/**/*.rb')
+ s.version = Argh::VERSION
+end
View
@@ -6,4 +6,6 @@ module Argh
autoload :Collector, base + '/argh/collector'
autoload :Processors, base + '/argh/processors'
+ autoload :VERSION, base + '/argh/version'
+
end
View
@@ -0,0 +1,5 @@
+module Argh
+
+ VERSION = '0.0.1'
+
+end
@@ -41,6 +41,10 @@ def age
let(:example) { BasicExample.new }
+ it 'should have a version' do
+ Argh::VERSION.should be_a(String)
+ end
+
it 'better not define #attribute on example instance' do
example.should_not respond_to(:attribute)
end

0 comments on commit 211a997

Please sign in to comment.