enju_event 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/event_categories_controller.rb +2 -3
- data/lib/enju_event/engine.rb +1 -0
- data/lib/enju_event/import_file.rb +13 -0
- data/lib/enju_event/version.rb +1 -1
- data/spec/controllers/event_categories_controller_spec.rb +28 -66
- data/spec/controllers/participates_controller_spec.rb +443 -0
- data/spec/dummy/app/controllers/application_controller.rb +8 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/sunspot-solr-test.log +160 -150
- data/spec/dummy/log/test.log +12709 -0
- data/spec/fixtures/participates.yml +24 -0
- data/spec/models/participate_spec.rb +20 -0
- metadata +87 -47
@@ -0,0 +1,24 @@
|
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
patron_id: 1
|
5
|
+
event_id: 1
|
6
|
+
position: 1
|
7
|
+
|
8
|
+
two:
|
9
|
+
patron_id: 2
|
10
|
+
event_id: 1
|
11
|
+
position: 2
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: participates
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# patron_id :integer not null
|
19
|
+
# event_id :integer not null
|
20
|
+
# position :integer
|
21
|
+
# created_at :datetime
|
22
|
+
# updated_at :datetime
|
23
|
+
#
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Participate do
|
5
|
+
#pending "add some examples to (or delete) #{__FILE__}"
|
6
|
+
|
7
|
+
end
|
8
|
+
|
9
|
+
# == Schema Information
|
10
|
+
#
|
11
|
+
# Table name: participates
|
12
|
+
#
|
13
|
+
# id :integer not null, primary key
|
14
|
+
# patron_id :integer not null
|
15
|
+
# event_id :integer not null
|
16
|
+
# position :integer
|
17
|
+
# created_at :datetime
|
18
|
+
# updated_at :datetime
|
19
|
+
#
|
20
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70366099970520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70366099970520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: event-calendar
|
27
|
-
requirement: &
|
27
|
+
requirement: &70366099926160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.3.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70366099926160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: simple_form
|
38
|
-
requirement: &
|
38
|
+
requirement: &70366099869360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70366099869360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: devise
|
49
|
-
requirement: &
|
49
|
+
requirement: &70366099804720 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70366099804720
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: cancan
|
60
|
-
requirement: &
|
60
|
+
requirement: &70366099749940 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,21 +65,21 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70366099749940
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: attribute_normalizer
|
71
|
-
requirement: &
|
71
|
+
requirement: &70366099642900 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '1.
|
76
|
+
version: '1.1'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70366099642900
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: inherited_resources
|
82
|
-
requirement: &
|
82
|
+
requirement: &70366099539540 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70366099539540
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: friendly_id
|
93
|
-
requirement: &
|
93
|
+
requirement: &70366099507180 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,32 +98,32 @@ dependencies:
|
|
98
98
|
version: '4.0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70366099507180
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: sunspot_rails
|
104
|
-
requirement: &
|
104
|
+
requirement: &70366099467900 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '0'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70366099467900
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: sunspot_solr
|
115
|
-
requirement: &
|
115
|
+
requirement: &70366099429920 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ! '>='
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
120
|
+
version: '0'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70366099429920
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: will_paginate
|
126
|
-
requirement: &
|
126
|
+
requirement: &70366099386820 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '3.0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70366099386820
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: has_scope
|
137
|
-
requirement: &
|
137
|
+
requirement: &70366099360740 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :runtime
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *70366099360740
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: configatron
|
148
|
-
requirement: &
|
148
|
+
requirement: &70366099309220 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :runtime
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *70366099309220
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: paperclip
|
159
|
-
requirement: &
|
159
|
+
requirement: &70366099236040 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :runtime
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *70366099236040
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: state_machine
|
170
|
-
requirement: &
|
170
|
+
requirement: &70366099208480 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :runtime
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *70366099208480
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: addressable
|
181
|
-
requirement: &
|
181
|
+
requirement: &70366099164440 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ! '>='
|
@@ -186,21 +186,32 @@ dependencies:
|
|
186
186
|
version: '0'
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *70366099164440
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: acts_as_list
|
192
|
+
requirement: &70366099121520 !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ~>
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 0.1.5
|
198
|
+
type: :runtime
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: *70366099121520
|
190
201
|
- !ruby/object:Gem::Dependency
|
191
202
|
name: enju_message
|
192
|
-
requirement: &
|
203
|
+
requirement: &70366099095380 !ruby/object:Gem::Requirement
|
193
204
|
none: false
|
194
205
|
requirements:
|
195
|
-
- -
|
206
|
+
- - ~>
|
196
207
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0.0.
|
208
|
+
version: 0.0.10
|
198
209
|
type: :runtime
|
199
210
|
prerelease: false
|
200
|
-
version_requirements: *
|
211
|
+
version_requirements: *70366099095380
|
201
212
|
- !ruby/object:Gem::Dependency
|
202
213
|
name: sqlite3
|
203
|
-
requirement: &
|
214
|
+
requirement: &70366099047160 !ruby/object:Gem::Requirement
|
204
215
|
none: false
|
205
216
|
requirements:
|
206
217
|
- - ! '>='
|
@@ -208,10 +219,10 @@ dependencies:
|
|
208
219
|
version: '0'
|
209
220
|
type: :development
|
210
221
|
prerelease: false
|
211
|
-
version_requirements: *
|
222
|
+
version_requirements: *70366099047160
|
212
223
|
- !ruby/object:Gem::Dependency
|
213
224
|
name: rspec-rails
|
214
|
-
requirement: &
|
225
|
+
requirement: &70366099006120 !ruby/object:Gem::Requirement
|
215
226
|
none: false
|
216
227
|
requirements:
|
217
228
|
- - ! '>='
|
@@ -219,7 +230,29 @@ dependencies:
|
|
219
230
|
version: '0'
|
220
231
|
type: :development
|
221
232
|
prerelease: false
|
222
|
-
version_requirements: *
|
233
|
+
version_requirements: *70366099006120
|
234
|
+
- !ruby/object:Gem::Dependency
|
235
|
+
name: sunspot-rails-tester
|
236
|
+
requirement: &70366098978000 !ruby/object:Gem::Requirement
|
237
|
+
none: false
|
238
|
+
requirements:
|
239
|
+
- - ! '>='
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '0'
|
242
|
+
type: :development
|
243
|
+
prerelease: false
|
244
|
+
version_requirements: *70366098978000
|
245
|
+
- !ruby/object:Gem::Dependency
|
246
|
+
name: factory_girl_rails
|
247
|
+
requirement: &70366098939720 !ruby/object:Gem::Requirement
|
248
|
+
none: false
|
249
|
+
requirements:
|
250
|
+
- - ~>
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '1.7'
|
253
|
+
type: :development
|
254
|
+
prerelease: false
|
255
|
+
version_requirements: *70366098939720
|
223
256
|
description: Event management for Next-L Enju
|
224
257
|
email:
|
225
258
|
- tanabe@mwr.mediacom.keio.ac.jp
|
@@ -278,6 +311,7 @@ files:
|
|
278
311
|
- db/migrate/20090519203307_create_participates.rb
|
279
312
|
- db/migrate/20100925074639_create_event_import_results.rb
|
280
313
|
- lib/enju_event/engine.rb
|
314
|
+
- lib/enju_event/import_file.rb
|
281
315
|
- lib/enju_event/version.rb
|
282
316
|
- lib/enju_event.rb
|
283
317
|
- lib/tasks/enju_event_tasks.rake
|
@@ -287,6 +321,7 @@ files:
|
|
287
321
|
- spec/controllers/event_categories_controller_spec.rb
|
288
322
|
- spec/controllers/event_import_files_controller_spec.rb
|
289
323
|
- spec/controllers/events_controller_spec.rb
|
324
|
+
- spec/controllers/participates_controller_spec.rb
|
290
325
|
- spec/dummy/app/assets/javascripts/application.js
|
291
326
|
- spec/dummy/app/assets/stylesheets/application.css
|
292
327
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -386,6 +421,7 @@ files:
|
|
386
421
|
- spec/fixtures/languages.yml
|
387
422
|
- spec/fixtures/libraries.yml
|
388
423
|
- spec/fixtures/library_groups.yml
|
424
|
+
- spec/fixtures/participates.yml
|
389
425
|
- spec/fixtures/patron_types.yml
|
390
426
|
- spec/fixtures/patrons.yml
|
391
427
|
- spec/fixtures/roles.yml
|
@@ -397,6 +433,7 @@ files:
|
|
397
433
|
- spec/models/event_import_file_spec.rb
|
398
434
|
- spec/models/event_import_result_spec.rb
|
399
435
|
- spec/models/event_spec.rb
|
436
|
+
- spec/models/participate_spec.rb
|
400
437
|
- spec/spec_helper.rb
|
401
438
|
- spec/support/controller_macros.rb
|
402
439
|
- spec/support/devise.rb
|
@@ -428,6 +465,7 @@ test_files:
|
|
428
465
|
- spec/controllers/event_categories_controller_spec.rb
|
429
466
|
- spec/controllers/event_import_files_controller_spec.rb
|
430
467
|
- spec/controllers/events_controller_spec.rb
|
468
|
+
- spec/controllers/participates_controller_spec.rb
|
431
469
|
- spec/dummy/app/assets/javascripts/application.js
|
432
470
|
- spec/dummy/app/assets/stylesheets/application.css
|
433
471
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -527,6 +565,7 @@ test_files:
|
|
527
565
|
- spec/fixtures/languages.yml
|
528
566
|
- spec/fixtures/libraries.yml
|
529
567
|
- spec/fixtures/library_groups.yml
|
568
|
+
- spec/fixtures/participates.yml
|
530
569
|
- spec/fixtures/patron_types.yml
|
531
570
|
- spec/fixtures/patrons.yml
|
532
571
|
- spec/fixtures/roles.yml
|
@@ -538,6 +577,7 @@ test_files:
|
|
538
577
|
- spec/models/event_import_file_spec.rb
|
539
578
|
- spec/models/event_import_result_spec.rb
|
540
579
|
- spec/models/event_spec.rb
|
580
|
+
- spec/models/participate_spec.rb
|
541
581
|
- spec/spec_helper.rb
|
542
582
|
- spec/support/controller_macros.rb
|
543
583
|
- spec/support/devise.rb
|