rb-kgy-fp 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rb-kgy-fp/curry_fun.rb +1 -1
- data/lib/rb-kgy-fp/trait/alternative.rb +2 -2
- data/lib/rb-kgy-fp/trait/applicative.rb +4 -4
- data/lib/rb-kgy-fp/trait/bi_functor.rb +2 -2
- data/lib/rb-kgy-fp/trait/functor.rb +2 -2
- data/lib/rb-kgy-fp/trait/monad.rb +3 -3
- data/lib/rb-kgy-fp/trait/monoid.rb +2 -2
- data/lib/rb-kgy-fp/typeclass/either.rb +6 -6
- data/lib/rb-kgy-fp/typeclass/maybe.rb +5 -5
- data/lib/rb-kgy-fp/typeclass/reader.rb +3 -3
- data/lib/rb-kgy-fp/typeclass/state.rb +1 -1
- data/lib/rb-kgy-fp/typeclass/writer.rb +1 -1
- metadata +8 -5
- data/lib/rb-kgy-fp/lib.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 214e8add5a32f22e21fe03db4548810eecbcfc72ba51d6e5abb8f176cf5a9500
|
4
|
+
data.tar.gz: 63513fb5f942ec686b3fe03c28c27bcb1330b4922ebf51b6e993afb34ecea208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c935f2bab684f020060d9a30f0aed1b745d3ae0081e247a73ac3c76c454a282934f6ba0d45bbd99dbd1ad55c30659b5de5bf8bfd39b1b934e5e7a66cc57f8e4c
|
7
|
+
data.tar.gz: 805d4b5766f5afb861c1f5149eddff5dc914badfcaabf3e765533d5aa48cfb6b3037664eeb16fa893d40c7b92b871b3c934101f19855b43c8fb5f9a42a6d8e5e
|
data/lib/rb-kgy-fp/curry_fun.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
require_relative "../special"
|
4
|
+
require_relative '../fun'
|
5
|
+
require_relative '../curry_fun'
|
6
|
+
require_relative '../trait/functor'
|
7
7
|
|
8
8
|
module Applicative
|
9
9
|
include Functor
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
require_relative '../special'
|
4
|
+
require_relative '../curry_fun'
|
5
|
+
require_relative '../trait/applicative'
|
6
6
|
|
7
7
|
module Monad
|
8
8
|
include Applicative
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
require_relative '../special'
|
4
|
+
require_relative '../fun'
|
5
|
+
require_relative '../curry_fun'
|
6
|
+
require_relative '../trait/semi_group'
|
7
|
+
require_relative '../trait/monad'
|
8
|
+
require_relative '../trait/bi_functor'
|
9
9
|
|
10
10
|
class Either
|
11
11
|
include SemiGroup, Monad, Comparable, BiFunctor
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
require_relative '../special'
|
4
|
+
require_relative '../fun'
|
5
|
+
require_relative '../curry_fun'
|
6
|
+
require_relative '../trait/monad'
|
7
|
+
require_relative '../trait/alternative'
|
8
8
|
|
9
9
|
class Maybe
|
10
10
|
include Monad, Alternative, Comparable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-kgy-fp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil Lui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby FP lib for self usage. This lib included simple FP functions like
|
14
14
|
Rmada of JS, and different typeclass support as Haskell
|
@@ -19,7 +19,6 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- lib/rb-kgy-fp/curry_fun.rb
|
21
21
|
- lib/rb-kgy-fp/fun.rb
|
22
|
-
- lib/rb-kgy-fp/lib.rb
|
23
22
|
- lib/rb-kgy-fp/special.rb
|
24
23
|
- lib/rb-kgy-fp/std_ext/array.rb
|
25
24
|
- lib/rb-kgy-fp/std_ext/string.rb
|
@@ -38,7 +37,11 @@ files:
|
|
38
37
|
homepage: https://github.com/phillui-37/rb-kgy-fp
|
39
38
|
licenses:
|
40
39
|
- MIT
|
41
|
-
metadata:
|
40
|
+
metadata:
|
41
|
+
bug_tracker_uri: https://github.com/phillui-37/rb-kgy-fp/issues
|
42
|
+
change_log_uri: https://github.com/phillui-37/rb-kgy-fp/CHANGELOG.md
|
43
|
+
homepage_uri: https://github.com/phillui-37/rb-kgy-fp
|
44
|
+
source_code_uri: https://github.com/phillui-37/rb-kgy-fp
|
42
45
|
post_install_message:
|
43
46
|
rdoc_options: []
|
44
47
|
require_paths:
|
@@ -54,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
57
|
- !ruby/object:Gem::Version
|
55
58
|
version: '0'
|
56
59
|
requirements: []
|
57
|
-
rubygems_version: 3.4.
|
60
|
+
rubygems_version: 3.4.19
|
58
61
|
signing_key:
|
59
62
|
specification_version: 4
|
60
63
|
summary: Ruby FP lib for self usage
|
data/lib/rb-kgy-fp/lib.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|