Browse files

Added a gemspec and associated files.

  • Loading branch information...
1 parent f3ba33c commit 0b7b6b6a5bf1c70eb9111d4d5a6ff385ef2e65ec @jyurek jyurek committed May 18, 2011
Showing with 38 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −3 Gemfile
  3. +6 −0 Gemfile.lock
  4. +27 −0 cocaine.gemspec
  5. +3 −0 lib/cocaine/version.rb
View
1 .gitignore
@@ -1 +1,2 @@
*.rbc
+*.gem
View
4 Gemfile
@@ -1,6 +1,4 @@
source 'http://rubygems.org'
group :development do
- gem 'rspec'
- gem 'mocha'
- gem 'bourne'
+ gemspec :name => "cocaine"
end
View
6 Gemfile.lock
@@ -1,3 +1,8 @@
+PATH
+ remote: .
+ specs:
+ cocaine (0.0.1)
+
GEM
remote: http://rubygems.org/
specs:
@@ -21,5 +26,6 @@ PLATFORMS
DEPENDENCIES
bourne
+ cocaine!
mocha
rspec
View
27 cocaine.gemspec
@@ -0,0 +1,27 @@
+$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
+require 'cocaine/version'
+
+include_files = ["README*", "LICENSE", "Rakefile", "{lib,spec}/**/*"].map do |glob|
+ Dir[glob]
+end.flatten
+exclude_files = ["**/*.rbc"].map do |glob|
+ Dir[glob]
+end.flatten
+
+spec = Gem::Specification.new do |s|
+ s.name = "cocaine"
+ s.version = Cocaine::VERSION
+ s.author = "Jon Yurek"
+ s.email = "jyurek@thoughtbot.com"
+ s.homepage = "http://www.thoughtbot.com/projects/cocaine"
+ s.description = "A small library for doing (command) lines"
+ s.platform = Gem::Platform::RUBY
+ s.summary = "A small library for doing (command) lines"
+ s.files = include_files - exclude_files
+ s.require_path = "lib"
+ s.test_files = Dir["spec/**/*_spec.rb"]
+ s.add_development_dependency 'rspec'
+ s.add_development_dependency 'bourne'
+ s.add_development_dependency 'mocha'
+end
+
View
3 lib/cocaine/version.rb
@@ -0,0 +1,3 @@
+module Cocaine
+ VERSION = "0.0.1"
+end

0 comments on commit 0b7b6b6

Please sign in to comment.