Commit Graph

140 Commits

Author SHA1 Message Date
Michael Bull ad7adacf39 Lazily evaluate message argument in expect/expectError 2017-11-22 23:25:28 +00:00
Michael Bull 02de42f959 Correct version number in README 2017-10-25 17:10:19 +01:00
Michael Bull 474fd0b903 [Gradle Release Plugin] - new version commit: '1.0.1-SNAPSHOT'. 2017-10-22 16:56:38 +01:00
Michael Bull 3a71508531 [Gradle Release Plugin] - pre tag commit: '1.0.0'. 2017-10-22 16:09:57 +01:00
Michael Bull af13c9ee7c Rename Error class to Err
Avoids naming conflict with the stdlib's Error class, also now matches
Rust's naming.
2017-10-22 16:08:26 +01:00
Michael Bull 43128cf1cc Update version number on README 2017-10-22 16:07:24 +01:00
Michael Bull 1933c9f845 Use filterIsInstance in getAll methods 2017-10-22 16:07:24 +01:00
Michael Bull 7be628e79e Add unit tests for Result.of 2017-10-22 16:07:24 +01:00
Michael Bull 9960bc78aa List result4k under inspirations in README 2017-10-22 16:07:24 +01:00
Michael Bull f0fb536516 Add Result.of factory method
Inspired by result4k, invokes a callback within a try/catch block,
returning an Error if an exception was thrown and Ok otherwise.
2017-10-22 16:07:24 +01:00
Michael Bull dc4101b8ef Remove factory methods and expose Ok/Error constructors
Also converts them to data classes.
2017-10-22 16:07:24 +01:00
Michael Bull a9cf0593f9 Improve wording in README 2017-10-22 16:07:24 +01:00
Michael Bull 8e3fe10ca0 Fix jitpack badge 2017-10-22 01:12:50 +01:00
Michael Bull 59e6a148b1 Add Travis CI configuration file 2017-10-22 01:06:11 +01:00
Michael Bull 62f96c6d9a Fix broken links in README 2017-10-22 01:02:27 +01:00
Michael Bull bf3aaee77b Move to new package name 2017-10-22 00:59:16 +01:00
Michael Bull da77504fa7 Add {javadoc,sources}Jar as artifacts 2017-10-21 22:37:45 +01:00
Michael Bull 7052be1c5e Add missing version property 2017-10-21 22:34:46 +01:00
Michael Bull 2e2fc22b2b Add release/publish configuration 2017-10-21 22:33:59 +01:00
Michael Bull e5ee148ec8 Publish javadoc 2017-10-21 22:10:13 +01:00
Michael Bull d1b9c7d2ef Fix typo in README 2017-10-21 22:07:07 +01:00
Michael Bull ff40e12e6f Add inline documentation to library methods 2017-10-21 21:19:21 +01:00
Michael Bull 1b29f4a58a Configure dokka to produce javadoc 2017-10-21 20:03:51 +01:00
Michael Bull eb326ecebb Remove erroneous list entry in README 2017-10-21 19:46:44 +01:00
Michael Bull d5e60df857 Fix typo in README 2017-10-21 19:46:14 +01:00
Michael Bull 9f64b5409a Update README 2017-10-21 19:44:58 +01:00
Michael Bull 9acd99dffd Pass error/value to UnwrapException message 2017-10-21 19:17:01 +01:00
Michael Bull 6f21fd634b Correct variable naming in OrTest 2017-10-21 19:04:23 +01:00
Michael Bull eb4aecaab8 Correct generic type identifier on mapError 2017-10-21 18:52:14 +01:00
Michael Bull 99515df0f7 Remove GetTest.GetError 2017-10-21 18:12:25 +01:00
Michael Bull be2fa210cc Add getErrorOr
Matches Haskell's Either.fromRight
2017-10-21 18:10:08 +01:00
Michael Bull eea45b3c88 Add README 2017-10-21 17:44:55 +01:00
Michael Bull bffa455ee4 Add feature parity with Rust's Result type 2017-10-21 16:52:29 +01:00
Michael Bull c3534276b4 Rename error factory method to err
Kotlin has it's own error method, therefore the IDE doesn't immediately
prompt the user to import our error factory method.
2017-10-21 15:03:39 +01:00
Michael Bull c9a7d16562 Move factory methods to Result.kt 2017-10-21 04:37:37 +01:00
Michael Bull b1ac605d05 Order dependencies alphabetically in gradle.properties 2017-10-21 04:32:25 +01:00
Michael Bull 18170ac5f0 Update gradle wrapper 2017-10-21 04:31:24 +01:00
Michael Bull 8dc7015910 Correct return types of mapBoth calls 2017-10-21 04:29:18 +01:00
Michael Bull faf315d395 Use named arguments in unit tests 2017-10-21 04:21:56 +01:00
Michael Bull 3602e8dce1 Initial commit 2017-10-21 03:51:30 +01:00