Skip to content

Commit

Permalink
apple_clang pipeline hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Mento committed Oct 15, 2023
1 parent f49a53a commit 5f44926
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/modules/git/Git.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "faker-cxx/Git.h"

#include <format>
#include <string>

#include "faker-cxx/Word.h"
Expand All @@ -12,6 +11,7 @@
#include "faker-cxx/types/Language.h"
#include "../../common/StringHelper.h"
#include "../date/data/MonthNames.h"
#include "fmt/format.h"

namespace faker
{
Expand All @@ -21,11 +21,11 @@ std::string Git::branch(unsigned maxIssueNum)
switch (Number::integer(1, 3))
{
case 1:
return std::format("{}-{}", Word::verb(), Word::noun());
return fmt::format("{}-{}", Word::verb(), Word::noun());
case 2:
return std::format("{}-{}-{}", Word::verb(), Word::adjective(), Word::noun());
return fmt::format("{}-{}-{}", Word::verb(), Word::adjective(), Word::noun());
default:
return std::format("{}-{}-{}-{}", Number::integer(unsigned (1), maxIssueNum), Word::verb(), Word::adjective(), Word::noun());
return fmt::format("{}-{}-{}-{}", Number::integer(unsigned (1), maxIssueNum), Word::verb(), Word::adjective(), Word::noun());
}
}

Expand Down Expand Up @@ -67,7 +67,7 @@ std::string Git::commitDate(unsigned years)
}


return std::format("{} {} {} {} {} {}", Date::weekdayAbbreviatedName(), monthAbbreviatedNames[size_t(std::stoi(month)-1)], day, time, year, timeZoneString);
return fmt::format("{} {} {} {} {} {}", Date::weekdayAbbreviatedName(), monthAbbreviatedNames[size_t(std::stoi(month)-1)], day, time, year, timeZoneString);
}

std::string Git::commitEntry(std::optional<unsigned> dateYears, std::optional<unsigned> shaLength, Language language)
Expand Down Expand Up @@ -103,13 +103,13 @@ std::string Git::commitMessage()
switch (Number::integer(1, 4))
{
case 1:
return std::format("{} {}", Word::verb(), Word::noun());
return fmt::format("{} {}", Word::verb(), Word::noun());
case 2:
return std::format("{} {} {}", Word::verb(), Word::adjective(), Word::noun());
return fmt::format("{} {} {}", Word::verb(), Word::adjective(), Word::noun());
case 3:
return std::format("{} {} {}", Word::verb(), Word::noun(), Word::adverb());
return fmt::format("{} {} {}", Word::verb(), Word::noun(), Word::adverb());
default:
return std::format("{} {} {} {}", Word::verb(), Word::adjective(), Word::noun(), Word::adverb());
return fmt::format("{} {} {} {}", Word::verb(), Word::adjective(), Word::noun(), Word::adverb());
}
}

Expand Down
1 change: 0 additions & 1 deletion src/modules/git/GitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "gtest/gtest.h"

#include <format>
#include <string>
#include <regex>
#include <iostream>
Expand Down

0 comments on commit 5f44926

Please sign in to comment.