yogo-operation 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,6 +2,7 @@ require 'yogo/support/extension_module'
2
2
  require 'yogo/operation/restricted/construction'
3
3
  require 'yogo/operation/restricted/call'
4
4
  require 'yogo/operation/restricted/partial'
5
+ require 'yogo/operation/restricted/compose'
5
6
 
6
7
  module Yogo
7
8
  module Operation
@@ -11,12 +12,14 @@ module Yogo
11
12
  instance_extensions do
12
13
  extend Restricted::Call
13
14
  extend Restricted::Partial
15
+ extend Restricted::Compose
14
16
  end
15
17
 
16
18
  class_extensions do
17
19
  extend Restricted::Construction
18
20
  include Restricted::Call
19
21
  include Restricted::Partial
22
+ include Restricted::Compose
20
23
  end
21
24
  end # Restricted
22
25
  end # Operation
@@ -0,0 +1,20 @@
1
+ require 'yogo/support/proc/compose'
2
+ require 'yogo/operation/restricted/expected_type'
3
+
4
+ module Yogo
5
+ module Operation
6
+ module Restricted
7
+ module Compose
8
+ include ExpectedType
9
+ include Yogo::Support::Proc::Compose
10
+
11
+ # Restricted operations are always expected to accept and return
12
+ # the SAME type of argument. Therefore don't *splat apart the result
13
+ # of the composed operation 'g' as is done in Yogo::Support::Proc::Compose
14
+ def compose(g)
15
+ lambda{|*args| self[g[*args]]}
16
+ end
17
+ end # Partial
18
+ end # Restricted
19
+ end # Operation
20
+ end # Yogo
@@ -0,0 +1,94 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{yogo-operation}
8
+ s.version = "0.1.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Ryan Heimbuch"]
12
+ s.date = %q{2010-09-16}
13
+ s.description = %q{yogo-operation contains extensions to Proc to support various higher-order operations}
14
+ s.email = %q{rheimbuch@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "features/step_definitions/yogo-operation_steps.rb",
28
+ "features/support/env.rb",
29
+ "features/yogo-operation.feature",
30
+ "lib/yogo/operation.rb",
31
+ "lib/yogo/operation/base.rb",
32
+ "lib/yogo/operation/closed.rb",
33
+ "lib/yogo/operation/closed/call.rb",
34
+ "lib/yogo/operation/closed/error.rb",
35
+ "lib/yogo/operation/concurrent.rb",
36
+ "lib/yogo/operation/concurrent/call.rb",
37
+ "lib/yogo/operation/error.rb",
38
+ "lib/yogo/operation/restricted.rb",
39
+ "lib/yogo/operation/restricted/call.rb",
40
+ "lib/yogo/operation/restricted/compose.rb",
41
+ "lib/yogo/operation/restricted/construction.rb",
42
+ "lib/yogo/operation/restricted/error.rb",
43
+ "lib/yogo/operation/restricted/expected_type.rb",
44
+ "lib/yogo/operation/restricted/partial.rb",
45
+ "spec/spec.opts",
46
+ "spec/spec_helper.rb",
47
+ "spec/yogo-operation_spec.rb",
48
+ "yogo-operation.gemspec"
49
+ ]
50
+ s.homepage = %q{http://github.com/yogo/yogo-operation}
51
+ s.rdoc_options = ["--charset=UTF-8"]
52
+ s.require_paths = ["lib"]
53
+ s.rubygems_version = %q{1.3.7}
54
+ s.summary = %q{specialization of Proc}
55
+ s.test_files = [
56
+ "spec/spec_helper.rb",
57
+ "spec/yogo-operation_spec.rb"
58
+ ]
59
+
60
+ if s.respond_to? :specification_version then
61
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
62
+ s.specification_version = 3
63
+
64
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
65
+ s.add_runtime_dependency(%q<dataflow>, [">= 0"])
66
+ s.add_runtime_dependency(%q<yogo-support>, ["~> 0.1.0"])
67
+ s.add_development_dependency(%q<rake>, [">= 0"])
68
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
69
+ s.add_development_dependency(%q<rspec>, [">= 0"])
70
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
71
+ s.add_development_dependency(%q<yard>, [">= 0"])
72
+ s.add_development_dependency(%q<ruby-debug>, [">= 0"])
73
+ else
74
+ s.add_dependency(%q<dataflow>, [">= 0"])
75
+ s.add_dependency(%q<yogo-support>, ["~> 0.1.0"])
76
+ s.add_dependency(%q<rake>, [">= 0"])
77
+ s.add_dependency(%q<jeweler>, [">= 0"])
78
+ s.add_dependency(%q<rspec>, [">= 0"])
79
+ s.add_dependency(%q<cucumber>, [">= 0"])
80
+ s.add_dependency(%q<yard>, [">= 0"])
81
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
82
+ end
83
+ else
84
+ s.add_dependency(%q<dataflow>, [">= 0"])
85
+ s.add_dependency(%q<yogo-support>, ["~> 0.1.0"])
86
+ s.add_dependency(%q<rake>, [">= 0"])
87
+ s.add_dependency(%q<jeweler>, [">= 0"])
88
+ s.add_dependency(%q<rspec>, [">= 0"])
89
+ s.add_dependency(%q<cucumber>, [">= 0"])
90
+ s.add_dependency(%q<yard>, [">= 0"])
91
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
92
+ end
93
+ end
94
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yogo-operation
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Heimbuch
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-13 00:00:00 -06:00
18
+ date: 2010-09-16 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -162,6 +162,7 @@ files:
162
162
  - lib/yogo/operation/error.rb
163
163
  - lib/yogo/operation/restricted.rb
164
164
  - lib/yogo/operation/restricted/call.rb
165
+ - lib/yogo/operation/restricted/compose.rb
165
166
  - lib/yogo/operation/restricted/construction.rb
166
167
  - lib/yogo/operation/restricted/error.rb
167
168
  - lib/yogo/operation/restricted/expected_type.rb
@@ -169,6 +170,7 @@ files:
169
170
  - spec/spec.opts
170
171
  - spec/spec_helper.rb
171
172
  - spec/yogo-operation_spec.rb
173
+ - yogo-operation.gemspec
172
174
  has_rdoc: true
173
175
  homepage: http://github.com/yogo/yogo-operation
174
176
  licenses: []