Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle update #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# A sample Gemfile
source "https://rubygems.org"
ruby "~> 2.6"

gem "sinatra"
gem "sinatra-contrib"
gem "puma"
gem "oauth2"
gem "dotenv"
gem "httparty"
gem "foreman"

group :development do
gem "pry"
gem "awesome_print"
gem "benchmark-ips"
gem "foreman"
end
83 changes: 43 additions & 40 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
GEM
remote: https://rubygems.org/
specs:
awesome_print (1.7.0)
backports (3.6.8)
benchmark-ips (2.7.2)
coderay (1.1.1)
dotenv (2.1.1)
faraday (0.9.2)
awesome_print (1.8.0)
backports (3.15.0)
coderay (1.1.2)
dotenv (2.7.5)
faraday (0.17.0)
multipart-post (>= 1.2, < 3)
foreman (0.82.0)
thor (~> 0.19.1)
httparty (0.14.0)
foreman (0.86.0)
httparty (0.17.1)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
jwt (1.5.6)
method_source (0.8.2)
multi_json (1.12.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
oauth2 (1.2.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
jwt (2.2.1)
method_source (0.9.2)
mime-types (3.3)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.1009)
multi_json (1.14.1)
multi_xml (0.6.0)
multipart-post (2.1.1)
mustermann (1.0.3)
nio4r (2.5.2)
oauth2 (1.4.2)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
pry (0.10.4)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
puma (3.6.0)
rack (1.6.5)
rack-protection (1.5.3)
method_source (~> 0.9.0)
puma (4.3.0)
nio4r (~> 2.0)
rack (2.0.7)
rack-protection (2.0.7)
rack
rack-test (0.6.3)
rack (>= 1.0)
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sinatra-contrib (1.4.7)
backports (>= 2.0)
sinatra (2.0.7)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.7)
tilt (~> 2.0)
sinatra-contrib (2.0.7)
backports (>= 2.8.2)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (>= 1.3, < 3)
slop (3.6.0)
thor (0.19.1)
tilt (2.0.5)
mustermann (~> 1.0)
rack-protection (= 2.0.7)
sinatra (= 2.0.7)
tilt (~> 2.0)
tilt (2.0.10)

PLATFORMS
ruby

DEPENDENCIES
awesome_print
benchmark-ips
dotenv
foreman
httparty
Expand All @@ -63,5 +63,8 @@ DEPENDENCIES
sinatra
sinatra-contrib

RUBY VERSION
ruby 2.6.3p62

BUNDLED WITH
1.12.5
1.17.3
6 changes: 2 additions & 4 deletions app.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'sinatra/reloader' if development?
require 'pry' if development?
require 'awesome_print' if development?
require 'json'

class App < Sinatra::Base
Expand All @@ -15,7 +16,7 @@ def client(token_method = :post)
OAuth2::Client.new(
ENV.fetch('PROCORE_CLIENT_ID', 'proauth-local'),
ENV.fetch('PROCORE_CLIENT_SECRET', 'pleaseUseA4RealSecret.'),
site: ENV.fetch('PROCORE_API_URL') {"http://localhost:3000"},
site: ENV.fetch('PROCORE_API_URL') {"https://app.procore.com"},
)
end

Expand Down Expand Up @@ -67,9 +68,6 @@ def authorized_api_request(path, query_string=nil)
result = authorized_api_request(params[:splat].join('/'), request.query_string)
json JSON.parse(result.body)
end



end


Expand Down