pattern-proc 0.0.1 → 0.0.2

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: 570c658ac139da0ade4f67576ec391963253c432
4
- data.tar.gz: c59c291c8cc567c685fe42c907c79eecee31f985
3
+ metadata.gz: e8e9ee7b0dbe361a86779de1d684ea1e71725bd0
4
+ data.tar.gz: a2e8971dddc2308a411acaa7e179ada06ee8eb79
5
5
  SHA512:
6
- metadata.gz: f767b258e7adb44cc7c114dcc5f139dc560ea1554fc60cdc2d3eb1f9bc8dba25e1069b0601071df0ce7b0c7b3e21ebb4a809728a03f8106058e61066062f0369
7
- data.tar.gz: fab0de65a0e2215f50119a4bae8883b8c4ff14f97392a8af839066314c18e3a1eb5a492aa68b1880fe5ab01ce44e3ec6d2bbd667bb6b391fe71bbec279003225
6
+ metadata.gz: 29eb3503bb13f8a299e078d0242c73d64fdcbba44a600183f48b2806712932beef2cfb71401dd53d87bd40281a9accef9deac07b010141ad157506c7195e4fec
7
+ data.tar.gz: f021f156d9c9f5e6aab70e30902a28487b1ebb5c99bf0dbbd8424be473bf6bbd468ae85d993bfaaf5011681879f5db9860bdf103682b7699386b30637195f120
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ group :test do
4
+ gem "rspec"
5
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.2.5)
5
+ rspec (3.0.0)
6
+ rspec-core (~> 3.0.0)
7
+ rspec-expectations (~> 3.0.0)
8
+ rspec-mocks (~> 3.0.0)
9
+ rspec-core (3.0.2)
10
+ rspec-support (~> 3.0.0)
11
+ rspec-expectations (3.0.2)
12
+ diff-lcs (>= 1.2.0, < 2.0)
13
+ rspec-support (~> 3.0.0)
14
+ rspec-mocks (3.0.2)
15
+ rspec-support (~> 3.0.0)
16
+ rspec-support (3.0.2)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ rspec
data/lib/pattern_proc.rb CHANGED
@@ -75,7 +75,7 @@ class PatternProcCase
75
75
  @proc = block
76
76
  @proc_arity = proc_arity
77
77
  @previous_specificity = previous_specificity || 0
78
- if block.present? && block.arity > 0
78
+ if !block.nil? && block.arity > 0
79
79
  @proc_arity = block.arity
80
80
  end
81
81
  end
data/pattern-proc.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pattern-proc'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = '2014-07-01'
5
5
  s.summary = 'Pattern Proc'
6
6
  s.description = 'define a Proc with pattern matching "re-declaration" ala Haskell'
@@ -1,3 +1,5 @@
1
+ require 'pattern_proc'
2
+
1
3
  describe PatternProc do
2
4
  subject { described_class.new }
3
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattern-proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Pleasant-Ryan
@@ -17,11 +17,13 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - Gemfile
21
+ - Gemfile.lock
20
22
  - LICENSE
21
23
  - README.md
22
24
  - lib/pattern_proc.rb
23
25
  - pattern-proc.gemspec
24
- - spec/pattern_proc_spec.rb
26
+ - spec/lib/pattern_proc_spec.rb
25
27
  homepage: http://rubygems.org/gems/pattern-proc
26
28
  licenses:
27
29
  - MIT