Commit Graph

394 Commits

Author SHA1 Message Date
Kare Morstol 67e5db3944 Add WriteableStream.onInput. Issue #26.
Works, but onInput is called many times even if the process does not try to read from its input.
2016-10-27 22:44:28 +02:00
Kare Morstol d25de300fc Have travis test on Linux too. 2016-10-26 18:50:12 +02:00
Kare Morstol 1a24474a32 Readme: Update badges with Linux support, remove licence badge. 3.0.0-beta.4 2016-10-18 18:35:57 +02:00
Kare Morstol 8c4f4d94a1 Merge pull request #25 from kareman/linux-support
Linux support
2016-10-18 17:55:06 +02:00
kareman f78b0bd85a Avoid crash on Linux at 'FileHandle.write()'. 2016-10-16 22:08:40 +02:00
kareman ab98f7d8e3 Fix crash on Linux when using WriteableStream.writeln(""). 2016-10-16 20:57:51 +02:00
kareman 8ce6100286 Add FileHandle.nullDev, cross-platformise some unit test. 2016-10-16 20:51:51 +02:00
kareman 0f0ddfb9ea Add tests on Linux 2016-10-15 00:06:05 +02:00
kareman ef98b8da07 Get it to build on Linux. No tests yet. 2016-10-13 19:17:40 +02:00
Kare Morstol 339b5aa358 Workaround for Foundation.URL not handling leading "~". 2016-10-11 23:56:19 +02:00
Kare Morstol 22dd184b69 Update readme for SwiftShell 3 and Swift 3. 3.0.0-beta.3 2016-10-10 23:10:59 +02:00
Kare Morstol c878d1fec9 Explain cryptic bash command. 2016-10-10 23:07:08 +02:00
Kare Morstol 965319d3c6 Remove .bash extension from swiftshell-init. 2016-10-10 22:23:22 +02:00
Kare Morstol 7768d3a24c Make errorcode an Int. 2016-10-10 21:58:39 +02:00
Kare Morstol 42a23b89c2 SwiftShell–init use beta version. 2016-10-10 17:35:58 +02:00
Kare Morstol e7af9e3449 Remove Linux from supported platforms.
Linux isn't quite supported yet.

Also Cartage gives error
	Parse error: unexpected SDK key "linux"
2016-10-09 23:30:39 +02:00
Kare Morstol 2e27a6d776 Merge pull request #24 from kareman/fix-travis-testing
Build before testing
3.0.0-beta.2
2016-10-09 22:23:45 +02:00
Kare Morstol 89274f5263 Build before testing 2016-10-09 22:12:52 +02:00
Kare Morstol 84f27e4ee8 Fixed bug where runAsync did not actually run anything.
Which was bad.
2016-10-09 17:46:32 +02:00
Kare Morstol 80c3c1bc8c Add Travis CI support. Hopefully. 2016-10-09 15:43:37 +02:00
Kare Morstol ed371b7e63 Add swiftshell–init.
Creates a Swift Package Manager executable project structure and an Xcode project.
3.0.0-beta.1
2016-10-08 22:08:50 +02:00
Kare Morstol db3867b1fe Merge branch 'Swift3.0'
# Conflicts:
#	README.md
2016-10-07 23:35:46 +02: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 580cfee1c2 Update for Xcode 8 beta 2.
The Foundation Swift API keeps improving.
2016-07-10 18:01:04 +02:00
Kare Morstol fb063a34d2 Mention both OS X and macOS. 2016-06-23 04:47:11 +02:00
Kare Morstol a330bd57d0 Mention both OS X and macOS. 2016-06-23 04:45:44 +02:00
Kare Morstol 4a9fc65d31 Merge pull request #22 from apbendi/macos
Update README to reflect renaming of OS X to macOS
2016-06-23 04:38:00 +02:00
Kare Morstol 07f7141c59 Remove unnecessary Linux special handling. 2016-06-22 00:33:18 +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
Ben DiFrancesco 3e5f37beef Update README to reflect renaming of OS X to macOS 2016-06-20 16:49:00 -04:00
Kare Morstol fec75eb013 Remove diagnostic printing from unit test. 2016-06-08 00:24:57 +02:00
Kare Morstol 7ce9ae1a3e Update version of Swift to DEVELOPMENT-SNAPSHOT-2016-06-06-a . 2016-06-07 23:47:55 +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 191ce614a9 Almost get it to build on Linux.
Just waiting for https://github.com/apple/swift-corelibs-foundation/pull/404 to be approved.
2016-06-06 03:19:05 +02:00
Kare Morstol d678c76c73 Linux: avoid "missing _bridgeNSError" compiler crash. 2016-06-06 02:30:36 +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 e40e9ac014 Add FileError and improve error messages when opening files. 2016-06-05 23:15:07 +02:00
Kare Morstol 245d6845a1 Remove check for if a file is reachable from "open" functions.
Because the functionality is not implemented on Linux. It was in any case just added to improve the error messages.
2016-06-04 23:41:33 +02:00
Kare Morstol 700ab41bd8 Makefile: printout correct test script path. 2016-06-03 23:32:11 +02:00
Kare Morstol 2831504900 Mark “run” commands as having @discardableResult.
Also silence some persistent warnings in the tests.
2016-06-03 23:30:52 +02:00
Kare Morstol 145f47cc82 Set Swift version to the newest snapshot. 2016-06-03 22:30:05 +02:00
Kare Morstol e6b707c9de Avoid warnings about unused results by marking functions "@discardableResult". 2016-06-03 22:26:20 +02:00
Kare Morstol 03fd4a20af Appease Swift 3s stricter rules about importing Foundation. 2016-05-25 03:32:18 +02:00
Kare Morstol ed6bc3ec6c Remove all use of Objective-C. 2016-05-25 02:39:44 +02:00
Kare Morstol 6f36ef80ea Readme: add list of example scripts. 2016-05-20 21:32:48 +02:00
Kare Morstol 12bfb64c31 Readme: add links to the Swift 2.2 branch (master) 2016-05-19 19:55:35 +02:00
Kare Morstol 027b48e654 Readme: add links to the Swift 3 branch 2016-05-19 19:52:47 +02:00