Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
Handle nike url change that's not in the gem
Browse files Browse the repository at this point in the history
The Nike gem PR skryl/nike#4 has not been merged yet
so we need to deal with v1 of the Nike+ API is no longer accepting
requests over HTTP ourselves. Using HTTPS instead restores functionality.
  • Loading branch information
kb committed Jul 24, 2014
1 parent 21414d8 commit 4477b65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
require 'nike'
require 'geoutm'

# Nike gem PR https://github.com/skryl/nike/pull/4 has not been merged yet
# so we need to deal with v1 of the Nike+ API is no longer accepting
# requests over HTTP ourselves. Using HTTPS instead restores functionality.
Nike::Client.send(:base_uri, 'https://secure-nikeplus.nike.com/plus')

APP_DOMAIN = ENV['APP_DOMAIN'] || 'http://localhost:9292'
APP_SECRET = ENV['APP_SECRET'] || 'nikeplus-to-runkeeper'
RUNKEEPER_CLIENT_ID = ENV['RUNKEEPER_CLIENT_ID']
Expand Down

0 comments on commit 4477b65

Please sign in to comment.