enju_circulation 0.4.0.beta.1 → 0.4.0.beta.2
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.
- checksums.yaml +4 -4
- data/app/models/concerns/enju_circulation/enju_accept.rb +3 -3
- data/app/models/use_restriction.rb +9 -7
- data/db/migrate/20190816102803_add_display_name_translations_to_use_restriction.rb +5 -0
- data/lib/enju_circulation/version.rb +1 -1
- data/lib/generators/enju_circulation/setup/templates/db/fixtures/use_restrictions.yml +27 -39
- data/lib/tasks/enju_circulation_tasks.rake +0 -6
- data/spec/dummy/app/models/user.rb +2 -1
- data/spec/dummy/db/schema.rb +2 -2
- data/spec/fixtures/use_restrictions.yml +21 -20
- data/spec/models/accept_spec.rb +23 -0
- data/spec/models/user_import_file_spec.rb +83 -0
- data/spec/system/manifestations_spec.rb +2 -2
- metadata +14 -27
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee71223ba0f27699750432bf7e8774bf5bff25fed58580e235ef66e20979ff95
|
4
|
+
data.tar.gz: 5c22855394daeae8c129c79589eb4da20a6bb810bfdf5e50be9463ac2fed7b69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6fa2f76cd44df019ee604d30435bda3bb70d756270954de18efd372994f43e3a54e6e3b392521eb47973abf6ccf46eda7ffc07ebbfd4645d7e822200587b5a3
|
7
|
+
data.tar.gz: '0883d232402ea5cd43249e774fc179aab8d149e6dfcbf533fe3aeb3e13091f77fad7e3ed26c5cb600ecffde456dd89f4e50be70099b28b28fd564ab927bbe3b6'
|
@@ -7,11 +7,11 @@ module EnjuCirculation
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def accept!
|
10
|
-
circulation_status = CirculationStatus.
|
10
|
+
circulation_status = CirculationStatus.find_by(name: 'Available On Shelf')
|
11
11
|
item.update_column(:circulation_status_id, circulation_status.id) if circulation_status
|
12
|
-
use_restriction = UseRestriction.
|
12
|
+
use_restriction = UseRestriction.find_by(name: 'Limited Circulation, Normal Loan Period')
|
13
13
|
item.use_restriction = use_restriction if use_restriction
|
14
|
-
item.index
|
14
|
+
item.index!
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -5,6 +5,7 @@ class UseRestriction < ApplicationRecord
|
|
5
5
|
scope :available, -> {where(name: ['Not For Loan', 'Limited Circulation, Normal Loan Period'])}
|
6
6
|
has_many :item_has_use_restrictions
|
7
7
|
has_many :items, through: :item_has_use_restrictions
|
8
|
+
translates :display_name
|
8
9
|
|
9
10
|
private
|
10
11
|
|
@@ -17,11 +18,12 @@ end
|
|
17
18
|
#
|
18
19
|
# Table name: use_restrictions
|
19
20
|
#
|
20
|
-
# id
|
21
|
-
# name
|
22
|
-
# display_name
|
23
|
-
# note
|
24
|
-
# position
|
25
|
-
# created_at
|
26
|
-
# updated_at
|
21
|
+
# id :integer not null, primary key
|
22
|
+
# name :string not null
|
23
|
+
# display_name :text
|
24
|
+
# note :text
|
25
|
+
# position :integer
|
26
|
+
# created_at :datetime
|
27
|
+
# updated_at :datetime
|
28
|
+
# display_name_translations :jsonb not null
|
27
29
|
#
|
@@ -1,105 +1,93 @@
|
|
1
1
|
---
|
2
2
|
use_restriction_00001:
|
3
3
|
name: Available For Supply Without Return
|
4
|
-
|
5
|
-
en: Available For Supply Without Return
|
6
|
-
ja: 返却不要
|
4
|
+
display_name_translations: {"en": "Available For Supply Without Return", "ja": "返却不要"}
|
7
5
|
id: 1
|
8
6
|
position: 1
|
9
7
|
note: ""
|
10
8
|
use_restriction_00002:
|
11
9
|
name: In Library Use Only
|
12
|
-
|
13
|
-
en: In Library Use Only
|
14
|
-
ja: 館内利用のみ可
|
10
|
+
display_name_translations: {"en": "In Library Use Only", "ja": "館内利用のみ可"}
|
15
11
|
id: 2
|
16
12
|
position: 2
|
17
13
|
note: ""
|
18
14
|
use_restriction_00003:
|
19
15
|
name: Limited Circulation, Long Loan Period
|
20
|
-
|
21
|
-
en: Limited Circulation, Long Loan Period
|
22
|
-
ja: 長期期間貸出
|
16
|
+
display_name_translations: {"en": "Limited Circulation, Long Loan Period", "ja": "長期期間貸出"}
|
23
17
|
id: 3
|
24
18
|
position: 3
|
25
19
|
note: ""
|
26
20
|
use_restriction_00004:
|
27
21
|
name: Limited Circulation, Normal Loan Period
|
28
|
-
|
29
|
-
en: Limited Circulation, Normal Loan Period
|
30
|
-
ja: 通常期間貸出
|
22
|
+
display_name_translations: {"en": "Limited Circulation, Normal Loan Period", "ja": "通常期間貸出"}
|
31
23
|
id: 4
|
32
24
|
position: 4
|
33
25
|
note: ""
|
34
26
|
use_restriction_00005:
|
35
27
|
name: Limited Circulation, Short Loan Period
|
36
|
-
|
37
|
-
en: Limited Circulation, Short Loan Period
|
38
|
-
ja: 短期期間貸出
|
28
|
+
display_name_translations: {"en": "Limited Circulation, Short Loan Period", "ja": "短期期間貸出"}
|
39
29
|
id: 5
|
40
30
|
position: 5
|
41
31
|
note: ""
|
42
32
|
use_restriction_00006:
|
43
33
|
name: No Reproduction
|
44
|
-
|
45
|
-
en: No Reproduction
|
46
|
-
ja: 複製不可
|
34
|
+
display_name_translations: {"en": "No Reproduction", "ja": "複製不可"}
|
47
35
|
id: 6
|
48
36
|
position: 6
|
49
37
|
note: ""
|
50
38
|
use_restriction_00007:
|
51
39
|
name: Not For Loan
|
52
|
-
|
53
|
-
en: Not For Loan
|
54
|
-
ja: 貸出不可
|
40
|
+
display_name_translations: {"en": "Not For Loan", "ja": "貸出不可"}
|
55
41
|
id: 7
|
56
42
|
position: 7
|
57
43
|
note: ""
|
58
44
|
use_restriction_00008:
|
59
45
|
name: Overnight Only
|
60
|
-
|
61
|
-
en: Overnight Only
|
62
|
-
ja: 一夜貸出のみ
|
46
|
+
display_name_translations: {"en": "Overnight Only", "ja": "一夜貸出のみ"}
|
63
47
|
id: 8
|
64
48
|
position: 8
|
65
49
|
note: ""
|
66
50
|
use_restriction_00009:
|
67
51
|
name: Renewals Not Permitted
|
68
|
-
|
69
|
-
en: Renewals Not Permitted
|
70
|
-
ja: 貸出更新不可
|
52
|
+
display_name_translations: {"en": "Renewals Not Permitted", "ja": "貸出更新不可"}
|
71
53
|
id: 9
|
72
54
|
position: 9
|
73
55
|
note: ""
|
74
56
|
use_restriction_00010:
|
75
57
|
name: Supervision Required
|
76
|
-
|
77
|
-
en: Supervision Required
|
78
|
-
ja: 監督下でのみ利用可
|
58
|
+
display_name_translations: {"en": "Supervision Required", "ja": "監督下でのみ利用可"}
|
79
59
|
id: 10
|
80
60
|
position: 10
|
81
61
|
note: ""
|
82
62
|
use_restriction_00011:
|
83
63
|
name: Term Loan
|
84
|
-
|
85
|
-
en: Term Loan
|
86
|
-
ja: 学期間の貸出
|
64
|
+
display_name_translations: {"en": "Term Loan" , "ja": "学期間の貸出"}
|
87
65
|
id: 11
|
88
66
|
position: 11
|
89
67
|
note: ""
|
90
68
|
use_restriction_00012:
|
91
69
|
name: Use Only In Controlled Access
|
92
|
-
|
93
|
-
en: Use Only In Controlled Access
|
94
|
-
ja: 立ち入り制限区域でのみ利用可
|
70
|
+
display_name_translations: {"en": "Use Only In Controlled Access", "ja": "立ち入り制限区域でのみ利用可"}
|
95
71
|
id: 12
|
96
72
|
position: 12
|
97
73
|
note: ""
|
98
74
|
use_restriction_00013:
|
99
75
|
name: User Signature Required
|
100
|
-
|
101
|
-
en: User Signature Required
|
102
|
-
ja: 利用者の署名が必要
|
76
|
+
display_name_translations: {"en": "User Signature Required", "ja": "利用者の署名が必要"}
|
103
77
|
id: 13
|
104
78
|
position: 13
|
105
79
|
note: ""
|
80
|
+
|
81
|
+
# == Schema Information
|
82
|
+
#
|
83
|
+
# Table name: use_restrictions
|
84
|
+
#
|
85
|
+
# id :integer not null, primary key
|
86
|
+
# name :string not null
|
87
|
+
# display_name :text
|
88
|
+
# note :text
|
89
|
+
# position :integer
|
90
|
+
# created_at :datetime
|
91
|
+
# updated_at :datetime
|
92
|
+
# display_name_translations :jsonb not null
|
93
|
+
#
|
@@ -78,10 +78,4 @@ namespace :enju_circulation do
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|
81
|
-
|
82
|
-
desc "upgrade enju_circulation to enju_leaf 2.0"
|
83
|
-
task upgrade_20: :environment do
|
84
|
-
sql = 'UPDATE checkins SET checkout_id = checkouts.id FROM checkouts WHERE checkouts.checkin_id = checkins.id;'
|
85
|
-
ActiveRecord::Base.connection.execute(sql)
|
86
|
-
end
|
87
81
|
end
|
@@ -2,13 +2,14 @@ class User < ApplicationRecord
|
|
2
2
|
# Include default devise modules. Others available are:
|
3
3
|
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
|
4
4
|
devise :database_authenticatable, #:registerable,
|
5
|
-
:recoverable, :rememberable, :trackable, :
|
5
|
+
:recoverable, :rememberable, :trackable, :lockable
|
6
6
|
|
7
7
|
include EnjuSeed::EnjuUser
|
8
8
|
include EnjuMessage::EnjuUser
|
9
9
|
include EnjuCirculation::EnjuUser
|
10
10
|
end
|
11
11
|
|
12
|
+
Accept.include(EnjuCirculation::EnjuAccept)
|
12
13
|
Basket.include(EnjuCirculation::EnjuBasket)
|
13
14
|
Manifestation.include(EnjuCirculation::EnjuManifestation)
|
14
15
|
Manifestation.include(EnjuManifestationViewer::EnjuManifestation)
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,10 +10,9 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2019_08_16_102803) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
|
-
enable_extension "pgcrypto"
|
17
16
|
enable_extension "plpgsql"
|
18
17
|
|
19
18
|
create_table "accepts", id: :serial, force: :cascade do |t|
|
@@ -1298,6 +1297,7 @@ ActiveRecord::Schema.define(version: 2019_08_14_120827) do
|
|
1298
1297
|
t.integer "position"
|
1299
1298
|
t.datetime "created_at"
|
1300
1299
|
t.datetime "updated_at"
|
1300
|
+
t.jsonb "display_name_translations", default: {}, null: false
|
1301
1301
|
end
|
1302
1302
|
|
1303
1303
|
create_table "user_checkout_stat_transitions", id: :serial, force: :cascade do |t|
|
@@ -1,79 +1,79 @@
|
|
1
1
|
---
|
2
2
|
use_restriction_00001:
|
3
3
|
name: Available For Supply Without Return
|
4
|
-
|
4
|
+
display_name_translations: {"en": "Available For Supply Without Return", "ja": "返却不要"}
|
5
5
|
id: 1
|
6
6
|
position: 1
|
7
7
|
note: ""
|
8
8
|
use_restriction_00002:
|
9
9
|
name: In Library Use Only
|
10
|
-
|
10
|
+
display_name_translations: {"en": "In Library Use Only", "ja": "館内利用のみ可"}
|
11
11
|
id: 2
|
12
12
|
position: 2
|
13
13
|
note: ""
|
14
14
|
use_restriction_00003:
|
15
15
|
name: Limited Circulation, Long Loan Period
|
16
|
-
|
16
|
+
display_name_translations: {"en": "Limited Circulation, Long Loan Period", "ja": "長期期間貸出"}
|
17
17
|
id: 3
|
18
18
|
position: 3
|
19
19
|
note: ""
|
20
20
|
use_restriction_00004:
|
21
21
|
name: Limited Circulation, Normal Loan Period
|
22
|
-
|
22
|
+
display_name_translations: {"en": "Limited Circulation, Normal Loan Period", "ja": "通常期間貸出"}
|
23
23
|
id: 4
|
24
24
|
position: 4
|
25
25
|
note: ""
|
26
26
|
use_restriction_00005:
|
27
27
|
name: Limited Circulation, Short Loan Period
|
28
|
-
|
28
|
+
display_name_translations: {"en": "Limited Circulation, Short Loan Period", "ja": "短期期間貸出"}
|
29
29
|
id: 5
|
30
30
|
position: 5
|
31
31
|
note: ""
|
32
32
|
use_restriction_00006:
|
33
33
|
name: No Reproduction
|
34
|
-
|
34
|
+
display_name_translations: {"en": "No Reproduction", "ja": "複製不可"}
|
35
35
|
id: 6
|
36
36
|
position: 6
|
37
37
|
note: ""
|
38
38
|
use_restriction_00007:
|
39
39
|
name: Not For Loan
|
40
|
-
|
40
|
+
display_name_translations: {"en": "Not For Loan", "ja": "貸出不可"}
|
41
41
|
id: 7
|
42
42
|
position: 7
|
43
43
|
note: ""
|
44
44
|
use_restriction_00008:
|
45
45
|
name: Overnight Only
|
46
|
-
|
46
|
+
display_name_translations: {"en": "Overnight Only", "ja": "一夜貸出のみ"}
|
47
47
|
id: 8
|
48
48
|
position: 8
|
49
49
|
note: ""
|
50
50
|
use_restriction_00009:
|
51
51
|
name: Renewals Not Permitted
|
52
|
-
|
52
|
+
display_name_translations: {"en": "Renewals Not Permitted", "ja": "貸出更新不可"}
|
53
53
|
id: 9
|
54
54
|
position: 9
|
55
55
|
note: ""
|
56
56
|
use_restriction_00010:
|
57
57
|
name: Supervision Required
|
58
|
-
|
58
|
+
display_name_translations: {"en": "Supervision Required", "ja": "監督下でのみ利用可"}
|
59
59
|
id: 10
|
60
60
|
position: 10
|
61
61
|
note: ""
|
62
62
|
use_restriction_00011:
|
63
63
|
name: Term Loan
|
64
|
-
|
64
|
+
display_name_translations: {"en": "Term Loan" , "ja": "学期間の貸出"}
|
65
65
|
id: 11
|
66
66
|
position: 11
|
67
67
|
note: ""
|
68
68
|
use_restriction_00012:
|
69
69
|
name: Use Only In Controlled Access
|
70
|
-
|
70
|
+
display_name_translations: {"en": "Use Only In Controlled Access", "ja": "立ち入り制限区域でのみ利用可"}
|
71
71
|
id: 12
|
72
72
|
position: 12
|
73
73
|
note: ""
|
74
74
|
use_restriction_00013:
|
75
75
|
name: User Signature Required
|
76
|
-
|
76
|
+
display_name_translations: {"en": "User Signature Required", "ja": "利用者の署名が必要"}
|
77
77
|
id: 13
|
78
78
|
position: 13
|
79
79
|
note: ""
|
@@ -82,11 +82,12 @@ use_restriction_00013:
|
|
82
82
|
#
|
83
83
|
# Table name: use_restrictions
|
84
84
|
#
|
85
|
-
# id
|
86
|
-
# name
|
87
|
-
# display_name
|
88
|
-
# note
|
89
|
-
# position
|
90
|
-
# created_at
|
91
|
-
# updated_at
|
85
|
+
# id :integer not null, primary key
|
86
|
+
# name :string not null
|
87
|
+
# display_name :text
|
88
|
+
# note :text
|
89
|
+
# position :integer
|
90
|
+
# created_at :datetime
|
91
|
+
# updated_at :datetime
|
92
|
+
# display_name_translations :jsonb not null
|
92
93
|
#
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe Accept do
|
4
|
+
fixtures :all
|
5
|
+
|
6
|
+
it "should change circulation_status" do
|
7
|
+
accept = FactoryBot.create(:accept)
|
8
|
+
accept.item.circulation_status.name.should eq 'Available On Shelf'
|
9
|
+
accept.item.use_restriction.name.should eq 'Limited Circulation, Normal Loan Period'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# == Schema Information
|
14
|
+
#
|
15
|
+
# Table name: accepts
|
16
|
+
#
|
17
|
+
# id :integer not null, primary key
|
18
|
+
# basket_id :integer
|
19
|
+
# item_id :integer
|
20
|
+
# librarian_id :integer
|
21
|
+
# created_at :datetime
|
22
|
+
# updated_at :datetime
|
23
|
+
#
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe UserImportFile do
|
4
|
+
fixtures :all
|
5
|
+
|
6
|
+
describe "when its mode is 'create'" do
|
7
|
+
it "should be imported" do
|
8
|
+
file = UserImportFile.new user_import: File.new("#{Rails.root}/../../examples/user_import_file_sample.tsv")
|
9
|
+
file.default_user_group = UserGroup.find(2)
|
10
|
+
file.default_library = Library.find(3)
|
11
|
+
file.user = users(:admin)
|
12
|
+
file.save
|
13
|
+
old_users_count = User.count
|
14
|
+
old_import_results_count = UserImportResult.count
|
15
|
+
file.current_state.should eq 'pending'
|
16
|
+
file.import_start.should eq({user_imported: 5, user_found: 0, error: 3})
|
17
|
+
user003 = User.find_by(username: 'user003')
|
18
|
+
user003.profile.checkout_icalendar_token.should eq 'secrettoken'
|
19
|
+
user003.profile.save_checkout_history.should be_truthy
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "when its mode is 'destroy'" do
|
24
|
+
it "should not remove users" do
|
25
|
+
old_count = User.count
|
26
|
+
file = UserImportFile.create!(
|
27
|
+
user_import: File.new("#{Rails.root}/../../examples/user_delete_file.tsv"),
|
28
|
+
user: users(:admin),
|
29
|
+
default_user_group: UserGroup.find(2),
|
30
|
+
default_library: Library.find(3)
|
31
|
+
)
|
32
|
+
old_message_count = Message.count
|
33
|
+
file.remove
|
34
|
+
User.count.should eq old_count - 2
|
35
|
+
Message.count.should eq old_message_count + 1
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should not remove users if there are checkouts" do
|
39
|
+
file = UserImportFile.create!(
|
40
|
+
user_import: File.new("#{Rails.root}/../../examples/user_import_file_sample.tsv"),
|
41
|
+
user: users(:admin),
|
42
|
+
default_user_group: UserGroup.find(2),
|
43
|
+
default_library: Library.find(3)
|
44
|
+
)
|
45
|
+
file.import_start
|
46
|
+
|
47
|
+
user001 = User.find_by(username: 'user001')
|
48
|
+
FactoryBot.create(:checkout, user: user001, item: FactoryBot.create(:item))
|
49
|
+
old_count = User.count
|
50
|
+
file = UserImportFile.create!(
|
51
|
+
user_import: File.new("#{Rails.root}/../../examples/user_delete_file.tsv"),
|
52
|
+
user: users(:admin),
|
53
|
+
default_user_group: UserGroup.find(2),
|
54
|
+
default_library: Library.find(3)
|
55
|
+
)
|
56
|
+
file.remove
|
57
|
+
User.where(username: 'user001').should_not be_blank
|
58
|
+
User.count.should eq old_count - 2
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# == Schema Information
|
64
|
+
#
|
65
|
+
# Table name: user_import_files
|
66
|
+
#
|
67
|
+
# id :integer not null, primary key
|
68
|
+
# user_id :integer
|
69
|
+
# note :text
|
70
|
+
# executed_at :datetime
|
71
|
+
# user_import_file_name :string
|
72
|
+
# user_import_content_type :string
|
73
|
+
# user_import_file_size :integer
|
74
|
+
# user_import_updated_at :datetime
|
75
|
+
# user_import_fingerprint :string
|
76
|
+
# edit_mode :string
|
77
|
+
# error_message :text
|
78
|
+
# created_at :datetime
|
79
|
+
# updated_at :datetime
|
80
|
+
# user_encoding :string
|
81
|
+
# default_library_id :integer
|
82
|
+
# default_user_group_id :integer
|
83
|
+
#
|
@@ -15,7 +15,7 @@ RSpec.describe 'Checkouts', type: :system do
|
|
15
15
|
it 'should contain use_restriction' do
|
16
16
|
sign_in users(:librarian1)
|
17
17
|
visit manifestation_path(@item.manifestation)
|
18
|
-
expect(page).to have_content '
|
18
|
+
expect(page).to have_content '貸出不可'
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -23,7 +23,7 @@ RSpec.describe 'Checkouts', type: :system do
|
|
23
23
|
it 'should contain use_restriction' do
|
24
24
|
sign_in users(:librarian1)
|
25
25
|
visit manifestation_path(@item.manifestation)
|
26
|
-
expect(page).to have_content '
|
26
|
+
expect(page).to have_content '貸出不可'
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_circulation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0.beta.
|
4
|
+
version: 0.4.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: enju_biblio
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.4.0.beta.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: enju_manifestation_viewer
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.4.0.beta.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: enju_event
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.4.0.beta.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: enju_leaf
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
62
|
-
type: :
|
61
|
+
version: 2.0.0.beta.1
|
62
|
+
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 2.0.0.beta.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: enju_leaf
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 1.4.0.beta.1
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 1.4.0.beta.1
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: factory_bot_rails
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -530,6 +516,7 @@ files:
|
|
530
516
|
- db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb
|
531
517
|
- db/migrate/20190713114724_add_checkout_id_to_checkin.rb
|
532
518
|
- db/migrate/20190814120827_add_display_name_translations_to_checkout_type.rb
|
519
|
+
- db/migrate/20190816102803_add_display_name_translations_to_use_restriction.rb
|
533
520
|
- lib/enju_circulation.rb
|
534
521
|
- lib/enju_circulation/engine.rb
|
535
522
|
- lib/enju_circulation/helper.rb
|
@@ -815,8 +802,6 @@ files:
|
|
815
802
|
- spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb
|
816
803
|
- spec/dummy/db/schema.rb
|
817
804
|
- spec/dummy/db/test.sqlite3
|
818
|
-
- spec/dummy/private/system/carrier_types/attachments/000/000/001/original/book.png
|
819
|
-
- spec/dummy/private/system/carrier_types/attachments/000/000/001/thumb/book.png
|
820
805
|
- spec/dummy/public/404.html
|
821
806
|
- spec/dummy/public/422.html
|
822
807
|
- spec/dummy/public/500.html
|
@@ -894,6 +879,7 @@ files:
|
|
894
879
|
- spec/fixtures/user_reserve_stats.yml
|
895
880
|
- spec/fixtures/users.yml
|
896
881
|
- spec/helpers/items_helper_spec.rb
|
882
|
+
- spec/models/accept_spec.rb
|
897
883
|
- spec/models/basket_spec.rb
|
898
884
|
- spec/models/carrier_type_has_checkout_type_spec.rb
|
899
885
|
- spec/models/checked_item_spec.rb
|
@@ -916,6 +902,7 @@ files:
|
|
916
902
|
- spec/models/use_resetriction_spec.rb
|
917
903
|
- spec/models/user_checkout_stat_spec.rb
|
918
904
|
- spec/models/user_group_has_checkout_type_spec.rb
|
905
|
+
- spec/models/user_import_file_spec.rb
|
919
906
|
- spec/models/user_reserve_stat_spec.rb
|
920
907
|
- spec/models/user_spec.rb
|
921
908
|
- spec/models/withdraw_spec.rb
|
@@ -1023,8 +1010,6 @@ test_files:
|
|
1023
1010
|
- spec/dummy/public/422.html
|
1024
1011
|
- spec/dummy/public/500.html
|
1025
1012
|
- spec/dummy/public/404.html
|
1026
|
-
- spec/dummy/private/system/carrier_types/attachments/000/000/001/original/book.png
|
1027
|
-
- spec/dummy/private/system/carrier_types/attachments/000/000/001/thumb/book.png
|
1028
1013
|
- spec/dummy/db/schema.rb
|
1029
1014
|
- spec/dummy/db/test.sqlite3
|
1030
1015
|
- spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
|
@@ -1245,6 +1230,7 @@ test_files:
|
|
1245
1230
|
- spec/models/checkout_spec.rb
|
1246
1231
|
- spec/models/item_spec.rb
|
1247
1232
|
- spec/models/checkin_spec.rb
|
1233
|
+
- spec/models/user_import_file_spec.rb
|
1248
1234
|
- spec/models/circulation_status_spec.rb
|
1249
1235
|
- spec/models/manifestation_spec.rb
|
1250
1236
|
- spec/models/manifestation_reserve_stat_spec.rb
|
@@ -1252,6 +1238,7 @@ test_files:
|
|
1252
1238
|
- spec/models/reserve_stat_has_user_spec.rb
|
1253
1239
|
- spec/models/use_resetriction_spec.rb
|
1254
1240
|
- spec/models/user_spec.rb
|
1241
|
+
- spec/models/accept_spec.rb
|
1255
1242
|
- spec/models/basket_spec.rb
|
1256
1243
|
- spec/policies/manifestation_policy_spec.rb
|
1257
1244
|
- spec/system/manifestations_spec.rb
|
Binary file
|