From 63e1d1cbc61c53e08c65e5caef9cd4ef16791a3d Mon Sep 17 00:00:00 2001 From: Evgenii Sopov Date: Sun, 5 Jan 2020 13:58:19 +0700 Subject: [PATCH 1/3] Fixed repositories --- wsjcpp.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wsjcpp.yml b/wsjcpp.yml index 388d94a..2de895d 100644 --- a/wsjcpp.yml +++ b/wsjcpp.yml @@ -8,7 +8,8 @@ version: 0.0.1 description: Basic Utils for wsjcpp issues: https://github.com/wsjcpp/wsjcpp-core/issues repositories: - - "https://github.com/wsjcpp/wsjcpp-core" + - type: main + url: "https://github.com/wsjcpp/wsjcpp-core" keywords: - c++ - wsjcpp @@ -35,4 +36,4 @@ unit-tests: files: - unit-tests/src/main.cpp - unit-tests/src/unit_tests.h - - unit-tests/src/unit_tests.cpp \ No newline at end of file + - unit-tests/src/unit_tests.cpp From ed8ecc1e457050623821d5f288f4edabf1b6093d Mon Sep 17 00:00:00 2001 From: Evgenii Sopov Date: Sun, 5 Jan 2020 14:03:03 +0700 Subject: [PATCH 2/3] Changed field --- wsjcpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsjcpp.yml b/wsjcpp.yml index 2de895d..d8c9994 100644 --- a/wsjcpp.yml +++ b/wsjcpp.yml @@ -1,5 +1,5 @@ -wsjcpp: 1.0.0 +wsjcpp_version: v0.0.1 cmake_cxx_standard: 11 cmake_minimum_required: 3.0 From b74689d778bdc5b42af7333f7c7943df2c18373b Mon Sep 17 00:00:00 2001 From: Evgenii Sopov Date: Mon, 6 Jan 2020 14:17:53 +0700 Subject: [PATCH 3/3] Fixed write text file --- src/wsjcpp_core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wsjcpp_core.cpp b/src/wsjcpp_core.cpp index e81e31e..0e70385 100644 --- a/src/wsjcpp_core.cpp +++ b/src/wsjcpp_core.cpp @@ -275,7 +275,7 @@ bool WSJCppCore::makeDir(const std::string &sDirname) { std::cout << "FAILED create folder " << sDirname << std::endl; return false; } - std::cout << "nStatus: " << nStatus << std::endl; + // std::cout << "nStatus: " << nStatus << std::endl; return true; } @@ -283,12 +283,12 @@ bool WSJCppCore::makeDir(const std::string &sDirname) { bool WSJCppCore::writeFile(const std::string &sFilename, const std::string &sContent) { - std::ofstream f(sFilename, std::ifstream::in); + // std::ofstream f(sFilename, std::ifstream::in); + std::ofstream f(sFilename, std::ios::out); if (!f) { - std::cout << "FAILED could not create file to wtite " << sFilename << std::endl; + WSJCppLog::err("WSJCppCore", "Could not create file to write '" + sFilename + "'"); return false; } - f << sContent << std::endl; f.close(); return true;