functional-ruby 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -21
- data/README.md +193 -193
- data/lib/functional.rb +4 -4
- data/lib/functional/behavior.rb +132 -124
- data/lib/functional/behaviour.rb +2 -2
- data/lib/functional/pattern_matching.rb +133 -133
- data/lib/functional/utilities.rb +192 -192
- data/lib/functional/version.rb +3 -3
- data/lib/functional_ruby.rb +1 -1
- data/md/behavior.md +188 -188
- data/md/pattern_matching.md +512 -512
- data/md/utilities.md +55 -55
- data/spec/functional/behavior_spec.rb +464 -369
- data/spec/functional/integration_spec.rb +205 -205
- data/spec/functional/pattern_matching_spec.rb +418 -418
- data/spec/functional/utilities_spec.rb +271 -271
- data/spec/spec_helper.rb +18 -18
- metadata +20 -21
- checksums.yaml +0 -7
data/spec/spec_helper.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
require 'functional'
|
2
|
-
|
3
|
-
# import all the support files
|
4
|
-
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require File.expand_path(f) }
|
5
|
-
|
6
|
-
RSpec.configure do |config|
|
7
|
-
config.order = 'random'
|
8
|
-
|
9
|
-
config.before(:suite) do
|
10
|
-
end
|
11
|
-
|
12
|
-
config.before(:each) do
|
13
|
-
end
|
14
|
-
|
15
|
-
config.after(:each) do
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
1
|
+
require 'functional'
|
2
|
+
|
3
|
+
# import all the support files
|
4
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require File.expand_path(f) }
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.order = 'random'
|
8
|
+
|
9
|
+
config.before(:suite) do
|
10
|
+
end
|
11
|
+
|
12
|
+
config.before(:each) do
|
13
|
+
end
|
14
|
+
|
15
|
+
config.after(:each) do
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,31 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: functional-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Jerry D'Antonio
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
|
-
description:
|
28
|
-
|
30
|
+
description: ! ' A gem for adding Erlang, Clojure, and Go inspired functional programming
|
31
|
+
tools to Ruby.
|
32
|
+
|
33
|
+
'
|
29
34
|
email: jerry.dantonio@gmail.com
|
30
35
|
executables: []
|
31
36
|
extensions: []
|
@@ -53,35 +58,29 @@ files:
|
|
53
58
|
homepage: https://github.com/jdantonio/functional-ruby/
|
54
59
|
licenses:
|
55
60
|
- MIT
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
package main
|
61
|
-
import "fmt"
|
62
|
-
func main() {
|
63
|
-
fmt.Printf("hello, world")
|
64
|
-
}
|
65
|
-
|
66
|
-
(def hello (fn [] "Hello world"))
|
61
|
+
post_install_message: ! " hello() -> io:format(\"Hello, World!\").\n\n package
|
62
|
+
main\n import \"fmt\"\n func main() {\n fmt.Printf(\"hello, world\")\n
|
63
|
+
\ }\n\n (def hello (fn [] \"Hello world\"))\n"
|
67
64
|
rdoc_options: []
|
68
65
|
require_paths:
|
69
66
|
- lib
|
70
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
71
69
|
requirements:
|
72
|
-
- - '>='
|
70
|
+
- - ! '>='
|
73
71
|
- !ruby/object:Gem::Version
|
74
72
|
version: 1.9.2
|
75
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
76
75
|
requirements:
|
77
|
-
- - '>='
|
76
|
+
- - ! '>='
|
78
77
|
- !ruby/object:Gem::Version
|
79
78
|
version: '0'
|
80
79
|
requirements: []
|
81
80
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
81
|
+
rubygems_version: 1.8.24
|
83
82
|
signing_key:
|
84
|
-
specification_version:
|
83
|
+
specification_version: 3
|
85
84
|
summary: Erlang and Clojure inspired functional programming tools for Ruby.
|
86
85
|
test_files:
|
87
86
|
- spec/functional/behavior_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 9bc4db6eba8d3f68f626e27415bb5e5b20e69fc3
|
4
|
-
data.tar.gz: fa353eb6d4d4fc0d2557e7340d2874d68159050d
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7d482b7d25a1066ef058ca13cc5e8b7b5b0d7e249a7356d4b7cb815288b18daff9c3f5fb789fdbe2ef4c47e0a3e26f9f3437b244bed244b69cbd16d72f415c2e
|
7
|
-
data.tar.gz: 693b09f4e460522ff1aad1db7098414138ec076d90674c0303f699c476cd2fc4b5f745c032508aa93559ea4ebbf37e2c4ebb509965a104e531b7b50d822b3e37
|