enju_circulation 0.1.0.pre2 → 0.1.0.pre3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/lending_policy.rb +2 -2
- data/app/models/user_group_has_checkout_type.rb +1 -1
- data/lib/enju_circulation/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +1 -1
- data/spec/dummy/app/mailers/notifier.rb +1 -1
- data/spec/dummy/app/models/setting.rb +4 -0
- data/spec/dummy/config/application.yml +38 -0
- data/spec/dummy/config/locales/en.yml +207 -4
- data/spec/dummy/config/locales/ja.yml +186 -135
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +24 -36
@@ -1,7 +1,7 @@
|
|
1
1
|
class LendingPolicy < ActiveRecord::Base
|
2
2
|
attr_accessible :item_id, :user_group_id, :loan_period, :fixed_due_date,
|
3
|
-
:renewal, :fine, :note
|
4
|
-
default_scope :order => 'position'
|
3
|
+
:renewal, :fine, :note, :position
|
4
|
+
default_scope :order => 'lending_policies.position'
|
5
5
|
belongs_to :item
|
6
6
|
belongs_to :user_group
|
7
7
|
|
@@ -2,7 +2,7 @@ class UserGroupHasCheckoutType < ActiveRecord::Base
|
|
2
2
|
attr_accessible :user_group_id, :checkout_type_id,
|
3
3
|
:checkout_limit, :checkout_period, :checkout_renewal_limit,
|
4
4
|
:reservation_limit, :reservation_expired_period,
|
5
|
-
:set_due_date_before_closing_day, :fixed_due_date, :note
|
5
|
+
:set_due_date_before_closing_day, :fixed_due_date, :note, :position
|
6
6
|
scope :available_for_item, lambda{|item| where(:checkout_type_id => item.checkout_type.id)}
|
7
7
|
scope :available_for_carrier_type, lambda{|carrier_type| {:include => {:checkout_type => :carrier_types}, :conditions => ['carrier_types.id = ?', carrier_type.id]}}
|
8
8
|
|
@@ -84,7 +84,7 @@ class ApplicationController < ActionController::Base
|
|
84
84
|
def convert_charset
|
85
85
|
case params[:format]
|
86
86
|
when 'csv'
|
87
|
-
return unless
|
87
|
+
return unless Setting.csv_charset_conversion
|
88
88
|
# TODO: 他の言語
|
89
89
|
if @locale.to_sym == :ja
|
90
90
|
headers["Content-Type"] = "text/csv; charset=Shift_JIS"
|
@@ -2,7 +2,7 @@ class Notifier < ActionMailer::Base
|
|
2
2
|
if LibraryGroup.site_config.try(:url)
|
3
3
|
uri = Addressable::URI.parse(LibraryGroup.site_config.url)
|
4
4
|
default_url_options[:host] = uri.host
|
5
|
-
default_url_options[:port] = uri.port if
|
5
|
+
default_url_options[:port] = uri.port if Setting.enju.web_port_number != 80
|
6
6
|
else
|
7
7
|
default_url_options[:host] = 'library.example.jp'
|
8
8
|
default_url_options[:port] = 80
|
@@ -0,0 +1,38 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
enju:
|
3
|
+
web_hostname: localhost
|
4
|
+
web_port_number: 3000
|
5
|
+
|
6
|
+
family_name_first: true
|
7
|
+
max_number_of_results: 500
|
8
|
+
write_search_log_to_file: true
|
9
|
+
csv_charset_conversion: true
|
10
|
+
|
11
|
+
# Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
|
12
|
+
#AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
|
13
|
+
amazon:
|
14
|
+
aws_hostname: ecs.amazonaws.jp
|
15
|
+
hostname: www.amazon.co.jp
|
16
|
+
access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
|
17
|
+
secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
|
18
|
+
|
19
|
+
# :google, :amazon
|
20
|
+
book_jacket:
|
21
|
+
source: :google
|
22
|
+
unknown_resource:
|
23
|
+
|
24
|
+
# :mozshot, :simpleapi, :heartrails, :thumbalizr
|
25
|
+
screenshot:
|
26
|
+
generator: :mozshot
|
27
|
+
|
28
|
+
uploaded_file:
|
29
|
+
storage: :local
|
30
|
+
|
31
|
+
development:
|
32
|
+
<<: *defaults
|
33
|
+
|
34
|
+
test:
|
35
|
+
<<: *defaults
|
36
|
+
|
37
|
+
production:
|
38
|
+
<<: *defaults
|
@@ -1,5 +1,208 @@
|
|
1
|
-
# Sample localization file for English. Add more files in this directory for other locales.
|
2
|
-
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
|
-
|
4
1
|
en:
|
5
|
-
|
2
|
+
date:
|
3
|
+
abbr_day_names:
|
4
|
+
- Sun
|
5
|
+
- Mon
|
6
|
+
- Tue
|
7
|
+
- Wed
|
8
|
+
- Thu
|
9
|
+
- Fri
|
10
|
+
- Sat
|
11
|
+
abbr_month_names:
|
12
|
+
-
|
13
|
+
- Jan
|
14
|
+
- Feb
|
15
|
+
- Mar
|
16
|
+
- Apr
|
17
|
+
- May
|
18
|
+
- Jun
|
19
|
+
- Jul
|
20
|
+
- Aug
|
21
|
+
- Sep
|
22
|
+
- Oct
|
23
|
+
- Nov
|
24
|
+
- Dec
|
25
|
+
day_names:
|
26
|
+
- Sunday
|
27
|
+
- Monday
|
28
|
+
- Tuesday
|
29
|
+
- Wednesday
|
30
|
+
- Thursday
|
31
|
+
- Friday
|
32
|
+
- Saturday
|
33
|
+
formats:
|
34
|
+
default: ! '%Y-%m-%d'
|
35
|
+
long: ! '%B %d, %Y'
|
36
|
+
short: ! '%b %d'
|
37
|
+
month_names:
|
38
|
+
-
|
39
|
+
- January
|
40
|
+
- February
|
41
|
+
- March
|
42
|
+
- April
|
43
|
+
- May
|
44
|
+
- June
|
45
|
+
- July
|
46
|
+
- August
|
47
|
+
- September
|
48
|
+
- October
|
49
|
+
- November
|
50
|
+
- December
|
51
|
+
order:
|
52
|
+
- :year
|
53
|
+
- :month
|
54
|
+
- :day
|
55
|
+
datetime:
|
56
|
+
distance_in_words:
|
57
|
+
about_x_hours:
|
58
|
+
one: about 1 hour
|
59
|
+
other: about %{count} hours
|
60
|
+
about_x_months:
|
61
|
+
one: about 1 month
|
62
|
+
other: about %{count} months
|
63
|
+
about_x_years:
|
64
|
+
one: about 1 year
|
65
|
+
other: about %{count} years
|
66
|
+
almost_x_years:
|
67
|
+
one: almost 1 year
|
68
|
+
other: almost %{count} years
|
69
|
+
half_a_minute: half a minute
|
70
|
+
less_than_x_minutes:
|
71
|
+
one: less than a minute
|
72
|
+
other: less than %{count} minutes
|
73
|
+
less_than_x_seconds:
|
74
|
+
one: less than 1 second
|
75
|
+
other: less than %{count} seconds
|
76
|
+
over_x_years:
|
77
|
+
one: over 1 year
|
78
|
+
other: over %{count} years
|
79
|
+
x_days:
|
80
|
+
one: 1 day
|
81
|
+
other: ! '%{count} days'
|
82
|
+
x_minutes:
|
83
|
+
one: 1 minute
|
84
|
+
other: ! '%{count} minutes'
|
85
|
+
x_months:
|
86
|
+
one: 1 month
|
87
|
+
other: ! '%{count} months'
|
88
|
+
x_seconds:
|
89
|
+
one: 1 second
|
90
|
+
other: ! '%{count} seconds'
|
91
|
+
prompts:
|
92
|
+
day: Day
|
93
|
+
hour: Hour
|
94
|
+
minute: Minute
|
95
|
+
month: Month
|
96
|
+
second: Seconds
|
97
|
+
year: Year
|
98
|
+
errors: &errors
|
99
|
+
format: ! '%{attribute} %{message}'
|
100
|
+
messages:
|
101
|
+
accepted: must be accepted
|
102
|
+
blank: can't be blank
|
103
|
+
confirmation: doesn't match confirmation
|
104
|
+
empty: can't be empty
|
105
|
+
equal_to: must be equal to %{count}
|
106
|
+
even: must be even
|
107
|
+
exclusion: is reserved
|
108
|
+
greater_than: must be greater than %{count}
|
109
|
+
greater_than_or_equal_to: must be greater than or equal to %{count}
|
110
|
+
inclusion: is not included in the list
|
111
|
+
invalid: is invalid
|
112
|
+
less_than: must be less than %{count}
|
113
|
+
less_than_or_equal_to: must be less than or equal to %{count}
|
114
|
+
not_a_number: is not a number
|
115
|
+
not_an_integer: must be an integer
|
116
|
+
odd: must be odd
|
117
|
+
record_invalid: ! 'Validation failed: %{errors}'
|
118
|
+
taken: has already been taken
|
119
|
+
too_long:
|
120
|
+
one: is too long (maximum is 1 character)
|
121
|
+
other: is too long (maximum is %{count} characters)
|
122
|
+
too_short:
|
123
|
+
one: is too short (minimum is 1 character)
|
124
|
+
other: is too short (minimum is %{count} characters)
|
125
|
+
wrong_length:
|
126
|
+
one: is the wrong length (should be 1 character)
|
127
|
+
other: is the wrong length (should be %{count} characters)
|
128
|
+
template:
|
129
|
+
body: ! 'There were problems with the following fields:'
|
130
|
+
header:
|
131
|
+
one: 1 error prohibited this %{model} from being saved
|
132
|
+
other: ! '%{count} errors prohibited this %{model} from being saved'
|
133
|
+
helpers:
|
134
|
+
select:
|
135
|
+
prompt: Please select
|
136
|
+
submit:
|
137
|
+
create: Create %{model}
|
138
|
+
submit: Save %{model}
|
139
|
+
update: Update %{model}
|
140
|
+
number:
|
141
|
+
currency:
|
142
|
+
format:
|
143
|
+
delimiter: ! ','
|
144
|
+
format: ! '%u%n'
|
145
|
+
precision: 2
|
146
|
+
separator: .
|
147
|
+
significant: false
|
148
|
+
strip_insignificant_zeros: false
|
149
|
+
unit: $
|
150
|
+
format:
|
151
|
+
delimiter: ! ','
|
152
|
+
precision: 3
|
153
|
+
separator: .
|
154
|
+
significant: false
|
155
|
+
strip_insignificant_zeros: false
|
156
|
+
human:
|
157
|
+
decimal_units:
|
158
|
+
format: ! '%n %u'
|
159
|
+
units:
|
160
|
+
billion: Billion
|
161
|
+
million: Million
|
162
|
+
quadrillion: Quadrillion
|
163
|
+
thousand: Thousand
|
164
|
+
trillion: Trillion
|
165
|
+
unit: ''
|
166
|
+
format:
|
167
|
+
delimiter: ''
|
168
|
+
precision: 3
|
169
|
+
significant: true
|
170
|
+
strip_insignificant_zeros: true
|
171
|
+
storage_units:
|
172
|
+
format: ! '%n %u'
|
173
|
+
units:
|
174
|
+
byte:
|
175
|
+
one: Byte
|
176
|
+
other: Bytes
|
177
|
+
gb: GB
|
178
|
+
kb: KB
|
179
|
+
mb: MB
|
180
|
+
tb: TB
|
181
|
+
percentage:
|
182
|
+
format:
|
183
|
+
delimiter: ''
|
184
|
+
precision:
|
185
|
+
format:
|
186
|
+
delimiter: ''
|
187
|
+
support:
|
188
|
+
array:
|
189
|
+
last_word_connector: ! ', and '
|
190
|
+
two_words_connector: ! ' and '
|
191
|
+
words_connector: ! ', '
|
192
|
+
time:
|
193
|
+
am: am
|
194
|
+
formats:
|
195
|
+
default: ! '%a, %d %b %Y %H:%M:%S %z'
|
196
|
+
long: ! '%B %d, %Y %H:%M'
|
197
|
+
short: ! '%d %b %H:%M'
|
198
|
+
only_date: "%b %d, %Y"
|
199
|
+
only_year_and_month: "%m %Y"
|
200
|
+
only_month: "%m"
|
201
|
+
pm: pm
|
202
|
+
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
203
|
+
activemodel:
|
204
|
+
errors:
|
205
|
+
<<: *errors
|
206
|
+
activerecord:
|
207
|
+
errors:
|
208
|
+
<<: *errors
|
@@ -1,149 +1,200 @@
|
|
1
|
-
# Japanese translations for Ruby on Rails
|
2
|
-
# by Akira Matsuda (ronnie@dio.jp)
|
3
|
-
# AR error messages are basically taken from Ruby-GetText-Package. Thanks to Masao Mutoh.
|
4
|
-
|
5
1
|
ja:
|
6
|
-
helpers:
|
7
|
-
submit:
|
8
|
-
create: "%{model}を作成"
|
9
|
-
update: "%{model}を更新"
|
10
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
|
+
- 土曜日
|
11
33
|
formats:
|
12
|
-
default:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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:
|
43
128
|
select:
|
44
|
-
prompt:
|
45
|
-
|
129
|
+
prompt: 選択してください。
|
130
|
+
submit:
|
131
|
+
create: 登録する
|
132
|
+
submit: 保存する
|
133
|
+
update: 更新する
|
46
134
|
number:
|
47
|
-
format:
|
48
|
-
separator: "."
|
49
|
-
delimiter: ","
|
50
|
-
precision: 3
|
51
|
-
|
52
135
|
currency:
|
53
136
|
format:
|
54
|
-
|
55
|
-
|
56
|
-
separator: "."
|
57
|
-
delimiter: ","
|
137
|
+
delimiter: ! ','
|
138
|
+
format: ! '%n%u'
|
58
139
|
precision: 0
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
68
150
|
human:
|
151
|
+
decimal_units:
|
152
|
+
format: ! '%n %u'
|
153
|
+
units:
|
154
|
+
billion: 十億
|
155
|
+
million: 百万
|
156
|
+
quadrillion: 千兆
|
157
|
+
thousand: 千
|
158
|
+
trillion: 兆
|
159
|
+
unit: ''
|
69
160
|
format:
|
70
|
-
delimiter:
|
71
|
-
precision:
|
161
|
+
delimiter: ''
|
162
|
+
precision: 3
|
163
|
+
significant: true
|
164
|
+
strip_insignificant_zeros: true
|
72
165
|
storage_units:
|
73
|
-
format:
|
166
|
+
format: ! '%n%u'
|
74
167
|
units:
|
75
|
-
byte:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
tb:
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
x_months:
|
106
|
-
one: "1ヶ月"
|
107
|
-
other: "%{count}ヶ月"
|
108
|
-
about_x_years:
|
109
|
-
one: "約%{count}年"
|
110
|
-
other: "約%{count}年"
|
111
|
-
over_x_years:
|
112
|
-
one: "%{count}年以上"
|
113
|
-
other: "%{count}年以上"
|
114
|
-
|
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
|
115
198
|
activerecord:
|
116
199
|
errors:
|
117
|
-
|
118
|
-
header:
|
119
|
-
#one: "%{model}にエラーが発生しました。"
|
120
|
-
#other: "%{model}に%{count}つのエラーが発生しました。"
|
121
|
-
# authlogicでuser_sessionのtranslateができないため
|
122
|
-
one: "エラーが発生しました。"
|
123
|
-
other: "%{count}つのエラーが発生しました。"
|
124
|
-
body: "次の項目を確認してください。"
|
125
|
-
|
126
|
-
messages:
|
127
|
-
inclusion: "は一覧にありません。"
|
128
|
-
exclusion: "は予約されています。"
|
129
|
-
invalid: "は不正な値です。"
|
130
|
-
confirmation: "が一致しません。"
|
131
|
-
accepted: "を受諾してください。"
|
132
|
-
empty: "を入力してください。"
|
133
|
-
blank: "を入力してください。"
|
134
|
-
too_long: "は%{count}文字以内で入力してください。"
|
135
|
-
too_short: "は%{count}文字以上で入力してください。"
|
136
|
-
wrong_length: "は%{count}文字で入力してください。"
|
137
|
-
taken: "はすでに存在します。"
|
138
|
-
not_a_number: "は数値で入力してください。"
|
139
|
-
greater_than: "は%{count}より大きい値にしてください。"
|
140
|
-
greater_than_or_equal_to: "は%{count}以上の値にしてください。"
|
141
|
-
equal_to: "は%{count}にしてください。"
|
142
|
-
less_than: "は%{count}より小さい値にしてください。"
|
143
|
-
less_than_or_equal_to: "は%{count}以下の値にしてください。"
|
144
|
-
odd: "は奇数にしてください。"
|
145
|
-
even: "は偶数にしてください。"
|
146
|
-
record_invalid: "バリデーションに失敗しました。 %{errors}"
|
147
|
-
|
148
|
-
full_messages:
|
149
|
-
format: "%{attribute}%{message}"
|
200
|
+
<<: *errors
|
data/spec/dummy/db/test.sqlite3
CHANGED
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.1.0.
|
4
|
+
version: 0.1.0.pre3
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.1.
|
101
|
+
version: 0.1.13
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,39 +106,23 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.1.
|
109
|
+
version: 0.1.13
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: enju_event
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.0.27
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 0.0.27
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: enju_core
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
115
|
+
- - ~>
|
132
116
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
117
|
+
version: 0.1.17.pre2
|
134
118
|
type: :runtime
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
121
|
none: false
|
138
122
|
requirements:
|
139
|
-
- -
|
123
|
+
- - ~>
|
140
124
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
125
|
+
version: 0.1.17.pre2
|
142
126
|
- !ruby/object:Gem::Dependency
|
143
127
|
name: sqlite3
|
144
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,17 +176,17 @@ dependencies:
|
|
192
176
|
requirement: !ruby/object:Gem::Requirement
|
193
177
|
none: false
|
194
178
|
requirements:
|
195
|
-
- -
|
179
|
+
- - ~>
|
196
180
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
181
|
+
version: 2.0.0.pre.120720
|
198
182
|
type: :development
|
199
183
|
prerelease: false
|
200
184
|
version_requirements: !ruby/object:Gem::Requirement
|
201
185
|
none: false
|
202
186
|
requirements:
|
203
|
-
- -
|
187
|
+
- - ~>
|
204
188
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
189
|
+
version: 2.0.0.pre.120720
|
206
190
|
- !ruby/object:Gem::Dependency
|
207
191
|
name: enju_biblio
|
208
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,7 +194,7 @@ dependencies:
|
|
210
194
|
requirements:
|
211
195
|
- - ~>
|
212
196
|
- !ruby/object:Gem::Version
|
213
|
-
version: 0.1.0.
|
197
|
+
version: 0.1.0.pre5
|
214
198
|
type: :development
|
215
199
|
prerelease: false
|
216
200
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -218,7 +202,7 @@ dependencies:
|
|
218
202
|
requirements:
|
219
203
|
- - ~>
|
220
204
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.1.0.
|
205
|
+
version: 0.1.0.pre5
|
222
206
|
- !ruby/object:Gem::Dependency
|
223
207
|
name: enju_library
|
224
208
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,7 +210,7 @@ dependencies:
|
|
226
210
|
requirements:
|
227
211
|
- - ~>
|
228
212
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0.1.0.
|
213
|
+
version: 0.1.0.pre3
|
230
214
|
type: :development
|
231
215
|
prerelease: false
|
232
216
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -234,23 +218,23 @@ dependencies:
|
|
234
218
|
requirements:
|
235
219
|
- - ~>
|
236
220
|
- !ruby/object:Gem::Version
|
237
|
-
version: 0.1.0.
|
221
|
+
version: 0.1.0.pre3
|
238
222
|
- !ruby/object:Gem::Dependency
|
239
223
|
name: enju_export
|
240
224
|
requirement: !ruby/object:Gem::Requirement
|
241
225
|
none: false
|
242
226
|
requirements:
|
243
|
-
- -
|
227
|
+
- - ~>
|
244
228
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
229
|
+
version: 0.1.1.pre
|
246
230
|
type: :development
|
247
231
|
prerelease: false
|
248
232
|
version_requirements: !ruby/object:Gem::Requirement
|
249
233
|
none: false
|
250
234
|
requirements:
|
251
|
-
- -
|
235
|
+
- - ~>
|
252
236
|
- !ruby/object:Gem::Version
|
253
|
-
version:
|
237
|
+
version: 0.1.1.pre
|
254
238
|
- !ruby/object:Gem::Dependency
|
255
239
|
name: enju_manifestation_viewer
|
256
240
|
requirement: !ruby/object:Gem::Requirement
|
@@ -518,6 +502,7 @@ files:
|
|
518
502
|
- spec/dummy/app/models/ability.rb
|
519
503
|
- spec/dummy/app/models/local_patron.rb
|
520
504
|
- spec/dummy/app/models/role.rb
|
505
|
+
- spec/dummy/app/models/setting.rb
|
521
506
|
- spec/dummy/app/models/user.rb
|
522
507
|
- spec/dummy/app/models/user_group.rb
|
523
508
|
- spec/dummy/app/models/user_has_role.rb
|
@@ -529,6 +514,7 @@ files:
|
|
529
514
|
- spec/dummy/app/views/page/404.mobile.erb
|
530
515
|
- spec/dummy/app/views/page/404.xml.erb
|
531
516
|
- spec/dummy/config/application.rb
|
517
|
+
- spec/dummy/config/application.yml
|
532
518
|
- spec/dummy/config/boot.rb
|
533
519
|
- spec/dummy/config/database.yml
|
534
520
|
- spec/dummy/config/environment.rb
|
@@ -788,6 +774,7 @@ test_files:
|
|
788
774
|
- spec/dummy/app/models/ability.rb
|
789
775
|
- spec/dummy/app/models/local_patron.rb
|
790
776
|
- spec/dummy/app/models/role.rb
|
777
|
+
- spec/dummy/app/models/setting.rb
|
791
778
|
- spec/dummy/app/models/user.rb
|
792
779
|
- spec/dummy/app/models/user_group.rb
|
793
780
|
- spec/dummy/app/models/user_has_role.rb
|
@@ -799,6 +786,7 @@ test_files:
|
|
799
786
|
- spec/dummy/app/views/page/404.mobile.erb
|
800
787
|
- spec/dummy/app/views/page/404.xml.erb
|
801
788
|
- spec/dummy/config/application.rb
|
789
|
+
- spec/dummy/config/application.yml
|
802
790
|
- spec/dummy/config/boot.rb
|
803
791
|
- spec/dummy/config/database.yml
|
804
792
|
- spec/dummy/config/environment.rb
|