composable_operations 0.8.1 → 0.9.0

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: ed2f5934b48ba2d9abb23788f79669d962491781
4
- data.tar.gz: 5a8eb0c65e82b61fd3224050d71c7f7ffa937257
3
+ metadata.gz: d17a3973dfaed0b5b30509929d4c0feb1192b67c
4
+ data.tar.gz: 48212703d7bae494d648fbfeeda89d8abb50d488
5
5
  SHA512:
6
- metadata.gz: e770c5c3058e3e7936a8ed325fd3501614d88d6415379bd375dfc1d26b0d8b1efa99a0dad28d0d2b990b3ffa74aff4a2764db81b90dbcf9d6370ab878b6350ec
7
- data.tar.gz: 551575ffb3d2a35214b9d3250f8498a65cb8983bbfdbfd3bbfd91874b1e79c30e9083fe6c8e4b6de0e40897b5b19e14880e83bdf4bbe64bccf58279082aab266
6
+ metadata.gz: c70bf2fdcfb3bdec7cc72beba16ab3c44b447c26d39dbbb3b90cdb7acfb345776deab40ea4cb7342037b28c5fdc49238fc002b48eae84a159f74de3792ef89be
7
+ data.tar.gz: bbe6ecb31c85f915bc791d81b11499bb724ac7249f6296025c12a6fc516ebcb1ba04728596be6c2d06a2edb0e4e79ed76194736c067e6b88e281f23d2464d0c7
@@ -24,5 +24,5 @@ multiple of these operations in operation pipelines.}
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "pry", "~> 0.9.0"
26
26
  spec.add_development_dependency "rake"
27
- spec.add_development_dependency "rspec", "~> 2.13"
27
+ spec.add_development_dependency "rspec", "~> 2.14"
28
28
  end
@@ -65,6 +65,7 @@ module ComposableOperations
65
65
  else
66
66
  names.each_with_index do |name, index|
67
67
  define_method(name) { input[index] }
68
+ define_method("#{name}=") { |value| input[index] = value }
68
69
  end
69
70
  end
70
71
  end
@@ -1,3 +1,3 @@
1
1
  module ComposableOperations
2
- VERSION = "0.8.1"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -117,6 +117,22 @@ describe ComposableOperations::Operation, "input processing:" do
117
117
 
118
118
  end
119
119
 
120
+ describe "An operation that takes a named argument and uses the setter for the named argument" do
121
+
122
+ subject(:operation) do
123
+ Class.new(described_class) do
124
+ processes :some_value
125
+ def execute
126
+ self.some_value = "changed"
127
+ self.some_value
128
+ end
129
+ end
130
+ end
131
+
132
+ it { should succeed_to_perform.when_initialized_with("unchanged").and_return("changed") }
133
+
134
+ end
135
+
120
136
  end
121
137
 
122
138
  describe ComposableOperations::ComposedOperation, "input processing:" do
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composable_operations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Tennhard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
11
+ date: 2014-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smart_properties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
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: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.9.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.13'
75
+ version: '2.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.13'
82
+ version: '2.14'
83
83
  description: |-
84
84
  Composable Operations is a tool set for creating operations and assembling
85
85
  multiple of these operations in operation pipelines.
@@ -89,7 +89,7 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
92
+ - ".gitignore"
93
93
  - Gemfile
94
94
  - LICENSE.txt
95
95
  - README.md
@@ -120,17 +120,17 @@ require_paths:
120
120
  - lib
121
121
  required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - '>='
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.0.3
133
+ rubygems_version: 2.2.2
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Tool set for operation pipelines.
@@ -142,3 +142,4 @@ test_files:
142
142
  - spec/composable_operations/operation_input_processing_spec.rb
143
143
  - spec/composable_operations/operation_spec.rb
144
144
  - spec/spec_helper.rb
145
+ has_rdoc: