functional-ruby 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -21
- data/README.md +193 -193
- data/lib/functional.rb +4 -4
- data/lib/functional/behavior.rb +139 -132
- 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 +508 -464
- 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 +21 -20
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,36 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: functional-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jerry D'Antonio
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
|
-
description:
|
31
|
-
|
32
|
-
|
33
|
-
'
|
27
|
+
description: |2
|
28
|
+
A gem for adding Erlang, Clojure, and Go inspired functional programming tools to Ruby.
|
34
29
|
email: jerry.dantonio@gmail.com
|
35
30
|
executables: []
|
36
31
|
extensions: []
|
@@ -58,29 +53,35 @@ files:
|
|
58
53
|
homepage: https://github.com/jdantonio/functional-ruby/
|
59
54
|
licenses:
|
60
55
|
- MIT
|
61
|
-
|
62
|
-
|
63
|
-
|
56
|
+
metadata: {}
|
57
|
+
post_install_message: |2
|
58
|
+
hello() -> io:format("Hello, World!").
|
59
|
+
|
60
|
+
package main
|
61
|
+
import "fmt"
|
62
|
+
func main() {
|
63
|
+
fmt.Printf("hello, world")
|
64
|
+
}
|
65
|
+
|
66
|
+
(def hello (fn [] "Hello world"))
|
64
67
|
rdoc_options: []
|
65
68
|
require_paths:
|
66
69
|
- lib
|
67
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
71
|
requirements:
|
70
|
-
- -
|
72
|
+
- - '>='
|
71
73
|
- !ruby/object:Gem::Version
|
72
74
|
version: 1.9.2
|
73
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
76
|
requirements:
|
76
|
-
- -
|
77
|
+
- - '>='
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: '0'
|
79
80
|
requirements: []
|
80
81
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
82
|
+
rubygems_version: 2.0.6
|
82
83
|
signing_key:
|
83
|
-
specification_version:
|
84
|
+
specification_version: 4
|
84
85
|
summary: Erlang and Clojure inspired functional programming tools for Ruby.
|
85
86
|
test_files:
|
86
87
|
- spec/functional/behavior_spec.rb
|