diff --git a/app.rb b/app.rb index b14a431c..7d43c9bb 100644 --- a/app.rb +++ b/app.rb @@ -5,7 +5,7 @@ require 'bundler' Bundler.require( :default, ENV[ 'RACK_ENV' ].to_sym ) -require_relative './config/options' +require_relative './options' require_relative './lib/ledger' # Sinatra app serving API diff --git a/config/options.rb b/config/options.rb deleted file mode 100644 index fe84e261..00000000 --- a/config/options.rb +++ /dev/null @@ -1,6 +0,0 @@ -# encoding: utf-8 - -ENV[ 'LEDGER_FILE' ] ||= '/home/owncloud-data/cycojesus/files/org-files/comptes.ledger' - -CURRENCY = '€' -SEPARATOR = ',' diff --git a/gems.locked b/gems.locked index 5d6ad81f..6e8cc63b 100644 --- a/gems.locked +++ b/gems.locked @@ -4,14 +4,15 @@ GEM coderay (1.1.2) method_source (0.9.0) mustermann (1.0.1) - pry (0.11.1) + pry (0.11.2) coderay (~> 1.1.0) method_source (~> 0.9.0) puma (3.10.0) rack (2.0.3) rack-protection (2.0.0) rack - rake (12.1.0) + rack-rewrite (1.5.1) + rake (12.2.1) sinatra (2.0.0) mustermann (~> 1.0) rack (~> 2.0) @@ -25,8 +26,9 @@ PLATFORMS DEPENDENCIES pry puma + rack-rewrite rake sinatra BUNDLED WITH - 1.14.3 + 1.14.6 diff --git a/options.rb b/options.rb new file mode 100644 index 00000000..76ad01d9 --- /dev/null +++ b/options.rb @@ -0,0 +1,6 @@ +# encoding: utf-8 + +ENV[ 'LEDGER_FILE' ] ||= '/home/nextcloud/data/cycojesus/files/org-files/comptes.ledger' + +CURRENCY = '€' +SEPARATOR = ',' diff --git a/public/app/js/templates/dashboard.html b/public/app/js/templates/dashboard.html index b73daf89..a6726cf3 100644 --- a/public/app/js/templates/dashboard.html +++ b/public/app/js/templates/dashboard.html @@ -10,7 +10,7 @@ options="graphiques.monthly_values.options"> -