enju_circulation 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ <%- if @user.checkout_icalendar_token? -%>
2
+ <%= checkouts_url(:icalendar_token => @user.checkout_icalendar_token, :format => :ics) -%>
3
+ <%= hidden_field_tag 'user[checkout_icalendar_token]', @user.checkout_icalendar_token -%>
4
+ <%- end -%>
5
+ <br />
6
+ <%- if @user.checkout_icalendar_token? -%>
7
+ <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_my_account_path(@user, :disable => true, :mode => 'feed_token') %>'});" type="button" value="<%= t('page.delete') %>" />
8
+ <br />
9
+ <%= t('user.you_have_to_save_profile_to_activate_feed_url') -%>
10
+ <%- else -%>
11
+ <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_my_account_path(@user, :mode => 'feed_token') %>'});" type="button" value="<%= t('page.reset') %>" />
12
+ <br />
13
+ <%= t('user.you_have_to_save_profile_to_deactivate_feed_url') -%>
14
+ <%- end -%>
@@ -0,0 +1,14 @@
1
+ <%- if @user.checkout_icalendar_token? -%>
2
+ <%= checkouts_url(:icalendar_token => @user.checkout_icalendar_token, :format => :ics) -%>
3
+ <%= hidden_field_tag 'user[checkout_icalendar_token]', @user.checkout_icalendar_token -%>
4
+ <%- end -%>
5
+ <br />
6
+ <%- if @user.checkout_icalendar_token? -%>
7
+ <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_user_path(@user, :disable => true, :mode => 'feed_token') %>'});" type="button" value="<%= t('page.delete') %>" />
8
+ <br />
9
+ <%= t('user.you_have_to_save_profile_to_activate_feed_url') -%>
10
+ <%- else -%>
11
+ <input onclick="$.ajax({data:'authenticity_token=' + encodeURIComponent('<%= form_authenticity_token %>'), success:function(request){$('#feed_token').html(request);}, type:'get', url:'<%= edit_user_path(@user, :mode => 'feed_token') %>'});" type="button" value="<%= t('page.reset') %>" />
12
+ <br />
13
+ <%= t('user.you_have_to_save_profile_to_deactivate_feed_url') -%>
14
+ <%- end -%>
@@ -1,5 +1,6 @@
1
1
  class AddCheckoutIcalendarTokenToUser < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :users, :checkout_icalendar_token, :string
4
+ add_index :users, :checkout_icalendar_token, :unique => true
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -0,0 +1,447 @@
1
+ require 'spec_helper'
2
+ require 'sunspot/rails/spec_helper'
3
+
4
+ describe UseRestrictionsController do
5
+ fixtures :all
6
+ disconnect_sunspot
7
+
8
+ def valid_attributes
9
+ FactoryGirl.attributes_for(:use_restriction)
10
+ end
11
+
12
+ describe "GET index" do
13
+ before(:each) do
14
+ FactoryGirl.create(:use_restriction)
15
+ end
16
+
17
+ describe "When logged in as Administrator" do
18
+ login_admin
19
+
20
+ it "assigns all use_restrictions as @use_restrictions" do
21
+ get :index
22
+ assigns(:use_restrictions).should eq(UseRestriction.all)
23
+ end
24
+ end
25
+
26
+ describe "When logged in as Librarian" do
27
+ login_librarian
28
+
29
+ it "assigns all use_restrictions as @use_restrictions" do
30
+ get :index
31
+ assigns(:use_restrictions).should eq(UseRestriction.all)
32
+ end
33
+ end
34
+
35
+ describe "When logged in as User" do
36
+ login_user
37
+
38
+ it "should be forbidden" do
39
+ get :index
40
+ assigns(:use_restrictions).should be_empty
41
+ response.should be_forbidden
42
+ end
43
+ end
44
+
45
+ describe "When not logged in" do
46
+ it "assigns all use_restrictions as @use_restrictions" do
47
+ get :index
48
+ assigns(:use_restrictions).should be_empty
49
+ response.should redirect_to(new_user_session_url)
50
+ end
51
+ end
52
+ end
53
+
54
+ describe "GET show" do
55
+ describe "When logged in as Administrator" do
56
+ login_admin
57
+
58
+ it "assigns the requested use_restriction as @use_restriction" do
59
+ use_restriction = FactoryGirl.create(:use_restriction)
60
+ get :show, :id => use_restriction.id
61
+ assigns(:use_restriction).should eq(use_restriction)
62
+ end
63
+ end
64
+
65
+ describe "When logged in as Librarian" do
66
+ login_librarian
67
+
68
+ it "assigns the requested use_restriction as @use_restriction" do
69
+ use_restriction = FactoryGirl.create(:use_restriction)
70
+ get :show, :id => use_restriction.id
71
+ assigns(:use_restriction).should eq(use_restriction)
72
+ end
73
+ end
74
+
75
+ describe "When logged in as User" do
76
+ login_user
77
+
78
+ it "assigns the requested use_restriction as @use_restriction" do
79
+ use_restriction = FactoryGirl.create(:use_restriction)
80
+ get :show, :id => use_restriction.id
81
+ assigns(:use_restriction).should eq(use_restriction)
82
+ end
83
+ end
84
+
85
+ describe "When not logged in" do
86
+ it "assigns the requested use_restriction as @use_restriction" do
87
+ use_restriction = FactoryGirl.create(:use_restriction)
88
+ get :show, :id => use_restriction.id
89
+ assigns(:use_restriction).should eq(use_restriction)
90
+ end
91
+ end
92
+ end
93
+
94
+ describe "GET new" do
95
+ describe "When logged in as Administrator" do
96
+ login_admin
97
+
98
+ it "should be forbidden" do
99
+ get :new
100
+ assigns(:use_restriction).should_not be_valid
101
+ response.should be_forbidden
102
+ end
103
+ end
104
+
105
+ describe "When logged in as Librarian" do
106
+ login_librarian
107
+
108
+ it "should be forbidden" do
109
+ get :new
110
+ assigns(:use_restriction).should_not be_valid
111
+ response.should be_forbidden
112
+ end
113
+ end
114
+
115
+ describe "When logged in as User" do
116
+ login_user
117
+
118
+ it "should be forbidden" do
119
+ get :new
120
+ assigns(:use_restriction).should_not be_valid
121
+ response.should be_forbidden
122
+ end
123
+ end
124
+
125
+ describe "When not logged in" do
126
+ it "should be redirected" do
127
+ get :new
128
+ assigns(:use_restriction).should_not be_valid
129
+ response.should redirect_to(new_user_session_url)
130
+ end
131
+ end
132
+ end
133
+
134
+ describe "GET edit" do
135
+ describe "When logged in as Administrator" do
136
+ login_admin
137
+
138
+ it "assigns the requested use_restriction as @use_restriction" do
139
+ use_restriction = FactoryGirl.create(:use_restriction)
140
+ get :edit, :id => use_restriction.id
141
+ assigns(:use_restriction).should eq(use_restriction)
142
+ end
143
+ end
144
+
145
+ describe "When logged in as Librarian" do
146
+ login_librarian
147
+
148
+ it "assigns the requested use_restriction as @use_restriction" do
149
+ use_restriction = FactoryGirl.create(:use_restriction)
150
+ get :edit, :id => use_restriction.id
151
+ response.should be_forbidden
152
+ end
153
+ end
154
+
155
+ describe "When logged in as User" do
156
+ login_user
157
+
158
+ it "assigns the requested use_restriction as @use_restriction" do
159
+ use_restriction = FactoryGirl.create(:use_restriction)
160
+ get :edit, :id => use_restriction.id
161
+ response.should be_forbidden
162
+ end
163
+ end
164
+
165
+ describe "When not logged in" do
166
+ it "should not assign the requested use_restriction as @use_restriction" do
167
+ use_restriction = FactoryGirl.create(:use_restriction)
168
+ get :edit, :id => use_restriction.id
169
+ response.should redirect_to(new_user_session_url)
170
+ end
171
+ end
172
+ end
173
+
174
+ describe "POST create" do
175
+ before(:each) do
176
+ @attrs = valid_attributes
177
+ @invalid_attrs = {:name => ''}
178
+ end
179
+
180
+ describe "When logged in as Administrator" do
181
+ login_admin
182
+
183
+ describe "with valid params" do
184
+ it "assigns a newly created use_restriction as @use_restriction" do
185
+ post :create, :use_restriction => @attrs
186
+ assigns(:use_restriction).should_not be_valid
187
+ end
188
+
189
+ it "redirects to the created patron" do
190
+ post :create, :use_restriction => @attrs
191
+ response.should be_forbidden
192
+ end
193
+ end
194
+
195
+ describe "with invalid params" do
196
+ it "assigns a newly created but unsaved use_restriction as @use_restriction" do
197
+ post :create, :use_restriction => @invalid_attrs
198
+ assigns(:use_restriction).should_not be_valid
199
+ end
200
+
201
+ it "should be successful" do
202
+ post :create, :use_restriction => @invalid_attrs
203
+ response.should be_forbidden
204
+ end
205
+ end
206
+ end
207
+
208
+ describe "When logged in as Librarian" do
209
+ login_librarian
210
+
211
+ describe "with valid params" do
212
+ it "assigns a newly created use_restriction as @use_restriction" do
213
+ post :create, :use_restriction => @attrs
214
+ assigns(:use_restriction).should_not be_valid
215
+ end
216
+
217
+ it "should be forbidden" do
218
+ post :create, :use_restriction => @attrs
219
+ response.should be_forbidden
220
+ end
221
+ end
222
+
223
+ describe "with invalid params" do
224
+ it "assigns a newly created but unsaved use_restriction as @use_restriction" do
225
+ post :create, :use_restriction => @invalid_attrs
226
+ assigns(:use_restriction).should_not be_valid
227
+ end
228
+
229
+ it "should be forbidden" do
230
+ post :create, :use_restriction => @invalid_attrs
231
+ response.should be_forbidden
232
+ end
233
+ end
234
+ end
235
+
236
+ describe "When logged in as User" do
237
+ login_user
238
+
239
+ describe "with valid params" do
240
+ it "assigns a newly created use_restriction as @use_restriction" do
241
+ post :create, :use_restriction => @attrs
242
+ assigns(:use_restriction).should_not be_valid
243
+ end
244
+
245
+ it "should be forbidden" do
246
+ post :create, :use_restriction => @attrs
247
+ response.should be_forbidden
248
+ end
249
+ end
250
+
251
+ describe "with invalid params" do
252
+ it "assigns a newly created but unsaved use_restriction as @use_restriction" do
253
+ post :create, :use_restriction => @invalid_attrs
254
+ assigns(:use_restriction).should_not be_valid
255
+ end
256
+
257
+ it "should be forbidden" do
258
+ post :create, :use_restriction => @invalid_attrs
259
+ response.should be_forbidden
260
+ end
261
+ end
262
+ end
263
+
264
+ describe "When not logged in" do
265
+ describe "with valid params" do
266
+ it "assigns a newly created use_restriction as @use_restriction" do
267
+ post :create, :use_restriction => @attrs
268
+ assigns(:use_restriction).should_not be_valid
269
+ end
270
+
271
+ it "should be forbidden" do
272
+ post :create, :use_restriction => @attrs
273
+ response.should redirect_to(new_user_session_url)
274
+ end
275
+ end
276
+
277
+ describe "with invalid params" do
278
+ it "assigns a newly created but unsaved use_restriction as @use_restriction" do
279
+ post :create, :use_restriction => @invalid_attrs
280
+ assigns(:use_restriction).should_not be_valid
281
+ end
282
+
283
+ it "should be forbidden" do
284
+ post :create, :use_restriction => @invalid_attrs
285
+ response.should redirect_to(new_user_session_url)
286
+ end
287
+ end
288
+ end
289
+ end
290
+
291
+ describe "PUT update" do
292
+ before(:each) do
293
+ @use_restriction = FactoryGirl.create(:use_restriction)
294
+ @attrs = valid_attributes
295
+ @invalid_attrs = {:display_name => ''}
296
+ end
297
+
298
+ describe "When logged in as Administrator" do
299
+ login_admin
300
+
301
+ describe "with valid params" do
302
+ it "updates the requested use_restriction" do
303
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
304
+ end
305
+
306
+ it "assigns the requested use_restriction as @use_restriction" do
307
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
308
+ assigns(:use_restriction).should eq(@use_restriction)
309
+ end
310
+
311
+ it "moves its position when specified" do
312
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs, :move => 'lower'
313
+ response.should redirect_to(use_restrictions_url)
314
+ end
315
+ end
316
+
317
+ describe "with invalid params" do
318
+ it "assigns the requested use_restriction as @use_restriction" do
319
+ put :update, :id => @use_restriction.id, :use_restriction => @invalid_attrs
320
+ response.should render_template("edit")
321
+ end
322
+ end
323
+ end
324
+
325
+ describe "When logged in as Librarian" do
326
+ login_librarian
327
+
328
+ describe "with valid params" do
329
+ it "updates the requested use_restriction" do
330
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
331
+ end
332
+
333
+ it "assigns the requested use_restriction as @use_restriction" do
334
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
335
+ assigns(:use_restriction).should eq(@use_restriction)
336
+ response.should be_forbidden
337
+ end
338
+ end
339
+
340
+ describe "with invalid params" do
341
+ it "assigns the requested use_restriction as @use_restriction" do
342
+ put :update, :id => @use_restriction.id, :use_restriction => @invalid_attrs
343
+ response.should be_forbidden
344
+ end
345
+ end
346
+ end
347
+
348
+ describe "When logged in as User" do
349
+ login_user
350
+
351
+ describe "with valid params" do
352
+ it "updates the requested use_restriction" do
353
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
354
+ end
355
+
356
+ it "assigns the requested use_restriction as @use_restriction" do
357
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
358
+ assigns(:use_restriction).should eq(@use_restriction)
359
+ response.should be_forbidden
360
+ end
361
+ end
362
+
363
+ describe "with invalid params" do
364
+ it "assigns the requested use_restriction as @use_restriction" do
365
+ put :update, :id => @use_restriction.id, :use_restriction => @invalid_attrs
366
+ response.should be_forbidden
367
+ end
368
+ end
369
+ end
370
+
371
+ describe "When not logged in" do
372
+ describe "with valid params" do
373
+ it "updates the requested use_restriction" do
374
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
375
+ end
376
+
377
+ it "should be forbidden" do
378
+ put :update, :id => @use_restriction.id, :use_restriction => @attrs
379
+ response.should redirect_to(new_user_session_url)
380
+ end
381
+ end
382
+
383
+ describe "with invalid params" do
384
+ it "assigns the requested use_restriction as @use_restriction" do
385
+ put :update, :id => @use_restriction.id, :use_restriction => @invalid_attrs
386
+ response.should redirect_to(new_user_session_url)
387
+ end
388
+ end
389
+ end
390
+ end
391
+
392
+ describe "DELETE destroy" do
393
+ before(:each) do
394
+ @use_restriction = FactoryGirl.create(:use_restriction)
395
+ end
396
+
397
+ describe "When logged in as Administrator" do
398
+ login_admin
399
+
400
+ it "destroys the requested use_restriction" do
401
+ delete :destroy, :id => @use_restriction.id
402
+ end
403
+
404
+ it "redirects to the use_restrictions list" do
405
+ delete :destroy, :id => @use_restriction.id
406
+ response.should be_forbidden
407
+ end
408
+ end
409
+
410
+ describe "When logged in as Librarian" do
411
+ login_librarian
412
+
413
+ it "destroys the requested use_restriction" do
414
+ delete :destroy, :id => @use_restriction.id
415
+ end
416
+
417
+ it "should be forbidden" do
418
+ delete :destroy, :id => @use_restriction.id
419
+ response.should be_forbidden
420
+ end
421
+ end
422
+
423
+ describe "When logged in as User" do
424
+ login_user
425
+
426
+ it "destroys the requested use_restriction" do
427
+ delete :destroy, :id => @use_restriction.id
428
+ end
429
+
430
+ it "should be forbidden" do
431
+ delete :destroy, :id => @use_restriction.id
432
+ response.should be_forbidden
433
+ end
434
+ end
435
+
436
+ describe "When not logged in" do
437
+ it "destroys the requested use_restriction" do
438
+ delete :destroy, :id => @use_restriction.id
439
+ end
440
+
441
+ it "should be forbidden" do
442
+ delete :destroy, :id => @use_restriction.id
443
+ response.should redirect_to(new_user_session_url)
444
+ end
445
+ end
446
+ end
447
+ end
@@ -689,6 +689,7 @@ ActiveRecord::Schema.define(:version => 20120224094141) do
689
689
  t.string "checkout_icalendar_token"
690
690
  end
691
691
 
692
+ add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
692
693
  add_index "users", ["email"], :name => "index_users_on_email"
693
694
  add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
694
695
 
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_circulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
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-04-17 00:00:00.000000000 Z
12
+ date: 2012-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70116846510280 !ruby/object:Gem::Requirement
16
+ requirement: &70317028632920 !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: *70116846510280
24
+ version_requirements: *70317028632920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simple_form
27
- requirement: &70116846525980 !ruby/object:Gem::Requirement
27
+ requirement: &70317028632500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70116846525980
35
+ version_requirements: *70317028632500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devise
38
- requirement: &70116846525260 !ruby/object:Gem::Requirement
38
+ requirement: &70317028632040 !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: *70116846525260
46
+ version_requirements: *70317028632040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cancan
49
- requirement: &70116846524580 !ruby/object:Gem::Requirement
49
+ requirement: &70317028631620 !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: *70116846524580
57
+ version_requirements: *70317028631620
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: validates_timeliness
60
- requirement: &70116846523960 !ruby/object:Gem::Requirement
60
+ requirement: &70317028631200 !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: *70116846523960
68
+ version_requirements: *70317028631200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: attribute_normalizer
71
- requirement: &70116846523020 !ruby/object:Gem::Requirement
71
+ requirement: &70317028630700 !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: *70116846523020
79
+ version_requirements: *70317028630700
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: inherited_resources
82
- requirement: &70116846522200 !ruby/object:Gem::Requirement
82
+ requirement: &70317028646640 !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: *70116846522200
90
+ version_requirements: *70317028646640
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: state_machine
93
- requirement: &70116846519800 !ruby/object:Gem::Requirement
93
+ requirement: &70317028646180 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70116846519800
101
+ version_requirements: *70317028646180
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: friendly_id
104
- requirement: &70116846518980 !ruby/object:Gem::Requirement
104
+ requirement: &70317028645680 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '4.0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70116846518980
112
+ version_requirements: *70317028645680
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: sunspot_rails
115
- requirement: &70116846518480 !ruby/object:Gem::Requirement
115
+ requirement: &70317028645260 !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: *70116846518480
123
+ version_requirements: *70317028645260
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: sunspot_solr
126
- requirement: &70116846534100 !ruby/object:Gem::Requirement
126
+ requirement: &70317028644800 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70116846534100
134
+ version_requirements: *70317028644800
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: will_paginate
137
- requirement: &70116846533200 !ruby/object:Gem::Requirement
137
+ requirement: &70317028644300 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '3.0'
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *70116846533200
145
+ version_requirements: *70317028644300
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: acts_as_list
148
- requirement: &70116846532580 !ruby/object:Gem::Requirement
148
+ requirement: &70317028643800 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ~>
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 0.1.5
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *70116846532580
156
+ version_requirements: *70317028643800
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: enju_message
159
- requirement: &70116846532120 !ruby/object:Gem::Requirement
159
+ requirement: &70317028643340 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ~>
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 0.0.13
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *70116846532120
167
+ version_requirements: *70317028643340
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: enju_event
170
- requirement: &70116846531560 !ruby/object:Gem::Requirement
170
+ requirement: &70317028642880 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 0.0.12
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *70116846531560
178
+ version_requirements: *70317028642880
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: sqlite3
181
- requirement: &70116846531120 !ruby/object:Gem::Requirement
181
+ requirement: &70317028642500 !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: :development
188
188
  prerelease: false
189
- version_requirements: *70116846531120
189
+ version_requirements: *70317028642500
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: rspec-rails
192
- requirement: &70116846530480 !ruby/object:Gem::Requirement
192
+ requirement: &70317028642040 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: '0'
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *70116846530480
200
+ version_requirements: *70317028642040
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: factory_girl_rails
203
- requirement: &70116846529760 !ruby/object:Gem::Requirement
203
+ requirement: &70317028641540 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ~>
@@ -208,10 +208,10 @@ dependencies:
208
208
  version: '3.1'
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *70116846529760
211
+ version_requirements: *70317028641540
212
212
  - !ruby/object:Gem::Dependency
213
213
  name: sunspot-rails-tester
214
- requirement: &70116846528940 !ruby/object:Gem::Requirement
214
+ requirement: &70317028641120 !ruby/object:Gem::Requirement
215
215
  none: false
216
216
  requirements:
217
217
  - - ! '>='
@@ -219,7 +219,7 @@ dependencies:
219
219
  version: '0'
220
220
  type: :development
221
221
  prerelease: false
222
- version_requirements: *70116846528940
222
+ version_requirements: *70317028641120
223
223
  description: Circulation management for Next-L Enju
224
224
  email:
225
225
  - tanabe@mwr.mediacom.keio.ac.jp
@@ -344,6 +344,7 @@ files:
344
344
  - app/views/manifestation_reserve_stats/new.html.erb
345
345
  - app/views/manifestation_reserve_stats/show.csv.erb
346
346
  - app/views/manifestation_reserve_stats/show.html.erb
347
+ - app/views/my_accounts/_feed_token.html.erb
347
348
  - app/views/reserve_stat_has_manifestations/_form.html.erb
348
349
  - app/views/reserve_stat_has_manifestations/edit.html.erb
349
350
  - app/views/reserve_stat_has_manifestations/index.html.erb
@@ -386,6 +387,7 @@ files:
386
387
  - app/views/user_reserve_stats/new.html.erb
387
388
  - app/views/user_reserve_stats/show.csv.erb
388
389
  - app/views/user_reserve_stats/show.html.erb
390
+ - app/views/users/_feed_token.html.erb
389
391
  - config/locales/translation_en.yml
390
392
  - config/locales/translation_ja.yml
391
393
  - config/routes.rb
@@ -418,6 +420,7 @@ files:
418
420
  - db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb
419
421
  - db/migrate/20110621093332_remove_expire_date_from_reserve.rb
420
422
  - db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb
423
+ - db/migrate/20111217234412_add_save_checkout_history_to_user.rb
421
424
  - db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb
422
425
  - lib/enju_circulation/engine.rb
423
426
  - lib/enju_circulation/manifestation.rb
@@ -443,6 +446,7 @@ files:
443
446
  - spec/controllers/reserve_stat_has_manifestations_controller_spec.rb
444
447
  - spec/controllers/reserve_stat_has_users_controller_spec.rb
445
448
  - spec/controllers/reserves_controller_spec.rb
449
+ - spec/controllers/use_restrictions_controller_spec.rb
446
450
  - spec/controllers/user_checkout_stats_controller_spec.rb
447
451
  - spec/controllers/user_group_has_checkout_types_controller_spec.rb
448
452
  - spec/controllers/user_reserve_stats_controller_spec.rb
@@ -529,7 +533,6 @@ files:
529
533
  - spec/dummy/db/migrate/20111201155456_create_users.rb
530
534
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
531
535
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
532
- - spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
533
536
  - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
534
537
  - spec/dummy/db/migrate/20120224094141_create_delayed_jobs.rb
535
538
  - spec/dummy/db/schema.rb
@@ -673,6 +676,7 @@ test_files:
673
676
  - spec/controllers/reserve_stat_has_manifestations_controller_spec.rb
674
677
  - spec/controllers/reserve_stat_has_users_controller_spec.rb
675
678
  - spec/controllers/reserves_controller_spec.rb
679
+ - spec/controllers/use_restrictions_controller_spec.rb
676
680
  - spec/controllers/user_checkout_stats_controller_spec.rb
677
681
  - spec/controllers/user_group_has_checkout_types_controller_spec.rb
678
682
  - spec/controllers/user_reserve_stats_controller_spec.rb
@@ -759,7 +763,6 @@ test_files:
759
763
  - spec/dummy/db/migrate/20111201155456_create_users.rb
760
764
  - spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb
761
765
  - spec/dummy/db/migrate/20111201163718_create_user_has_roles.rb
762
- - spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb
763
766
  - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
764
767
  - spec/dummy/db/migrate/20120224094141_create_delayed_jobs.rb
765
768
  - spec/dummy/db/schema.rb