From d7fff61d5d750ddb68a32544116576cbc1af49f3 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 6 Oct 2020 20:24:08 +0200 Subject: [PATCH] ajout de la gem sendinblue --- Gemfile | 1 + Gemfile.lock | 5 +++++ config/initializers/sendinblue.rb | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 config/initializers/sendinblue.rb diff --git a/Gemfile b/Gemfile index 761caed6a..c5a760d5e 100644 --- a/Gemfile +++ b/Gemfile @@ -69,6 +69,7 @@ gem 'rgeo-geojson' gem 'sanitize-url' gem 'sassc-rails' # Use SCSS for stylesheets gem 'sentry-raven' +gem 'sib-api-v3-sdk' gem 'skylight' gem 'smart_listing' gem 'spreadsheet_architect' diff --git a/Gemfile.lock b/Gemfile.lock index 046bfbc2b..975be0b1d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -348,6 +348,7 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.3.1) json-jwt (1.13.0) activesupport (>= 4.2) aes_key_wrap @@ -658,6 +659,9 @@ GEM shellany (0.0.1) shoulda-matchers (4.4.1) activesupport (>= 4.2.0) + sib-api-v3-sdk (7.0.0) + json (~> 2.1, >= 2.1.0) + typhoeus (~> 1.0, >= 1.0.1) simple_xlsx_reader (1.0.4) nokogiri rubyzip @@ -860,6 +864,7 @@ DEPENDENCIES scss_lint sentry-raven shoulda-matchers + sib-api-v3-sdk simple_xlsx_reader skylight smart_listing diff --git a/config/initializers/sendinblue.rb b/config/initializers/sendinblue.rb new file mode 100644 index 000000000..d523b2373 --- /dev/null +++ b/config/initializers/sendinblue.rb @@ -0,0 +1,5 @@ +require 'sib-api-v3-sdk' + +SibApiV3Sdk.configure do |config| + config.api_key['api-key'] = ENV.fetch('SENDINBLUE_API_V3_KEY', '') +end