-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from lindegroup/v1.1-rc2
Merge to master in preparation for 1.1 release.
- Loading branch information
Showing
70 changed files
with
3,762 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
Language: Cpp | ||
AccessModifierOffset: -4 | ||
ConstructorInitializerIndentWidth: 4 | ||
AlignEscapedNewlinesLeft: true | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AlwaysBreakTemplateDeclarations: false | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BreakBeforeBinaryOperators: true | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: true | ||
BinPackParameters: true | ||
ColumnLimit: 0 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
DerivePointerBinding: false | ||
ExperimentalAutoDetectBinPacking: false | ||
IndentCaseLabels: false | ||
MaxEmptyLinesToKeep: 1 | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
NamespaceIndentation: Inner | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerBindsToType: false | ||
SpacesBeforeTrailingComments: 1 | ||
Cpp11BracedListStyle: false | ||
Standard: Cpp03 | ||
IndentWidth: 4 | ||
TabWidth: 8 | ||
UseTab: Never | ||
BreakBeforeBraces: Linux | ||
IndentFunctionDeclarationAfterType: false | ||
SpacesInParentheses: false | ||
SpacesInAngles: false | ||
SpaceInEmptyParentheses: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpaceBeforeAssignmentOperators: true | ||
ContinuationIndentWidth: 4 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
SpaceBeforeParens: ControlStatements | ||
DisableFormat: false | ||
... |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// LGDefaults+JSSAddon.h | ||
// AutoPkgr | ||
// | ||
// Created by Eldon on 10/3/14. | ||
// | ||
// Copyright 2014 The Linde Group, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import "LGDefaults.h" | ||
|
||
#pragma mark - LGDefaults extensions for JSS Addon Interface | ||
@interface LGDefaults (JSSAddon) | ||
|
||
@property (copy, nonatomic) NSString *JSSURL; | ||
@property (copy, nonatomic) NSString *JSSAPIUsername; | ||
@property (copy, nonatomic) NSString *JSSAPIPassword; | ||
@property (copy, nonatomic) NSArray *JSSRepos; | ||
@property (assign, nonatomic) BOOL JSSVerifySSL; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
// | ||
// LGDefaults+JSSAddon.m | ||
// AutoPkgr | ||
// | ||
// Created by Eldon on 10/3/14. | ||
// | ||
// Copyright 2014 The Linde Group, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import "LGDefaults+JSSAddon.h" | ||
|
||
#pragma mark - LGDefaults category implementation for JSS Addon Interface | ||
|
||
@implementation LGDefaults (JSSAddon) | ||
|
||
- (NSString *)JSSURL | ||
{ | ||
return [self autoPkgDomainObject:@"JSS_URL"]; | ||
} | ||
|
||
- (void)setJSSURL:(NSString *)JSSURL | ||
{ | ||
[self setAutoPkgDomainObject:JSSURL forKey:@"JSS_URL"]; | ||
} | ||
|
||
#pragma mark - | ||
- (NSString *)JSSAPIUsername | ||
{ | ||
return [self autoPkgDomainObject:@"API_USERNAME"]; | ||
} | ||
|
||
- (void)setJSSAPIUsername:(NSString *)JSSAPIUsername | ||
{ | ||
[self setAutoPkgDomainObject:JSSAPIUsername forKey:@"API_USERNAME"]; | ||
} | ||
|
||
#pragma mark - | ||
- (NSString *)JSSAPIPassword | ||
{ | ||
return [self autoPkgDomainObject:@"API_PASSWORD"]; | ||
} | ||
|
||
- (void)setJSSAPIPassword:(NSString *)JSSAPIPassword | ||
{ | ||
[self setAutoPkgDomainObject:JSSAPIPassword forKey:@"API_PASSWORD"]; | ||
} | ||
|
||
#pragma mark - | ||
- (NSArray *)JSSRepos | ||
{ | ||
return [self autoPkgDomainObject:@"JSS_REPOS"]; | ||
} | ||
|
||
- (void)setJSSRepos:(NSArray *)JSSRepos | ||
{ | ||
[self setAutoPkgDomainObject:JSSRepos forKey:@"JSS_REPOS"]; | ||
} | ||
|
||
#pragma mark - | ||
- (BOOL)JSSVerifySSL | ||
{ | ||
NSNumber *verifySSL = [self autoPkgDomainObject:@"JSS_VERIFY_SSL"]; | ||
return [verifySSL boolValue]; | ||
} | ||
|
||
- (void)setJSSVerifySSL:(BOOL)JSSVerifySSL | ||
{ | ||
[self setAutoPkgDomainObject:@(JSSVerifySSL) forKey:@"JSS_VERIFY_SSL"]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// LGStatusImage.h | ||
// AutoPkgr | ||
// | ||
// Created by Eldon on 10/6/14. | ||
// | ||
// Copyright 2014 The Linde Group, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface NSImage (statusLight) | ||
|
||
+ (instancetype)LGStatusAvaliable; | ||
+ (instancetype)LGStatusPartiallyAvaliable; | ||
+ (instancetype)LGStatusUnavaliable; | ||
+ (instancetype)LGStatusNone; | ||
|
||
+ (instancetype)LGStatusNotInstalled; | ||
+ (instancetype)LGStatusUpToDate; | ||
+ (instancetype)LGStatusUpdateAvaliable; | ||
+ (instancetype)LGStatusUnknown; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// LGStatusImage.m | ||
// AutoPkgr | ||
// | ||
// Created by Eldon on 10/6/14. | ||
// | ||
// Copyright 2014 The Linde Group, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import "NSImage+statusLight.h" | ||
|
||
@implementation NSImage (installStatus) | ||
|
||
+ (instancetype)LGStatusAvaliable | ||
{ | ||
return [self imageNamed:@"NSStatusAvailable"]; | ||
} | ||
|
||
+ (instancetype)LGStatusPartiallyAvaliable | ||
{ | ||
return [self imageNamed:@"NSStatusPartiallyAvailable"]; | ||
} | ||
|
||
+ (instancetype)LGStatusUnavaliable | ||
{ | ||
return [self imageNamed:@"NSStatusUnavailable"]; | ||
} | ||
|
||
+ (instancetype)LGStatusNone | ||
{ | ||
return [self imageNamed:@"NSStatusNone"]; | ||
} | ||
|
||
+ (instancetype)LGStatusUpToDate | ||
{ | ||
return [self LGStatusAvaliable]; | ||
} | ||
|
||
+ (instancetype)LGStatusNotInstalled | ||
{ | ||
return [self LGStatusUnavaliable]; | ||
} | ||
|
||
+ (instancetype)LGStatusUpdateAvaliable | ||
{ | ||
return [self LGStatusPartiallyAvaliable]; | ||
} | ||
|
||
+ (instancetype)LGStatusUnknown | ||
{ | ||
return [self LGStatusNone]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// NSString+cleaned.h | ||
// AutoPkgr | ||
// | ||
// Created by Eldon on 10/4/14. | ||
// | ||
// Copyright 2014 The Linde Group, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface NSString (cleaned) | ||
|
||
/** | ||
* (Custom Category) equivalent to stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] | ||
*/ | ||
@property (copy, nonatomic, readonly) NSString *trimmed; | ||
|
||
/** | ||
* (Custom Category) convert @"" to nil | ||
*/ | ||
@property (copy, nonatomic, readonly) NSString *blankIsNil; | ||
|
||
@end |
Oops, something went wrong.