active_conductor 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/active_conductor.rb +2 -2
  2. metadata +7 -51
@@ -123,7 +123,7 @@ class ActiveConductor
123
123
  # Create and persist a new conductor in one step.
124
124
  #
125
125
  # @example Create and yield a conductor
126
- # registration = Registration.create(params[:registration]) do |conductor\
126
+ # registration = Registration.create(params[:registration]) do |conductor|
127
127
  # conductor.user.is_admin = true
128
128
  # end
129
129
  #
@@ -131,7 +131,7 @@ class ActiveConductor
131
131
  # @param block [Proc] An optional proc that yields to the created conductor
132
132
  # @return [ActiveConductor] the created conductor
133
133
  #
134
- def self.create(attributes, &block)
134
+ def self.create(attributes)
135
135
  object = new(attributes)
136
136
  yield(object) if block_given?
137
137
  object.save
metadata CHANGED
@@ -1,20 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_conductor
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
4
+ prerelease:
5
+ version: 0.1.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Scott Taylor
9
+ - Michael Kessler
13
10
  autorequire:
14
11
  bindir: bin
15
12
  cert_chain: []
16
13
 
17
- date: 2011-03-07 00:00:00 +01:00
14
+ date: 2011-03-09 00:00:00 +01:00
18
15
  default_executable:
19
16
  dependencies:
20
17
  - !ruby/object:Gem::Dependency
@@ -25,10 +22,6 @@ dependencies:
25
22
  requirements:
26
23
  - - ~>
27
24
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- - 0
32
25
  version: 3.0.0
33
26
  type: :runtime
34
27
  version_requirements: *id001
@@ -40,10 +33,6 @@ dependencies:
40
33
  requirements:
41
34
  - - ~>
42
35
  - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 0
46
- - 10
47
36
  version: 1.0.10
48
37
  type: :development
49
38
  version_requirements: *id002
@@ -55,10 +44,6 @@ dependencies:
55
44
  requirements:
56
45
  - - ~>
57
46
  - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 3
61
- - 0
62
47
  version: 0.3.0
63
48
  type: :development
64
49
  version_requirements: *id003
@@ -70,10 +55,6 @@ dependencies:
70
55
  requirements:
71
56
  - - ~>
72
57
  - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- - 2
76
- - 0
77
58
  version: 0.2.0
78
59
  type: :development
79
60
  version_requirements: *id004
@@ -85,10 +66,6 @@ dependencies:
85
66
  requirements:
86
67
  - - ~>
87
68
  - !ruby/object:Gem::Version
88
- segments:
89
- - 2
90
- - 5
91
- - 0
92
69
  version: 2.5.0
93
70
  type: :development
94
71
  version_requirements: *id005
@@ -100,10 +77,6 @@ dependencies:
100
77
  requirements:
101
78
  - - ~>
102
79
  - !ruby/object:Gem::Version
103
- segments:
104
- - 3
105
- - 0
106
- - 0
107
80
  version: 3.0.0
108
81
  type: :development
109
82
  version_requirements: *id006
@@ -115,10 +88,6 @@ dependencies:
115
88
  requirements:
116
89
  - - ~>
117
90
  - !ruby/object:Gem::Version
118
- segments:
119
- - 1
120
- - 3
121
- - 3
122
91
  version: 1.3.3
123
92
  type: :development
124
93
  version_requirements: *id007
@@ -130,10 +99,6 @@ dependencies:
130
99
  requirements:
131
100
  - - ~>
132
101
  - !ruby/object:Gem::Version
133
- segments:
134
- - 0
135
- - 6
136
- - 4
137
102
  version: 0.6.4
138
103
  type: :development
139
104
  version_requirements: *id008
@@ -145,16 +110,13 @@ dependencies:
145
110
  requirements:
146
111
  - - ~>
147
112
  - !ruby/object:Gem::Version
148
- segments:
149
- - 2
150
- - 0
151
- - 11
152
113
  version: 2.0.11
153
114
  type: :development
154
115
  version_requirements: *id009
155
116
  description: This plugin uses the conductor pattern to wrap multiple models as one object
156
117
  email:
157
118
  - scott@railsnewbie.com
119
+ - michi@netzpiraten.ch
158
120
  executables: []
159
121
 
160
122
  extensions: []
@@ -166,7 +128,7 @@ files:
166
128
  - LICENSE.txt
167
129
  - README.md
168
130
  has_rdoc: true
169
- homepage: https://github.com/smtlaissezfaire/active_conductor
131
+ homepage: https://github.com/netzpirat/active_conductor
170
132
  licenses: []
171
133
 
172
134
  post_install_message:
@@ -179,23 +141,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
141
  requirements:
180
142
  - - ">="
181
143
  - !ruby/object:Gem::Version
182
- segments:
183
- - 0
184
144
  version: "0"
185
145
  required_rubygems_version: !ruby/object:Gem::Requirement
186
146
  none: false
187
147
  requirements:
188
148
  - - ">="
189
149
  - !ruby/object:Gem::Version
190
- segments:
191
- - 1
192
- - 3
193
- - 6
194
150
  version: 1.3.6
195
151
  requirements: []
196
152
 
197
153
  rubyforge_project: active_conductor
198
- rubygems_version: 1.3.7
154
+ rubygems_version: 1.6.1
199
155
  signing_key:
200
156
  specification_version: 3
201
157
  summary: Conductor plugin for Rails 3