Skip to content

Commit b2d57de

Browse files
authored
Merge pull request dogo#275 from dogo/develop
Add Stale config
2 parents 2e1d0fb + bf422e2 commit b2d57de

4 files changed

Lines changed: 35 additions & 19 deletions

File tree

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 30
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- enhancement
8+
- bug
9+
- help wanted
10+
# Label to use when marking an issue as stale
11+
staleLabel: stale
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: true

SCLAlertView-Objective-C.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = "SCLAlertView-Objective-C"
3-
spec.version = "1.1.4"
3+
spec.version = "1.1.5"
44
spec.summary = "Beautiful animated Alert View. Written in Swift but ported to Objective-C"
55
spec.homepage = "https://github.com/dogo/SCLAlertView"
66
spec.screenshots = "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot.png", "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot2.png"

SCLAlertView/SCLAlertView.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,9 @@ typedef NS_ENUM(NSInteger, SCLAlertViewBackground)
473473
- (void)setupFluent;
474474
@end
475475

476-
@interface SCLAlertViewShowBuilder : NSObject <SCLItemsBuilder__Protocol__Fluent>
476+
@interface SCLAlertViewBuilder__WithFluent: NSObject <SCLItemsBuilder__Protocol__Fluent> @end
477+
478+
@interface SCLAlertViewShowBuilder : SCLAlertViewBuilder__WithFluent
477479

478480
@property(weak, nonatomic, readonly) UIViewController *parameterViewController;
479481
@property(copy, nonatomic, readonly) UIImage *parameterImage;
@@ -501,7 +503,7 @@ typedef NS_ENUM(NSInteger, SCLAlertViewBackground)
501503
@property(copy, nonatomic, readonly) void (^show)(SCLAlertView *view, UIViewController *controller);
502504
@end
503505

504-
@interface SCLALertViewTextFieldBuilder : NSObject <SCLItemsBuilder__Protocol__Fluent>
506+
@interface SCLALertViewTextFieldBuilder : SCLAlertViewBuilder__WithFluent
505507

506508
#pragma mark - Available later after adding
507509
@property(weak, nonatomic, readonly) SCLTextView *textField;
@@ -511,7 +513,7 @@ typedef NS_ENUM(NSInteger, SCLAlertViewBackground)
511513

512514
@end
513515

514-
@interface SCLALertViewButtonBuilder : NSObject <SCLItemsBuilder__Protocol__Fluent>
516+
@interface SCLALertViewButtonBuilder : SCLAlertViewBuilder__WithFluent
515517

516518
#pragma mark - Available later after adding
517519
@property(weak, nonatomic, readonly) SCLButton *button;
@@ -525,7 +527,7 @@ typedef NS_ENUM(NSInteger, SCLAlertViewBackground)
525527

526528
@end
527529

528-
@interface SCLAlertViewBuilder : NSObject <SCLItemsBuilder__Protocol__Fluent>
530+
@interface SCLAlertViewBuilder : SCLAlertViewBuilder__WithFluent
529531

530532
#pragma mark - Parameters
531533
@property (strong, nonatomic, readonly) SCLAlertView *alertView;

SCLAlertView/SCLAlertView.m

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,16 @@ - (void)simplyAppear
16631663

16641664
@end
16651665

1666+
@implementation SCLAlertViewBuilder__WithFluent
1667+
- (instancetype)init {
1668+
if (self = [super init]) {
1669+
[self setupFluent];
1670+
}
1671+
return self;
1672+
}
1673+
- (void)setupFluent {}
1674+
@end
1675+
16661676
@interface SCLALertViewTextFieldBuilder()
16671677
#pragma mark - Parameters
16681678
@property(copy, nonatomic) NSString *parameterTitle;
@@ -1682,13 +1692,6 @@ - (void)setupFluent {
16821692
return weakSelf;
16831693
};
16841694
}
1685-
1686-
- (instancetype)init {
1687-
if (self = [super init]) {
1688-
[self setupFluent];
1689-
}
1690-
return self;
1691-
}
16921695
@end
16931696

16941697
@interface SCLALertViewButtonBuilder()
@@ -1737,13 +1740,6 @@ - (void)setupFluent {
17371740
};
17381741
}
17391742

1740-
- (instancetype)init {
1741-
if (self = [super init]) {
1742-
[self setupFluent];
1743-
}
1744-
return self;
1745-
}
1746-
17471743
@end
17481744

17491745

0 commit comments

Comments
 (0)