invokable 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: 75d0119b6b55fe24482deb14fb1675485fed87736a7a6b96704d38a7648c1519
4
- data.tar.gz: 1b7ef84ffed34fa5c39dc4f26ccd23bc98a1c3ce419bee4af69cbec3bf388f3a
3
+ metadata.gz: 1704e11155d49e8801c46591a662a28633d93c7c069fa7a52c5412d4aa9a2162
4
+ data.tar.gz: 016e698868ebfe51cfd36c304391a0932a45e743f262fcd6004c208f6b8b3c09
5
5
  SHA512:
6
- metadata.gz: aa9f6fc22997d333ec17bc9cb555f3f485f1d44297fd78920b3c13de0705a151309adb60b5f8a661877f8e6e22dcae12b962ad4f37404a4dc5b9e5ecc0b8414c
7
- data.tar.gz: 89b8a8a8792d4249222a783645c0e67fb51546f7cb05eb9350180f0e1c4ad82aeb041233251116718b9218b602f2b14eceb459a2eb509dcd883ffeb1656bdbc5
6
+ metadata.gz: b6ea38312e09b45aae62501b6d1ea623d991a358aae63c4056150d28bac91c039b795c58b67c7f6fedc8c8e336fa2dbed456739cf333164db11237c4e865085b
7
+ data.tar.gz: 888c37a34ba29d412b2451d28cc22b0da328f978fc08445e5872e5b8d2e293d8261132209cf1bca63148762a888592dfa9d3c466e24f55345f4d0df81d19a236
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invokable (0.1.1)
4
+ invokable (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -58,7 +58,7 @@ require 'invokable/data' # loads all patches
58
58
 
59
59
  A function is a mapping of one value to another with the additional constraint that for the one input value you will
60
60
  always get the same output value. So, conceptually, Ruby Hashes, Arrays, and Sets are all functions. Also, there are
61
- many one method objects out thre (e.g. ServiceObjects) that are essentially functions. Why not treat them as such?
61
+ many one method objects out there (e.g. ServiceObjects) that are essentially functions. Why not treat them as such?
62
62
 
63
63
  # Installation
64
64
 
data/lib/invokable.rb CHANGED
@@ -15,4 +15,8 @@ module Invokable
15
15
  raise "Don't know how to convert #{self.inspect} into a Proc"
16
16
  end
17
17
  end
18
+
19
+ def curry
20
+ to_proc.curry
21
+ end
18
22
  end
@@ -2,5 +2,5 @@ require_relative '../invokable'
2
2
 
3
3
  class Hash
4
4
  include Invokable
5
- alias call []
5
+ alias call dig
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module Invokable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invokable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delon Newman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-05 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler