matilda-function 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: a08ee980eee81813383e4bac42692571d0b6881d
4
- data.tar.gz: 337597ef7d2048f3d285ca2a2804d91020eeb088
3
+ metadata.gz: d6a79b4ecbcd4f088bac6217cba4b662535206f9
4
+ data.tar.gz: e42e1c1880791e5f0cf156266bc5dab2e273d500
5
5
  SHA512:
6
- metadata.gz: 5528a2b671640eea62b49e9a783fbcb261e01c0e44fde7d75f81799dd1febb97aa1b227525386b3f56022d67b46d7b0208b55c7280791cd3abe4236e387f78e2
7
- data.tar.gz: c078d51680e8883407e4328960d115c477471580187a5d3350850a97add3b18268edc0c999e5d923e36a79060f3c7dd00f87f24ff78efa55fc425dd3895ec024
6
+ metadata.gz: 007cd8ba7d50caf4f984754611b3278f17d464278b21405f276d1bb14915f2e80903cf472173802678b4fca1f39e7fd33874ea9ad91e4f7ae3250e5c47f47b7e
7
+ data.tar.gz: e5e65c0c9d4e89d35d21a7de31896bd82270a9cf966a4a57af0b4120f0ab9e91ea7d3e1c146b57e645ddebdf54abb81baf26cb81b13d17d2a42107128c9695dd
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - ruby-head
5
- - jruby-head
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - jruby-19mode
data/README.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/seadowg/matilda-function.png?branch=master)](https://travis-ci.org/seadowg/matilda-function)
4
4
 
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'matilda-function'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
5
17
  ## Description
6
18
 
7
19
  This library provides extensions to Ruby's Proc to allow for some functional goodness.
@@ -14,9 +26,9 @@ So we can pretend we are coding in Haskell we use the `<<` operator for composit
14
26
  reverse = proc { |array| array.reverse }
15
27
  reverese_order = sort << reverse
16
28
  reverese_order.call [3,1,4,8] #=> [8,4,3,1]
17
-
29
+
18
30
  When we combine two Procs using `<<` we create a new Proc that will first execute the receiver Proc and
19
- then pass the result to the argument Proc. This provides an expressive and modular approach to creating complex
31
+ then pass the result to the argument Proc. This provides an expressive and modular approach to creating complex
20
32
  high order functons in Ruby.
21
33
 
22
34
  ### Recursive
File without changes
@@ -3,7 +3,7 @@ $:.unshift lib unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "matilda-function"
6
- s.version = "0.1.0"
6
+ s.version = "0.2.0"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Callum Stott"]
9
9
  s.email = ["callum@seadowg.com"]
@@ -1,5 +1,5 @@
1
1
  require 'minitest/autorun'
2
- require 'function'
2
+ require 'matilda-function'
3
3
 
4
4
  describe "recursive" do
5
5
  it "creates a recursive function" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matilda-function
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Callum Stott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2013-08-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -23,7 +23,7 @@ files:
23
23
  - LICENSE.md
24
24
  - README.md
25
25
  - Rakefile
26
- - lib/function.rb
26
+ - lib/matilda-function.rb
27
27
  - matilda-function.gemspec
28
28
  - spec/function_spec.rb
29
29
  homepage: