Skip to content

Commit

Permalink
Merge pull request #3 from benbalter/membership
Browse files Browse the repository at this point in the history
Membership API support
  • Loading branch information
benbalter committed Sep 29, 2014
2 parents 28d1577 + d47aecd commit a9c24f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion add-to-org.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.add_dependency( "warden-github")
s.add_dependency( "sinatra_auth_github")
s.add_dependency( "octokit")
s.add_dependency( "octokit", "~> 3.3")
s.add_dependency( "rack-ssl-enforcer")
s.add_dependency( "dotenv")
end
2 changes: 1 addition & 1 deletion lib/add-to-org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def org_id

# the main event...
def add
sudo_client.add_team_member team_id, user.login
sudo_client.add_team_membership team_id, user.login
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/add-to-org/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AddToOrg
VERSION = "0.0.1"
VERSION = "1.0.0"
end
8 changes: 2 additions & 6 deletions lib/add-to-org/views/success.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
</head>
<body>
<h1>You're all set</h1>
<p>You should be <a href="<%= ERB::Util.html_escape(redirect) %>">redirected</a> automatically...</h1>
<script>
setTimeout(function () {
window.location.href = "<%= ERB::Util.html_escape(redirect) %>";
}, 5000);
</script>
<p>You should have recieved an email inviting you to join the organization.</p>
<p>Once confirmed, you will have access to <a href="<%= ERB::Util.html_escape(redirect) %>"></a>, the requested URL.</h1>
</body>
</html>

0 comments on commit a9c24f8

Please sign in to comment.