Skip to content

Commit

Permalink
Merge pull request #3 from the-grid/path-component
Browse files Browse the repository at this point in the history
Rename internal property to remove any possible confusion with RawRepresentable.
  • Loading branch information
paulyoung committed Sep 27, 2015
2 parents 55345d0 + 547a6f3 commit 9bc3a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ImgFlo/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public struct Client {
let graphNameWithFormat: String

if let format = derivedFormat {
graphNameWithFormat = graph.rawValue + "." + format.lowercaseString
graphNameWithFormat = graph.pathComponent + "." + format.lowercaseString
} else {
graphNameWithFormat = graph.rawValue
graphNameWithFormat = graph.pathComponent
}

guard let token = "\(graphNameWithFormat)?\(query)\(secret)".MD5 else {
Expand Down
2 changes: 1 addition & 1 deletion ImgFlo/Graph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public enum Graph {
case MotionBlur(width: Int?, height: Int?, length: Double, angle: Double, brightness: Double, contrast: Double, strength: DecimalFraction)
case Passthrough(width: Int?, height: Int?)

var rawValue: String {
var pathComponent: String {
switch self {
case .Canvas: return "canvas"
case .Crop: return "crop"
Expand Down

0 comments on commit 9bc3a4f

Please sign in to comment.