1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] unable to run rake fablab🇪🇸* tasks due to an issue with gem faraday 0.16.x

Gem faraday was updated to 0.17 to solve the issue
This commit is contained in:
Sylvain 2019-10-16 13:11:47 +02:00
parent b39f7e0752
commit 4300f29ad7
4 changed files with 9 additions and 7 deletions

View File

@ -19,6 +19,7 @@
- Fix a bug: missing asterisks on some required fields in profile_complete form
- Fix a bug: public calendar won't show anything if the current date range include a reserved space availability (#151)
- Fix a bug: invoices list is not shown by default in "manage invoices" section
- Fix a bug: unable to run rake fablab:es:* tasks due to an issue with gem faraday 0.16.x (was updated to 0.17)
- Fix a security issue: fixed [CVE-2015-9284](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-9284)
- [TODO DEPLOY] **IMPORTANT** Please read [postgres_upgrade.md](doc/postgres_upgrade.md) for instructions on upgrading PostgreSQL.
- [TODO DEPLOY] `rake db:migrate`

View File

@ -159,7 +159,7 @@ GEM
execjs (2.7.0)
faker (1.4.3)
i18n (~> 0.5)
faraday (0.16.2)
faraday (0.17)
multipart-post (>= 1.2, < 3)
ffi (1.9.24)
figaro (1.1.0)

View File

@ -1,8 +1,10 @@
if Rails.env.test?
client = Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: false
else
client = Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: true
end
# frozen_string_literal: true
client = if Rails.env.test?
Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: false
else
Elasticsearch::Client.new host: "http://#{Rails.application.secrets.elaticsearch_host}:9200", log: true
end
Elasticsearch::Model.client = client
Elasticsearch::Persistence.client = client

View File

@ -163,7 +163,6 @@ namespace :fablab do
StatisticService.new.generate_statistic(start_date: i.day.ago.beginning_of_day, end_date: i.day.ago.end_of_day)
end
end
end
end