Skip to content

Commit

Permalink
cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Jul 14, 2024
1 parent 5fcf688 commit 47bd7c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
5 changes: 0 additions & 5 deletions Alchemy/Database/Seeding/Seedable.swift
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
22 changes: 10 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 47bd7c2

Please sign in to comment.