public
Fork of jnunemaker/github-twitter
Description: Sinatra app that pushes your Github Commit info to twitter
Homepage: http://groups.google.com/group/github-twitter/
Clone URL: git://github.com/dustin/github-twitter.git
Search Repo:
updated config and got the littly diddy working
jnunemaker (author)
Fri Feb 15 20:47:15 -0800 2008
commit  3ee5e28266dc4e4ca6f815a63b51d96e2acc3087
tree    e8ec6936d016a7975ade218d7ec11d4c3797a481
parent  9b21120e31621f390c931e083de8d62818298bee
...
 
 
0
...
1
2
3
0
@@ -0,0 +1,2 @@
0
+config.yml
0
+*.log
0
\ No newline at end of file
...
12
13
14
15
 
16
17
18
...
27
28
29
30
 
31
32
33
...
12
13
14
 
15
16
17
18
...
27
28
29
 
30
31
32
33
0
@@ -12,7 +12,7 @@ class GithubTwitter
0
     payload = JSON.parse(payload)
0
     return unless payload.keys.include?("repository")
0
     @repo = payload["repository"]["name"]
0
- @template = ERB.new(REPOS[@repo]["template"] || "[<%= commit['repo'] %>] <%= commit['author']['name'] %> (<%= commit['url'] %>) - <%= commit['message'] %>")
0
+ @template = ERB.new(REPOS[@repo]["template"] || "[<%= commit['repo'] %>] <%= commit['url'] %> by <%= commit['author']['name'] %> - <%= commit['message'] %>")
0
     @twitter = connect(@repo)
0
     payload["commits"].each { |c| process_commit(c.last) }
0
   end
0
@@ -27,7 +27,7 @@ class GithubTwitter
0
     proc = Proc.new do
0
       commit
0
     end
0
- @twitter.update(@template.result(proc))
0
+ @twitter.post(@template.result(proc)[0,140])
0
   end
0
   
0
 end

Comments

    No one has commented yet.