diff --git a/Alchemy/Database/Seeding/Seedable.swift b/Alchemy/Database/Seeding/Seedable.swift index 9801e99a..030ad423 100644 --- a/Alchemy/Database/Seeding/Seedable.swift +++ b/Alchemy/Database/Seeding/Seedable.swift @@ -1,15 +1,10 @@ import Collections -import Fakery public protocol Seedable { static func generate() async throws -> Self } extension Seedable where Self: Model { - public static var faker: Faker { - Faker() - } - public static func randomOrSeed() async throws -> Self { guard let random = try await random() else { return try await seed() diff --git a/Package.swift b/Package.swift index cb7754b4..4a05dcf7 100644 --- a/Package.swift +++ b/Package.swift @@ -15,24 +15,23 @@ let package = Package( .library(name: "AlchemyTest", targets: ["AlchemyTest"]), ], dependencies: [ - .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.2"), + .package(url: "https://github.com/alchemy-swift/cron.git", from: "2.3.2"), + .package(url: "https://github.com/alchemy-swift/pluralize", from: "1.0.1"), .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"), - .package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"), + .package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"), .package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-syntax", from: "510.0.0"), + .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.2"), + .package(url: "https://github.com/onevcat/Rainbow", .upToNextMajor(from: "4.0.0")), .package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.1.0"), - .package(url: "https://github.com/vapor/postgres-nio.git", from: "1.17.0"), + .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"), + .package(url: "https://github.com/swift-server/RediStack", from: "1.6.2"), + .package(url: "https://github.com/vapor/async-kit.git", from: "1.0.0"), + .package(url: "https://github.com/vapor/multipart-kit", from: "4.7.0"), .package(url: "https://github.com/vapor/mysql-nio.git", from: "1.0.0"), + .package(url: "https://github.com/vapor/postgres-nio.git", from: "1.17.0"), .package(url: "https://github.com/vapor/sqlite-nio.git", from: "1.0.0"), - .package(url: "https://github.com/vapor/async-kit.git", from: "1.0.0"), - .package(url: "https://github.com/vapor/multipart-kit", from: "4.5.1"), - .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"), - .package(url: "https://github.com/alchemy-swift/cron.git", from: "2.3.2"), - .package(url: "https://github.com/alchemy-swift/pluralize", from: "1.0.1"), - .package(url: "https://github.com/swift-server/RediStack", branch: "1.5.1"), - .package(url: "https://github.com/onevcat/Rainbow", .upToNextMajor(from: "4.0.0")), - .package(url: "https://github.com/vadymmarkov/Fakery", from: "5.0.0"), // MARK: Experimental @@ -65,7 +64,6 @@ let package = Package( .product(name: "AsyncHTTPClient", package: "async-http-client"), .product(name: "Cron", package: "cron"), .product(name: "Crypto", package: "swift-crypto"), - .product(name: "Fakery", package: "Fakery"), .product(name: "HTTPTypes", package: "swift-http-types"), .product(name: "Hummingbird", package: "hummingbird"), .product(name: "HummingbirdHTTP2", package: "hummingbird"),