Kare Morstol
7204dbdb3a
@discardableResult declared on a function returning Void is unnecessary.
2017-02-21 22:11:54 +01:00
Kare Morstol
62780a880a
String(contentsOfFile:) not implemented on Linux, use String(contentsOfFile: encoding:) instead.
3.0.0-beta.9
2017-01-31 00:41:29 +01:00
Kare Morstol
43a726bbba
Fix testOpenForOverWritingCreatesIntermediateDirectory.
2017-01-30 20:37:13 +01:00
Kare Morstol
11b979c690
Fix AssertNoThrow silencing test failures. Cleanup test helping code.
2017-01-30 20:27:12 +01:00
Miguel Angel Quinones Garcia
93b2b36d68
Fix intermediate directories not created ( #32 )
...
* Fix intermediate directories not created
If the destination path contains nonexisting directories, the function would fail where otherwise it is expected to create all directories in the path.
* Add test for creation with intermediate directories
2017-01-30 20:13:49 +01:00
Kare Morstol
eca353d338
Rename WriteableStream to WritableStream.
...
Because that is the spelling Apple uses.
2017-01-25 18:50:56 +01:00
Kare Morstol
4145afefd8
Make the default main.stdout a StdoutStream, which uses Swift.print().
3.0.0-beta.8
2017-01-09 22:56:57 +01:00
Kare Morstol
fa8f65e13f
Make ReadableStream.lines return type prettier.
2017-01-09 22:32:47 +01:00
Kare Morstol
ce44afe306
Turn WriteableStream and ReadableStream into protocols.
...
* Remove WriteableStream.writeln, use .print instead.
* Work around compiler crash on Linux.
2017-01-09 17:43:53 +01:00
Kare Morstol
e53557624c
Update to recommended settings in Xcode 8.2.
2016-12-16 20:13:43 +01:00
Kare Morstol
6f5138e9d6
Update Swift version to 3.0.2.
2016-12-16 20:11:09 +01:00
Kare Morstol
5dd2da16f0
Remove workaround for fixed compiler bug when printing errors.
3.0.0-beta.7
2016-11-23 00:26:48 +01:00
Kare Morstol
fe81f49fb5
Make .encoding in WriteableStream and ReadableStream public and mutable.
2016-11-16 21:02:06 +01:00
Kare Morstol
3abef0d51d
Small documentation fix.
2016-11-16 21:02:06 +01:00
Kare Morstol
daf894ed2a
Readme: list functionality and mention readSome().
2016-11-16 20:43:15 +01:00
Kare Morstol
25f64feceb
Set Swift version to 3.0.1.
3.0.0-beta.6
2016-11-04 00:13:00 +01:00
Kare Morstol
f3f86c0c3b
Improve output from *Stream.debugDescription.
2016-11-04 00:10:12 +01:00
Kare Morstol
6b5be62c18
Add debugDescription to Streams and Contexts.
2016-11-03 21:54:53 +01:00
kareman
8590bc52ae
Make Misc/swiftshell-init work on Linux.
2016-11-03 19:56:59 +01:00
Kare Morstol
8ffddca79e
Readme: fix small error.
2016-11-02 21:03:01 +01:00
kareman
eea3cd2d61
Simplify WriteableStream.print
3.0.0-beta.5
2016-11-01 21:46:46 +01:00
kareman
6acfe7f870
Add WriteableStream.print
2016-11-01 21:25:14 +01:00
kareman
221c9892bc
Replace OSX with macOS
2016-11-01 20:37:47 +01: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