bin/strava-webhooks in strava-ruby-client-0.4.3 vs bin/strava-webhooks in strava-ruby-client-1.0.0
- old
+ new
@@ -7,11 +7,11 @@
logger = ::Logger.new($stdout)
logger.level = Logger::INFO
client = Strava::Webhooks::Client.new(
- client_id: ENV['STRAVA_CLIENT_ID'],
- client_secret: ENV['STRAVA_CLIENT_SECRET'],
+ client_id: ENV.fetch('STRAVA_CLIENT_ID', nil),
+ client_secret: ENV.fetch('STRAVA_CLIENT_SECRET', nil),
logger: logger
)
case ARGV[0]
when 'create'