Permalink
Browse files

preparing library for gem release

  • Loading branch information...
1 parent fae0424 commit e02a2e2b01705e1111b30ae89391fc9c0b674f13 @ryan-allen committed Apr 14, 2011
Showing with 29 additions and 1 deletion.
  1. +4 −0 Gemfile
  2. +18 −0 interceptor.gemspec
  3. +2 −0 { → lib}/interceptor.rb
  4. +5 −1 rakefile.rb
  5. 0 { → test}/interceptor_test.rb
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in interceptor.gemspec
+gemspec
View
@@ -0,0 +1,18 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'interceptor'
+
+Gem::Specification.new do |s|
+ s.name = 'interceptor'
+ s.version = Interceptor::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ['Ryan Allen']
+ s.email = ['ryan@ryanface.com']
+ s.homepage = 'https://github.com/ryan-allen/interceptor'
+ s.summary = %q{Mad Max had one, and he was freaking awesome.}
+ s.description = %q{Interceptor is a library for modifying calls to objects. You can change things as they come in or as they go out.}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.require_paths = ['lib']
+end
@@ -1,4 +1,6 @@
class Interceptor
+ VERSION = '0.0.1'
+
def initialize(receiver)
@receiver = receiver
@interceptions = {}
View
@@ -1,7 +1,11 @@
+require 'bundler'
+
+Bundler::GemHelper.install_tasks
+
task :default do
Rake::Task['run_tests'].invoke
end
task :run_tests do
- require 'interceptor_test'
+ require 'test/interceptor_test'
end
File renamed without changes.

0 comments on commit e02a2e2

Please sign in to comment.