From 0b6a7bafaef612793fa9cdf0646cbb47ffe0e583 Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 6 Oct 2020 00:18:45 +0200 Subject: Use Discourse API gem We use the DiscourseApi::Client to interact with https://talk.incommon.cc discourse_api: https://meta.discourse.org/t/using-the-discourse-api-ruby-gem/17587 --- Gemfile | 2 ++ Gemfile.lock | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/Gemfile b/Gemfile index 882905b..d63e73c 100644 --- a/Gemfile +++ b/Gemfile @@ -25,6 +25,8 @@ gem 'jbuilder', '~> 2.7' # Use bitfields in models gem 'bitfields' +# Use Discourse API +gem 'discourse_api' # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.4.2', require: false diff --git a/Gemfile.lock b/Gemfile.lock index dc66e9a..60d9b9a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,7 +66,15 @@ GEM coderay (1.1.3) concurrent-ruby (1.1.7) crass (1.0.6) + discourse_api (0.42.0) + faraday (~> 1.0) + faraday_middleware (~> 1.0) + rack (>= 1.6) erubi (1.9.0) + faraday (1.0.1) + multipart-post (>= 1.2, < 3) + faraday_middleware (1.0.0) + faraday (~> 1.0) ffi (1.13.1) globalid (0.4.2) activesupport (>= 4.2.0) @@ -90,6 +98,7 @@ GEM mini_portile2 (2.4.0) minitest (5.14.2) msgpack (1.3.3) + multipart-post (2.1.1) nio4r (2.5.4) nokogiri (1.10.10) mini_portile2 (~> 2.4.0) @@ -186,6 +195,7 @@ DEPENDENCIES bitfields bootsnap (>= 1.4.2) byebug + discourse_api jbuilder (~> 2.7) listen (~> 3.2) pg (>= 0.18, < 2.0) -- cgit v1.2.3