Skip to content

Commit f7a35bc

Browse files
committed
Set up Adding Hooks information
1 parent 01c647d commit f7a35bc

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

api/ruby/rendering-data-as-graphs/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ source "http://rubygems.org"
33
gem "json", "1.7.7"
44
gem 'sinatra', '~> 1.3.5'
55
gem 'sinatra_auth_github', '~> 0.13.3'
6-
gem 'octokit', '~> 1.23.0'
6+
gem 'octokit', '~> 1.23.0'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "http://rubygems.org"
2+
3+
gem "json", "1.7.7"
4+
gem 'sinatra', '~> 1.3.5'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
json (1.7.7)
5+
rack (1.5.2)
6+
rack-protection (1.5.2)
7+
rack
8+
sinatra (1.3.6)
9+
rack (~> 1.4)
10+
rack-protection (~> 1.3)
11+
tilt (~> 1.3, >= 1.3.3)
12+
tilt (1.4.1)
13+
14+
PLATFORMS
15+
ruby
16+
17+
DEPENDENCIES
18+
json (= 1.7.7)
19+
sinatra (~> 1.3.5)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'sinatra'
2+
require 'json'
3+
4+
post '/payload' do
5+
push = JSON.parse(params[:payload])
6+
puts "I got some JSON: #{push.inspect}"
7+
end

0 commit comments

Comments
 (0)