ronad 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/ronad/sugar.rb +10 -0
- data/lib/ronad/version.rb +1 -1
- data/lib/sugar.rb +2 -10
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd12660b27bec7ac7b97575681ed796b71f70024
|
4
|
+
data.tar.gz: 3c4688b9472fa2988c08807349b3a40631ced8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06e1d10a9535e02d7d888f797b522f67b13df55b46ff02293402feb24f7db9fe1c2757a793466ee2b082c92d8bef32c90092ad46d39acf92aa5e7b8ebc970ea
|
7
|
+
data.tar.gz: 7f7f10bf2c0475ae9ce6af3eb7c689a4d17d36a74388bf9e8ba9e3763fb2bb256846a7daa574bd8f35a77c15573518645a7b5538c0a0849cb17da29f3a1ac432
|
data/README.md
CHANGED
data/lib/ronad/sugar.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'ronad/maybe'
|
2
|
+
require 'ronad/just'
|
3
|
+
require 'ronad/default'
|
4
|
+
require 'ronad/eventually'
|
5
|
+
|
6
|
+
def Maybe(value) ; Ronad::Maybe.new(value) end
|
7
|
+
def Just(value); Ronad::Just.new(value) end
|
8
|
+
def Default(fallback, value) ; Ronad::Default.new(fallback, value) end
|
9
|
+
def Eventually(&b); Ronad::Eventually.new(b) end
|
10
|
+
|
data/lib/ronad/version.rb
CHANGED
data/lib/sugar.rb
CHANGED
@@ -1,10 +1,2 @@
|
|
1
|
-
|
2
|
-
require 'ronad/
|
3
|
-
require 'ronad/default'
|
4
|
-
require 'ronad/eventually'
|
5
|
-
|
6
|
-
def Maybe(value) ; Ronad::Maybe.new(value) end
|
7
|
-
def Just(value); Ronad::Just.new(value) end
|
8
|
-
def Default(fallback, value) ; Ronad::Default.new(fallback, value) end
|
9
|
-
def Eventually(&b); Ronad::Eventually.new(b) end
|
10
|
-
|
1
|
+
warn "[DEPRECATION] Requiring 'sugar' is depcreated. Require 'ronad/sugar' instead."
|
2
|
+
require 'ronad/sugar'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ronad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uri Gorelik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- lib/ronad/just.rb
|
103
103
|
- lib/ronad/maybe.rb
|
104
104
|
- lib/ronad/monad.rb
|
105
|
+
- lib/ronad/sugar.rb
|
105
106
|
- lib/ronad/version.rb
|
106
107
|
- lib/sugar.rb
|
107
108
|
- ronad.gemspec
|