Permalink
Browse files

fixed up better project layout

  • Loading branch information...
1 parent 5d16a8c commit a9c112a49ee02a91369e630faba70714c3155cbf @bangline committed Nov 9, 2011
Showing with 20 additions and 19 deletions.
  1. +1 −1 Rakefile
  2. +5 −5 gist.gemspec
  3. +0 −4 lib/gist.rb
  4. +0 −3 lib/gist/version.rb
  5. +4 −0 lib/rack/gist.rb
  6. +5 −0 lib/rack/gist/version.rb
  7. +2 −0 lib/rack_gist.rb
  8. +1 −1 spec/rack/gist_spec.rb
  9. +2 −5 spec/spec_helper.rb
View
@@ -3,5 +3,5 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
-# If you want to make this the default task
+desc "Run specs"
task :default => :spec
View
@@ -1,24 +1,24 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "gist/version"
+require "rack/gist/version"
Gem::Specification.new do |s|
- s.name = "gist"
- s.version = Gist::VERSION
+ s.name = "rack_gist"
+ s.version = Rack::Gist::VERSION
s.authors = ["Dave Kennedy"]
s.email = ["david@bangline.co.uk"]
s.homepage = ""
s.summary = %q{TODO: Write a gem summary}
s.description = %q{TODO: Write a gem description}
- s.rubyforge_project = "gist"
+ s.rubyforge_project = "rack_gist"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
+ s.add_runtime_dependency "rack"
s.add_development_dependency "bundler"
s.add_development_dependency "rspec"
- # s.add_runtime_dependency "rest-client"
end
View
@@ -1,4 +0,0 @@
-require 'gist/version'
-
-module Gist
-end
View
@@ -1,3 +0,0 @@
-module Gist
- VERSION = "0.0.1"
-end
View
@@ -0,0 +1,4 @@
+module Rack
+ class Gist
+ end
+end
View
@@ -0,0 +1,5 @@
+module Rack
+ class Gist
+ VERSION = "0.0.1"
+ end
+end
View
@@ -0,0 +1,2 @@
+require 'rack'
+require 'rack/gist'
View
@@ -1,5 +1,5 @@
require 'spec_helper'
-describe Gist do
+describe Rack::Gist do
pending "So whassup"
end
View
@@ -1,8 +1,5 @@
require 'rubygems'
require 'bundler/setup'
-require 'gist'
-
-RSpec.configuration do |config|
- config.mock_with :rspec
-end
+$:.unshift File.expand_path("../../lib", __FILE__)
+require 'rack_gist'

0 comments on commit a9c112a

Please sign in to comment.