Kare Morstol
0488a479d7
'exit' functions only print filename and line number in debug builds.
2019-03-27 22:22:36 +01:00
Kare Morstol
153bfc58d2
Update to Swift 5
2019-03-26 16:54:01 +01:00
Kare Morstol
0b1fe3aed3
Set minimum macOS version to 10.13.
...
Because it is using methods on Process that were added in 10.13.
2019-03-26 16:49:07 +01:00
Kare Morstol
97e68ec5bb
Remove swiftlint build phase.
...
Was inactive anyway.
2018-07-31 17:51:30 +02:00
Kare Morstol
eedbd2ab73
Move all Process-specific code to its own file.
2018-04-06 21:41:45 +02:00
Kare Morstol
edfad8d0b7
Xcode 9.3: update to recommended project settings.
2018-04-05 21:03:11 +02:00
Kare Morstol
66fb0be630
Try with 4.0-DEVELOPMENT-SNAPSHOT-2017-06-19-a instead.
2017-06-23 20:29:37 +02:00
Kare Morstol
ae127df8c5
Remove Scripts directory reference in XCode.
2017-05-11 21:41:58 +02:00
Kare Morstol
fdf348859c
Remove space before ( in function declarations.
...
I used to think it looked better for some reason.
2017-04-20 20:32:29 +02:00
Kare Morstol
e7e43b42ba
Cleanup code.
...
With the help of SwiftLint.
2017-04-18 19:05:36 +02:00
Kare Morstol
38f3d41ca7
Also rename in LinuxMain.swift.
2017-03-31 00:08:56 +02:00
Kare Morstol
4d2ed74b55
Massive renaming: avoid words Type, Task and Shell.
...
Protocols should no longer end in Type, Task has been renamed in Foundation and the word Shell is not appropriate for running commands / launching processes, it describes terminal applications and shell interpreters like bash. Which means the name SwiftShell itself is probably a misnomer but I am not about to change that now.
Also remove any mentions of SwiftShell 2.
2017-03-30 20:10:05 +02:00
Kare Morstol
03adb38f56
Update to Xcode 8.3.
...
Can't update .swift-version to 3.1 yet because of Travis and swiftenv.
2017-03-29 19:11:11 +02:00
Kare Morstol
af7399e93a
Fix up ReadableStream.onStringOutput, set framework as dependency for all unit test targets.
2017-03-02 19:15:49 +01:00
Kare Morstol
d944464578
Update podspec with iOS deployment target 9.0.
2017-03-01 21:58:37 +01:00
Kare Morstol
fa70e419dd
Enable building for iOS. Just the Stream part. So FileSmith can use it.
...
The rest cannot build on iOS because it uses Process.
Move the Stream files into its own directory.
2017-02-28 01:45:24 +01:00
Kare Morstol
11b979c690
Fix AssertNoThrow silencing test failures. Cleanup test helping code.
2017-01-30 20:27:12 +01:00
Kare Morstol
e53557624c
Update to recommended settings in Xcode 8.2.
2016-12-16 20:13:43 +01:00
Kare Morstol
ed36e0228f
Add ‘Tests’ suffix to test folders. As required by Swift Package Manager.
2016-10-07 22:11:37 +02:00
Kare Morstol
867efc06df
Set minimum deployment target to 10.9 – see #23 .
...
"
Running 10.12. Framework installed in ~/Library/Frameworks/. Whenever I run a swift script importing SwiftShell, I get the following error:
./swifttest:4:8: error: module file's minimum deployment target is OS X v10.11: /Users/xxxxx/Library/Frameworks/SwiftShell.framework/Modules/SwiftShell.swiftmodule/x86_64.swiftmodule
"
2016-09-23 22:27:27 +02:00
Kare Morstol
27a7cde34a
Update to Swift 3.0 final release.
...
3 unit tests are failing. Not sure why.
2016-09-15 13:10:30 +02:00
Kare Morstol
b65bc584d5
Update for Xcode 8 beta 3.
2016-07-26 12:19:04 +02:00
Kare Morstol
0e14578942
Update to DEVELOPMENT-SNAPSHOT-2016-06-20-a.
...
Lots of name and value changes in Foundation.
Currently does not build using the Swift Package Manager ("<unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'"), but builds fine from Xcode 8.
2016-06-22 00:01:27 +02:00
Kare Morstol
3bffc67f63
Move String.swift out of “General”, as it isn't. General that is.
2016-06-07 22:18:52 +02:00
Kare Morstol
04759e9245
Reorganise to use "swift test". Replace Xcode project with one auto-generated by swiftpm.
...
The “Scripts” folder is temporarily moved out of "Tests" because it doesn't work with the Swift Package Manager.
2016-06-06 01:48:36 +02:00
Kare Morstol
2d368bf7d6
Remove old Xcode project and unused files.
2015-09-08 18:04:37 +02:00
Kare Morstol
ed2b96f8d5
Remove non-working playground. Update project format to 6.3.
2015-07-19 21:59:50 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
cc1d152f14
Rename /Div folder to Misc.
...
Well this is awkward. It seems a Norwegian term has snuck its way into the project. I meant Misc for Miscellaneous.
2015-01-05 19:40:27 +01:00
Kare Morstol
11a028d4ff
Fix #2 : "ReadableStreamType.readSome crashes with error "6555 Illegal instruction: 4" when using a Release build of SwiftShell."
...
Also fixes #1 : "SwiftShell_Speed_Tests unit tests never finish.".
It turns out NSString(data data: NSData, encoding encoding: UInt) returns an optional String, something Xcode/Swift neglected to tell me. Which is strange as they are normally very strict about these things. But what really solved these 2 issues (which are really the same issue) was removing the unnecessary cast "as String". For more on this really bizarre bug in the Swift compiler, see https://devforums.apple.com/message/1084852#1084852 .
2014-12-18 01:47:33 +01:00
Kare Morstol
caaf5459db
Move Files_Tests to its rightful position.
2014-12-01 23:44:39 +01:00
Kare Morstol
a2985b049d
Add shell unit tests and update test scripts.
...
Run SwiftShellTests/Scripts/runtests.bash to perform all unit tests.
2014-11-26 20:58:22 +01:00
Kare Morstol
b33bfb9a5f
Move "temporaryDirectory" to new file Files.swift and rename it "tempdirectory".
...
Because it could be useful in scripts too.
2014-11-25 20:38:32 +01:00
Kare Morstol
e67f465457
Add "countOccurrencesOf" to String.
2014-11-05 17:40:13 +01:00
Kare Morstol
838b5ee617
Make “Debug” the default command line configuration.
...
The Swift compiler (Xcode 6.1) crashes when reading from streams when SwiftShell is built with optimisations turned on (anything but "SWIFT_OPTIMIZATION_LEVEL = -Onone").
2014-10-22 22:12:28 +02:00
Kare Morstol
f0d4c34f9b
Add versions of global Swift functions that can be used with the |> operator.
...
- Moved overloads of |> operator for WriteableStreamType to Stream.swift.
Note: it takes forever to compile if you put too many |> operators in a row.
2014-09-17 23:39:21 +02:00
Kare Morstol
1aa06b20f5
Make debug build installable.
...
Have to use debug builds instead of release in Xcode 6.1 beta 2. See issue #2 .
2014-09-17 16:36:31 +02:00
Kare Morstol
7ef52b67bf
Move XCTestCase.pathForTestResource to a file common for all unit test targets.
2014-09-15 22:17:06 +02:00
Kare Morstol
36e217c0c3
Make piping one stream to another lazy.
2014-09-12 01:12:50 +02:00
Kare Morstol
1d6788c08e
Add readme to scripts folder. Move test area.playground.
2014-09-11 21:39:35 +02:00
Kare Morstol
0b38585a1e
Add testReadFileLineByLine, readfilelinebyline.Swift test script and a short text file for testing.
2014-09-09 18:57:39 +02:00
Kare Morstol
fad80f1b0e
renamed swiftshell.bash to swiftshell and moved it to Div folder.
2014-09-04 19:49:12 +02:00
Kare Morstol
96ab5a2070
Enable "func run (shellcommand: String) -> ReadableStreamType" to also be run by itself on a single line.
...
A thorough explanation is forthcoming.
2014-09-02 15:23:22 +02:00
Kare Morstol
c3ae075c5c
Renamed File tests to FileHandle* too.
2014-08-29 02:42:20 +02:00
Kare Morstol
a647c41319
Renamed File to FileHandle.
2014-08-29 01:55:08 +02:00
Kare Morstol
d2d2f67bfa
Added playground. Excellent for rapidly testing stuff.
2014-08-28 20:35:02 +02:00
Kare Morstol
cf31b577bb
Running "xcodebuild install" installs the framework to ~/Library/Frameworks, and doing a clean build no longer removes it.
2014-08-28 00:24:02 +02:00
Kare Morstol
55c96103ac
Added scripts folder for testing entire scripts.
...
Added one test script and a unit test file for running them.
Disabled deployment of framework on release build because it gets removed again as soon as I do a clean build.
2014-08-25 22:09:24 +02:00
Kare Morstol
e63494b68b
Added new test file for Stream_Iteration_SpeedTests. Cleaned up.
2014-08-22 21:56:24 +02:00
Kare Morstol
8c6f0a7171
Moved stream factory functions from unit test to stream.swift.
...
A new stream factory function which takes a closure which returns a closure which returns a string.
2014-08-21 23:38:50 +02:00