From 76208a456c90e4ef13f9700dda6312efd1efb194 Mon Sep 17 00:00:00 2001 From: Adrian Kumpf Date: Sun, 7 Apr 2019 13:39:11 +0200 Subject: [PATCH] Rename otp app --- .gitignore | 2 + assets/package.json | 4 +- assets/yarn.lock | 229 ++++++++++++------ config/config.exs | 4 +- config/dev.exs | 14 +- config/prod.exs | 4 +- config/test.exs | 8 +- lib/{tesla_mate.ex => teslamate.ex} | 0 lib/{tesla_mate => teslamate}/api.ex | 0 lib/{tesla_mate => teslamate}/application.ex | 2 +- lib/{tesla_mate => teslamate}/dependency.ex | 0 lib/{tesla_mate => teslamate}/log.ex | 0 lib/{tesla_mate => teslamate}/log/car.ex | 0 lib/{tesla_mate => teslamate}/log/charge.ex | 0 .../log/charging_process.ex | 0 .../log/functions.ex | 0 lib/{tesla_mate => teslamate}/log/position.ex | 0 lib/{tesla_mate => teslamate}/log/state.ex | 0 .../log/state/state.ex | 0 lib/{tesla_mate => teslamate}/log/trip.ex | 0 .../release_tasks.ex | 2 +- lib/{tesla_mate => teslamate}/repo.ex | 2 +- lib/{tesla_mate => teslamate}/vehicles.ex | 0 .../vehicles/vehicle.ex | 0 .../vehicles/vehicle/identification.ex | 0 lib/{tesla_mate_web.ex => teslamate_web.ex} | 2 +- .../channels/user_socket.ex | 0 .../controllers/car_controller.ex | 0 .../controllers/fallback_controller.ex | 0 .../controllers/page_controller.ex | 0 .../endpoint.ex | 6 +- .../gettext.ex | 2 +- .../router.ex | 0 .../templates/layout/app.html.eex | 0 .../templates/page/index.html.eex | 0 .../views/car_view.ex | 0 .../views/changeset_view.ex | 0 .../views/error_helpers.ex | 0 .../views/error_view.ex | 0 .../views/layout_view.ex | 0 .../views/page_view.ex | 0 mix.exs | 2 +- rel/config.exs | 4 +- rel/config/config.exs | 10 +- .../log/log_car_test.exs | 0 .../log/log_charging_test.exs | 0 .../log/log_state_test.exs | 0 .../log/log_trip_test.exs | 0 .../vehicles/vehicle/charging_test.exs | 0 .../vehicles/vehicle/driving_test.exs | 0 .../vehicles/vehicle/suspend_test.exs | 0 .../vehicles/vehicle_test.exs | 0 .../controllers/car_controller_test.exs | 0 .../controllers/page_controller_test.exs | 0 .../views/error_view_test.exs | 0 .../views/layout_view_test.exs | 0 .../views/page_view_test.exs | 0 test/test_helper.exs | 4 +- 58 files changed, 190 insertions(+), 111 deletions(-) rename lib/{tesla_mate.ex => teslamate.ex} (100%) rename lib/{tesla_mate => teslamate}/api.ex (100%) rename lib/{tesla_mate => teslamate}/application.ex (93%) rename lib/{tesla_mate => teslamate}/dependency.ex (100%) rename lib/{tesla_mate => teslamate}/log.ex (100%) rename lib/{tesla_mate => teslamate}/log/car.ex (100%) rename lib/{tesla_mate => teslamate}/log/charge.ex (100%) rename lib/{tesla_mate => teslamate}/log/charging_process.ex (100%) rename lib/{tesla_mate => teslamate}/log/functions.ex (100%) rename lib/{tesla_mate => teslamate}/log/position.ex (100%) rename lib/{tesla_mate => teslamate}/log/state.ex (100%) rename lib/{tesla_mate => teslamate}/log/state/state.ex (100%) rename lib/{tesla_mate => teslamate}/log/trip.ex (100%) rename lib/{tesla_mate => teslamate}/release_tasks.ex (95%) rename lib/{tesla_mate => teslamate}/repo.ex (76%) rename lib/{tesla_mate => teslamate}/vehicles.ex (100%) rename lib/{tesla_mate => teslamate}/vehicles/vehicle.ex (100%) rename lib/{tesla_mate => teslamate}/vehicles/vehicle/identification.ex (100%) rename lib/{tesla_mate_web.ex => teslamate_web.ex} (97%) rename lib/{tesla_mate_web => teslamate_web}/channels/user_socket.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/controllers/car_controller.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/controllers/fallback_controller.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/controllers/page_controller.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/endpoint.ex (92%) rename lib/{tesla_mate_web => teslamate_web}/gettext.ex (94%) rename lib/{tesla_mate_web => teslamate_web}/router.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/templates/layout/app.html.eex (100%) rename lib/{tesla_mate_web => teslamate_web}/templates/page/index.html.eex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/car_view.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/changeset_view.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/error_helpers.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/error_view.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/layout_view.ex (100%) rename lib/{tesla_mate_web => teslamate_web}/views/page_view.ex (100%) rename test/{tesla_mate => teslamate}/log/log_car_test.exs (100%) rename test/{tesla_mate => teslamate}/log/log_charging_test.exs (100%) rename test/{tesla_mate => teslamate}/log/log_state_test.exs (100%) rename test/{tesla_mate => teslamate}/log/log_trip_test.exs (100%) rename test/{tesla_mate => teslamate}/vehicles/vehicle/charging_test.exs (100%) rename test/{tesla_mate => teslamate}/vehicles/vehicle/driving_test.exs (100%) rename test/{tesla_mate => teslamate}/vehicles/vehicle/suspend_test.exs (100%) rename test/{tesla_mate => teslamate}/vehicles/vehicle_test.exs (100%) rename test/{tesla_mate_web => teslamate_web}/controllers/car_controller_test.exs (100%) rename test/{tesla_mate_web => teslamate_web}/controllers/page_controller_test.exs (100%) rename test/{tesla_mate_web => teslamate_web}/views/error_view_test.exs (100%) rename test/{tesla_mate_web => teslamate_web}/views/layout_view_test.exs (100%) rename test/{tesla_mate_web => teslamate_web}/views/page_view_test.exs (100%) diff --git a/.gitignore b/.gitignore index 2ca4032e..14b736c4 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ npm-debug.log # variables. /config/*.secret.exs config/*.env + +/deploy/ diff --git a/assets/package.json b/assets/package.json index 1588417d..b84c4434 100644 --- a/assets/package.json +++ b/assets/package.json @@ -10,8 +10,8 @@ "phoenix_html": "file:../deps/phoenix_html" }, "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/preset-env": "^7.0.0", + "@babel/core": "^7.4.3", + "@babel/preset-env": "^7.4.3", "babel-loader": "^8.0.0", "copy-webpack-plugin": "^5.0.2", "css-loader": "^2.1.1", diff --git a/assets/yarn.lock b/assets/yarn.lock index 9a76d65f..bf0aaa34 100644 --- a/assets/yarn.lock +++ b/assets/yarn.lock @@ -9,17 +9,17 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@^7.0.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.4.0.tgz#248fd6874b7d755010bfe61f557461d4f446d9e9" - integrity sha512-Dzl7U0/T69DFOTwqz/FJdnOSWS57NpjNfCwMKHABr589Lg8uX1RrlBIJ7L5Dubt/xkLsx0xH5EBFzlBVes1ayA== +"@babel/core@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.4.3.tgz#198d6d3af4567be3989550d97e068de94503074f" + integrity sha512-oDpASqKFlbspQfzAE7yaeTmdljSH2ADIvBlb0RwbStltTuWa0+7CCI1fYVINNv9saHPa1W7oaKeuNuKj+RQCvA== dependencies: "@babel/code-frame" "^7.0.0" "@babel/generator" "^7.4.0" - "@babel/helpers" "^7.4.0" - "@babel/parser" "^7.4.0" + "@babel/helpers" "^7.4.3" + "@babel/parser" "^7.4.3" "@babel/template" "^7.4.0" - "@babel/traverse" "^7.4.0" + "@babel/traverse" "^7.4.3" "@babel/types" "^7.4.0" convert-source-map "^1.1.0" debug "^4.1.0" @@ -130,6 +130,18 @@ "@babel/types" "^7.2.2" lodash "^4.17.10" +"@babel/helper-module-transforms@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.4.3.tgz#b1e357a1c49e58a47211a6853abb8e2aaefeb064" + integrity sha512-H88T9IySZW25anu5uqyaC1DaQre7ofM+joZtAaO2F8NBdFfupH0SZ4gKjgSFVcvtx/aAirqA9L9Clio2heYbZA== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-simple-access" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.0.0" + "@babel/template" "^7.2.2" + "@babel/types" "^7.2.2" + lodash "^4.17.11" + "@babel/helper-optimise-call-expression@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz#a2920c5702b073c15de51106200aa8cad20497d5" @@ -149,6 +161,13 @@ dependencies: lodash "^4.17.10" +"@babel/helper-regex@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.4.3.tgz#9d6e5428bfd638ab53b37ae4ec8caf0477495147" + integrity sha512-hnoq5u96pLCfgjXuj8ZLX3QQ+6nAulS+zSgi6HulUwFbEruRAKwbGLU5OvXkE14L8XW6XsQEKsIDfgthKLRAyA== + dependencies: + lodash "^4.17.11" + "@babel/helper-remap-async-to-generator@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz#361d80821b6f38da75bd3f0785ece20a88c5fe7f" @@ -195,13 +214,13 @@ "@babel/traverse" "^7.1.0" "@babel/types" "^7.2.0" -"@babel/helpers@^7.4.0": - version "7.4.2" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.4.2.tgz#3bdfa46a552ca77ef5a0f8551be5f0845ae989be" - integrity sha512-gQR1eQeroDzFBikhrCccm5Gs2xBjZ57DNjGbqTaHo911IpmSxflOQWMAHPw/TXk8L3isv7s9lYzUkexOeTQUYg== +"@babel/helpers@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.4.3.tgz#7b1d354363494b31cb9a2417ae86af32b7853a3b" + integrity sha512-BMh7X0oZqb36CfyhvtbSmcWc3GXocfxv3yNsAEuM0l+fAqSO22rQrUpijr3oE/10jCTrB6/0b9kzmG4VetCj8Q== dependencies: "@babel/template" "^7.4.0" - "@babel/traverse" "^7.4.0" + "@babel/traverse" "^7.4.3" "@babel/types" "^7.4.0" "@babel/highlight@^7.0.0": @@ -218,6 +237,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.4.2.tgz#b4521a400cb5a871eab3890787b4bc1326d38d91" integrity sha512-9fJTDipQFvlfSVdD/JBtkiY0br9BtfvW2R8wo6CX/Ej2eMuV0gWPk1M67Mt3eggQvBqYW1FCEk8BN7WvGm/g5g== +"@babel/parser@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.4.3.tgz#eb3ac80f64aa101c907d4ce5406360fe75b7895b" + integrity sha512-gxpEUhTS1sGA63EGQGuA+WESPR/6tz6ng7tSHFCmaTJK/cGK8y37cBTspX+U2xCAue2IQVvF6Z0oigmjwD8YGQ== + "@babel/plugin-proposal-async-generator-functions@^7.2.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e" @@ -235,10 +259,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-json-strings" "^7.2.0" -"@babel/plugin-proposal-object-rest-spread@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.0.tgz#e4960575205eadf2a1ab4e0c79f9504d5b82a97f" - integrity sha512-uTNi8pPYyUH2eWHyYWWSYJKwKg34hhgl4/dbejEjL+64OhbHjTX7wEVWMQl82tEmdDsGeu77+s8HHLS627h6OQ== +"@babel/plugin-proposal-object-rest-spread@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.3.tgz#be27cd416eceeba84141305b93c282f5de23bbb4" + integrity sha512-xC//6DNSSHVjq8O2ge0dyYlhshsH4T7XdCVoxbi5HzLYWfsC5ooFlJjrXk8RcAT+hjHAK9UjBXdylzSoDK3t4g== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.2.0" @@ -319,10 +343,10 @@ "@babel/helper-plugin-utils" "^7.0.0" lodash "^4.17.11" -"@babel/plugin-transform-classes@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.4.0.tgz#e3428d3c8a3d01f33b10c529b998ba1707043d4d" - integrity sha512-XGg1Mhbw4LDmrO9rSTNe+uI79tQPdGs0YASlxgweYRLZqo/EQktjaOV4tchL/UZbM0F+/94uOipmdNGoaGOEYg== +"@babel/plugin-transform-classes@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.4.3.tgz#adc7a1137ab4287a555d429cc56ecde8f40c062c" + integrity sha512-PUaIKyFUDtG6jF5DUJOfkBdwAS/kFFV3XFk7Nn0a6vR7ZT8jYw5cGtIlat77wcnd0C6ViGqo/wyNf4ZHytF/nQ== dependencies: "@babel/helper-annotate-as-pure" "^7.0.0" "@babel/helper-define-map" "^7.4.0" @@ -340,21 +364,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-destructuring@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.4.0.tgz#acbb9b2418d290107db333f4d6cd8aa6aea00343" - integrity sha512-HySkoatyYTY3ZwLI8GGvkRWCFrjAGXUHur5sMecmCIdIharnlcWWivOqDJI76vvmVZfzwb6G08NREsrY96RhGQ== +"@babel/plugin-transform-destructuring@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.4.3.tgz#1a95f5ca2bf2f91ef0648d5de38a8d472da4350f" + integrity sha512-rVTLLZpydDFDyN4qnXdzwoVpk1oaXHIvPEOkOLyr88o7oHxVc/LyrnDx+amuBWGOwUb7D1s/uLsKBNTx08htZg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-dotall-regex@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.2.0.tgz#f0aabb93d120a8ac61e925ea0ba440812dbe0e49" - integrity sha512-sKxnyHfizweTgKZf7XsXu/CNupKhzijptfTM+bozonIuyVrLWVUvYjE2bhuSBML8VQeMxq4Mm63Q9qvcvUcciQ== +"@babel/plugin-transform-dotall-regex@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.4.3.tgz#fceff1c16d00c53d32d980448606f812cd6d02bf" + integrity sha512-9Arc2I0AGynzXRR/oPdSALv3k0rM38IMFyto7kOCwb5F9sLUt2Ykdo3V9yUPR+Bgr4kb6bVEyLkPEiBhzcTeoA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-regex" "^7.0.0" - regexpu-core "^4.1.3" + "@babel/helper-regex" "^7.4.3" + regexpu-core "^4.5.4" "@babel/plugin-transform-duplicate-keys@^7.2.0": version "7.2.0" @@ -371,17 +395,17 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-for-of@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.0.tgz#56c8c36677f5d4a16b80b12f7b768de064aaeb5f" - integrity sha512-vWdfCEYLlYSxbsKj5lGtzA49K3KANtb8qCPQ1em07txJzsBwY+cKJzBHizj5fl3CCx7vt+WPdgDLTHmydkbQSQ== +"@babel/plugin-transform-for-of@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.3.tgz#c36ff40d893f2b8352202a2558824f70cd75e9fe" + integrity sha512-UselcZPwVWNSURnqcfpnxtMehrb8wjXYOimlYQPBnup/Zld426YzIhNEvuRsEWVHfESIECGrxoI6L5QqzuLH5Q== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-function-name@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.2.0.tgz#f7930362829ff99a3174c39f0afcc024ef59731a" - integrity sha512-kWgksow9lHdvBC2Z4mxTsvc7YdY7w/V6B2vy9cTIPtLEE9NhwoWivaxdNM/S37elu5bqlLP/qOY906LukO9lkQ== +"@babel/plugin-transform-function-name@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.3.tgz#130c27ec7fb4f0cba30e958989449e5ec8d22bbd" + integrity sha512-uT5J/3qI/8vACBR9I1GlAuU/JqBtWdfCrynuOkrWG6nCDieZd5przB1vfP59FRHBZQ9DC2IUfqr/xKqzOD5x0A== dependencies: "@babel/helper-function-name" "^7.1.0" "@babel/helper-plugin-utils" "^7.0.0" @@ -393,6 +417,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" +"@babel/plugin-transform-member-expression-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz#fa10aa5c58a2cb6afcf2c9ffa8cb4d8b3d489a2d" + integrity sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-modules-amd@^7.2.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.2.0.tgz#82a9bce45b95441f617a24011dc89d12da7f4ee6" @@ -401,12 +432,12 @@ "@babel/helper-module-transforms" "^7.1.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-modules-commonjs@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.4.0.tgz#3b8ec61714d3b75d20c5ccfa157f2c2e087fd4ca" - integrity sha512-iWKAooAkipG7g1IY0eah7SumzfnIT3WNhT4uYB2kIsvHnNSB6MDYVa5qyICSwaTBDBY2c4SnJ3JtEa6ltJd6Jw== +"@babel/plugin-transform-modules-commonjs@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.4.3.tgz#3917f260463ac08f8896aa5bd54403f6e1fed165" + integrity sha512-sMP4JqOTbMJMimqsSZwYWsMjppD+KRyDIUVW91pd7td0dZKAvPmhCaxhOzkzLParKwgQc7bdL9UNv+rpJB0HfA== dependencies: - "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-module-transforms" "^7.4.3" "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-simple-access" "^7.1.0" @@ -448,22 +479,36 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-replace-supers" "^7.1.0" -"@babel/plugin-transform-parameters@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.0.tgz#a1309426fac4eecd2a9439a4c8c35124a11a48a9" - integrity sha512-Xqv6d1X+doyiuCGDoVJFtlZx0onAX0tnc3dY8w71pv/O0dODAbusVv2Ale3cGOwfiyi895ivOBhYa9DhAM8dUA== +"@babel/plugin-transform-parameters@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.3.tgz#e5ff62929fdf4cf93e58badb5e2430303003800d" + integrity sha512-ULJYC2Vnw96/zdotCZkMGr2QVfKpIT/4/K+xWWY0MbOJyMZuk660BGkr3bEKWQrrciwz6xpmft39nA4BF7hJuA== dependencies: "@babel/helper-call-delegate" "^7.4.0" "@babel/helper-get-function-arity" "^7.0.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-regenerator@^7.4.0": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.0.tgz#0780e27ee458cc3fdbad18294d703e972ae1f6d1" - integrity sha512-SZ+CgL4F0wm4npojPU6swo/cK4FcbLgxLd4cWpHaNXY/NJ2dpahODCqBbAwb2rDmVszVb3SSjnk9/vik3AYdBw== +"@babel/plugin-transform-property-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz#03e33f653f5b25c4eb572c98b9485055b389e905" + integrity sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-regenerator@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.3.tgz#2a697af96887e2bbf5d303ab0221d139de5e739c" + integrity sha512-kEzotPuOpv6/iSlHroCDydPkKYw7tiJGKlmYp6iJn4a6C/+b2FdttlJsLKYxolYHgotTJ5G5UY5h0qey5ka3+A== dependencies: regenerator-transform "^0.13.4" +"@babel/plugin-transform-reserved-words@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz#4792af87c998a49367597d07fedf02636d2e1634" + integrity sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-shorthand-properties@^7.2.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0" @@ -501,25 +546,25 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-unicode-regex@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.2.0.tgz#4eb8db16f972f8abb5062c161b8b115546ade08b" - integrity sha512-m48Y0lMhrbXEJnVUaYly29jRXbQ3ksxPrS1Tg8t+MHqzXhtBYAvI51euOBaoAlZLPHsieY9XPVMf80a5x0cPcA== +"@babel/plugin-transform-unicode-regex@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.3.tgz#3868703fc0e8f443dda65654b298df576f7b863b" + integrity sha512-lnSNgkVjL8EMtnE8eSS7t2ku8qvKH3eqNf/IwIfnSPUqzgqYmRwzdsQWv4mNQAN9Nuo6Gz1Y0a4CSmdpu1Pp6g== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-regex" "^7.0.0" - regexpu-core "^4.1.3" + "@babel/helper-regex" "^7.4.3" + regexpu-core "^4.5.4" -"@babel/preset-env@^7.0.0": - version "7.4.2" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.4.2.tgz#2f5ba1de2daefa9dcca653848f96c7ce2e406676" - integrity sha512-OEz6VOZaI9LW08CWVS3d9g/0jZA6YCn1gsKIy/fut7yZCJti5Lm1/Hi+uo/U+ODm7g4I6gULrCP+/+laT8xAsA== +"@babel/preset-env@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.4.3.tgz#e71e16e123dc0fbf65a52cbcbcefd072fbd02880" + integrity sha512-FYbZdV12yHdJU5Z70cEg0f6lvtpZ8jFSDakTm7WXeJbLXh4R0ztGEu/SW7G1nJ2ZvKwDhz8YrbA84eYyprmGqw== dependencies: "@babel/helper-module-imports" "^7.0.0" "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-proposal-async-generator-functions" "^7.2.0" "@babel/plugin-proposal-json-strings" "^7.2.0" - "@babel/plugin-proposal-object-rest-spread" "^7.4.0" + "@babel/plugin-proposal-object-rest-spread" "^7.4.3" "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" "@babel/plugin-proposal-unicode-property-regex" "^7.4.0" "@babel/plugin-syntax-async-generators" "^7.2.0" @@ -530,36 +575,39 @@ "@babel/plugin-transform-async-to-generator" "^7.4.0" "@babel/plugin-transform-block-scoped-functions" "^7.2.0" "@babel/plugin-transform-block-scoping" "^7.4.0" - "@babel/plugin-transform-classes" "^7.4.0" + "@babel/plugin-transform-classes" "^7.4.3" "@babel/plugin-transform-computed-properties" "^7.2.0" - "@babel/plugin-transform-destructuring" "^7.4.0" - "@babel/plugin-transform-dotall-regex" "^7.2.0" + "@babel/plugin-transform-destructuring" "^7.4.3" + "@babel/plugin-transform-dotall-regex" "^7.4.3" "@babel/plugin-transform-duplicate-keys" "^7.2.0" "@babel/plugin-transform-exponentiation-operator" "^7.2.0" - "@babel/plugin-transform-for-of" "^7.4.0" - "@babel/plugin-transform-function-name" "^7.2.0" + "@babel/plugin-transform-for-of" "^7.4.3" + "@babel/plugin-transform-function-name" "^7.4.3" "@babel/plugin-transform-literals" "^7.2.0" + "@babel/plugin-transform-member-expression-literals" "^7.2.0" "@babel/plugin-transform-modules-amd" "^7.2.0" - "@babel/plugin-transform-modules-commonjs" "^7.4.0" + "@babel/plugin-transform-modules-commonjs" "^7.4.3" "@babel/plugin-transform-modules-systemjs" "^7.4.0" "@babel/plugin-transform-modules-umd" "^7.2.0" "@babel/plugin-transform-named-capturing-groups-regex" "^7.4.2" "@babel/plugin-transform-new-target" "^7.4.0" "@babel/plugin-transform-object-super" "^7.2.0" - "@babel/plugin-transform-parameters" "^7.4.0" - "@babel/plugin-transform-regenerator" "^7.4.0" + "@babel/plugin-transform-parameters" "^7.4.3" + "@babel/plugin-transform-property-literals" "^7.2.0" + "@babel/plugin-transform-regenerator" "^7.4.3" + "@babel/plugin-transform-reserved-words" "^7.2.0" "@babel/plugin-transform-shorthand-properties" "^7.2.0" "@babel/plugin-transform-spread" "^7.2.0" "@babel/plugin-transform-sticky-regex" "^7.2.0" "@babel/plugin-transform-template-literals" "^7.2.0" "@babel/plugin-transform-typeof-symbol" "^7.2.0" - "@babel/plugin-transform-unicode-regex" "^7.2.0" + "@babel/plugin-transform-unicode-regex" "^7.4.3" "@babel/types" "^7.4.0" - browserslist "^4.4.2" + browserslist "^4.5.2" core-js-compat "^3.0.0" invariant "^2.2.2" js-levenshtein "^1.1.3" - semver "^5.3.0" + semver "^5.5.0" "@babel/template@^7.1.0", "@babel/template@^7.2.2", "@babel/template@^7.4.0": version "7.4.0" @@ -585,6 +633,21 @@ globals "^11.1.0" lodash "^4.17.11" +"@babel/traverse@^7.4.3": + version "7.4.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.4.3.tgz#1a01f078fc575d589ff30c0f71bf3c3d9ccbad84" + integrity sha512-HmA01qrtaCwwJWpSKpA948cBvU5BrmviAief/b3AVw936DtcdsTexlbyzNuDnthwhOQ37xshn7hvQaEQk7ISYQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.4.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.4.0" + "@babel/parser" "^7.4.3" + "@babel/types" "^7.4.0" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.11" + "@babel/types@^7.0.0", "@babel/types@^7.2.0", "@babel/types@^7.2.2", "@babel/types@^7.4.0": version "7.4.0" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.4.0.tgz#670724f77d24cce6cc7d8cf64599d511d164894c" @@ -1054,7 +1117,7 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" -browserslist@^4.0.0, browserslist@^4.4.2, browserslist@^4.5.1: +browserslist@^4.0.0, browserslist@^4.5.1: version "4.5.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.5.3.tgz#969495c410314bc89f14e748505e58be968080f1" integrity sha512-Tx/Jtrmh6vFg24AelzLwCaCq1IUJiMDM1x/LPzqbmbktF8Zo7F9ONUpOWsFK6TtdON95mSMaQUWqi0ilc8xM6g== @@ -1063,6 +1126,15 @@ browserslist@^4.0.0, browserslist@^4.4.2, browserslist@^4.5.1: electron-to-chromium "^1.3.122" node-releases "^1.1.12" +browserslist@^4.5.2: + version "4.5.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.5.4.tgz#166c4ecef3b51737a42436ea8002aeea466ea2c7" + integrity sha512-rAjx494LMjqKnMPhFkuLmLp8JWEX0o8ADTGeAbOqaF+XCvYLreZrG5uVjnPBlAQ8REZK4pzXGvp0bWgrFtKaag== + dependencies: + caniuse-lite "^1.0.30000955" + electron-to-chromium "^1.3.122" + node-releases "^1.1.13" + buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" @@ -3048,6 +3120,13 @@ node-releases@^1.1.12: dependencies: semver "^5.3.0" +node-releases@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.13.tgz#8c03296b5ae60c08e2ff4f8f22ae45bd2f210083" + integrity sha512-fKZGviSXR6YvVPyc011NHuJDSD8gFQvLPmc2d2V3BS4gr52ycyQ1Xzs7a8B+Ax3Ni/W+5h1h4SqmzeoA8WZRmA== + dependencies: + semver "^5.3.0" + nopt@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" @@ -3859,7 +3938,7 @@ regexp-tree@^0.1.0: resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.5.tgz#7cd71fca17198d04b4176efd79713f2998009397" integrity sha512-nUmxvfJyAODw+0B13hj8CFVAxhe7fDEAgJgaotBu3nnR+IgGgZq59YedJP5VYTlkEfqjuK6TuRpnymKdatLZfQ== -regexpu-core@^4.1.3, regexpu-core@^4.5.4: +regexpu-core@^4.5.4: version "4.5.4" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.4.tgz#080d9d02289aa87fe1667a4f5136bc98a6aebaae" integrity sha512-BtizvGtFQKGPUcTy56o3nk1bGRp4SZOTYrDtGNlqCQufptV5IkkLN6Emw+yunAJjzf+C9FQFtvq7IoA3+oMYHQ== diff --git a/config/config.exs b/config/config.exs index 728dcd48..241ff357 100644 --- a/config/config.exs +++ b/config/config.exs @@ -7,11 +7,11 @@ # General application configuration use Mix.Config -config :tesla_mate, +config :teslamate, ecto_repos: [TeslaMate.Repo] # Configures the endpoint -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, url: [host: "localhost"], secret_key_base: "Kz7vmP1gPYv/sogke6P3RP9uipMjOLhneQdbokZVx5gpLsNaN44TD20vtOWkMFIT", render_errors: [view: TeslaMateWeb.ErrorView, accepts: ~w(html json)], diff --git a/config/dev.exs b/config/dev.exs index 5a165620..e1c77f50 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -6,7 +6,7 @@ use Mix.Config # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, http: [port: 4000], debug_errors: true, code_reloader: true, @@ -46,13 +46,13 @@ config :tesla_mate, TeslaMateWeb.Endpoint, # different ports. # Watch static and templates for browser reloading. -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, live_reload: [ patterns: [ ~r"priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$", ~r"priv/gettext/.*(po)$", - ~r"lib/tesla_mate_web/{live,views}/.*(ex)$", - ~r"lib/tesla_mate_web/templates/.*(eex)$" + ~r"lib/teslamate_web/{live,views}/.*(ex)$", + ~r"lib/teslamate_web/templates/.*(eex)$" ] ] @@ -67,13 +67,13 @@ config :phoenix, :stacktrace_depth, 20 config :phoenix, :plug_init_mode, :runtime # Configure your database -config :tesla_mate, TeslaMate.Repo, +config :teslamate, TeslaMate.Repo, username: "adrian", password: "postgres", - database: "tesla_mate_dev", + database: "teslamate_dev", hostname: "localhost", pool_size: 10 -config :tesla_mate, :tesla_auth, +config :teslamate, :tesla_auth, username: System.get_env("USERNAME"), password: System.get_env("PASSWOrD") diff --git a/config/prod.exs b/config/prod.exs index 3da72c81..90da2482 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1,9 +1,9 @@ use Mix.Config -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, cache_static_manifest: "priv/static/cache_manifest.json", root: ".", server: true, - version: Application.spec(:tesla_mate, :vsn) + version: Application.spec(:teslamate, :vsn) config :logger, level: :info diff --git a/config/test.exs b/config/test.exs index 3d2e96e7..f4a39a5d 100644 --- a/config/test.exs +++ b/config/test.exs @@ -2,7 +2,7 @@ use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, http: [port: 4002], server: false @@ -10,13 +10,13 @@ config :tesla_mate, TeslaMateWeb.Endpoint, config :logger, level: :warn # Configure your database -config :tesla_mate, TeslaMate.Repo, +config :teslamate, TeslaMate.Repo, username: "adrian", password: "postgres", - database: "tesla_mate_test", + database: "teslamate_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox -config :tesla_mate, :tesla_auth, +config :teslamate, :tesla_auth, username: "admin", password: "admin" diff --git a/lib/tesla_mate.ex b/lib/teslamate.ex similarity index 100% rename from lib/tesla_mate.ex rename to lib/teslamate.ex diff --git a/lib/tesla_mate/api.ex b/lib/teslamate/api.ex similarity index 100% rename from lib/tesla_mate/api.ex rename to lib/teslamate/api.ex diff --git a/lib/tesla_mate/application.ex b/lib/teslamate/application.ex similarity index 93% rename from lib/tesla_mate/application.ex rename to lib/teslamate/application.ex index d48f2e4b..e93aa45b 100644 --- a/lib/tesla_mate/application.ex +++ b/lib/teslamate/application.ex @@ -24,6 +24,6 @@ defmodule TeslaMate.Application do end defp auth do - Application.get_env(:tesla_mate, :tesla_auth) + Application.get_env(:teslamate, :tesla_auth) end end diff --git a/lib/tesla_mate/dependency.ex b/lib/teslamate/dependency.ex similarity index 100% rename from lib/tesla_mate/dependency.ex rename to lib/teslamate/dependency.ex diff --git a/lib/tesla_mate/log.ex b/lib/teslamate/log.ex similarity index 100% rename from lib/tesla_mate/log.ex rename to lib/teslamate/log.ex diff --git a/lib/tesla_mate/log/car.ex b/lib/teslamate/log/car.ex similarity index 100% rename from lib/tesla_mate/log/car.ex rename to lib/teslamate/log/car.ex diff --git a/lib/tesla_mate/log/charge.ex b/lib/teslamate/log/charge.ex similarity index 100% rename from lib/tesla_mate/log/charge.ex rename to lib/teslamate/log/charge.ex diff --git a/lib/tesla_mate/log/charging_process.ex b/lib/teslamate/log/charging_process.ex similarity index 100% rename from lib/tesla_mate/log/charging_process.ex rename to lib/teslamate/log/charging_process.ex diff --git a/lib/tesla_mate/log/functions.ex b/lib/teslamate/log/functions.ex similarity index 100% rename from lib/tesla_mate/log/functions.ex rename to lib/teslamate/log/functions.ex diff --git a/lib/tesla_mate/log/position.ex b/lib/teslamate/log/position.ex similarity index 100% rename from lib/tesla_mate/log/position.ex rename to lib/teslamate/log/position.ex diff --git a/lib/tesla_mate/log/state.ex b/lib/teslamate/log/state.ex similarity index 100% rename from lib/tesla_mate/log/state.ex rename to lib/teslamate/log/state.ex diff --git a/lib/tesla_mate/log/state/state.ex b/lib/teslamate/log/state/state.ex similarity index 100% rename from lib/tesla_mate/log/state/state.ex rename to lib/teslamate/log/state/state.ex diff --git a/lib/tesla_mate/log/trip.ex b/lib/teslamate/log/trip.ex similarity index 100% rename from lib/tesla_mate/log/trip.ex rename to lib/teslamate/log/trip.ex diff --git a/lib/tesla_mate/release_tasks.ex b/lib/teslamate/release_tasks.ex similarity index 95% rename from lib/tesla_mate/release_tasks.ex rename to lib/teslamate/release_tasks.ex index a278202e..bf94cc36 100644 --- a/lib/tesla_mate/release_tasks.ex +++ b/lib/teslamate/release_tasks.ex @@ -14,7 +14,7 @@ defmodule TeslaMate.ReleaseTasks do stop_services() end - defp repos, do: Application.get_env(:tesla_mate, :ecto_repos, []) + defp repos, do: Application.get_env(:teslamate, :ecto_repos, []) defp start_services do IO.puts("Starting dependencies..") diff --git a/lib/tesla_mate/repo.ex b/lib/teslamate/repo.ex similarity index 76% rename from lib/tesla_mate/repo.ex rename to lib/teslamate/repo.ex index fac4e149..992dd780 100644 --- a/lib/tesla_mate/repo.ex +++ b/lib/teslamate/repo.ex @@ -1,5 +1,5 @@ defmodule TeslaMate.Repo do use Ecto.Repo, - otp_app: :tesla_mate, + otp_app: :teslamate, adapter: Ecto.Adapters.Postgres end diff --git a/lib/tesla_mate/vehicles.ex b/lib/teslamate/vehicles.ex similarity index 100% rename from lib/tesla_mate/vehicles.ex rename to lib/teslamate/vehicles.ex diff --git a/lib/tesla_mate/vehicles/vehicle.ex b/lib/teslamate/vehicles/vehicle.ex similarity index 100% rename from lib/tesla_mate/vehicles/vehicle.ex rename to lib/teslamate/vehicles/vehicle.ex diff --git a/lib/tesla_mate/vehicles/vehicle/identification.ex b/lib/teslamate/vehicles/vehicle/identification.ex similarity index 100% rename from lib/tesla_mate/vehicles/vehicle/identification.ex rename to lib/teslamate/vehicles/vehicle/identification.ex diff --git a/lib/tesla_mate_web.ex b/lib/teslamate_web.ex similarity index 97% rename from lib/tesla_mate_web.ex rename to lib/teslamate_web.ex index 3ac2ed4b..940e65fa 100644 --- a/lib/tesla_mate_web.ex +++ b/lib/teslamate_web.ex @@ -30,7 +30,7 @@ defmodule TeslaMateWeb do def view do quote do use Phoenix.View, - root: "lib/tesla_mate_web/templates", + root: "lib/teslamate_web/templates", namespace: TeslaMateWeb # Import convenience functions from controllers diff --git a/lib/tesla_mate_web/channels/user_socket.ex b/lib/teslamate_web/channels/user_socket.ex similarity index 100% rename from lib/tesla_mate_web/channels/user_socket.ex rename to lib/teslamate_web/channels/user_socket.ex diff --git a/lib/tesla_mate_web/controllers/car_controller.ex b/lib/teslamate_web/controllers/car_controller.ex similarity index 100% rename from lib/tesla_mate_web/controllers/car_controller.ex rename to lib/teslamate_web/controllers/car_controller.ex diff --git a/lib/tesla_mate_web/controllers/fallback_controller.ex b/lib/teslamate_web/controllers/fallback_controller.ex similarity index 100% rename from lib/tesla_mate_web/controllers/fallback_controller.ex rename to lib/teslamate_web/controllers/fallback_controller.ex diff --git a/lib/tesla_mate_web/controllers/page_controller.ex b/lib/teslamate_web/controllers/page_controller.ex similarity index 100% rename from lib/tesla_mate_web/controllers/page_controller.ex rename to lib/teslamate_web/controllers/page_controller.ex diff --git a/lib/tesla_mate_web/endpoint.ex b/lib/teslamate_web/endpoint.ex similarity index 92% rename from lib/tesla_mate_web/endpoint.ex rename to lib/teslamate_web/endpoint.ex index cdd14557..66e7a84a 100644 --- a/lib/tesla_mate_web/endpoint.ex +++ b/lib/teslamate_web/endpoint.ex @@ -1,5 +1,5 @@ defmodule TeslaMateWeb.Endpoint do - use Phoenix.Endpoint, otp_app: :tesla_mate + use Phoenix.Endpoint, otp_app: :teslamate socket "/socket", TeslaMateWeb.UserSocket, websocket: true, @@ -11,7 +11,7 @@ defmodule TeslaMateWeb.Endpoint do # when deploying your static files in production. plug Plug.Static, at: "/", - from: :tesla_mate, + from: :teslamate, gzip: false, only: ~w(css fonts images js favicon.ico robots.txt) @@ -39,7 +39,7 @@ defmodule TeslaMateWeb.Endpoint do # Set :encryption_salt if you would also like to encrypt it. plug Plug.Session, store: :cookie, - key: "_tesla_mate_key", + key: "_teslamate_key", signing_salt: "yt5O3CAQ" plug TeslaMateWeb.Router diff --git a/lib/tesla_mate_web/gettext.ex b/lib/teslamate_web/gettext.ex similarity index 94% rename from lib/tesla_mate_web/gettext.ex rename to lib/teslamate_web/gettext.ex index 8d5810c1..2ca985dc 100644 --- a/lib/tesla_mate_web/gettext.ex +++ b/lib/teslamate_web/gettext.ex @@ -20,5 +20,5 @@ defmodule TeslaMateWeb.Gettext do See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. """ - use Gettext, otp_app: :tesla_mate + use Gettext, otp_app: :teslamate end diff --git a/lib/tesla_mate_web/router.ex b/lib/teslamate_web/router.ex similarity index 100% rename from lib/tesla_mate_web/router.ex rename to lib/teslamate_web/router.ex diff --git a/lib/tesla_mate_web/templates/layout/app.html.eex b/lib/teslamate_web/templates/layout/app.html.eex similarity index 100% rename from lib/tesla_mate_web/templates/layout/app.html.eex rename to lib/teslamate_web/templates/layout/app.html.eex diff --git a/lib/tesla_mate_web/templates/page/index.html.eex b/lib/teslamate_web/templates/page/index.html.eex similarity index 100% rename from lib/tesla_mate_web/templates/page/index.html.eex rename to lib/teslamate_web/templates/page/index.html.eex diff --git a/lib/tesla_mate_web/views/car_view.ex b/lib/teslamate_web/views/car_view.ex similarity index 100% rename from lib/tesla_mate_web/views/car_view.ex rename to lib/teslamate_web/views/car_view.ex diff --git a/lib/tesla_mate_web/views/changeset_view.ex b/lib/teslamate_web/views/changeset_view.ex similarity index 100% rename from lib/tesla_mate_web/views/changeset_view.ex rename to lib/teslamate_web/views/changeset_view.ex diff --git a/lib/tesla_mate_web/views/error_helpers.ex b/lib/teslamate_web/views/error_helpers.ex similarity index 100% rename from lib/tesla_mate_web/views/error_helpers.ex rename to lib/teslamate_web/views/error_helpers.ex diff --git a/lib/tesla_mate_web/views/error_view.ex b/lib/teslamate_web/views/error_view.ex similarity index 100% rename from lib/tesla_mate_web/views/error_view.ex rename to lib/teslamate_web/views/error_view.ex diff --git a/lib/tesla_mate_web/views/layout_view.ex b/lib/teslamate_web/views/layout_view.ex similarity index 100% rename from lib/tesla_mate_web/views/layout_view.ex rename to lib/teslamate_web/views/layout_view.ex diff --git a/lib/tesla_mate_web/views/page_view.ex b/lib/teslamate_web/views/page_view.ex similarity index 100% rename from lib/tesla_mate_web/views/page_view.ex rename to lib/teslamate_web/views/page_view.ex diff --git a/mix.exs b/mix.exs index 0c3bcc92..e48601f8 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule TeslaMate.MixProject do def project do [ - app: :tesla_mate, + app: :teslamate, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), diff --git a/rel/config.exs b/rel/config.exs index 5c171380..2b9595c3 100644 --- a/rel/config.exs +++ b/rel/config.exs @@ -19,8 +19,8 @@ environment :prod do set(vm_args: "rel/vm.args") end -release :tesla_mate do - set(version: current_version(:tesla_mate)) +release :teslamate do + set(version: current_version(:teslamate)) set( applications: [ diff --git a/rel/config/config.exs b/rel/config/config.exs index b97954d4..f5e930dc 100644 --- a/rel/config/config.exs +++ b/rel/config/config.exs @@ -14,23 +14,23 @@ defmodule Env do defp parse_integer(_, default), do: default end -config :tesla_mate, TeslaMate.Repo, +config :teslamate, TeslaMate.Repo, username: Env.get("DATABASE_USER"), password: Env.get("DATABASE_PASS"), database: Env.get("DATABASE_NAME"), hostname: Env.get("DATABASE_HOST"), pool_size: 15 -config :tesla_mate, TeslaMateWeb.Endpoint, +config :teslamate, TeslaMateWeb.Endpoint, http: [:inet6, port: Env.get("PORT") || 4000], url: [host: Env.get("VIRTUAL_HOST"), port: 80], secret_key_base: Env.get("SECRET_KEY_BASE") -config :tesla_mate, :tesla_auth, +config :teslamate, :tesla_auth, username: Env.get("TESLA_USERNAME"), password: Env.get("TESLA_PASSWORD") -config :tesla_mate, :mqtt, +config :teslamate, :mqtt, host: Env.get("MQTT_HOST"), username: Env.get("MQTT_USERNAME"), password: Env.get("MQTT_PASSWORD") @@ -50,5 +50,3 @@ config :logger, :telegram, level: :warn, chat_id: Env.get("CHAT_ID"), token: Env.get("TOKEN") - -IO.puts("Configured") diff --git a/test/tesla_mate/log/log_car_test.exs b/test/teslamate/log/log_car_test.exs similarity index 100% rename from test/tesla_mate/log/log_car_test.exs rename to test/teslamate/log/log_car_test.exs diff --git a/test/tesla_mate/log/log_charging_test.exs b/test/teslamate/log/log_charging_test.exs similarity index 100% rename from test/tesla_mate/log/log_charging_test.exs rename to test/teslamate/log/log_charging_test.exs diff --git a/test/tesla_mate/log/log_state_test.exs b/test/teslamate/log/log_state_test.exs similarity index 100% rename from test/tesla_mate/log/log_state_test.exs rename to test/teslamate/log/log_state_test.exs diff --git a/test/tesla_mate/log/log_trip_test.exs b/test/teslamate/log/log_trip_test.exs similarity index 100% rename from test/tesla_mate/log/log_trip_test.exs rename to test/teslamate/log/log_trip_test.exs diff --git a/test/tesla_mate/vehicles/vehicle/charging_test.exs b/test/teslamate/vehicles/vehicle/charging_test.exs similarity index 100% rename from test/tesla_mate/vehicles/vehicle/charging_test.exs rename to test/teslamate/vehicles/vehicle/charging_test.exs diff --git a/test/tesla_mate/vehicles/vehicle/driving_test.exs b/test/teslamate/vehicles/vehicle/driving_test.exs similarity index 100% rename from test/tesla_mate/vehicles/vehicle/driving_test.exs rename to test/teslamate/vehicles/vehicle/driving_test.exs diff --git a/test/tesla_mate/vehicles/vehicle/suspend_test.exs b/test/teslamate/vehicles/vehicle/suspend_test.exs similarity index 100% rename from test/tesla_mate/vehicles/vehicle/suspend_test.exs rename to test/teslamate/vehicles/vehicle/suspend_test.exs diff --git a/test/tesla_mate/vehicles/vehicle_test.exs b/test/teslamate/vehicles/vehicle_test.exs similarity index 100% rename from test/tesla_mate/vehicles/vehicle_test.exs rename to test/teslamate/vehicles/vehicle_test.exs diff --git a/test/tesla_mate_web/controllers/car_controller_test.exs b/test/teslamate_web/controllers/car_controller_test.exs similarity index 100% rename from test/tesla_mate_web/controllers/car_controller_test.exs rename to test/teslamate_web/controllers/car_controller_test.exs diff --git a/test/tesla_mate_web/controllers/page_controller_test.exs b/test/teslamate_web/controllers/page_controller_test.exs similarity index 100% rename from test/tesla_mate_web/controllers/page_controller_test.exs rename to test/teslamate_web/controllers/page_controller_test.exs diff --git a/test/tesla_mate_web/views/error_view_test.exs b/test/teslamate_web/views/error_view_test.exs similarity index 100% rename from test/tesla_mate_web/views/error_view_test.exs rename to test/teslamate_web/views/error_view_test.exs diff --git a/test/tesla_mate_web/views/layout_view_test.exs b/test/teslamate_web/views/layout_view_test.exs similarity index 100% rename from test/tesla_mate_web/views/layout_view_test.exs rename to test/teslamate_web/views/layout_view_test.exs diff --git a/test/tesla_mate_web/views/page_view_test.exs b/test/teslamate_web/views/page_view_test.exs similarity index 100% rename from test/tesla_mate_web/views/page_view_test.exs rename to test/teslamate_web/views/page_view_test.exs diff --git a/test/test_helper.exs b/test/test_helper.exs index 844d07e9..e86d23f4 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,6 +1,6 @@ -Application.load(:tesla_mate) +Application.load(:teslamate) -for app <- Application.spec(:tesla_mate, :applications) do +for app <- Application.spec(:teslamate, :applications) do {:ok, _} = Application.ensure_all_started(app) end