bin/git-flattr in git-flattr-0.0.9 vs bin/git-flattr in git-flattr-0.0.10
- old
+ new
@@ -66,11 +66,11 @@
commit_url = "#{Git.github_url}/commit/#{commit}"
flattr = Flattr.new
puts commit_url
flattr.flattr commit_url
- thing = flattr.thing_lookup Git.github_url
- puts "Flattred #{Git.github_url} (#{thing.link})!"
+ thing = flattr.thing_lookup commit_url
+ puts "Flattred #{commit_url} (#{thing.link})!"
exit 0
rescue Flattr::Error::Unauthorized => e
error e.message
rescue Flattr::Error::Forbidden => e
error e.message