Permalink
Browse files

Act like a grownup gem

  • Loading branch information...
qrush committed Jan 8, 2010
1 parent bbb685b commit 4c63ec5d7fbb1739bb88cb5f83def1df93ae18e1
Showing with 13 additions and 5 deletions.
  1. +9 −2 Rakefile
  2. +0 −1 VERSION
  3. +3 −1 lib/enforcer.rb
  4. 0 lib/{ → enforcer}/repository.rb
  5. +1 −1 test/repository_test.rb
View
@@ -1,18 +1,25 @@
require 'rubygems'
require 'rake'
+require 'lib/enforcer'
task :default => [:test, :features]
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "enforcer"
+ gem.version = Enforcer::VERSION
gem.summary = %Q{A simple way to manage permissions on GitHub}
gem.email = "nquaranto@thoughtbot.com"
gem.homepage = "http://github.com/thoughtbot/enforcer"
gem.authors = ["Nick Quaranto"]
- gem.add_dependency("httparty")
- gem.add_dependency("fcoury-octopi")
+ gem.add_runtime_dependency("httparty")
+ gem.add_runtime_dependency("octopi")
+ gem.add_runtime_dependency("json")
+ gem.add_development_dependency("shoulda")
+ gem.add_development_dependency("rr")
+ gem.add_development_dependency("cucumber")
+ gem.add_development_dependency("fakeweb")
end
rescue LoadError
View
@@ -1 +0,0 @@
-0.0.2
View
@@ -4,9 +4,11 @@
require 'httparty'
require 'json'
-require 'repository'
+require 'enforcer/repository'
class Enforcer
+ VERSION = "0.0.3"
+
def initialize(account_name, api_key)
@account_name = account_name
@api_key = api_key
File renamed without changes.
View
@@ -16,7 +16,7 @@ class RepositoryTest < Test::Unit::TestCase
context "github is down" do
should "not fail" do
- stub(Repository).get(anything, anything) { raise TimeoutError }
+ stub(Repository).get(anything, anything) { raise TimeoutError.new("Failwhale!") }
assert_nothing_raised do
@repo.list
end

0 comments on commit 4c63ec5

Please sign in to comment.