Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 5c9fd30

Browse files
committed
Bump version
1 parent 9b802d5 commit 5c9fd30

File tree

2 files changed

+14
-51
lines changed

2 files changed

+14
-51
lines changed

README.md

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ A simple UIImageView subclass for dealing with http://gravatar.com images.
1313

1414
```ruby
1515
platform :ios, '7.0'
16-
pod "RFGravatarImageView", "~> 1.0"
16+
pod "RFGravatarImageView", "~> 1.1"
1717
```
1818

1919
### Installation without CocoaPods
2020

2121
Just drag the RFGravatarImageView folder into your project and import it. You'll also have to download SDWebImage, which you can grab here: [SDWebImage repository](https://github.com/rs/SDWebImage).
2222

23-
```
23+
```obj-c
2424
#import 'RFGravatarImageView.h'
25-
// Don't worry about importing SDWebImage
2625
```
2726

2827
## Use
@@ -31,57 +30,20 @@ RFGravatarImageView is pretty easy to use. See this example implementation (cop
3130

3231
```obj-c
3332
_imageView = [[RFGravatarImageView alloc] initWithFrame:self.view.bounds];
34-
[_imageView setEmail:@"[email protected]"];
35-
[_imageView setSize:1024];
36-
33+
_imageView.email = @"[email protected]";
34+
_imageView.forceDefault = YES;
35+
_imageView.defaultGravatar = RFDefaultGravatarMysteryMan;
36+
_imageView.size = 1024;
37+
3738
[self.view addSubview:_imageView];
38-
39-
[_imageView loadGravatar];
39+
40+
[_imageView load];
4041
```
4142
4243
See [RFGravatarImageView.h](RFGravatarImageView/RFGravatarImageView.h) to view each available method and the variables - I've commented on everything you need (I think). For more information on the Gravatar image requests, see [here](https://en.gravatar.com/site/implement/images).
4344
4445
Hope you enjoy it! Please Fork and send Pull Requests!
4546
46-
##Methods and Variables
47-
48-
```obj-c
49-
// I suppose you could use an NSDictionary for this, but I was lazy - feel free to add.
50-
51-
// User email - you must set this!
52-
@property (readwrite, strong, nonatomic) NSString *email;
53-
54-
// A placeholder image while SDWebImage fetches the gravatar.
55-
@property (readwrite, strong, nonatomic) UIImage *placeholder;
56-
57-
// The size of the gravatar up to 2048. All gravatars are squares, so you will get 2048x2048.
58-
@property (readwrite, nonatomic) NSUInteger size;
59-
60-
// Rating (G, PG, R, X) of gravatar to allow, helpful for kid-friendly apps.
61-
@property (readwrite, nonatomic) GravatarRatings rating;
62-
63-
// If email doesn't have a gravatar, use one of these... http://bit.ly/1cCmtdb
64-
@property (readwrite, nonatomic) DefaultGravatars defaultGravatar;
65-
66-
// Force a default gravatar, whether or not email has gravatar. Remember to set defaultGravatar too!
67-
@property (readwrite, nonatomic) BOOL forceDefault;
68-
69-
// Another option to init with a placeholder, so you don't have to do [_imageView setPlaceholder:].
70-
- (id)initWithFrame:(CGRect)frame andPlaceholder:(UIImage*)placeholder;
71-
72-
// A substitute to having to do [_imageView setForceDefault:YES]; and setting the default gravatar.
73-
- (void)forceDefault:(BOOL)forceDefault withDefaultGravatar:(DefaultGravatars)gravatar;
74-
75-
// Actually loads the gravatar AFTER you have configured all of your options.
76-
- (void)loadGravatar;
77-
78-
// Load gravatar with completion block
79-
- (void)loadGravatar:(void (^)(void))completed;
80-
81-
// Refreshes the gravatar, you can set new paramters between loading it and refreshing it.
82-
- (void)refreshGravatar;
83-
```
84-
8547
##Screenshots
8648
8749
![RFGravatarImageView](http://i.imgur.com/yCvcY4M.pngg)
@@ -90,7 +52,7 @@ Hope you enjoy it! Please Fork and send Pull Requests!
9052
9153
The MIT License (MIT)
9254
93-
Copyright (c) 2013 Rudd Fawcett
55+
Copyright (c) 2015 Rudd Fawcett
9456
9557
Permission is hereby granted, free of charge, to any person obtaining a copy of
9658
this software and associated documentation files (the "Software"), to deal in

RFGravatarImageView.podspec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
Pod::Spec.new do |s|
22
s.name = "RFGravatarImageView"
3-
s.version = "1.0"
3+
s.version = "1.1"
44
s.summary = "A simple UIImageView subclass for dealing with http://gravatar.com images."
55
s.homepage = "https://github.com/ruddfawcett/RFGravatarImageView"
66
s.license = 'MIT'
77
s.author = { "Rudd Fawcett" => "[email protected]" }
8+
s.social_media_url = 'https://twitter.com/ruddfawcett'
89
s.platform = :ios, '7.0'
9-
s.source = { :git => "https://github.com/ruddfawcett/RFGravatarImageView.git", :tag => "v1.0" }
10+
s.source = { :git => "https://github.com/ruddfawcett/RFGravatarImageView.git", :tag => "v1.1" }
1011
s.source_files = 'RFGravatarImageView', 'RFGravatarImageView/**/*.{h,m}'
11-
s.dependency 'SDWebImage', '~> 3.5'
12+
s.dependency 'SDWebImage', '~> 3.7'
1213
s.framework = 'UIKit'
1314
s.requires_arc = true
1415
end

0 commit comments

Comments
 (0)