Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 69a1a05

Browse files
authored
Merge pull request #46 from wordpress-mobile/issue/rename_method
Rename md5 method
2 parents c39fbcf + a68c072 commit 69a1a05

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

WordPressUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressUI"
3-
s.version = "1.4"
3+
s.version = "1.5-beta.1"
44
s.summary = "Home of reusable WordPress UI components."
55

66
s.description = <<-DESC

WordPressUI.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
B5C82AE22077C01B00DB2E78 /* UILabel+SuggestSize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UILabel+SuggestSize.h"; sourceTree = "<group>"; };
157157
B5C82AE42077C02100DB2E78 /* UILabel+SuggestSize.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UILabel+SuggestSize.m"; sourceTree = "<group>"; };
158158
B5D91457206AD8BA00EF333D /* FancyButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FancyButton.swift; sourceTree = "<group>"; };
159-
FF20AD1620B76A2300082398 /* WordPressUI.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressUI.podspec; sourceTree = "<group>"; };
159+
FF20AD1620B76A2300082398 /* WordPressUI.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressUI.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
160160
/* End PBXFileReference section */
161161

162162
/* Begin PBXFrameworksBuildPhase section */

WordPressUI/Extensions/Gravatar/Gravatar.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ public struct Gravatar {
44
fileprivate struct Defaults {
55
static let scheme = "https"
66
static let host = "secure.gravatar.com"
7-
// unknownHash = md5("[email protected]")
87
static let unknownHash = "ad516503a11cd5ca435acc9bb6523536"
98
}
109

WordPressUI/Extensions/Gravatar/NSString+Gravatar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
@interface NSString (Gravatar)
44

5-
- (NSString *)md5;
5+
- (NSString *)md5Hash;
66

77
@end

WordPressUI/Extensions/Gravatar/NSString+Gravatar.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@implementation NSString (Gravatar)
66

7-
- (NSString *)md5
7+
- (NSString *)md5Hash
88
{
99
const char *cStr = [self UTF8String];
1010
unsigned char result[CC_MD5_DIGEST_LENGTH];

WordPressUI/Extensions/UIImageView+Gravatar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ extension UIImageView {
213213
return email
214214
.lowercased()
215215
.trimmingCharacters(in: .whitespaces)
216-
.md5()
216+
.md5Hash()
217217
}
218218

219219
/// Returns the required gravatar size. If the current view's size is zero, falls back to the default size.

0 commit comments

Comments
 (0)