diff --git a/Package.swift b/Package.swift index 5182c2c..d491428 100644 --- a/Package.swift +++ b/Package.swift @@ -7,21 +7,27 @@ let package = Package( name: "hummingbird-redis", platforms: [.macOS(.v14), .iOS(.v17), .tvOS(.v17)], products: [ - .library(name: "HummingbirdRedis", targets: ["HummingbirdRedis"]), + .library(name: "HummingbirdRedis", targets: ["HummingbirdRedis"]) ], dependencies: [ .package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.5.0"), .package(url: "https://github.com/swift-server/RediStack.git", from: "1.4.0"), ], targets: [ - .target(name: "HummingbirdRedis", dependencies: [ - .product(name: "Hummingbird", package: "hummingbird"), - .product(name: "RediStack", package: "RediStack"), - ]), - .testTarget(name: "HummingbirdRedisTests", dependencies: [ - .byName(name: "HummingbirdRedis"), - .product(name: "Hummingbird", package: "hummingbird"), - .product(name: "HummingbirdTesting", package: "hummingbird"), - ]), + .target( + name: "HummingbirdRedis", + dependencies: [ + .product(name: "Hummingbird", package: "hummingbird"), + .product(name: "RediStack", package: "RediStack"), + ] + ), + .testTarget( + name: "HummingbirdRedisTests", + dependencies: [ + .byName(name: "HummingbirdRedis"), + .product(name: "Hummingbird", package: "hummingbird"), + .product(name: "HummingbirdTesting", package: "hummingbird"), + ] + ), ] ) diff --git a/Sources/HummingbirdRedis/RedisConfiguration.swift b/Sources/HummingbirdRedis/RedisConfiguration.swift index 1c89fac..1a596ed 100644 --- a/Sources/HummingbirdRedis/RedisConfiguration.swift +++ b/Sources/HummingbirdRedis/RedisConfiguration.swift @@ -12,14 +12,16 @@ // //===----------------------------------------------------------------------===// -// Based of the Vapor redis configuration that can be found -// here https://github.com/vapor/redis/blob/master/Sources/Redis/RedisConfiguration.swift -import struct Foundation.URL import Hummingbird import Logging import NIOCore import RediStack +import struct Foundation.URL + +// Based of the Vapor redis configuration that can be found +// here https://github.com/vapor/redis/blob/master/Sources/Redis/RedisConfiguration.swift + public struct RedisConfiguration { public typealias ValidationError = RedisConnection.Configuration.ValidationError diff --git a/Tests/HummingbirdRedisTests/RedisTests.swift b/Tests/HummingbirdRedisTests/RedisTests.swift index 210eea2..01d799d 100644 --- a/Tests/HummingbirdRedisTests/RedisTests.swift +++ b/Tests/HummingbirdRedisTests/RedisTests.swift @@ -13,12 +13,13 @@ //===----------------------------------------------------------------------===// import Hummingbird -@testable import HummingbirdRedis import HummingbirdTesting import Logging import NIOPosix import XCTest +@testable import HummingbirdRedis + final class HummingbirdRedisTests: XCTestCase { static let env = Environment() static let redisHostname = env.get("REDIS_HOSTNAME") ?? "localhost"