pattern-matching 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 +14 -6
- data/LICENSE +21 -21
- data/README.md +536 -476
- data/lib/pattern_matching.rb +133 -99
- data/spec/integration_spec.rb +170 -140
- data/spec/pattern_matching_spec.rb +393 -351
- data/spec/spec_helper.rb +17 -17
- metadata +12 -10
data/spec/spec_helper.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
require 'pattern_matching'
|
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
|
-
|
8
|
-
config.before(:suite) do
|
9
|
-
end
|
10
|
-
|
11
|
-
config.before(:each) do
|
12
|
-
end
|
13
|
-
|
14
|
-
config.after(:each) do
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
1
|
+
require 'pattern_matching'
|
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
|
+
|
8
|
+
config.before(:suite) do
|
9
|
+
end
|
10
|
+
|
11
|
+
config.before(:each) do
|
12
|
+
end
|
13
|
+
|
14
|
+
config.after(:each) do
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
metadata
CHANGED
@@ -1,31 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pattern-matching
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jerry D'Antonio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '>='
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
description:
|
28
|
-
|
27
|
+
description: ! ' A gem for adding Erlang-style function/method overloading through
|
28
|
+
pattern matching to Ruby classes.
|
29
|
+
|
30
|
+
'
|
29
31
|
email: jerry.dantonio@gmail.com
|
30
32
|
executables: []
|
31
33
|
extensions: []
|
@@ -49,12 +51,12 @@ require_paths:
|
|
49
51
|
- lib
|
50
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
53
|
requirements:
|
52
|
-
- - '>='
|
54
|
+
- - ! '>='
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
version: 1.9.2
|
55
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
58
|
requirements:
|
57
|
-
- - '>='
|
59
|
+
- - ! '>='
|
58
60
|
- !ruby/object:Gem::Version
|
59
61
|
version: '0'
|
60
62
|
requirements: []
|
@@ -62,9 +64,9 @@ rubyforge_project:
|
|
62
64
|
rubygems_version: 2.0.3
|
63
65
|
signing_key:
|
64
66
|
specification_version: 4
|
65
|
-
summary: Erlang-style pattern matching
|
67
|
+
summary: Erlang-style function/method overloading through pattern matching for Ruby
|
68
|
+
classes.
|
66
69
|
test_files:
|
67
70
|
- spec/integration_spec.rb
|
68
71
|
- spec/pattern_matching_spec.rb
|
69
72
|
- spec/spec_helper.rb
|
70
|
-
has_rdoc:
|