Skip to content

Commit

Permalink
Merge pull request #3 from whiskit/master
Browse files Browse the repository at this point in the history
Fixed issue with the "default" interval always being applied on the firs...
  • Loading branch information
antoniocasero committed Jul 1, 2014
2 parents 371a0eb + 5a87bca commit edcf756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ACPReminder/ACPReminder.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ - (NSNumber*)getTimePeriodIndex {
- (NSNumber*)getTimePeriodValue:(NSUInteger)index {


if(!index || index > [self.timePeriods count]) {
if(self.timePeriods.count == 0 || index > [self.timePeriods count]) {
ACPLog(@"WARNING: You dont have any period of time defined. Returning default value.");
return @(1);
}
Expand Down
4 changes: 2 additions & 2 deletions ACPReminderExample.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = 'ACPReminder'
s.version = '1.0.0'
s.version = '1.0.1'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'www.antoniocasero.me'
s.authors = {'Antonio Casero' => '[email protected]'}
s.summary = 'ACPReminder provides automatic local notificacions, in order to marketing your app or explaining use cases to user.'

# Source Info
s.platform = :ios, '5.1'
s.source = {:git => 'https://github.com/antoniocasero/ACPReminder.git', :tag => '1.0.0'}
s.source = {:git => 'https://github.com/antoniocasero/ACPReminder.git', :tag => '1.0.1'}
s.source_files = 'ACPReminder/ACPReminder.{h,m}'


Expand Down

0 comments on commit edcf756

Please sign in to comment.