functional_support 0.0.8 → 0.0.9

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: da94e811ee585a97b3815d02adc649b341890a7a
4
- data.tar.gz: 34c7a21cfce05292cd844cff09afb1af23c8d74f
3
+ metadata.gz: f2b70a85affd7e45d2fe8f45fad5fd2680f23d77
4
+ data.tar.gz: 49ad107aa8aac33d796a9bc5d9693fda0cf8440e
5
5
  SHA512:
6
- metadata.gz: aa50f7ed38a7bd370aca980a16b0e03ecd5149c3c93e0e3dcf6159a846aea84965f1b0dad522dd6f1ecee3ea265777d5812c17355180649f761d646110dba668
7
- data.tar.gz: fc99e94f7c811c9fc186666e5e4831a536cb5be4587f8b36be0e8ddd4ef7253796d8ff9da171bbd317eb2a91f17f172e707e165f82660c4f523bb198706377af
6
+ metadata.gz: 8c8421aa038ef1b64559880fd3b2a50a944481e00bbeef696c7500db257c13c920f4edbf3c0452310f60d89a1e7d022739ef50c17ec8e9c8111680ae2afeb5b6
7
+ data.tar.gz: d11b0cb569d6147b48f6866f87348888300815f2d3e7e91b4b86895e8e44275d338c149dec4c7313f228393121bade03866fd7504dd1796d9b29f28714cbbf31
@@ -5,6 +5,7 @@ require 'functional_support/core_ext/integer'
5
5
  require 'functional_support/core_ext/string'
6
6
  require 'functional_support/core_ext/class/attribute_accessors'
7
7
  require 'functional_support/core_ext/float'
8
+ require 'functional_support/core_ext/proc'
8
9
  module FunctionalSupport
9
10
  # Your code goes here...
10
11
  end
@@ -0,0 +1,8 @@
1
+ class Proc
2
+ def self.compose(f, g)
3
+ lambda { |*args| f[g[*args]] }
4
+ end
5
+ def *(g)
6
+ self.class.compose(self, g)
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module FunctionalSupport
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: functional_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - lib/functional_support/core_ext/float.rb
87
87
  - lib/functional_support/core_ext/hash.rb
88
88
  - lib/functional_support/core_ext/integer.rb
89
+ - lib/functional_support/core_ext/proc.rb
89
90
  - lib/functional_support/core_ext/string.rb
90
91
  - lib/functional_support/version.rb
91
92
  - spec/spec_helper.rb