enju_event 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/app/models/event.rb CHANGED
@@ -47,7 +47,7 @@ class Event < ActiveRecord::Base
47
47
  end
48
48
 
49
49
  def set_all_day
50
- if self.all_day
50
+ if all_day
51
51
  self.start_at = self.start_at.beginning_of_day
52
52
  self.end_at = self.end_at.end_of_day
53
53
  end
@@ -36,7 +36,9 @@ class EventImportFile < ActiveRecord::Base
36
36
  when 'create'
37
37
  import
38
38
  when 'update'
39
+ modify
39
40
  when 'destroy'
41
+ remove
40
42
  else
41
43
  import
42
44
  end
@@ -48,43 +50,36 @@ class EventImportFile < ActiveRecord::Base
48
50
  record = 2
49
51
 
50
52
  rows = open_import_file
51
- field = rows.first
52
- if [field['name']].reject{|f| f.to_s.strip == ""}.empty?
53
- raise "You should specify a name in the first line"
54
- end
55
- if [field['start_at'], field['end_at']].reject{|field| field.to_s.strip == ""}.empty?
56
- raise "You should specify dates in the first line"
57
- end
58
- #rows.shift
53
+ check_field(rows.first)
54
+
59
55
  rows.each do |row|
60
56
  next if row['dummy'].to_s.strip.present?
61
57
  import_result = EventImportResult.create!(:event_import_file => self, :body => row.fields.join("\t"))
62
58
 
63
59
  event = Event.new
64
- event.name = row['name']
60
+ event.name = row['name'].to_s.strip
65
61
  event.note = row['note']
66
62
  event.start_at = row['start_at']
67
63
  event.end_at = row['end_at']
68
64
  category = row['category'].to_s.strip
69
- event.all_day = true
70
- library = Library.where(:name => row['library_short_name']).first
65
+ if row['all_day'].to_s.strip.downcase == 'false'
66
+ event.all_day = false
67
+ else
68
+ event.all_day = true
69
+ end
70
+ library = Library.where(:name => row['library']).first
71
71
  library = Library.web if library.blank?
72
72
  event.library = library
73
73
  event_category = EventCategory.where(:name => category).first || EventCategory.where(:name => 'unknown').first
74
74
  event.event_category = event_category
75
75
 
76
- begin
77
- if event.save!
78
- import_result.event = event
79
- num[:imported] += 1
80
- if record % 50 == 0
81
- Sunspot.commit
82
- GC.start
83
- end
76
+ if event.save!
77
+ import_result.event = event
78
+ num[:imported] += 1
79
+ if record % 50 == 0
80
+ Sunspot.commit
81
+ GC.start
84
82
  end
85
- rescue
86
- Rails.logger.info("event import failed: column #{record}")
87
- num[:failed] += 1
88
83
  end
89
84
  import_result.save!
90
85
  record += 1
@@ -94,6 +89,54 @@ class EventImportFile < ActiveRecord::Base
94
89
  rows.close
95
90
  sm_complete!
96
91
  return num
92
+ #rescue => e
93
+ # self.error_message = e
94
+ # sm_fail!
95
+ end
96
+
97
+ def modify
98
+ sm_start!
99
+ rows = open_import_file
100
+ check_field(rows.first)
101
+
102
+ rows.each do |row|
103
+ next if row['dummy'].to_s.strip.present?
104
+ event = Event.find(row['id'].to_s.strip)
105
+ event_category = EventCategory.where(:name => row['category'].to_s.strip).first
106
+ event.event_category = event_category if event_category
107
+ library = Library.where(:name => row['library'].to_s.strip).first
108
+ event.library = library if library
109
+ event.name = row['name'] if row['name'].to_s.strip.present?
110
+ event.start_at = row['start_at'] if row['start_at'].to_s.strip.present?
111
+ event.end_at = row['end_at'] if row['end_at'].to_s.strip.present?
112
+ event.note = row['end_at'] if row['note'].to_s.strip.present?
113
+ if row['all_day'].to_s.strip.downcase == 'false'
114
+ event.all_day = false
115
+ else
116
+ event.all_day = true
117
+ end
118
+ event.save!
119
+ end
120
+ sm_complete!
121
+ #rescue => e
122
+ # self.error_message = e
123
+ # sm_fail!
124
+ end
125
+
126
+ def remove
127
+ sm_start!
128
+ rows = open_import_file
129
+ rows.shift
130
+
131
+ rows.each do |row|
132
+ next if row['dummy'].to_s.strip.present?
133
+ event = Event.find(row['id'].to_s.strip)
134
+ event.destroy
135
+ end
136
+ sm_complete!
137
+ #rescue => e
138
+ # self.error_message = e
139
+ # sm_fail!
97
140
  end
98
141
 
99
142
  def self.import
@@ -133,6 +176,15 @@ class EventImportFile < ActiveRecord::Base
133
176
  file.close
134
177
  rows
135
178
  end
179
+
180
+ def check_field(field)
181
+ if [field['name']].reject{|f| f.to_s.strip == ""}.empty?
182
+ raise "You should specify a name in the first line"
183
+ end
184
+ if [field['start_at'], field['end_at']].reject{|field| field.to_s.strip == ""}.empty?
185
+ raise "You should specify dates in the first line"
186
+ end
187
+ end
136
188
  end
137
189
 
138
190
  # == Schema Information
@@ -10,7 +10,6 @@
10
10
  <%= f.file_field :event_import -%>
11
11
  </div>
12
12
 
13
- <!--
14
13
  <div class="field">
15
14
  <%= f.label :edit_mode -%><br />
16
15
  <%= f.radio_button :edit_mode, 'create', :checked => 'checked' %>
@@ -20,7 +19,6 @@
20
19
  <%= f.radio_button :edit_mode, 'destroy' %>
21
20
  <%= f.label :edit_mode, t('page.destroy'), :value => 'destroy' %>
22
21
  </div>
23
- -->
24
22
 
25
23
  <div class="actions">
26
24
  <%= f.submit %>
@@ -13,6 +13,7 @@ class CreateEventImportFiles < ActiveRecord::Migration
13
13
  t.integer :event_import_file_size
14
14
  t.datetime :event_import_updated_at
15
15
  t.string :edit_mode
16
+ t.string :event_import_fingerprint
16
17
 
17
18
  t.timestamps
18
19
  end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToEventImportFile < ActiveRecord::Migration
2
+ def change
3
+ add_column :event_import_files, :error_message, :text
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+
3
+ describe CalendarController do
4
+ fixtures :all
5
+
6
+ describe "GET index", :solr => true do
7
+ describe "When logged in as Administrator" do
8
+ login_admin
9
+
10
+ it "assigns all event_stripss as @event_stripss" do
11
+ get :index
12
+ assigns(:event_strips).should_not be_empty
13
+ end
14
+ end
15
+
16
+ describe "When not logged in" do
17
+ it "assigns all event_stripss as @event_stripss" do
18
+ get :index
19
+ assigns(:event_strips).should_not be_empty
20
+ end
21
+
22
+ it "should get index when a year and a month are set" do
23
+ get :index, :year => 2010, :month => 3
24
+ response.should be_success
25
+ assigns(:event_strips).should_not be_empty
26
+ end
27
+
28
+ it "should redirect to a new event if no event is present" do
29
+ get :show, :year => 2010, :month => 3, :day => 1
30
+ response.should redirect_to new_event_path(:date => '2010/03/01')
31
+ end
32
+
33
+ it "should redirect to an existing event" do
34
+ get :show, :year => 2008, :month => 1, :day => 13
35
+ response.should redirect_to events_path(:date => '2008/01/13')
36
+ end
37
+ end
38
+ end
39
+
40
+ describe "GET show" do
41
+ describe "When logged in as Administrator" do
42
+ login_admin
43
+
44
+ it "should redirect to a new event" do
45
+ get :show, :year => '2011', :month => '1', :day => '1'
46
+ response.should redirect_to(new_event_path(:date => '2011/01/01'))
47
+ end
48
+ end
49
+
50
+ describe "When not logged in" do
51
+ it "should redirect to a new event" do
52
+ get :show, :year => '2011', :month => '1', :day => '1'
53
+ response.should redirect_to(new_event_path(:date => '2011/01/01'))
54
+ end
55
+ end
56
+ end
57
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120413051535) do
14
+ ActiveRecord::Schema.define(:version => 20120413170734) do
15
15
 
16
16
  create_table "countries", :force => true do |t|
17
17
  t.string "name", :null => false
@@ -68,6 +68,7 @@ ActiveRecord::Schema.define(:version => 20120413051535) do
68
68
  t.datetime "created_at", :null => false
69
69
  t.datetime "updated_at", :null => false
70
70
  t.string "event_fingerprint"
71
+ t.text "error_message"
71
72
  end
72
73
 
73
74
  add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
Binary file
@@ -1,4 +1,4 @@
1
- "name" "category" "library_shortname" "start_at" "end_at" "dummy"
1
+ "name" "category" "library" "start_at" "end_at" "dummy"
2
2
  "イベント名" "カテゴリ。休館日の場合はclosed" "図書館名" "開始日" "終了日" "インポート省略"
3
3
  "hogehoge" "おはなし会" "kamata" "2009-04-01" "2009-04-03"
4
4
  "hogehoge" "hachioji"
@@ -1,3 +1,3 @@
1
- "name" "library_shortname" "start_at" "end_at"
1
+ "name" "library" "start_at" "end_at"
2
2
  "���{��̍Â���" "kamata" "2011-03-26" "2011-03-27"
3
3
  "���{��̍Â���2" "kamata" "2011-03-26" "2011-03-27"
@@ -0,0 +1,4 @@
1
+ id name category library start_at end_at all_day note dummy
2
+ 1 変更後のイベント名 kamata 2012-04-01 2012-04-02
3
+ 2 mita 2012-04-03 FALSE
4
+ 3 変更後のイベント名 この行は無視される
@@ -36,6 +36,35 @@ describe EventImportFile do
36
36
  Event.order('id DESC').first.end_at.to_s.should eq Time.zone.parse('2011-03-27').end_of_day.to_s
37
37
  end
38
38
  end
39
+
40
+ describe "when its mode is 'update'" do
41
+ it "should update events" do
42
+ @file = EventImportFile.create :event_import => File.new("#{Rails.root.to_s}/../../examples/event_update_file.tsv")
43
+ @file.modify
44
+ event1 = Event.find(1)
45
+ event1.name.should eq '変更後のイベント名'
46
+ event1.start_at.should eq Time.zone.parse('2012-04-01').beginning_of_day
47
+ event1.end_at.to_s.should eq Time.zone.parse('2012-04-02').end_of_day.to_s
48
+
49
+ event2 = Event.find(2)
50
+ event2.end_at.to_s.should eq Time.zone.parse('2012-04-03').beginning_of_day.to_s
51
+ event2.all_day.should be_false
52
+ event2.library.name.should eq 'mita'
53
+
54
+ event3 = Event.find(3)
55
+ event3.name.should eq 'ミーティング'
56
+ end
57
+ end
58
+
59
+
60
+ describe "when its mode is 'destroy'" do
61
+ it "should destroy events" do
62
+ old_event_count = Event.count
63
+ @file = EventImportFile.create :event_import => File.new("#{Rails.root.to_s}/../../examples/event_destroy_file.tsv")
64
+ @file.remove
65
+ Event.count.should eq old_event_count - 2
66
+ end
67
+ end
39
68
  end
40
69
 
41
70
  # == Schema Information
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70106175265680 !ruby/object:Gem::Requirement
16
+ requirement: &70284135878440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70106175265680
24
+ version_requirements: *70284135878440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: event-calendar
27
- requirement: &70106175265180 !ruby/object:Gem::Requirement
27
+ requirement: &70284135877640 !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: *70106175265180
35
+ version_requirements: *70284135877640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simple_form
38
- requirement: &70106175264640 !ruby/object:Gem::Requirement
38
+ requirement: &70284135877060 !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: *70106175264640
46
+ version_requirements: *70284135877060
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
- requirement: &70106175263980 !ruby/object:Gem::Requirement
49
+ requirement: &70284135876260 !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: *70106175263980
57
+ version_requirements: *70284135876260
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: cancan
60
- requirement: &70106175263160 !ruby/object:Gem::Requirement
60
+ requirement: &70284135875740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70106175263160
68
+ version_requirements: *70284135875740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: attribute_normalizer
71
- requirement: &70106175261560 !ruby/object:Gem::Requirement
71
+ requirement: &70284135875180 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '1.1'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70106175261560
79
+ version_requirements: *70284135875180
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: inherited_resources
82
- requirement: &70106175259360 !ruby/object:Gem::Requirement
82
+ requirement: &70284135874580 !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: *70106175259360
90
+ version_requirements: *70284135874580
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: friendly_id
93
- requirement: &70106175273900 !ruby/object:Gem::Requirement
93
+ requirement: &70284135889620 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '4.0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70106175273900
101
+ version_requirements: *70284135889620
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: sunspot_rails
104
- requirement: &70106175272960 !ruby/object:Gem::Requirement
104
+ requirement: &70284135888420 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70106175272960
112
+ version_requirements: *70284135888420
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: sunspot_solr
115
- requirement: &70106175272220 !ruby/object:Gem::Requirement
115
+ requirement: &70284135887420 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70106175272220
123
+ version_requirements: *70284135887420
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: will_paginate
126
- requirement: &70106175270960 !ruby/object:Gem::Requirement
126
+ requirement: &70284135886340 !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: *70106175270960
134
+ version_requirements: *70284135886340
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: has_scope
137
- requirement: &70106175270120 !ruby/object:Gem::Requirement
137
+ requirement: &70284135885280 !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: *70106175270120
145
+ version_requirements: *70284135885280
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: configatron
148
- requirement: &70106175268560 !ruby/object:Gem::Requirement
148
+ requirement: &70284135883680 !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: *70106175268560
156
+ version_requirements: *70284135883680
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: paperclip
159
- requirement: &70106175267420 !ruby/object:Gem::Requirement
159
+ requirement: &70284135898680 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ~>
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '3.0'
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *70106175267420
167
+ version_requirements: *70284135898680
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: state_machine
170
- requirement: &70106175283060 !ruby/object:Gem::Requirement
170
+ requirement: &70284135897580 !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: *70106175283060
178
+ version_requirements: *70284135897580
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: addressable
181
- requirement: &70106175282400 !ruby/object:Gem::Requirement
181
+ requirement: &70284135896540 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: '0'
187
187
  type: :runtime
188
188
  prerelease: false
189
- version_requirements: *70106175282400
189
+ version_requirements: *70284135896540
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: acts_as_list
192
- requirement: &70106175281560 !ruby/object:Gem::Requirement
192
+ requirement: &70284135895560 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ~>
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: 0.1.5
198
198
  type: :runtime
199
199
  prerelease: false
200
- version_requirements: *70106175281560
200
+ version_requirements: *70284135895560
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: enju_message
203
- requirement: &70106175280820 !ruby/object:Gem::Requirement
203
+ requirement: &70284135894700 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ~>
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: 0.0.13
209
209
  type: :runtime
210
210
  prerelease: false
211
- version_requirements: *70106175280820
211
+ version_requirements: *70284135894700
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: sqlite3
214
- requirement: &70106175280240 !ruby/object:Gem::Requirement
214
+ requirement: &70284135894040 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,10 +219,10 @@ dependencies:
219
219
  version: '0'
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *70106175280240
222
+ version_requirements: *70284135894040
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rspec-rails
225
- requirement: &70106175279520 !ruby/object:Gem::Requirement
225
+ requirement: &70284135893320 !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
228
228
  - - ! '>='
@@ -230,10 +230,10 @@ dependencies:
230
230
  version: '0'
231
231
  type: :development
232
232
  prerelease: false
233
- version_requirements: *70106175279520
233
+ version_requirements: *70284135893320
234
234
  - !ruby/object:Gem::Dependency
235
235
  name: sunspot-rails-tester
236
- requirement: &70106175278920 !ruby/object:Gem::Requirement
236
+ requirement: &70284135892680 !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
239
239
  - - ! '>='
@@ -241,10 +241,10 @@ dependencies:
241
241
  version: '0'
242
242
  type: :development
243
243
  prerelease: false
244
- version_requirements: *70106175278920
244
+ version_requirements: *70284135892680
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: factory_girl_rails
247
- requirement: &70106175277900 !ruby/object:Gem::Requirement
247
+ requirement: &70284135891880 !ruby/object:Gem::Requirement
248
248
  none: false
249
249
  requirements:
250
250
  - - ~>
@@ -252,7 +252,7 @@ dependencies:
252
252
  version: '3.0'
253
253
  type: :development
254
254
  prerelease: false
255
- version_requirements: *70106175277900
255
+ version_requirements: *70284135891880
256
256
  description: Event management for Next-L Enju
257
257
  email:
258
258
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -311,6 +311,7 @@ files:
311
311
  - db/migrate/20090519203307_create_participates.rb
312
312
  - db/migrate/20100925074639_create_event_import_results.rb
313
313
  - db/migrate/20120413051535_add_event_fingerprint_to_event_import_file.rb
314
+ - db/migrate/20120413170734_add_error_message_to_event_import_file.rb
314
315
  - lib/enju_event/engine.rb
315
316
  - lib/enju_event/import_file.rb
316
317
  - lib/enju_event/version.rb
@@ -319,6 +320,7 @@ files:
319
320
  - MIT-LICENSE
320
321
  - Rakefile
321
322
  - README.rdoc
323
+ - spec/controllers/calendar_controller_spec.rb
322
324
  - spec/controllers/event_categories_controller_spec.rb
323
325
  - spec/controllers/event_import_files_controller_spec.rb
324
326
  - spec/controllers/events_controller_spec.rb
@@ -393,8 +395,10 @@ files:
393
395
  - spec/dummy/lib/enju_leaf.rb
394
396
  - spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv
395
397
  - spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv
398
+ - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv
396
399
  - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv
397
400
  - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv
401
+ - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_update_file.tsv
398
402
  - spec/dummy/private/system/event_imports/4/original/event_import_file_sample1.tsv
399
403
  - spec/dummy/private/system/event_imports/4/original/event_import_file_sample2.tsv
400
404
  - spec/dummy/public/404.html
@@ -473,6 +477,7 @@ signing_key:
473
477
  specification_version: 3
474
478
  summary: enju_event plugin
475
479
  test_files:
480
+ - spec/controllers/calendar_controller_spec.rb
476
481
  - spec/controllers/event_categories_controller_spec.rb
477
482
  - spec/controllers/event_import_files_controller_spec.rb
478
483
  - spec/controllers/events_controller_spec.rb
@@ -547,8 +552,10 @@ test_files:
547
552
  - spec/dummy/lib/enju_leaf.rb
548
553
  - spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample1.tsv
549
554
  - spec/dummy/private/system/event_import_files/event_imports/000/000/001/original/event_import_file_sample2.tsv
555
+ - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_destroy_file.tsv
550
556
  - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample1.tsv
551
557
  - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_import_file_sample2.tsv
558
+ - spec/dummy/private/system/event_import_files/event_imports/000/000/004/original/event_update_file.tsv
552
559
  - spec/dummy/private/system/event_imports/4/original/event_import_file_sample1.tsv
553
560
  - spec/dummy/private/system/event_imports/4/original/event_import_file_sample2.tsv
554
561
  - spec/dummy/public/404.html