Permalink
Browse files

Adding some docs about postreceive urls, bumping to 0.1.0

  • Loading branch information...
1 parent 498f783 commit 469fdde1797496b89621772d2edf29d69d8f4f12 @qrush qrush committed Jan 8, 2010
Showing with 37 additions and 14 deletions.
  1. +10 −3 README.rdoc
  2. +26 −10 enforcer.gemspec
  3. +1 −1 lib/enforcer.rb
View
@@ -13,12 +13,19 @@ Create an enforcer script and then run it with the "enforcer" executable.
The DSL should be formed like such:
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
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
-Octopi to load up your projects as well. Here's a more complex example:
+users not listed are removed. You can also set postreceive URLs as well.
+
+== advanced
+
+You could use a GitHub API wrapper like Octopi to load up your projects.
+Here's a more complex example:
require 'octopi'
include Octopi
View
@@ -1,15 +1,15 @@
# Generated by jeweler
-# DO NOT EDIT THIS FILE
-# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
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.authors = ["Nick Quaranto"]
- s.date = %q{2009-08-24}
+ s.date = %q{2010-01-08}
s.default_executable = %q{enforcer}
s.email = %q{nquaranto@thoughtbot.com}
s.executables = ["enforcer"]
@@ -23,14 +23,14 @@ Gem::Specification.new do |s|
"LICENSE",
"README.rdoc",
"Rakefile",
- "VERSION",
"bin/enforcer",
"enforcer.gemspec",
"features/manage_collaborators.feature",
+ "features/set_hooks.feature",
"features/step_definitions/enforcer_steps.rb",
"features/support/env.rb",
"lib/enforcer.rb",
- "lib/repository.rb",
+ "lib/enforcer/repository.rb",
"test/enforcer_test.rb",
"test/integration.rb",
"test/repository_test.rb",
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
s.homepage = %q{http://github.com/thoughtbot/enforcer}
s.rdoc_options = ["--charset=UTF-8"]
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.test_files = [
"test/enforcer_test.rb",
@@ -54,13 +54,29 @@ Gem::Specification.new do |s|
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<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
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
else
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
+
View
@@ -7,7 +7,7 @@
require 'enforcer/repository'
class Enforcer
- VERSION = "0.0.3"
+ VERSION = "0.1.0"
def initialize(account_name, api_key)
@account_name = account_name

0 comments on commit 469fdde

Please sign in to comment.