enju_circulation 0.3.9 → 0.4.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/app/controllers/checkins_controller.rb +2 -2
- data/app/controllers/user_group_has_checkout_types_controller.rb +1 -1
- data/app/helpers/items_helper.rb +3 -3
- data/app/models/checked_item.rb +7 -17
- data/app/models/checkin.rb +3 -2
- data/app/models/checkout.rb +2 -2
- data/app/models/checkout_stat_has_user.rb +1 -1
- data/app/models/checkout_type.rb +9 -7
- data/app/models/circulation_status.rb +9 -8
- data/app/models/concerns/enju_circulation/enju_item.rb +2 -46
- data/app/models/concerns/enju_circulation/enju_user_group.rb +0 -1
- data/app/models/concerns/enju_circulation/enju_withdraw.rb +1 -7
- data/app/models/manifestation_checkout_stat_transition.rb +1 -1
- data/app/models/manifestation_reserve_stat_transition.rb +1 -1
- data/app/models/reserve.rb +5 -5
- data/app/models/reserve_state_machine.rb +3 -2
- data/app/models/reserve_transition.rb +1 -1
- data/app/models/retain.rb +15 -0
- data/app/models/user_checkout_stat_transition.rb +1 -1
- data/app/models/user_group_has_checkout_type.rb +15 -37
- data/app/models/user_reserve_stat_transition.rb +1 -1
- data/app/views/carrier_type_has_checkout_types/_form.html.erb +2 -2
- data/app/views/carrier_type_has_checkout_types/index.html.erb +2 -2
- data/app/views/carrier_type_has_checkout_types/show.html.erb +2 -2
- data/app/views/carrier_types/_carrier_type_has_checkout_type_fields.html.erb +1 -1
- data/app/views/checked_items/new.html.erb +1 -1
- data/app/views/checkins/_checkin.html.erb +1 -1
- data/app/views/checkout_types/_form.html.erb +1 -1
- data/app/views/checkout_types/index.html.erb +1 -1
- data/app/views/checkout_types/show.html.erb +2 -2
- data/app/views/checkouts/_index_user.html.erb +1 -1
- data/app/views/checkouts/_list.html.erb +2 -9
- data/app/views/checkouts/index.atom.builder +1 -1
- data/app/views/checkouts/index.ics.erb +1 -1
- data/app/views/checkouts/index.rss.builder +1 -1
- data/app/views/circulation_statuses/_form.html.erb +1 -1
- data/app/views/circulation_statuses/index.html.erb +1 -1
- data/app/views/circulation_statuses/show.html.erb +1 -1
- data/app/views/item_has_use_restrictions/index.html.erb +1 -1
- data/app/views/item_has_use_restrictions/show.html.erb +1 -1
- data/app/views/manifestation_checkout_stats/_group_by_carrier_type.html.erb +3 -3
- data/app/views/manifestation_checkout_stats/_group_by_checkout_type.html.erb +3 -3
- data/app/views/manifestations/_circulation_status.html.erb +3 -3
- data/app/views/profiles/_submenu_checkout.html.erb +1 -1
- data/app/views/reserves/_new.html.erb +1 -1
- data/app/views/reserves/_new_user.html.erb +1 -1
- data/app/views/reserves/edit.html.erb +1 -1
- data/app/views/reserves/index.atom.builder +1 -1
- data/app/views/reserves/index.html.erb +1 -1
- data/app/views/reserves/index.rss.builder +1 -1
- data/app/views/reserves/show.html.erb +1 -1
- data/app/views/use_restrictions/_form.html.erb +1 -1
- data/app/views/use_restrictions/index.html.erb +1 -1
- data/app/views/use_restrictions/show.html.erb +1 -1
- data/app/views/user_group_has_checkout_types/edit.html.erb +4 -4
- data/app/views/user_group_has_checkout_types/index.html.erb +2 -2
- data/app/views/user_group_has_checkout_types/new.html.erb +4 -4
- data/app/views/user_group_has_checkout_types/show.html.erb +4 -4
- data/app/views/user_groups/_user_group_has_checkout_type_fields.html.erb +2 -2
- data/config/locales/translation_en.yml +1 -14
- data/config/locales/translation_ja.yml +1 -14
- data/config/routes.rb +1 -2
- data/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +3 -3
- data/db/migrate/20190508160525_create_retains.rb +10 -0
- data/db/migrate/20190629134017_rename_user_group_has_checkout_type_due_date_before_to_due_date_after.rb +5 -0
- data/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
- data/db/migrate/20190713114724_add_checkout_id_to_checkin.rb +5 -0
- data/db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb +5 -0
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/checkout_types.yml +3 -5
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/circulation_statuses.yml +16 -48
- data/lib/tasks/enju_circulation_tasks.rake +7 -1
- data/spec/concerns/enju_accept_spec.rb +14 -14
- data/spec/controllers/accepts_controller_spec.rb +294 -0
- data/spec/controllers/baskets_controller_spec.rb +379 -0
- data/spec/controllers/checkins_controller_spec.rb +8 -130
- data/spec/controllers/items_controller_spec.rb +23 -43
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/113_create_events.rb +2 -4
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
- data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
- data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
- data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
- data/spec/dummy/db/schema.rb +221 -184
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/private/system/carrier_types/attachments/000/000/001/original/book.png +0 -0
- data/spec/dummy/private/system/carrier_types/attachments/000/000/001/thumb/book.png +0 -0
- data/spec/factories/accept.rb +1 -1
- data/spec/factories/item.rb +4 -4
- data/spec/factories/reserve.rb +1 -5
- data/spec/fixtures/carrier_types.yml +16 -15
- data/spec/fixtures/checkins.yml +2 -1
- data/spec/fixtures/checkout_stat_has_users.yml +1 -1
- data/spec/fixtures/checkout_types.yml +11 -10
- data/spec/fixtures/checkouts.yml +2 -2
- data/spec/fixtures/circulation_statuses.yml +26 -34
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/event_categories.yml +23 -23
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/items.yml +1 -1
- data/spec/fixtures/libraries.yml +30 -31
- data/spec/fixtures/library_groups.yml +43 -20
- data/spec/fixtures/request_status_types.yml +14 -14
- data/spec/fixtures/request_types.yml +13 -13
- data/spec/fixtures/reserve_transitions.yml +1 -1
- data/spec/fixtures/reserves.yml +3 -3
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/shelves.yml +16 -15
- data/spec/fixtures/user_group_has_checkout_types.yml +24 -24
- data/spec/fixtures/user_groups.yml +23 -3
- data/spec/helpers/items_helper_spec.rb +1 -1
- data/spec/models/checkin_spec.rb +2 -1
- data/spec/models/checkout_spec.rb +2 -2
- data/spec/models/checkout_stat_has_user_spec.rb +1 -1
- data/spec/models/checkout_type_spec.rb +8 -7
- data/spec/models/circulation_status_spec.rb +8 -7
- data/spec/models/item_spec.rb +6 -8
- data/spec/models/manifestation_spec.rb +15 -18
- data/spec/models/reserve_spec.rb +3 -3
- data/spec/models/resource_export_file_spec.rb +0 -15
- data/spec/models/retain_spec.rb +16 -0
- data/spec/models/user_group_has_checkout_type_spec.rb +15 -32
- data/spec/models/withdraw_spec.rb +4 -6
- data/spec/policies/manifestation_policy_spec.rb +2 -1
- data/spec/rails_helper.rb +10 -3
- data/spec/views/items/index.html.erb_spec.rb +1 -4
- metadata +396 -446
- data/app/controllers/lending_policies_controller.rb +0 -106
- data/app/models/lending_policy.rb +0 -30
- data/app/views/lending_policies/_form.html.erb +0 -41
- data/app/views/lending_policies/edit.html.erb +0 -13
- data/app/views/lending_policies/index.html.erb +0 -42
- data/app/views/lending_policies/new.html.erb +0 -12
- data/app/views/lending_policies/show.html.erb +0 -50
- data/db/migrate/20090831220301_create_lending_policies.rb +0 -21
- data/spec/controllers/lending_policies_controller_spec.rb +0 -444
- data/spec/controllers/withdraws_controller_spec.rb +0 -26
- data/spec/dummy/config/locales/en.yml +0 -208
- data/spec/dummy/config/locales/ja.yml +0 -200
- data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
- data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
- data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
- data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
- data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
- data/spec/fixtures/accepts.yml +0 -9
- data/spec/fixtures/bookstores.yml +0 -99
- data/spec/fixtures/budget_types.yml +0 -30
- data/spec/fixtures/exemplifies.yml +0 -168
- data/spec/fixtures/lending_policies.yml +0 -98
- data/spec/models/lending_policy_spec.rb +0 -23
- data/spec/system/items_spec.rb +0 -21
- data/spec/system/user_group_has_checkout_types.rb +0 -14
@@ -1,200 +0,0 @@
|
|
1
|
-
ja:
|
2
|
-
date:
|
3
|
-
abbr_day_names:
|
4
|
-
- 日
|
5
|
-
- 月
|
6
|
-
- 火
|
7
|
-
- 水
|
8
|
-
- 木
|
9
|
-
- 金
|
10
|
-
- 土
|
11
|
-
abbr_month_names:
|
12
|
-
-
|
13
|
-
- 1月
|
14
|
-
- 2月
|
15
|
-
- 3月
|
16
|
-
- 4月
|
17
|
-
- 5月
|
18
|
-
- 6月
|
19
|
-
- 7月
|
20
|
-
- 8月
|
21
|
-
- 9月
|
22
|
-
- 10月
|
23
|
-
- 11月
|
24
|
-
- 12月
|
25
|
-
day_names:
|
26
|
-
- 日曜日
|
27
|
-
- 月曜日
|
28
|
-
- 火曜日
|
29
|
-
- 水曜日
|
30
|
-
- 木曜日
|
31
|
-
- 金曜日
|
32
|
-
- 土曜日
|
33
|
-
formats:
|
34
|
-
default: ! '%Y/%m/%d'
|
35
|
-
long: ! '%Y年%m月%d日(%a)'
|
36
|
-
short: ! '%m/%d'
|
37
|
-
month_names:
|
38
|
-
-
|
39
|
-
- 1月
|
40
|
-
- 2月
|
41
|
-
- 3月
|
42
|
-
- 4月
|
43
|
-
- 5月
|
44
|
-
- 6月
|
45
|
-
- 7月
|
46
|
-
- 8月
|
47
|
-
- 9月
|
48
|
-
- 10月
|
49
|
-
- 11月
|
50
|
-
- 12月
|
51
|
-
order:
|
52
|
-
- :year
|
53
|
-
- :month
|
54
|
-
- :day
|
55
|
-
datetime:
|
56
|
-
distance_in_words:
|
57
|
-
about_x_hours:
|
58
|
-
one: 約1時間
|
59
|
-
other: 約%{count}時間
|
60
|
-
about_x_months:
|
61
|
-
one: 約1ヶ月
|
62
|
-
other: 約%{count}ヶ月
|
63
|
-
about_x_years:
|
64
|
-
one: 約1年
|
65
|
-
other: 約%{count}年
|
66
|
-
almost_x_years:
|
67
|
-
one: 1年弱
|
68
|
-
other: ! '%{count}年弱'
|
69
|
-
half_a_minute: 30秒前後
|
70
|
-
less_than_x_minutes:
|
71
|
-
one: 1分以内
|
72
|
-
other: ! '%{count}分以内'
|
73
|
-
less_than_x_seconds:
|
74
|
-
one: 1秒以内
|
75
|
-
other: ! '%{count}秒以内'
|
76
|
-
over_x_years:
|
77
|
-
one: 1年以上
|
78
|
-
other: ! '%{count}年以上'
|
79
|
-
x_days:
|
80
|
-
one: 1日
|
81
|
-
other: ! '%{count}日'
|
82
|
-
x_minutes:
|
83
|
-
one: 1分
|
84
|
-
other: ! '%{count}分'
|
85
|
-
x_months:
|
86
|
-
one: 1ヶ月
|
87
|
-
other: ! '%{count}ヶ月'
|
88
|
-
x_seconds:
|
89
|
-
one: 1秒
|
90
|
-
other: ! '%{count}秒'
|
91
|
-
prompts:
|
92
|
-
day: 日
|
93
|
-
hour: 時
|
94
|
-
minute: 分
|
95
|
-
month: 月
|
96
|
-
second: 秒
|
97
|
-
year: 年
|
98
|
-
errors: &errors
|
99
|
-
format: ! '%{attribute}%{message}'
|
100
|
-
messages:
|
101
|
-
accepted: を受諾してください。
|
102
|
-
blank: を入力してください。
|
103
|
-
confirmation: と確認の入力が一致しません。
|
104
|
-
empty: を入力してください。
|
105
|
-
equal_to: は%{count}にしてください。
|
106
|
-
even: は偶数にしてください。
|
107
|
-
exclusion: は予約されています。
|
108
|
-
greater_than: は%{count}より大きい値にしてください。
|
109
|
-
greater_than_or_equal_to: は%{count}以上の値にしてください。
|
110
|
-
inclusion: は一覧にありません。
|
111
|
-
invalid: は不正な値です。
|
112
|
-
less_than: は%{count}より小さい値にしてください。
|
113
|
-
less_than_or_equal_to: は%{count}以下の値にしてください。
|
114
|
-
not_a_number: は数値で入力してください。
|
115
|
-
not_an_integer: は整数で入力してください。
|
116
|
-
odd: は奇数にしてください。
|
117
|
-
record_invalid: バリデーションに失敗しました。 %{errors}
|
118
|
-
taken: はすでに存在します。
|
119
|
-
too_long: は%{count}文字以内で入力してください。
|
120
|
-
too_short: は%{count}文字以上で入力してください。
|
121
|
-
wrong_length: は%{count}文字で入力してください。
|
122
|
-
template:
|
123
|
-
body: 次の項目を確認してください。
|
124
|
-
header:
|
125
|
-
one: ! '%{model}にエラーが発生しました。'
|
126
|
-
other: ! '%{model}に%{count}つのエラーが発生しました。'
|
127
|
-
helpers:
|
128
|
-
select:
|
129
|
-
prompt: 選択してください。
|
130
|
-
submit:
|
131
|
-
create: 登録する
|
132
|
-
submit: 保存する
|
133
|
-
update: 更新する
|
134
|
-
number:
|
135
|
-
currency:
|
136
|
-
format:
|
137
|
-
delimiter: ! ','
|
138
|
-
format: ! '%n%u'
|
139
|
-
precision: 0
|
140
|
-
separator: .
|
141
|
-
significant: false
|
142
|
-
strip_insignificant_zeros: false
|
143
|
-
unit: 円
|
144
|
-
format:
|
145
|
-
delimiter: ! ','
|
146
|
-
precision: 3
|
147
|
-
separator: .
|
148
|
-
significant: false
|
149
|
-
strip_insignificant_zeros: false
|
150
|
-
human:
|
151
|
-
decimal_units:
|
152
|
-
format: ! '%n %u'
|
153
|
-
units:
|
154
|
-
billion: 十億
|
155
|
-
million: 百万
|
156
|
-
quadrillion: 千兆
|
157
|
-
thousand: 千
|
158
|
-
trillion: 兆
|
159
|
-
unit: ''
|
160
|
-
format:
|
161
|
-
delimiter: ''
|
162
|
-
precision: 3
|
163
|
-
significant: true
|
164
|
-
strip_insignificant_zeros: true
|
165
|
-
storage_units:
|
166
|
-
format: ! '%n%u'
|
167
|
-
units:
|
168
|
-
byte: バイト
|
169
|
-
gb: ギガバイト
|
170
|
-
kb: キロバイト
|
171
|
-
mb: メガバイト
|
172
|
-
tb: テラバイト
|
173
|
-
percentage:
|
174
|
-
format:
|
175
|
-
delimiter: ''
|
176
|
-
precision:
|
177
|
-
format:
|
178
|
-
delimiter: ''
|
179
|
-
support:
|
180
|
-
array:
|
181
|
-
last_word_connector: と
|
182
|
-
two_words_connector: と
|
183
|
-
words_connector: と
|
184
|
-
time:
|
185
|
-
am: 午前
|
186
|
-
formats:
|
187
|
-
default: ! '%Y/%m/%d %H:%M:%S'
|
188
|
-
long: ! '%Y年%m月%d日(%a) %H時%M分%S秒 %z'
|
189
|
-
short: ! '%y/%m/%d %H:%M'
|
190
|
-
only_date: "%Y年%m月%d日"
|
191
|
-
only_year_and_month: "%Y年%m月"
|
192
|
-
only_month: "%m月"
|
193
|
-
pm: 午後
|
194
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
195
|
-
activemodel:
|
196
|
-
errors:
|
197
|
-
<<: *errors
|
198
|
-
activerecord:
|
199
|
-
errors:
|
200
|
-
<<: *errors
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateManifestationCustomProperties < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
create_table :manifestation_custom_properties do |t|
|
4
|
-
t.string :name, null: false, comment: 'ラベル名', index: {unique: true}
|
5
|
-
t.text :display_name, null: false, comment: '表示名'
|
6
|
-
t.text :note, comment: '備考'
|
7
|
-
t.integer :position, default: 1, null: false
|
8
|
-
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateItemCustomProperties < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
create_table :item_custom_properties do |t|
|
4
|
-
t.string :name, null: false, comment: 'ラベル名', index: {unique: true}
|
5
|
-
t.text :display_name, null: false, comment: '表示名'
|
6
|
-
t.text :note, comment: '備考'
|
7
|
-
t.integer :position, default: 1, null: false
|
8
|
-
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateManifestationCustomValues < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
create_table :manifestation_custom_values do |t|
|
4
|
-
t.references :manifestation_custom_property, null: false, foreign_key: true, index: {name: 'index_manifestation_custom_values_on_custom_property_id'}
|
5
|
-
t.references :manifestation, null: false, foreign_key: true
|
6
|
-
t.text :value
|
7
|
-
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
add_index :manifestation_custom_values, [:manifestation_custom_property_id, :manifestation_id], unique: true, name: 'index_manifestation_custom_values_on_property_manifestation'
|
11
|
-
end
|
12
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateItemCustomValues < ActiveRecord::Migration[5.2]
|
2
|
-
def change
|
3
|
-
create_table :item_custom_values do |t|
|
4
|
-
t.references :item_custom_property, null: false, foreign_key: true, index: {name: 'index_item_custom_values_on_custom_property_id'}
|
5
|
-
t.references :item, null: false, foreign_key: true
|
6
|
-
t.text :value
|
7
|
-
|
8
|
-
t.timestamps
|
9
|
-
end
|
10
|
-
add_index :item_custom_values, [:item_custom_property_id, :item_id], unique: true, name: 'index_item_custom_values_on_custom_item_property_and_item_id'
|
11
|
-
end
|
12
|
-
end
|
data/spec/fixtures/accepts.yml
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
---
|
2
|
-
bookstore_00001:
|
3
|
-
name: unknown
|
4
|
-
fax_number:
|
5
|
-
updated_at: 2008-02-10 11:14:57.605329 +09:00
|
6
|
-
telephone_number:
|
7
|
-
id: 1
|
8
|
-
note: ""
|
9
|
-
address: ""
|
10
|
-
created_at: 2008-02-10 11:14:57.605329 +09:00
|
11
|
-
position: 1
|
12
|
-
bookstore_00002:
|
13
|
-
name: !binary |
|
14
|
-
5a+E6LSI
|
15
|
-
|
16
|
-
fax_number: ""
|
17
|
-
updated_at: 2008-02-10 12:15:14.840711 +09:00
|
18
|
-
telephone_number: ""
|
19
|
-
id: 2
|
20
|
-
note: ""
|
21
|
-
address: ""
|
22
|
-
created_at: 2008-02-10 11:16:02.598844 +09:00
|
23
|
-
position: 2
|
24
|
-
bookstore_00003:
|
25
|
-
name: !binary |
|
26
|
-
5pyJ6Zqj5aCC
|
27
|
-
|
28
|
-
fax_number: ""
|
29
|
-
updated_at: 2008-02-10 12:15:33.555463 +09:00
|
30
|
-
telephone_number: ""
|
31
|
-
id: 3
|
32
|
-
note: ""
|
33
|
-
address: ""
|
34
|
-
created_at: 2008-02-10 11:16:11.585284 +09:00
|
35
|
-
position: 3
|
36
|
-
bookstore_00004:
|
37
|
-
name: !binary |
|
38
|
-
57SA5LyK5ZyL5bGL5pu45bqX
|
39
|
-
|
40
|
-
fax_number: ""
|
41
|
-
updated_at: 2008-02-10 12:16:07.726445 +09:00
|
42
|
-
telephone_number: ""
|
43
|
-
id: 4
|
44
|
-
note: ""
|
45
|
-
address: ""
|
46
|
-
created_at: 2008-02-10 11:16:22.565660 +09:00
|
47
|
-
position: 4
|
48
|
-
bookstore_00005:
|
49
|
-
name: !binary |
|
50
|
-
5Li45ZaE
|
51
|
-
|
52
|
-
fax_number: ""
|
53
|
-
updated_at: 2008-02-10 12:16:17.990285 +09:00
|
54
|
-
telephone_number: ""
|
55
|
-
id: 5
|
56
|
-
note: ""
|
57
|
-
address: ""
|
58
|
-
created_at: 2008-02-10 12:15:44.923758 +09:00
|
59
|
-
position: 5
|
60
|
-
bookstore_00006:
|
61
|
-
name: !binary |
|
62
|
-
5Zuz5pu46aSo5rWB6YCa44K744Oz44K/44O8
|
63
|
-
|
64
|
-
fax_number: ""
|
65
|
-
updated_at: 2008-02-10 12:16:25.906073 +09:00
|
66
|
-
telephone_number: ""
|
67
|
-
id: 6
|
68
|
-
note: ""
|
69
|
-
address: ""
|
70
|
-
created_at: 2008-02-10 12:15:54.558517 +09:00
|
71
|
-
position: 6
|
72
|
-
bookstore_00007:
|
73
|
-
name: Example store
|
74
|
-
fax_number: ""
|
75
|
-
updated_at: 2008-02-10 12:16:25.906073 +09:00
|
76
|
-
telephone_number: ""
|
77
|
-
id: 7
|
78
|
-
note: ""
|
79
|
-
address: ""
|
80
|
-
created_at: 2008-02-10 12:15:54.558517 +09:00
|
81
|
-
position: 7
|
82
|
-
|
83
|
-
# == Schema Information
|
84
|
-
#
|
85
|
-
# Table name: bookstores
|
86
|
-
#
|
87
|
-
# id :bigint not null, primary key
|
88
|
-
# name :text not null
|
89
|
-
# zip_code :string
|
90
|
-
# address :text
|
91
|
-
# note :text
|
92
|
-
# telephone_number :string
|
93
|
-
# fax_number :string
|
94
|
-
# url :string
|
95
|
-
# position :integer
|
96
|
-
# created_at :datetime not null
|
97
|
-
# updated_at :datetime not null
|
98
|
-
#
|
99
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
|
-
public_fund:
|
4
|
-
name: Public fund
|
5
|
-
display_name: {"en": "Public fund"}
|
6
|
-
note:
|
7
|
-
position: 1
|
8
|
-
id: 1
|
9
|
-
|
10
|
-
donation:
|
11
|
-
name: Donation
|
12
|
-
display_name: {"en": "Donation"}
|
13
|
-
note:
|
14
|
-
position: 2
|
15
|
-
id: 2
|
16
|
-
|
17
|
-
# == Schema Information
|
18
|
-
#
|
19
|
-
# Table name: budget_types
|
20
|
-
#
|
21
|
-
# id :bigint not null, primary key
|
22
|
-
# name :string
|
23
|
-
# display_name :text
|
24
|
-
# note :text
|
25
|
-
# position :integer
|
26
|
-
# created_at :datetime not null
|
27
|
-
# updated_at :datetime not null
|
28
|
-
# display_name_translations :jsonb not null
|
29
|
-
#
|
30
|
-
|
@@ -1,168 +0,0 @@
|
|
1
|
-
---
|
2
|
-
exemplify_00001:
|
3
|
-
updated_at: 2008-01-11 23:28:19.277110 +09:00
|
4
|
-
item_id: 1
|
5
|
-
manifestation_id: 1
|
6
|
-
id: 1
|
7
|
-
created_at: 2008-01-11 23:28:19.277110 +09:00
|
8
|
-
position: 1
|
9
|
-
exemplify_00002:
|
10
|
-
updated_at: 2008-01-11 23:28:57.068191 +09:00
|
11
|
-
item_id: 2
|
12
|
-
manifestation_id: 2
|
13
|
-
id: 2
|
14
|
-
created_at: 2008-01-11 23:28:57.068191 +09:00
|
15
|
-
exemplify_00003:
|
16
|
-
updated_at: 2008-01-11 23:32:03.701425 +09:00
|
17
|
-
item_id: 3
|
18
|
-
manifestation_id: 3
|
19
|
-
id: 3
|
20
|
-
created_at: 2008-01-11 23:32:03.701425 +09:00
|
21
|
-
exemplify_00004:
|
22
|
-
updated_at: 2008-01-11 02:34:20.183962 +09:00
|
23
|
-
item_id: 4
|
24
|
-
manifestation_id: 1
|
25
|
-
id: 4
|
26
|
-
created_at: 2008-01-11 02:34:20.183962 +09:00
|
27
|
-
position: 2
|
28
|
-
exemplify_00005:
|
29
|
-
updated_at: 2008-01-11 02:34:32.352223 +09:00
|
30
|
-
item_id: 5
|
31
|
-
manifestation_id: 2
|
32
|
-
id: 5
|
33
|
-
created_at: 2008-01-11 02:34:32.352223 +09:00
|
34
|
-
exemplify_00006:
|
35
|
-
updated_at: 2008-01-11 23:35:36.467584 +09:00
|
36
|
-
item_id: 6
|
37
|
-
manifestation_id: 3
|
38
|
-
id: 6
|
39
|
-
created_at: 2008-01-11 23:35:36.467584 +09:00
|
40
|
-
exemplify_00007:
|
41
|
-
updated_at: 2008-01-11 02:40:24.038276 +09:00
|
42
|
-
item_id: 7
|
43
|
-
manifestation_id: 1
|
44
|
-
id: 7
|
45
|
-
created_at: 2008-01-11 02:40:24.038276 +09:00
|
46
|
-
exemplify_00008:
|
47
|
-
updated_at: 2008-01-11 02:40:40.316742 +09:00
|
48
|
-
item_id: 8
|
49
|
-
manifestation_id: 2
|
50
|
-
id: 8
|
51
|
-
created_at: 2008-01-11 02:40:40.316742 +09:00
|
52
|
-
exemplify_00009:
|
53
|
-
updated_at: 2008-01-11 02:40:55.664604 +09:00
|
54
|
-
item_id: 9
|
55
|
-
manifestation_id: 3
|
56
|
-
id: 9
|
57
|
-
created_at: 2008-01-11 02:40:55.664604 +09:00
|
58
|
-
exemplify_00010:
|
59
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
60
|
-
item_id: 10
|
61
|
-
manifestation_id: 1
|
62
|
-
id: 10
|
63
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
64
|
-
exemplify_00011:
|
65
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
66
|
-
item_id: 11
|
67
|
-
manifestation_id: 1
|
68
|
-
id: 11
|
69
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
70
|
-
exemplify_00012:
|
71
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
72
|
-
item_id: 12
|
73
|
-
manifestation_id: 2
|
74
|
-
id: 12
|
75
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
76
|
-
exemplify_00013:
|
77
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
78
|
-
item_id: 13
|
79
|
-
manifestation_id: 2
|
80
|
-
id: 13
|
81
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
82
|
-
exemplify_00014:
|
83
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
84
|
-
item_id: 14
|
85
|
-
manifestation_id: 2
|
86
|
-
id: 14
|
87
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
88
|
-
exemplify_00015:
|
89
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
90
|
-
item_id: 15
|
91
|
-
manifestation_id: 2
|
92
|
-
id: 15
|
93
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
94
|
-
exemplify_00016:
|
95
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
96
|
-
item_id: 16
|
97
|
-
manifestation_id: 3
|
98
|
-
id: 16
|
99
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
100
|
-
exemplify_00017:
|
101
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
102
|
-
item_id: 17
|
103
|
-
manifestation_id: 3
|
104
|
-
id: 17
|
105
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
106
|
-
exemplify_00018:
|
107
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
108
|
-
item_id: 18
|
109
|
-
manifestation_id: 1
|
110
|
-
id: 18
|
111
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
112
|
-
exemplify_00019:
|
113
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
114
|
-
item_id: 19
|
115
|
-
manifestation_id: 1
|
116
|
-
id: 19
|
117
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
118
|
-
exemplify_00020:
|
119
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
120
|
-
item_id: 20
|
121
|
-
manifestation_id: 1
|
122
|
-
id: 20
|
123
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
124
|
-
exemplify_00021:
|
125
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
126
|
-
item_id: 21
|
127
|
-
manifestation_id: 11
|
128
|
-
id: 21
|
129
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
130
|
-
exemplify_00022:
|
131
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
132
|
-
item_id: 22
|
133
|
-
manifestation_id: 11
|
134
|
-
id: 22
|
135
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
136
|
-
exemplify_00023:
|
137
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
138
|
-
item_id: 23
|
139
|
-
manifestation_id: 11
|
140
|
-
id: 23
|
141
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
142
|
-
exemplify_00024:
|
143
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
144
|
-
item_id: 24
|
145
|
-
manifestation_id: 3
|
146
|
-
id: 24
|
147
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
148
|
-
exemplify_00025:
|
149
|
-
updated_at: 2008-01-11 02:44:37.135721 +09:00
|
150
|
-
item_id: 25
|
151
|
-
manifestation_id: 8
|
152
|
-
id: 25
|
153
|
-
created_at: 2008-01-11 02:44:37.135721 +09:00
|
154
|
-
|
155
|
-
|
156
|
-
# == Schema Information
|
157
|
-
#
|
158
|
-
# Table name: exemplifies
|
159
|
-
#
|
160
|
-
# id :integer not null, primary key
|
161
|
-
# manifestation_id :integer not null
|
162
|
-
# item_id :integer not null
|
163
|
-
# type :string(255)
|
164
|
-
# position :integer
|
165
|
-
# created_at :datetime
|
166
|
-
# updated_at :datetime
|
167
|
-
#
|
168
|
-
|
@@ -1,98 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
|
-
lending_policy_00001:
|
4
|
-
item_id: 1
|
5
|
-
user_group_id: 1
|
6
|
-
loan_period: 1
|
7
|
-
fixed_due_date:
|
8
|
-
renewal: 1
|
9
|
-
fine: 10
|
10
|
-
note: MyText
|
11
|
-
position: 1
|
12
|
-
lending_policy_00002:
|
13
|
-
item_id: 1
|
14
|
-
user_group_id: 2
|
15
|
-
loan_period: 1
|
16
|
-
fixed_due_date:
|
17
|
-
renewal: 1
|
18
|
-
fine: 10
|
19
|
-
note: MyText
|
20
|
-
position: 2
|
21
|
-
lending_policy_00003:
|
22
|
-
item_id: 10
|
23
|
-
user_group_id: 2
|
24
|
-
loan_period: 1
|
25
|
-
fixed_due_date:
|
26
|
-
renewal: 1
|
27
|
-
fine: 10
|
28
|
-
note: MyText
|
29
|
-
position: 1
|
30
|
-
lending_policy_00004:
|
31
|
-
item_id: 6
|
32
|
-
user_group_id: 1
|
33
|
-
loan_period: 1
|
34
|
-
fixed_due_date:
|
35
|
-
renewal: 1
|
36
|
-
fine: 10
|
37
|
-
note: MyText
|
38
|
-
position: 1
|
39
|
-
lending_policy_00005:
|
40
|
-
item_id: 6
|
41
|
-
user_group_id: 2
|
42
|
-
loan_period: 1
|
43
|
-
fixed_due_date:
|
44
|
-
renewal: 1
|
45
|
-
fine: 10
|
46
|
-
note: MyText
|
47
|
-
position: 1
|
48
|
-
lending_policy_00006:
|
49
|
-
item_id: 11
|
50
|
-
user_group_id: 1
|
51
|
-
loan_period: 1
|
52
|
-
fixed_due_date:
|
53
|
-
renewal: 1
|
54
|
-
fine: 10
|
55
|
-
note: MyText
|
56
|
-
position: 1
|
57
|
-
note: MyText
|
58
|
-
position: 1
|
59
|
-
lending_policy_00007:
|
60
|
-
item_id: 21
|
61
|
-
user_group_id: 1
|
62
|
-
loan_period: 1
|
63
|
-
fixed_due_date:
|
64
|
-
renewal: 1
|
65
|
-
fine: 10
|
66
|
-
note: MyText
|
67
|
-
position: 1
|
68
|
-
lending_policy_00008:
|
69
|
-
item_id: 11
|
70
|
-
user_group_id: 2
|
71
|
-
loan_period: 1
|
72
|
-
fixed_due_date:
|
73
|
-
renewal: 1
|
74
|
-
fine: 10
|
75
|
-
lending_policy_00009:
|
76
|
-
item_id: 24
|
77
|
-
user_group_id: 2
|
78
|
-
loan_period: 1
|
79
|
-
fixed_due_date:
|
80
|
-
renewal: 1
|
81
|
-
fine: 10
|
82
|
-
|
83
|
-
# == Schema Information
|
84
|
-
#
|
85
|
-
# Table name: lending_policies
|
86
|
-
#
|
87
|
-
# id :integer not null, primary key
|
88
|
-
# item_id :integer not null
|
89
|
-
# user_group_id :integer not null
|
90
|
-
# loan_period :integer default("0"), not null
|
91
|
-
# fixed_due_date :datetime
|
92
|
-
# renewal :integer default("0"), not null
|
93
|
-
# fine :integer default("0"), not null
|
94
|
-
# note :text
|
95
|
-
# position :integer
|
96
|
-
# created_at :datetime
|
97
|
-
# updated_at :datetime
|
98
|
-
#
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
describe LendingPolicy do
|
4
|
-
# pending "add some examples to (or delete) #{__FILE__}"
|
5
|
-
|
6
|
-
end
|
7
|
-
|
8
|
-
# == Schema Information
|
9
|
-
#
|
10
|
-
# Table name: lending_policies
|
11
|
-
#
|
12
|
-
# id :integer not null, primary key
|
13
|
-
# item_id :integer not null
|
14
|
-
# user_group_id :integer not null
|
15
|
-
# loan_period :integer default("0"), not null
|
16
|
-
# fixed_due_date :datetime
|
17
|
-
# renewal :integer default("0"), not null
|
18
|
-
# fine :integer default("0"), not null
|
19
|
-
# note :text
|
20
|
-
# position :integer
|
21
|
-
# created_at :datetime
|
22
|
-
# updated_at :datetime
|
23
|
-
#
|