enju_library 0.4.0.beta.1 → 0.4.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/baskets_controller.rb +37 -12
  3. data/app/views/withdraws/index.html.erb +3 -1
  4. data/app/views/withdraws/new.html.erb +3 -1
  5. data/lib/enju_library/version.rb +1 -1
  6. data/lib/generators/enju_library/setup/templates/db/fixtures/budget_types.yml +1 -1
  7. data/spec/controllers/accepts_controller_spec.rb +0 -8
  8. data/spec/controllers/baskets_controller_spec.rb +6 -7
  9. data/spec/dummy/app/models/user.rb +0 -7
  10. data/spec/dummy/config/application.rb +1 -2
  11. data/spec/dummy/db/schema.rb +1 -1
  12. data/spec/fixtures/budget_types.yml +2 -2
  13. data/spec/models/accept_spec.rb +0 -2
  14. data/spec/models/user_import_file_spec.rb +2 -19
  15. data/spec/models/withdraw_spec.rb +0 -8
  16. metadata +5 -59
  17. data/spec/factories/checkout.rb +0 -11
  18. data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -31
  19. data/spec/fixtures/checked_items.yml +0 -35
  20. data/spec/fixtures/checkins.yml +0 -48
  21. data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -24
  22. data/spec/fixtures/checkout_stat_has_users.yml +0 -24
  23. data/spec/fixtures/checkout_types.yml +0 -34
  24. data/spec/fixtures/checkouts.yml +0 -162
  25. data/spec/fixtures/classification_types.yml +0 -63
  26. data/spec/fixtures/manifestation_checkout_stats.yml +0 -29
  27. data/spec/fixtures/manifestation_reserve_stats.yml +0 -29
  28. data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -24
  29. data/spec/fixtures/reserve_stat_has_users.yml +0 -24
  30. data/spec/fixtures/reserve_transitions.yml +0 -104
  31. data/spec/fixtures/reserves.yml +0 -143
  32. data/spec/fixtures/subject_heading_types.yml +0 -39
  33. data/spec/fixtures/subject_types.yml +0 -28
  34. data/spec/fixtures/user_checkout_stats.yml +0 -28
  35. data/spec/fixtures/user_group_has_checkout_types.yml +0 -111
  36. data/spec/fixtures/user_reserve_stats.yml +0 -28
@@ -1,29 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- id: 1
5
- start_date: 2008-12-17 04:07:24
6
- end_date: 2008-12-18 04:07:24
7
- note: MyText
8
-
9
- two:
10
- id: 2
11
- start_date: 2008-12-17 04:07:24
12
- end_date: 2008-12-18 04:07:24
13
- note: MyText
14
-
15
- # == Schema Information
16
- #
17
- # Table name: manifestation_reserve_stats
18
- #
19
- # id :integer not null, primary key
20
- # start_date :datetime
21
- # end_date :datetime
22
- # note :text
23
- # state :string(255)
24
- # created_at :datetime
25
- # updated_at :datetime
26
- # started_at :datetime
27
- # completed_at :datetime
28
- #
29
-
@@ -1,24 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- manifestation_reserve_stat_id: 1
5
- manifestation_id: 1
6
- reserves_count: 1
7
-
8
- two:
9
- manifestation_reserve_stat_id: 2
10
- manifestation_id: 1
11
- reserves_count: 1
12
-
13
- # == Schema Information
14
- #
15
- # Table name: reserve_stat_has_manifestations
16
- #
17
- # id :integer not null, primary key
18
- # manifestation_reserve_stat_id :integer not null
19
- # manifestation_id :integer not null
20
- # reserves_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
23
- #
24
-
@@ -1,24 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- user_reserve_stat_id: 1
5
- user_id: 1
6
- reserves_count: 1
7
-
8
- two:
9
- user_reserve_stat_id: 1
10
- user_id: 2
11
- reserves_count: 1
12
-
13
- # == Schema Information
14
- #
15
- # Table name: reserve_stat_has_users
16
- #
17
- # id :integer not null, primary key
18
- # user_reserve_stat_id :integer not null
19
- # user_id :integer not null
20
- # reserves_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
23
- #
24
-
@@ -1,104 +0,0 @@
1
- reserve_transition_00001:
2
- id: 1
3
- to_state: requested
4
- reserve_id: 1
5
- sort_key: 0
6
- most_recent: true
7
- reserve_transition_00002:
8
- id: 2
9
- to_state: requested
10
- reserve_id: 2
11
- sort_key: 0
12
- most_recent: true
13
- reserve_transition_00003:
14
- id: 3
15
- to_state: requested
16
- reserve_id: 3
17
- sort_key: 0
18
- most_recent: true
19
- reserve_transition_00004:
20
- id: 4
21
- to_state: requested
22
- reserve_id: 4
23
- sort_key: 0
24
- most_recent: true
25
- reserve_transition_00005:
26
- id: 5
27
- to_state: requested
28
- reserve_id: 5
29
- sort_key: 0
30
- most_recent: true
31
- reserve_transition_00006:
32
- id: 6
33
- to_state: requested
34
- reserve_id: 6
35
- sort_key: 0
36
- most_recent: true
37
- reserve_transition_00007:
38
- id: 7
39
- to_state: requested
40
- reserve_id: 7
41
- sort_key: 0
42
- most_recent: true
43
- reserve_transition_00008:
44
- id: 8
45
- to_state: expired
46
- reserve_id: 8
47
- sort_key: 0
48
- most_recent: true
49
- reserve_transition_00009:
50
- id: 9
51
- to_state: requested
52
- reserve_id: 9
53
- sort_key: 0
54
- most_recent: true
55
- reserve_transition_00010:
56
- id: 10
57
- to_state: completed
58
- reserve_id: 10
59
- sort_key: 0
60
- most_recent: true
61
- reserve_transition_00011:
62
- id: 11
63
- to_state: expired
64
- reserve_id: 11
65
- sort_key: 0
66
- most_recent: true
67
- reserve_transition_00012:
68
- id: 12
69
- to_state: retained
70
- reserve_id: 12
71
- sort_key: 0
72
- most_recent: true
73
- reserve_transition_00013:
74
- id: 13
75
- to_state: requested
76
- reserve_id: 13
77
- sort_key: 0
78
- most_recent: true
79
- reserve_transition_00014:
80
- id: 14
81
- to_state: retained
82
- reserve_id: 14
83
- sort_key: 0
84
- most_recent: true
85
- reserve_transition_00015:
86
- id: 15
87
- to_state: requested
88
- reserve_id: 15
89
- sort_key: 0
90
- most_recent: true
91
-
92
- # == Schema Information
93
- #
94
- # Table name: reserve_transitions
95
- #
96
- # id :integer not null, primary key
97
- # to_state :string
98
- # metadata :text default({})
99
- # sort_key :integer
100
- # reserve_id :bigint
101
- # created_at :datetime
102
- # updated_at :datetime
103
- # most_recent :boolean not null
104
- #
@@ -1,143 +0,0 @@
1
- ---
2
- reserve_00003:
3
- updated_at: 2007-09-02 17:46:52.791614 +09:00
4
- manifestation_id: 6
5
- user_id: 3
6
- request_status_type_id: 4
7
- id: 3
8
- created_at: 2007-09-02 17:46:52.791614 +09:00
9
- expired_at: <%= 1.week.from_now.to_s(:db) %>
10
- reserve_00004:
11
- updated_at: 2007-09-02 18:37:25.576087 +09:00
12
- manifestation_id: 7
13
- user_id: 1
14
- request_status_type_id: 4
15
- id: 4
16
- created_at: 2007-09-02 18:37:25.576087 +09:00
17
- expired_at: <%= 1.week.from_now.to_s(:db) %>
18
- reserve_00005:
19
- updated_at: 2007-09-02 19:16:55.714812 +09:00
20
- manifestation_id: 8
21
- user_id: 2
22
- request_status_type_id: 4
23
- id: 5
24
- created_at: 2007-09-02 19:16:55.714812 +09:00
25
- expired_at: <%= 1.week.from_now.to_s(:db) %>
26
- reserve_00001:
27
- updated_at: 2007-09-02 17:51:54.887849 +09:00
28
- manifestation_id: 4
29
- user_id: 1
30
- request_status_type_id: 4
31
- id: 1
32
- created_at: 2007-09-01 14:14:52.356803 +09:00
33
- expired_at: <%= 1.week.from_now.to_s(:db) %>
34
- reserve_00002:
35
- updated_at: 2007-09-01 14:20:05.530854 +09:00
36
- manifestation_id: 5
37
- user_id: 2
38
- request_status_type_id: 4
39
- id: 2
40
- created_at: 2007-09-01 14:20:05.530854 +09:00
41
- expired_at: <%= 1.week.from_now.to_s(:db) %>
42
- reserve_00006:
43
- updated_at: 2007-09-01 14:20:05.530854 +09:00
44
- manifestation_id: 4
45
- user_id: 2
46
- request_status_type_id: 4
47
- id: 6
48
- created_at: 2007-09-01 14:20:05.530854 +09:00
49
- expired_at: <%= 1.week.from_now.to_s(:db) %>
50
- reserve_00007:
51
- updated_at: 2007-09-01 14:20:05.530854 +09:00
52
- manifestation_id: 2
53
- user_id: 4
54
- request_status_type_id: 4
55
- id: 7
56
- created_at: 2007-09-01 14:20:05.530854 +09:00
57
- expired_at: <%= 1.week.from_now.to_s(:db) %>
58
- reserve_00008:
59
- updated_at: 2007-09-02 17:46:52.791614 +09:00
60
- manifestation_id: 6
61
- user_id: 3
62
- request_status_type_id: 3
63
- id: 8
64
- created_at: 2007-09-02 17:46:52.791614 +09:00
65
- expired_at: <%= 1.week.ago.to_s(:db) %>
66
- reserve_00009:
67
- updated_at: 2007-09-02 17:46:52.791614 +09:00
68
- manifestation_id: 7
69
- user_id: 5
70
- request_status_type_id: 3
71
- id: 9
72
- created_at: 2007-09-02 17:46:52.791614 +09:00
73
- expired_at: <%= 1.day.ago.to_s(:db) %>
74
- reserve_00010:
75
- updated_at: 2007-09-02 17:46:52.791614 +09:00
76
- manifestation_id: 8
77
- user_id: 5
78
- request_status_type_id: 3
79
- id: 10
80
- created_at: 2007-09-02 17:46:52.791614 +09:00
81
- expired_at: <%= 1.hour.ago.to_s(:db) %>
82
- checked_out_at: <%= 1.week.ago.to_s(:db) %>
83
- reserve_00011:
84
- updated_at: 2007-09-01 14:20:05.530854 +09:00
85
- manifestation_id: 7
86
- user_id: 2
87
- request_status_type_id: 3
88
- id: 11
89
- created_at: 2007-09-01 14:20:05.530854 +09:00
90
- expired_at: <%= 1.day.ago.to_s(:db) %>
91
- reserve_00012:
92
- updated_at: 2007-09-01 14:20:05.530854 +09:00
93
- manifestation_id: 8
94
- user_id: 2
95
- request_status_type_id: 4
96
- id: 12
97
- created_at: 2007-09-01 14:20:05.530854 +09:00
98
- expired_at: <%= 1.day.ago.to_s(:db) %>
99
- reserve_00013:
100
- updated_at: 2007-09-01 14:20:05.530854 +09:00
101
- manifestation_id: 11
102
- user_id: 4
103
- request_status_type_id: 3
104
- id: 13
105
- created_at: 2007-09-01 14:20:05.530854 +09:00
106
- expired_at: <%= 1.day.ago.to_s(:db) %>
107
- reserve_00014:
108
- updated_at: 2007-09-01 14:20:05.530854 +09:00
109
- manifestation_id: 11
110
- user_id: 4
111
- request_status_type_id: 3
112
- id: 14
113
- created_at: 2007-09-01 14:20:05.530854 +09:00
114
- expired_at: <%= 1.day.from_now.to_s(:db) %>
115
- item_id: 21
116
- reserve_00015:
117
- updated_at: 2007-09-01 14:20:05.530854 +09:00
118
- manifestation_id: 11
119
- user_id: 4
120
- request_status_type_id: 3
121
- id: 15
122
- created_at: 2007-09-01 14:20:05.530854 +09:00
123
- expired_at: <%= 1.day.from_now.to_s(:db) %>
124
-
125
- # == Schema Information
126
- #
127
- # Table name: reserves
128
- #
129
- # id :integer not null, primary key
130
- # user_id :integer not null
131
- # manifestation_id :integer not null
132
- # item_id :integer
133
- # request_status_type_id :integer not null
134
- # checked_out_at :datetime
135
- # created_at :datetime not null
136
- # updated_at :datetime not null
137
- # canceled_at :datetime
138
- # expired_at :datetime
139
- # deleted_at :datetime
140
- # expiration_notice_to_agent :boolean default(FALSE)
141
- # expiration_notice_to_library :boolean default(FALSE)
142
- #
143
-
@@ -1,39 +0,0 @@
1
- ---
2
- subject_heading_type_00001:
3
- name: unknown
4
- display_name: unknown
5
- updated_at: 2008-03-03 00:44:49.850140 +09:00
6
- id: 1
7
- note: ""
8
- created_at: 2008-03-03 00:44:34.260739 +09:00
9
- position: 1
10
- subject_heading_type_00002:
11
- name: ndlsh
12
- display_name: NDLSH
13
- updated_at: 2008-03-03 00:44:49.850140 +09:00
14
- id: 2
15
- note: ""
16
- created_at: 2008-03-03 00:44:34.260739 +09:00
17
- position: 2
18
- subject_heading_type_00003:
19
- name: bsh
20
- display_name: BSH
21
- updated_at: 2008-03-03 00:44:58.685360 +09:00
22
- id: 3
23
- note: ""
24
- created_at: 2008-03-03 00:44:58.685360 +09:00
25
- position: 3
26
-
27
- # == Schema Information
28
- #
29
- # Table name: subject_heading_types
30
- #
31
- # id :integer not null, primary key
32
- # name :string(255) not null
33
- # display_name :text
34
- # note :text
35
- # position :integer
36
- # created_at :datetime not null
37
- # updated_at :datetime not null
38
- #
39
-
@@ -1,28 +0,0 @@
1
- ---
2
- subject_type_00001:
3
- id: 1
4
- name: concept
5
- display_name: Concept
6
- note:
7
- position: 1
8
-
9
- subject_type_00002:
10
- id: 2
11
- name: event
12
- display_name: Event
13
- note:
14
- position: 2
15
-
16
- subject_type_00003:
17
- id: 3
18
- name: object
19
- display_name: Object
20
- note:
21
- position: 3
22
-
23
- subject_type_00004:
24
- id: 4
25
- name: place
26
- display_name: Place
27
- note:
28
- position: 4
@@ -1,28 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- one:
4
- id: 1
5
- start_date: 2008-12-15 18:43:02
6
- end_date: 2008-12-16 18:43:02
7
- note: MyText
8
-
9
- two:
10
- id: 2
11
- start_date: 2008-12-15 18:43:02
12
- end_date: 2008-12-16 18:43:02
13
- note: MyText
14
- # == Schema Information
15
- #
16
- # Table name: user_checkout_stats
17
- #
18
- # id :integer not null, primary key
19
- # start_date :datetime
20
- # end_date :datetime
21
- # note :text
22
- # state :string(255)
23
- # created_at :datetime not null
24
- # updated_at :datetime not null
25
- # started_at :datetime
26
- # completed_at :datetime
27
- #
28
-
@@ -1,111 +0,0 @@
1
- ---
2
- user_group_has_checkout_type_00001:
3
- checkout_type_id: 1
4
- updated_at: 2007-12-23 03:13:08.107022 +09:00
5
- checkout_limit: 3
6
- reservation_limit: 2
7
- user_group_id: 1
8
- checkout_period: 0
9
- checkout_renewal_limit: 1
10
- id: 1
11
- created_at: 2007-12-23 03:13:08.107022 +09:00
12
- set_due_date_after_closing_day: false
13
- user_group_has_checkout_type_00002:
14
- checkout_type_id: 2
15
- updated_at: 2007-12-23 03:13:15.620143 +09:00
16
- checkout_limit: 3
17
- reservation_limit: 2
18
- user_group_id: 1
19
- checkout_period: 10
20
- checkout_renewal_limit: 1
21
- id: 2
22
- created_at: 2007-12-23 03:13:15.620143 +09:00
23
- set_due_date_after_closing_day: false
24
- user_group_has_checkout_type_00003:
25
- checkout_type_id: 1
26
- updated_at: 2007-12-23 03:13:23.416856 +09:00
27
- checkout_limit: 3
28
- reservation_limit: 2
29
- user_group_id: 2
30
- checkout_period: 21
31
- checkout_renewal_limit: 1
32
- id: 3
33
- created_at: 2007-12-23 03:13:23.416856 +09:00
34
- set_due_date_after_closing_day: false
35
- user_group_has_checkout_type_00004:
36
- checkout_type_id: 2
37
- updated_at: 2007-12-23 03:13:29.880538 +09:00
38
- checkout_limit: 3
39
- reservation_limit: 2
40
- user_group_id: 2
41
- checkout_period: 21
42
- checkout_renewal_limit: 1
43
- id: 4
44
- created_at: 2007-12-23 03:13:29.880538 +09:00
45
- set_due_date_after_closing_day: false
46
- user_group_has_checkout_type_00005:
47
- checkout_type_id: 1
48
- updated_at: 2007-12-23 03:13:37.440462 +09:00
49
- checkout_limit: 3
50
- reservation_limit: 3
51
- user_group_id: 3
52
- checkout_period: 14
53
- checkout_renewal_limit: 1
54
- id: 5
55
- created_at: 2007-12-23 03:13:37.440462 +09:00
56
- set_due_date_after_closing_day: false
57
- user_group_has_checkout_type_00006:
58
- checkout_type_id: 2
59
- updated_at: 2007-12-23 03:13:46.312751 +09:00
60
- checkout_limit: 3
61
- reservation_limit: 3
62
- user_group_id: 3
63
- checkout_period: 7
64
- checkout_renewal_limit: 1
65
- id: 6
66
- created_at: 2007-12-23 03:13:46.312751 +09:00
67
- set_due_date_after_closing_day: false
68
- user_group_has_checkout_type_00007:
69
- checkout_type_id: 3
70
- updated_at: 2007-12-23 03:13:46.312751 +09:00
71
- checkout_limit: 3
72
- reservation_limit: 3
73
- user_group_id: 2
74
- checkout_period: 3
75
- checkout_renewal_limit: 1
76
- id: 7
77
- created_at: 2007-12-23 03:13:46.312751 +09:00
78
- set_due_date_after_closing_day: true
79
- user_group_has_checkout_type_00008:
80
- checkout_type_id: 3
81
- updated_at: 2007-12-23 03:13:46.312751 +09:00
82
- checkout_limit: 3
83
- reservation_limit: 3
84
- user_group_id: 1
85
- checkout_period: 3
86
- checkout_renewal_limit: 1
87
- id: 8
88
- created_at: 2007-12-23 03:13:46.312751 +09:00
89
- set_due_date_after_closing_day: true
90
-
91
- # == Schema Information
92
- #
93
- # Table name: user_group_has_checkout_types
94
- #
95
- # id :integer not null, primary key
96
- # user_group_id :integer not null
97
- # checkout_type_id :integer not null
98
- # checkout_limit :integer default(0), not null
99
- # checkout_period :integer default(0), not null
100
- # checkout_renewal_limit :integer default(0), not null
101
- # reservation_limit :integer default(0), not null
102
- # reservation_expired_period :integer default(7), not null
103
- # set_due_date_after_closing_day :boolean default(FALSE), not null
104
- # fixed_due_date :datetime
105
- # note :text
106
- # position :integer
107
- # created_at :datetime
108
- # updated_at :datetime
109
- # current_checkout_count :integer
110
- #
111
-