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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a82e00f9bcba4e7a6155341249da26a213fdd501
4
- data.tar.gz: ae3e3f1e170d23ce89367f91a2a957505e6d535b
3
+ metadata.gz: dd12660b27bec7ac7b97575681ed796b71f70024
4
+ data.tar.gz: 3c4688b9472fa2988c08807349b3a40631ced8d3
5
5
  SHA512:
6
- metadata.gz: 7c53689b785b9adc4e2912f57bf68d2726ba5329f70e6205b9fa0da17084afffe6ea8754f03406cc5a38b843dec3f0a3038f6f7a598eb7a8bf02973e4e6ac66d
7
- data.tar.gz: 79cdef00ad7d7ab92b1fe2f9ce2d406cc5c04c3ddbf29ab1ee5325183783e8e27e7e58bda295c0974723210ec37408b6f2a153e3a7175ead8275e4671fbb2692
6
+ metadata.gz: a06e1d10a9535e02d7d888f797b522f67b13df55b46ff02293402feb24f7db9fe1c2757a793466ee2b082c92d8bef32c90092ad46d39acf92aa5e7b8ebc970ea
7
+ data.tar.gz: 7f7f10bf2c0475ae9ce6af3eb7c689a4d17d36a74388bf9e8ba9e3763fb2bb256846a7daa574bd8f35a77c15573518645a7b5538c0a0849cb17da29f3a1ac432
data/README.md CHANGED
@@ -10,7 +10,7 @@ talk https://codon.com/refactoring-ruby-with-monads
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'ronad', require: 'sugar'
13
+ gem 'ronad', require: 'ronad/sugar'
14
14
  ```
15
15
 
16
16
  Alernatively without sugar
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Ronad
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
data/lib/sugar.rb CHANGED
@@ -1,10 +1,2 @@
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
-
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.5.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-02-02 00:00:00.000000000 Z
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