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

Commit

Permalink
Adding some docs about postreceive urls, bumping to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Jan 8, 2010
1 parent 498f783 commit 469fdde
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
13 changes: 10 additions & 3 deletions README.rdoc
Expand Up @@ -13,12 +13,19 @@ Create an enforcer script and then run it with the "enforcer" executable.
The DSL should be formed like such: The DSL should be formed like such:


Enforcer "your github account", "your github api key" do Enforcer "your github account", "your github api key" do
project "some project", "user1", "user2", "user3" project "project", "user1", "user2", "user3"

postreceive "project", "http://rdoc.info/projects/update",
"http://example.com/post"
end end


The users passed into the project are then set as the collaborators. Any The users passed into the project are then set as the collaborators. Any
users not listed are removed. You could use a GitHub API wrapper like users not listed are removed. You can also set postreceive URLs as well.
Octopi to load up your projects as well. Here's a more complex example:
== advanced

You could use a GitHub API wrapper like Octopi to load up your projects.
Here's a more complex example:


require 'octopi' require 'octopi'
include Octopi include Octopi
Expand Down
36 changes: 26 additions & 10 deletions enforcer.gemspec
@@ -1,15 +1,15 @@
# Generated by jeweler # Generated by jeweler
# DO NOT EDIT THIS FILE # DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec` # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{enforcer} s.name = %q{enforcer}
s.version = "0.0.2" s.version = "0.1.0"


s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Quaranto"] s.authors = ["Nick Quaranto"]
s.date = %q{2009-08-24} s.date = %q{2010-01-08}
s.default_executable = %q{enforcer} s.default_executable = %q{enforcer}
s.email = %q{nquaranto@thoughtbot.com} s.email = %q{nquaranto@thoughtbot.com}
s.executables = ["enforcer"] s.executables = ["enforcer"]
Expand All @@ -23,14 +23,14 @@ Gem::Specification.new do |s|
"LICENSE", "LICENSE",
"README.rdoc", "README.rdoc",
"Rakefile", "Rakefile",
"VERSION",
"bin/enforcer", "bin/enforcer",
"enforcer.gemspec", "enforcer.gemspec",
"features/manage_collaborators.feature", "features/manage_collaborators.feature",
"features/set_hooks.feature",
"features/step_definitions/enforcer_steps.rb", "features/step_definitions/enforcer_steps.rb",
"features/support/env.rb", "features/support/env.rb",
"lib/enforcer.rb", "lib/enforcer.rb",
"lib/repository.rb", "lib/enforcer/repository.rb",
"test/enforcer_test.rb", "test/enforcer_test.rb",
"test/integration.rb", "test/integration.rb",
"test/repository_test.rb", "test/repository_test.rb",
Expand All @@ -39,7 +39,7 @@ Gem::Specification.new do |s|
s.homepage = %q{http://github.com/thoughtbot/enforcer} s.homepage = %q{http://github.com/thoughtbot/enforcer}
s.rdoc_options = ["--charset=UTF-8"] s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"] s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.4} s.rubygems_version = %q{1.3.5}
s.summary = %q{A simple way to manage permissions on GitHub} s.summary = %q{A simple way to manage permissions on GitHub}
s.test_files = [ s.test_files = [
"test/enforcer_test.rb", "test/enforcer_test.rb",
Expand All @@ -54,13 +54,29 @@ Gem::Specification.new do |s|


if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<httparty>, [">= 0"]) s.add_runtime_dependency(%q<httparty>, [">= 0"])
s.add_runtime_dependency(%q<fcoury-octopi>, [">= 0"]) s.add_runtime_dependency(%q<octopi>, [">= 0"])
s.add_runtime_dependency(%q<json>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<rr>, [">= 0"])
s.add_development_dependency(%q<cucumber>, [">= 0"])
s.add_development_dependency(%q<fakeweb>, [">= 0"])
else else
s.add_dependency(%q<httparty>, [">= 0"]) s.add_dependency(%q<httparty>, [">= 0"])
s.add_dependency(%q<fcoury-octopi>, [">= 0"]) s.add_dependency(%q<octopi>, [">= 0"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<rr>, [">= 0"])
s.add_dependency(%q<cucumber>, [">= 0"])
s.add_dependency(%q<fakeweb>, [">= 0"])
end end
else else
s.add_dependency(%q<httparty>, [">= 0"]) s.add_dependency(%q<httparty>, [">= 0"])
s.add_dependency(%q<fcoury-octopi>, [">= 0"]) s.add_dependency(%q<octopi>, [">= 0"])
s.add_dependency(%q<json>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<rr>, [">= 0"])
s.add_dependency(%q<cucumber>, [">= 0"])
s.add_dependency(%q<fakeweb>, [">= 0"])
end end
end end

2 changes: 1 addition & 1 deletion lib/enforcer.rb
Expand Up @@ -7,7 +7,7 @@
require 'enforcer/repository' require 'enforcer/repository'


class Enforcer class Enforcer
VERSION = "0.0.3" VERSION = "0.1.0"


def initialize(account_name, api_key) def initialize(account_name, api_key)
@account_name = account_name @account_name = account_name
Expand Down

0 comments on commit 469fdde

Please sign in to comment.