enju_library 0.1.0.pre38 → 0.1.0.pre39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -1
  3. data/app/controllers/shelves_controller.rb +1 -1
  4. data/app/models/accept.rb +2 -9
  5. data/app/models/basket.rb +2 -23
  6. data/lib/enju_library/version.rb +1 -1
  7. data/spec/controllers/shelves_controller_spec.rb +2 -2
  8. data/spec/dummy/config/database.yml +23 -18
  9. data/spec/dummy/db/migrate/035_create_reserves.rb +0 -1
  10. data/spec/dummy/db/migrate/113_create_events.rb +2 -2
  11. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  12. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  13. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  14. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
  15. data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +5 -1
  16. data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +5 -1
  17. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  18. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  19. data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +5 -1
  20. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  21. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  22. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  23. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  24. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  25. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  26. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  27. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  28. data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +11 -0
  29. data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +18 -0
  30. data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +5 -0
  31. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  32. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  33. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  34. data/spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb +6 -0
  35. data/spec/dummy/db/schema.rb +662 -621
  36. data/spec/fixtures/checked_items.yml +4 -4
  37. data/spec/fixtures/checkouts.yml +12 -12
  38. data/spec/fixtures/manifestations.yml +114 -114
  39. data/spec/fixtures/reserves.yml +17 -33
  40. data/spec/fixtures/users.yml +1 -1
  41. data/spec/spec_helper.rb +2 -0
  42. metadata +50 -6
  43. data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +0 -5
@@ -3,22 +3,22 @@ checked_item_00001:
3
3
  id: 1
4
4
  item_id: 10
5
5
  basket_id: 1
6
- due_date: <%= 1.week.from_now %>
6
+ due_date: <%= 1.week.from_now.to_s(:db) %>
7
7
  checked_item_00002:
8
8
  id: 2
9
9
  item_id: 6
10
10
  basket_id: 2
11
- due_date: <%= 1.week.from_now %>
11
+ due_date: <%= 1.week.from_now.to_s(:db) %>
12
12
  checked_item_00003:
13
13
  id: 3
14
14
  item_id: 6
15
15
  basket_id: 9
16
- due_date: <%= 1.week.from_now %>
16
+ due_date: <%= 1.week.from_now.to_s(:db) %>
17
17
  checked_item_00004:
18
18
  id: 4
19
19
  item_id: 12
20
20
  basket_id: 8
21
- due_date: <%= 1.week.from_now %>
21
+ due_date: <%= 1.week.from_now.to_s(:db) %>
22
22
 
23
23
  # == Schema Information
24
24
  #
@@ -7,7 +7,7 @@ checkout_00001:
7
7
  id: 1
8
8
  librarian_id: 1
9
9
  checkout_renewal_count: 0
10
- due_date: <%= 2.day.from_now.beginning_of_day %>
10
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
11
11
  created_at: 2007-09-08 01:19:02.285850 +09:00
12
12
  basket_id: 1
13
13
  checkout_00002:
@@ -18,7 +18,7 @@ checkout_00002:
18
18
  id: 2
19
19
  librarian_id: 1
20
20
  checkout_renewal_count: 0
21
- due_date: <%= 2.day.from_now.beginning_of_day %>
21
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
22
22
  created_at: 2007-09-08 01:34:07.363023 +09:00
23
23
  basket_id: 1
24
24
  checkout_00003:
@@ -29,7 +29,7 @@ checkout_00003:
29
29
  id: 3
30
30
  librarian_id: 1
31
31
  checkout_renewal_count: 0
32
- due_date: <%= 2.day.from_now.beginning_of_day %>
32
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
33
33
  created_at: 2007-09-08 01:39:03.210081 +09:00
34
34
  basket_id: 2
35
35
  checkout_00004:
@@ -40,7 +40,7 @@ checkout_00004:
40
40
  id: 4
41
41
  librarian_id: 1
42
42
  checkout_renewal_count: 0
43
- due_date: <%= 2.day.from_now.beginning_of_day %>
43
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
44
44
  created_at: 2007-09-08 01:39:04.210081 +09:00
45
45
  basket_id: 3
46
46
  checkout_00005:
@@ -51,7 +51,7 @@ checkout_00005:
51
51
  id: 5
52
52
  librarian_id: 1
53
53
  checkout_renewal_count: 0
54
- due_date: <%= 2.day.from_now.beginning_of_day %>
54
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
55
55
  created_at: 2007-09-08 01:39:05.210081 +09:00
56
56
  basket_id: 4
57
57
  checkout_00006:
@@ -72,7 +72,7 @@ checkout_00007:
72
72
  id: 7
73
73
  librarian_id: 1
74
74
  checkout_renewal_count: 0
75
- due_date: <%= 2.day.from_now.beginning_of_day %>
75
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
76
76
  created_at: 2007-09-08 01:39:07.210081 +09:00
77
77
  basket_id: 5
78
78
  checkout_00008:
@@ -83,7 +83,7 @@ checkout_00008:
83
83
  id: 8
84
84
  librarian_id: 1
85
85
  checkout_renewal_count: 0
86
- due_date: <%= 2.day.from_now.beginning_of_day %>
86
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
87
87
  created_at: 2007-09-08 01:39:08.210081 +09:00
88
88
  basket_id: 6
89
89
  checkout_00009:
@@ -94,7 +94,7 @@ checkout_00009:
94
94
  id: 9
95
95
  librarian_id: 1
96
96
  checkout_renewal_count: 1
97
- due_date: <%= 2.day.from_now.beginning_of_day %>
97
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
98
98
  created_at: 2007-09-08 01:39:09.210081 +09:00
99
99
  basket_id: 7
100
100
  checkout_00010:
@@ -105,7 +105,7 @@ checkout_00010:
105
105
  id: 10
106
106
  librarian_id: 1
107
107
  checkout_renewal_count: 1
108
- due_date: <%= 2.day.from_now.beginning_of_day %>
108
+ due_date: <%= 2.day.from_now.beginning_of_day.to_s(:db) %>
109
109
  created_at: 2007-09-08 01:39:10.210081 +09:00
110
110
  basket_id: 7
111
111
  checkout_00011:
@@ -116,7 +116,7 @@ checkout_00011:
116
116
  id: 11
117
117
  librarian_id: 1
118
118
  checkout_renewal_count: 1
119
- due_date: <%= 180.days.ago.beginning_of_day %>
119
+ due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
120
120
  created_at: 2007-09-08 01:39:11.210081 +09:00
121
121
  basket_id: 7
122
122
  checkout_00012:
@@ -127,7 +127,7 @@ checkout_00012:
127
127
  id: 12
128
128
  librarian_id: 1
129
129
  checkout_renewal_count: 1
130
- due_date: <%= 180.days.ago.beginning_of_day %>
130
+ due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
131
131
  created_at: 2007-09-08 01:39:12.210081 +09:00
132
132
  basket_id: 8
133
133
  checkin_id: 5
@@ -139,7 +139,7 @@ checkout_00013:
139
139
  id: 13
140
140
  librarian_id: 1
141
141
  checkout_renewal_count: 1
142
- due_date: <%= 180.days.ago.beginning_of_day %>
142
+ due_date: <%= 180.days.ago.beginning_of_day.to_s(:db) %>
143
143
  created_at: 2007-09-08 01:39:13.210081 +09:00
144
144
  basket_id: 8
145
145
  checkin_id: 4