Skip to content

Commit

Permalink
fix: version 3.1.0 rename to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gfaim committed Feb 25, 2022
1 parent 90e3c7c commit ddd88c1
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Banner](docs/assets/project_banner.png)

[![ZiAPI](https://img.shields.io/badge/ZiAPI-v3.1.0-blue.svg)](https://github.com/martin-olivier/ZiAPI/releases/tag/v3.1.0)
[![ZiAPI](https://img.shields.io/badge/ZiAPI-v4.0.0-blue.svg)](https://github.com/martin-olivier/ZiAPI/releases/tag/v4.0.0)
[![CPP Version](https://img.shields.io/badge/C++-17_and_above-darkgreen.svg)](https://isocpp.org/)
[![Discord](https://img.shields.io/discord/934852777136513075)](https://discord.gg/CzKv6dGXmf)
[![workflow](https://github.com/martin-olivier/ZiAPI/actions/workflows/CI.yml/badge.svg)](https://github.com/martin-olivier/ZiAPI/actions/workflows/CI.yml)
Expand Down Expand Up @@ -38,7 +38,7 @@ include(ExternalProject)
ExternalProject_Add(
ziapi
GIT_REPOSITORY https://github.com/martin-olivier/ZiAPI.git
GIT_TAG v3.1.0
GIT_TAG v4.0.0
INSTALL_COMMAND ""
TEST_COMMAND ""
)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/DIRECTORY_LISTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class DirectoryListingModule : public ziapi::IHandlerModule {
public:
void Init(const ziapi::config::Node &cfg) override {}

[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept override { return "DirectoryListing"; }

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/REDIRECTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class PhpCgiModule : public ziapi::IHandlerModule {
public:
void Init(const ziapi::config::Node &cfg) override {}

[[nodiscard]] Version GetVersion() const noexcept { return {3, 1, 0}; }
[[nodiscard]] Version GetVersion() const noexcept { return {4, 0, 0}; }

[[nodiscard]] Version GetCompatibleApiVersion() const noexcept { return {3, 1, 0}; }
[[nodiscard]] Version GetCompatibleApiVersion() const noexcept { return {4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept { return "Redirection Module"; }

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/INSTALL_AND_BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(ExternalProject)
ExternalProject_Add(
ziapi
GIT_REPOSITORY https://github.com/martin-olivier/ZiAPI.git
GIT_TAG v3.1.0
GIT_TAG v4.0.0
INSTALL_COMMAND ""
TEST_COMMAND ""
)
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/MODULES_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ include(ExternalProject)
ExternalProject_Add(
ziapi
GIT_REPOSITORY https://github.com/martin-olivier/ZiAPI.git
GIT_TAG v3.1.0
GIT_TAG v4.0.0
INSTALL_COMMAND ""
TEST_COMMAND ""
)
Expand Down Expand Up @@ -82,9 +82,9 @@ public:

void Init(const ziapi::config::Node &) override {}

ziapi::Version GetVersion() const noexcept override { return {3, 1, 0}; }
ziapi::Version GetVersion() const noexcept override { return {4, 0, 0}; }

ziapi::Version GetCompatibleApiVersion() const noexcept override { return {3, 1, 0}; }
ziapi::Version GetCompatibleApiVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] virtual const char *GetName() const noexcept override { return "module_name"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/dylib/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class Module : public ziapi::IModule {

void Init(const ziapi::config::Node &) override {}

ziapi::Version GetVersion() const noexcept override { return {3, 1, 0}; }
ziapi::Version GetVersion() const noexcept override { return {4, 0, 0}; }

ziapi::Version GetCompatibleApiVersion() const noexcept override { return {3, 1, 0}; }
ziapi::Version GetCompatibleApiVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] virtual const char *GetName() const noexcept override { return "module_name"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/modules/compressor/CompressorModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class CompressorModule : public ziapi::IPostProcessorModule {
// Don't need anything to configure in this implementation
}

[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return ziapi::Version{3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return ziapi::Version{4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return ziapi::Version{3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return ziapi::Version{4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept override { return "CompressorModule"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/modules/decompressor/DecompressorModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class DecompressorModule : public ziapi::IPreProcessorModule {
// Don't need anything to configure in this implementation
}

[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return ziapi::Version{3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return ziapi::Version{4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return ziapi::Version{3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return ziapi::Version{4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept override { return "DecompressorModule"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/modules/directory-listing/DirectoryListingModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class DirectoryListingModule : public ziapi::IHandlerModule {
root_ = cfg["modules"]["directoryListing"]["root"].AsString();
}

[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept override { return "DirectoryListing"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/modules/logger/LoggerModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class LoggerModule : virtual public ziapi::IPreProcessorModule, public ziapi::IP
public:
void Init(const ziapi::config::Node &config) {}

[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept override { return {4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept override { return "LoggerModule"; }

Expand Down
4 changes: 2 additions & 2 deletions examples/modules/redirection/Module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class RedirectionModule : public ziapi::IHandlerModule {
return 0.9f;
}

[[nodiscard]] ziapi::Version GetVersion() const noexcept { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetVersion() const noexcept { return {4, 0, 0}; }

[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept { return {3, 1, 0}; }
[[nodiscard]] ziapi::Version GetCompatibleApiVersion() const noexcept { return {4, 0, 0}; }

[[nodiscard]] const char *GetName() const noexcept { return "Redirection Module"; }

Expand Down
4 changes: 2 additions & 2 deletions tests/Compressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ TEST(Compressor, UtilsInfo)
ASSERT_EQ(std::string(compressor.GetName()), std::string("CompressorModule"));
ASSERT_EQ(std::string(compressor.GetDescription()),
std::string("Compress the response body before sending it back to the network"));
ASSERT_EQ(compressor.GetCompatibleApiVersion(), (ziapi::Version{3, 1, 0}));
ASSERT_EQ(compressor.GetVersion(), (ziapi::Version{3, 1, 0}));
ASSERT_EQ(compressor.GetCompatibleApiVersion(), (ziapi::Version{4, 0, 0}));
ASSERT_EQ(compressor.GetVersion(), (ziapi::Version{4, 0, 0}));
}

TEST(Compressor, compressionRate)
Expand Down
4 changes: 2 additions & 2 deletions tests/Decompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ TEST(Decompressor, UtilsInfo)
ASSERT_EQ(std::string(decompressor.GetName()), std::string("DecompressorModule"));
ASSERT_EQ(std::string(decompressor.GetDescription()),
std::string("Decompress the response body before sending it to the module pipeline"));
ASSERT_EQ(decompressor.GetCompatibleApiVersion(), (ziapi::Version{3, 1, 0}));
ASSERT_EQ(decompressor.GetVersion(), (ziapi::Version{3, 1, 0}));
ASSERT_EQ(decompressor.GetCompatibleApiVersion(), (ziapi::Version{4, 0, 0}));
ASSERT_EQ(decompressor.GetVersion(), (ziapi::Version{4, 0, 0}));
}

TEST(Decompressor, Decompression)
Expand Down
4 changes: 2 additions & 2 deletions tests/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ TEST(Version, greater_or_equal)

ASSERT_TRUE(a >= b);

a = ziapi::Version{3, 1, 0};
a = ziapi::Version{4, 0, 0};
b = ziapi::Version{1, 4, 0};

ASSERT_TRUE(a >= b);
Expand All @@ -100,7 +100,7 @@ TEST(Version, less_or_equal)
ASSERT_TRUE(a <= b);

a = ziapi::Version{1, 1, 2};
b = ziapi::Version{3, 1, 0};
b = ziapi::Version{4, 0, 0};

ASSERT_TRUE(a <= b);

Expand Down

0 comments on commit ddd88c1

Please sign in to comment.