Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Act like a grownup gem
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Jan 8, 2010
1 parent bbb685b commit 4c63ec5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
11 changes: 9 additions & 2 deletions Rakefile
@@ -1,18 +1,25 @@
require 'rubygems' require 'rubygems'
require 'rake' require 'rake'
require 'lib/enforcer'


task :default => [:test, :features] task :default => [:test, :features]


begin begin
require 'jeweler' require 'jeweler'
Jeweler::Tasks.new do |gem| Jeweler::Tasks.new do |gem|
gem.name = "enforcer" gem.name = "enforcer"
gem.version = Enforcer::VERSION
gem.summary = %Q{A simple way to manage permissions on GitHub} gem.summary = %Q{A simple way to manage permissions on GitHub}
gem.email = "nquaranto@thoughtbot.com" gem.email = "nquaranto@thoughtbot.com"
gem.homepage = "http://github.com/thoughtbot/enforcer" gem.homepage = "http://github.com/thoughtbot/enforcer"
gem.authors = ["Nick Quaranto"] gem.authors = ["Nick Quaranto"]
gem.add_dependency("httparty") gem.add_runtime_dependency("httparty")
gem.add_dependency("fcoury-octopi") 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 end


rescue LoadError rescue LoadError
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

4 changes: 3 additions & 1 deletion lib/enforcer.rb
Expand Up @@ -4,9 +4,11 @@
require 'httparty' require 'httparty'
require 'json' require 'json'


require 'repository' require 'enforcer/repository'


class Enforcer class Enforcer
VERSION = "0.0.3"

def initialize(account_name, api_key) def initialize(account_name, api_key)
@account_name = account_name @account_name = account_name
@api_key = api_key @api_key = api_key
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/repository_test.rb
Expand Up @@ -16,7 +16,7 @@ class RepositoryTest < Test::Unit::TestCase


context "github is down" do context "github is down" do
should "not fail" 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 assert_nothing_raised do
@repo.list @repo.list
end end
Expand Down

0 comments on commit 4c63ec5

Please sign in to comment.