rb-kgy-fp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d187603140145361013f2277fb3d89ec9a2a49373a5b1d2d0839e48f9b53f48
4
- data.tar.gz: 1eb4b34145b0ac7ce815cd4c4d55e4f82bb10b3469705ff4dd28fcc5e80a00f0
3
+ metadata.gz: 214e8add5a32f22e21fe03db4548810eecbcfc72ba51d6e5abb8f176cf5a9500
4
+ data.tar.gz: 63513fb5f942ec686b3fe03c28c27bcb1330b4922ebf51b6e993afb34ecea208
5
5
  SHA512:
6
- metadata.gz: b4bfb2827314527f15092992d70c25332c703660a85c14f5038a0179667190c0773a9d0341a51ed78491a4119ab3fbc117bf954c2056090874360a128582ff75
7
- data.tar.gz: 1ddb718352d5eaf953c21280573b1086a00da7b0d627d46c1130f66f6db995df7985928f2c85f23115ec672b16553421b16c493ecff5554609e0e9e94c49acf6
6
+ metadata.gz: c935f2bab684f020060d9a30f0aed1b745d3ae0081e247a73ac3c76c454a282934f6ba0d45bbd99dbd1ad55c30659b5de5bf8bfd39b1b934e5e7a66cc57f8e4c
7
+ data.tar.gz: 805d4b5766f5afb861c1f5149eddff5dc914badfcaabf3e765533d5aa48cfb6b3037664eeb16fa893d40c7b92b871b3c934101f19855b43c8fb5f9a42a6d8e5e
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
3
+ require_relative 'special'
4
4
 
5
5
  PH = Special::PH
6
6
  OPT = Special::OPT
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/trait/applicative'
3
+ require_relative '../special'
4
+ require_relative '../trait/applicative'
5
5
 
6
6
  module Alternative
7
7
  include Applicative
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lib/special"
4
- require 'lib/fun'
5
- require 'lib/curry_fun'
6
- require 'lib/trait/functor'
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,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/fun'
3
+ require_relative '../special'
4
+ require_relative '../fun'
5
5
 
6
6
  module BiFunctor
7
7
  # implement require: bimap | (first, second)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/curry_fun'
3
+ require_relative '../special'
4
+ require_relative '../curry_fun'
5
5
 
6
6
  module Functor
7
7
  def fmap &fn
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/curry_fun'
5
- require 'lib/trait/applicative'
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,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/trait/semi_group'
3
+ require_relative '../special'
4
+ require_relative '../trait/semi_group'
5
5
 
6
6
  module Monoid
7
7
  include SemiGroup
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/special'
4
- require 'lib/fun'
5
- require 'lib/curry_fun'
6
- require 'lib/trait/semi_group'
7
- require 'lib/trait/monad'
8
- require 'lib/trait/bi_functor'
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
- require 'lib/special'
4
- require 'lib/fun'
5
- require 'lib/curry_fun'
6
- require 'lib/trait/monad'
7
- require 'lib/trait/alternative'
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
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/trait/monad'
4
- require 'lib/fun'
5
- require 'lib/curry_fun'
3
+ require_relative '../trait/monad'
4
+ require_relative '../fun'
5
+ require_relative '../curry_fun'
6
6
 
7
7
  class Reader
8
8
  include Monad
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/trait/monad'
3
+ require_relative '../trait/monad'
4
4
 
5
5
  class State
6
6
  include Monad
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'lib/trait/monad'
3
+ require_relative '../trait/monad'
4
4
 
5
5
  class Writer
6
6
  include Monad
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.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-02 00:00:00.000000000 Z
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.10
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