Skip to content

Commit 9464bc5

Browse files
committed
Initial commit
0 parents  commit 9464bc5

File tree

58 files changed

+19459
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+19459
-0
lines changed

.gitignore

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Xcode
2+
3+
## Build generated
4+
build/
5+
DerivedData/
6+
7+
## Various settings
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata/
17+
18+
## Other
19+
*.moved-aside
20+
*.xccheckout
21+
*.xcscmblueprint
22+
23+
## Obj-C/Swift specific
24+
*.hmap
25+
*.ipa
26+
*.dSYM.zip
27+
*.dSYM
28+
29+
## Playgrounds
30+
timeline.xctimeline
31+
playground.xcworkspace
32+
33+
# Swift Package Manager
34+
#
35+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
36+
# Packages/
37+
# Package.pins
38+
# Package.resolved
39+
.build/
40+
41+
# CocoaPods
42+
#
43+
# We recommend against adding the Pods directory to your .gitignore. However
44+
# you should judge for yourself, the pros and cons are mentioned at:
45+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
46+
#
47+
# Pods/
48+
49+
# Carthage
50+
#
51+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
52+
# Carthage/Checkouts
53+
54+
Carthage/Build
55+
56+
# fastlane
57+
#
58+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59+
# screenshots whenever they are needed.
60+
# For more information about the recommended setup visit:
61+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
62+
63+
fastlane/report.xml
64+
fastlane/Preview.html
65+
fastlane/screenshots/**/*.png
66+
fastlane/test_output

.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.0

.swiftformat

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Format Options
2+
3+
--allman false
4+
--binarygrouping 4,8
5+
--closingparen balanced
6+
--commas always
7+
--comments indent
8+
--decimalgrouping 3,6
9+
--elseposition same-line
10+
--empty void
11+
--exponentcase lowercase
12+
--exponentgrouping disabled
13+
--fractiongrouping disabled
14+
--header ignore
15+
--hexgrouping 4,8
16+
--hexliteralcase uppercase
17+
--ifdef indent
18+
--indent 4
19+
--indentcase false
20+
--importgrouping testable-bottom
21+
--linebreaks lf
22+
--octalgrouping 4,8
23+
--operatorfunc spaced
24+
--patternlet hoist
25+
--ranges spaced
26+
--self remove
27+
--semicolons inline
28+
--stripunusedargs always
29+
--trimwhitespace always
30+
--xcodeindentation disabled
31+
--wraparguments before-first
32+
--wrapcollections before-first
33+
34+
# Rules
35+
36+
--disable andOperator
37+
--enable anyObjectProtocol
38+
--enable blankLinesAroundMark
39+
--enable blankLinesAtEndOfScope
40+
--enable blankLinesAtStartOfScope
41+
--enable blankLinesBetweenScopes
42+
--enable consecutiveBlankLines
43+
--enable consecutiveSpaces
44+
--enable duplicateImports
45+
--enable emptyBraces
46+
--enable isEmpty
47+
--enable leadingDelimiters
48+
--enable linebreakAtEndOfFile
49+
--enable redundantBackticks
50+
--enable redundantBreak
51+
--enable redundantExtensionACL
52+
--enable redundantFileprivate
53+
--enable redundantGet
54+
--enable redundantInit
55+
--enable redundantLet
56+
--enable redundantLetError
57+
--enable redundantNilInit
58+
--enable redundantObjc
59+
--enable redundantParens
60+
--enable redundantPattern
61+
--enable redundantRawValues
62+
--enable redundantReturn
63+
--enable redundantVoidReturnType
64+
--enable spaceAroundBraces
65+
--enable spaceAroundBrackets
66+
--enable spaceAroundComments
67+
--enable spaceAroundGenerics
68+
--enable spaceAroundParens
69+
--enable spaceInsideBraces
70+
--enable spaceInsideBrackets
71+
--enable spaceInsideComments
72+
--enable spaceInsideGenerics
73+
--enable spaceInsideParens
74+
--enable specifiers
75+
--enable strongOutlets
76+
--enable strongifiedSelf
77+
--enable todos
78+
--enable typeSugar

.swiftlint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
disabled_rules:
2+
- todo

.travis.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
language: swift
2+
os: osx
3+
osx_image: xcode10.3
4+
branches:
5+
only:
6+
- mainline
7+
8+
cache:
9+
directories:
10+
# SwiftPM
11+
- .build
12+
13+
env:
14+
global:
15+
- LC_CTYPE=en_US.UTF-8
16+
- LANG=en_US.UTF-8
17+
- FRAMEWORK_SCHEME=RomanNumeralKit
18+
matrix:
19+
- DESTINATION="OS=5.2,name=Apple Watch Series 4 - 44mm" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="NO"
20+
- DESTINATION="OS=4.2,name=Apple Watch Series 3 - 42mm" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="NO"
21+
- DESTINATION="OS=3.2,name=Apple Watch - 38mm" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="NO"
22+
23+
- DESTINATION="OS=12.4,name=iPhone XS" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
24+
- DESTINATION="OS=11.4,name=iPhone X" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
25+
- DESTINATION="OS=10.3.1,name=iPhone 7" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
26+
27+
- DESTINATION="OS=12.4,name=Apple TV 4K" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
28+
- DESTINATION="OS=11.4,name=Apple TV 4K" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
29+
- DESTINATION="OS=10.2,name=Apple TV 1080p" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
30+
31+
- DESTINATION="arch=x86_64" SCHEME="$FRAMEWORK_SCHEME" RUN_TESTS="YES"
32+
script:
33+
- set -o pipefail
34+
- xcodebuild -version
35+
- xcodebuild -showsdks
36+
37+
# Build framework in Debug and run tests if specified
38+
- if [ $RUN_TESTS == "YES" ]; then
39+
xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c;
40+
else
41+
xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
42+
fi
43+
44+
after_success:
45+
- bash <(curl -s https://codecov.io/bash) -J 'RomanNumeralKit'

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## [1.0.0](https://github.com/kylehughes/RomanNumeralKit/releases/tag/1.0.0)
4+
5+
Released on 2019-08-28.
6+
7+
### Added
8+
9+
- Initial release of RomanNumeralKit.
10+
- Added by [Kyle Hughes](https://github.com/kylehughes)

LICENSE

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2018 Kyle Hughes
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package.resolved

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "Commandant",
6+
"repositoryURL": "https://github.com/Carthage/Commandant.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "2cd0210f897fe46c6ce42f52ccfa72b3bbb621a0",
10+
"version": "0.16.0"
11+
}
12+
},
13+
{
14+
"package": "Komondor",
15+
"repositoryURL": "https://github.com/orta/Komondor",
16+
"state": {
17+
"branch": null,
18+
"revision": "3cd6d76887816ead5931ddbfb249c2935f518e17",
19+
"version": "1.0.4"
20+
}
21+
},
22+
{
23+
"package": "Nimble",
24+
"repositoryURL": "https://github.com/Quick/Nimble.git",
25+
"state": {
26+
"branch": null,
27+
"revision": "f8657642dfdec9973efc79cc68bcef43a653a2bc",
28+
"version": "8.0.2"
29+
}
30+
},
31+
{
32+
"package": "PackageConfig",
33+
"repositoryURL": "https://github.com/shibapm/PackageConfig",
34+
"state": {
35+
"branch": null,
36+
"revision": "912c12f0eb33577124e7bf16e51830ae0af49962",
37+
"version": "0.10.0"
38+
}
39+
},
40+
{
41+
"package": "Quick",
42+
"repositoryURL": "https://github.com/Quick/Quick.git",
43+
"state": {
44+
"branch": null,
45+
"revision": "94df9b449508344667e5afc7e80f8bcbff1e4c37",
46+
"version": "2.1.0"
47+
}
48+
},
49+
{
50+
"package": "Result",
51+
"repositoryURL": "https://github.com/antitypical/Result.git",
52+
"state": {
53+
"branch": null,
54+
"revision": "2ca499ba456795616fbc471561ff1d963e6ae160",
55+
"version": "4.1.0"
56+
}
57+
},
58+
{
59+
"package": "ShellOut",
60+
"repositoryURL": "https://github.com/JohnSundell/ShellOut.git",
61+
"state": {
62+
"branch": null,
63+
"revision": "d3d54ce662dfee7fef619330b71d251b8d4869f9",
64+
"version": "2.2.0"
65+
}
66+
},
67+
{
68+
"package": "SourceKitten",
69+
"repositoryURL": "https://github.com/jpsim/SourceKitten.git",
70+
"state": {
71+
"branch": null,
72+
"revision": "35c9e0e437592661a51b160d80a4feaa5d4630d1",
73+
"version": "0.24.0"
74+
}
75+
},
76+
{
77+
"package": "SwiftFormat",
78+
"repositoryURL": "https://github.com/nicklockwood/SwiftFormat",
79+
"state": {
80+
"branch": null,
81+
"revision": "c4a1da39454cd010b8cfc46ea9f4355d70923b0e",
82+
"version": "0.40.11"
83+
}
84+
},
85+
{
86+
"package": "SwiftLint",
87+
"repositoryURL": "https://github.com/Realm/SwiftLint",
88+
"state": {
89+
"branch": null,
90+
"revision": "08946e65e5888797e588ecb23f80b16a129bf4bd",
91+
"version": "0.34.0"
92+
}
93+
},
94+
{
95+
"package": "SwiftyTextTable",
96+
"repositoryURL": "https://github.com/scottrhoyt/SwiftyTextTable.git",
97+
"state": {
98+
"branch": null,
99+
"revision": "c6df6cf533d120716bff38f8ff9885e1ce2a4ac3",
100+
"version": "0.9.0"
101+
}
102+
},
103+
{
104+
"package": "SWXMLHash",
105+
"repositoryURL": "https://github.com/drmohundro/SWXMLHash.git",
106+
"state": {
107+
"branch": null,
108+
"revision": "f43166a8e18fdd0857f29e303b1bb79a5428bca0",
109+
"version": "4.9.0"
110+
}
111+
},
112+
{
113+
"package": "Yams",
114+
"repositoryURL": "https://github.com/jpsim/Yams.git",
115+
"state": {
116+
"branch": null,
117+
"revision": "c947a306d2e80ecb2c0859047b35c73b8e1ca27f",
118+
"version": "2.0.0"
119+
}
120+
}
121+
]
122+
},
123+
"version": 1
124+
}

Package.swift

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// swift-tools-version:5.0
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "RomanNumeralKit",
7+
platforms: [
8+
.macOS(.v10_12),
9+
.iOS(.v10),
10+
.tvOS(.v10),
11+
.watchOS(.v3),
12+
],
13+
products: [
14+
.library(name: "RomanNumeralKit", type: .dynamic, targets: ["RomanNumeralKit"]),
15+
],
16+
dependencies: [
17+
.package(url: "https://github.com/nicklockwood/SwiftFormat", from: "0.40.11"),
18+
.package(url: "https://github.com/Realm/SwiftLint", from: "0.34.0"),
19+
.package(url: "https://github.com/orta/Komondor", from: "1.0.4"),
20+
],
21+
targets: [
22+
.target(name: "RomanNumeralKit", dependencies: []),
23+
.testTarget(name: "RomanNumeralKitTests", dependencies: ["RomanNumeralKit"]),
24+
],
25+
swiftLanguageVersions: [
26+
.v5,
27+
]
28+
)
29+
30+
#if canImport(PackageConfig)
31+
import PackageConfig
32+
33+
let config = PackageConfiguration([
34+
"komondor": [
35+
"pre-push": "swift test",
36+
"pre-commit": [
37+
"swift run swiftformat .",
38+
"swift run swiftlint autocorrect --path Sources/",
39+
"git add .",
40+
],
41+
],
42+
]).write()
43+
#endif

0 commit comments

Comments
 (0)