slam 0.0.1 → 0.0.2

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.
Files changed (4) hide show
  1. data/VERSION +1 -0
  2. data/lib/slam.rb +2 -0
  3. data/spec/slam_spec.rb +6 -1
  4. metadata +3 -2
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
data/lib/slam.rb CHANGED
@@ -30,5 +30,7 @@ module Slam
30
30
  def to_proc
31
31
  ->(*args, &block) { @callable.(*args, *@args, &(block||@block)) }
32
32
  end
33
+
34
+ protected :to_proc
33
35
  end
34
36
  end
data/spec/slam_spec.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'spec_helper'
2
1
  require 'slam'
3
2
 
4
3
  describe Slam::Dunk do
@@ -35,4 +34,10 @@ describe Slam::Dunk do
35
34
  %w[c++ lisp].map(&l.upcase + "er").
36
35
  should == ["C++er", "LISPer"]
37
36
  end
37
+
38
+ example do
39
+ procs = %w(succ pred odd?).map &l.to_sym . to_proc
40
+ procs.map(&l.call(1)).
41
+ should == [2, 0, true]
42
+ end
38
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-30 00:00:00.000000000 Z
12
+ date: 2013-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -34,6 +34,7 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - README.rst
37
+ - VERSION
37
38
  - lib/slam.rb
38
39
  - slam.gemspec
39
40
  - spec/slam_spec.rb