Skip to content

Commit e2b80ab

Browse files
committed
Updated wsjcpp-core to v0.1.0
1 parent a3955e9 commit e2b80ab

33 files changed

+883
-602
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wsjcpp-yaml
22

3-
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-yaml.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-yaml) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-yaml.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-yaml) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-yaml.svg)](https://github.com/wsjcpp/wsjcpp-yaml) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-yaml.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-yaml/network/members)
3+
[![Build Status](https://api.travis-ci.com/wsjcpp/wsjcpp-yaml.svg?branch=master)](https://travis-ci.com/wsjcpp/wsjcpp-yaml) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-yaml.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-yaml) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-yaml.svg)](https://github.com/wsjcpp/wsjcpp-yaml) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-yaml.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-yaml/network/members)
44

55
C++ Write/Reader yaml files
66

@@ -27,14 +27,14 @@ In you main file configure logger:
2727
int main(int argc, char* argv[]) {
2828
std::string TAG = "MAIN";
2929
std::string appLogPath = ".logs";
30-
WSJCppLog::setLogDirectory(appLogPath);
31-
if (!WSJCppCore::dirExists(appLogPath)) {
32-
WSJCppCore::makeDir(appLogPath);
30+
WsjcppLog::setLogDirectory(appLogPath);
31+
if (!WsjcppCore::dirExists(appLogPath)) {
32+
WsjcppCore::makeDir(appLogPath);
3333
}
34-
WSJCppLog::info(TAG, "Hello!");
34+
WsjcppLog::info(TAG, "Hello!");
3535

36-
// now you can use WSJCppYAML
37-
WSJCppYAML yaml;
36+
// now you can use WsjcppYaml
37+
WsjcppYaml yaml;
3838
if (yaml.loadFromString(
3939
"# yaml content\n"
4040
"yaml1: nice format\n"
@@ -50,7 +50,7 @@ int main(int argc, char* argv[]) {
5050
" p2: v4 \n"
5151
"param2: 111\n"
5252
)) {
53-
WSJCppLog::throw_err(TAG, "Error parsing");
53+
WsjcppLog::throw_err(TAG, "Error parsing");
5454
return -1;
5555
}
5656

src.wsjcpp/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ set (WSJCPP_LIBRARIES "")
1414
set (WSJCPP_INCLUDE_DIRS "")
1515
set (WSJCPP_SOURCES "")
1616

17-
# wsjcpp-core:v0.0.4
17+
find_package(Threads REQUIRED)
18+
list (APPEND WSJCPP_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
19+
20+
# wsjcpp-core:v0.1.0
1821
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_core/")
1922
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp")
2023
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_core/wsjcpp_core.h")

src.wsjcpp/wsjcpp_core/unit_tests.cpp

Lines changed: 0 additions & 109 deletions
This file was deleted.

src.wsjcpp/wsjcpp_core/unit_tests_main.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

src.wsjcpp/wsjcpp_core/wsjcpp.hold.yml

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_cxx_standard: 11
33
cmake_minimum_required: 3.0
44

55
name: wsjcpp-core
6-
version: v0.0.4
6+
version: v0.1.0
77
description: Basic Utils for wsjcpp
88
issues: https://github.com/wsjcpp/wsjcpp-core/issues
99
repositories:
@@ -17,30 +17,22 @@ authors:
1717
- name: Evgenii Sopov
1818
email: mrseakg@gmail.com
1919

20-
required-libraries:
21-
- pthread
22-
2320
distribution:
2421
- source-file: src/wsjcpp_core.cpp
2522
target-file: wsjcpp_core.cpp
26-
sha1: "04a9e3c6db3c7190c6589514a4b5957dbb4c366d"
2723
type: "source-code"
2824
- source-file: src/wsjcpp_core.h
2925
target-file: wsjcpp_core.h
30-
sha1: "1d76447c6880f43f9afeca89111ec64d3574ccb7"
31-
type: "source-code"
32-
- source-file: "src/unit_tests.cpp"
33-
target-file: "unit_tests.cpp"
26+
type: "source-code" # todo must be header-file
27+
- source-file: "src/wsjcpp_unit_tests.cpp"
28+
target-file: "wsjcpp_unit_tests.cpp"
3429
type: "unit-tests"
35-
sha1: "a36d71646ddd6041346909c0481a59299f01f898"
36-
- source-file: "src/unit_tests.h"
37-
target-file: "unit_tests.h"
30+
- source-file: "src/wsjcpp_unit_tests.h"
31+
target-file: "wsjcpp_unit_tests.h"
3832
type: "unit-tests"
39-
sha1: "a20248c9801c53519ad847aa19d80460289a5dd1"
40-
- source-file: "src/unit_tests_main.cpp"
41-
target-file: "unit_tests_main.cpp"
33+
- source-file: "src/wsjcpp_unit_tests_main.cpp"
34+
target-file: "wsjcpp_unit_tests_main.cpp"
4235
type: "unit-tests"
43-
sha1: "81a2b3d7328575c0087fa43000b05a96e278da07"
4436

4537
unit-tests:
4638
cases:
@@ -50,7 +42,29 @@ unit-tests:
5042
description: Check test generate uuid function
5143
- name: CoreExtractFilename
5244
description: Check function extract filenane from path
53-
- name: IPv4
54-
description: Check function isIPv4
55-
- name: IPv6
56-
description: Check function isIPv6
45+
- name: "ToUpper"
46+
description: "String to upper"
47+
- name: "CreateUuid"
48+
description: "Test generation uuids"
49+
- name: "GetEnv"
50+
description: "Test getEnv function"
51+
- name: "ToLower"
52+
description: "Test toLower"
53+
- name: "ReplaceAll"
54+
description: "Test replace all"
55+
- name: "DecodeUriComponent"
56+
description: "Check decoding"
57+
- name: "EncodeUriComponent"
58+
description: "Check encoding"
59+
- name: "Uint2HexString"
60+
description: "Test convert unsigned int to hex string"
61+
- name: "Split"
62+
description: "Test split function"
63+
- name: "CreateEmptyFile"
64+
description: "Test create empty file"
65+
- name: "ReadFileToBuffer"
66+
description: "test for readFileToBuffer"
67+
- name: "Join"
68+
description: "Test join function"
69+
- name: "getHumanSizeBytes"
70+
description: "Test function get human size in bytes"

0 commit comments

Comments
 (0)