enju_nii 0.2.0.beta.1 → 0.2.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/nii_type.rb +1 -1
- data/lib/enju_nii/engine.rb +1 -2
- data/lib/enju_nii/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +0 -1
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/config/application.rb +2 -0
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +5 -0
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +13 -0
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +13 -0
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +9 -0
- data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb +5 -0
- data/spec/dummy/db/schema.rb +31 -2
- data/spec/fixtures/nii_types.yml +13 -0
- metadata +35 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccfe1c13a75513c3a8c79b2588d46d72252f70a2
|
4
|
+
data.tar.gz: fc56817e44bfdbc91eafb2a48baf308aed4b5c2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 288c8967ca1ae3546476c289521093b4a51d613fa4c45de6dec91f2d6af6ff6a6cb3b178b954a778d6ed8ff6065f67f3699ab8a120d85eaf8ddaf1fd4f5d37f0
|
7
|
+
data.tar.gz: 0f309f4c8bd40810e632eb98f4104923c272f61e90a7317351687389668a3be64c94c89ad39c97bcd32e94f5c21e4b737407d788d44f5799a2b1aa6f9e27ced9
|
data/app/models/nii_type.rb
CHANGED
data/lib/enju_nii/engine.rb
CHANGED
data/lib/enju_nii/version.rb
CHANGED
@@ -6,7 +6,7 @@ class CreateUserImportFiles < ActiveRecord::Migration
|
|
6
6
|
t.datetime :executed_at
|
7
7
|
t.string :user_import_file_name
|
8
8
|
t.string :user_import_content_type
|
9
|
-
t.
|
9
|
+
t.integer :user_import_file_size
|
10
10
|
t.datetime :user_import_updated_at
|
11
11
|
t.string :user_import_fingerprint
|
12
12
|
t.string :edit_mode
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateWithdraws < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :withdraws do |t|
|
4
|
+
t.integer :basket_id
|
5
|
+
t.integer :item_id
|
6
|
+
t.integer :librarian_id
|
7
|
+
|
8
|
+
t.timestamps null: false
|
9
|
+
end
|
10
|
+
add_index :withdraws, :basket_id
|
11
|
+
add_index :withdraws, :item_id
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
LibraryGroup.create_translation_table!({
|
4
|
+
login_banner: :text
|
5
|
+
}, {
|
6
|
+
migrate_data: true
|
7
|
+
})
|
8
|
+
end
|
9
|
+
|
10
|
+
def down
|
11
|
+
LibraryGroup.drop_translation_table! migrate_data: true
|
12
|
+
end
|
13
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160813130535) do
|
15
15
|
|
16
16
|
create_table "accepts", force: :cascade do |t|
|
17
17
|
t.integer "basket_id"
|
@@ -460,6 +460,18 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
460
460
|
add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
|
461
461
|
add_index "libraries", ["name"], name: "index_libraries_on_name", unique: true
|
462
462
|
|
463
|
+
create_table "library_group_translations", force: :cascade do |t|
|
464
|
+
t.integer "library_group_id", null: false
|
465
|
+
t.string "locale", null: false
|
466
|
+
t.datetime "created_at", null: false
|
467
|
+
t.datetime "updated_at", null: false
|
468
|
+
t.text "login_banner"
|
469
|
+
t.text "footer_banner"
|
470
|
+
end
|
471
|
+
|
472
|
+
add_index "library_group_translations", ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
|
473
|
+
add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
|
474
|
+
|
463
475
|
create_table "library_groups", force: :cascade do |t|
|
464
476
|
t.string "name", null: false
|
465
477
|
t.text "display_name"
|
@@ -473,6 +485,9 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
473
485
|
t.datetime "updated_at"
|
474
486
|
t.text "admin_networks"
|
475
487
|
t.string "url", default: "http://localhost:3000/"
|
488
|
+
t.text "settings"
|
489
|
+
t.text "html_snippet"
|
490
|
+
t.string "email"
|
476
491
|
end
|
477
492
|
|
478
493
|
add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
|
@@ -935,6 +950,7 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
935
950
|
t.integer "user_export_file_id"
|
936
951
|
t.datetime "created_at"
|
937
952
|
t.datetime "updated_at"
|
953
|
+
t.boolean "most_recent"
|
938
954
|
end
|
939
955
|
|
940
956
|
add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
|
@@ -980,6 +996,7 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
980
996
|
t.integer "user_import_file_id"
|
981
997
|
t.datetime "created_at"
|
982
998
|
t.datetime "updated_at"
|
999
|
+
t.boolean "most_recent"
|
983
1000
|
end
|
984
1001
|
|
985
1002
|
add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
|
@@ -991,7 +1008,7 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
991
1008
|
t.datetime "executed_at"
|
992
1009
|
t.string "user_import_file_name"
|
993
1010
|
t.string "user_import_content_type"
|
994
|
-
t.
|
1011
|
+
t.integer "user_import_file_size"
|
995
1012
|
t.datetime "user_import_updated_at"
|
996
1013
|
t.string "user_import_fingerprint"
|
997
1014
|
t.string "edit_mode"
|
@@ -1009,6 +1026,7 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
1009
1026
|
t.text "body"
|
1010
1027
|
t.datetime "created_at"
|
1011
1028
|
t.datetime "updated_at"
|
1029
|
+
t.text "error_message"
|
1012
1030
|
end
|
1013
1031
|
|
1014
1032
|
create_table "users", force: :cascade do |t|
|
@@ -1049,4 +1067,15 @@ ActiveRecord::Schema.define(version: 20141115051741) do
|
|
1049
1067
|
|
1050
1068
|
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
1051
1069
|
|
1070
|
+
create_table "withdraws", force: :cascade do |t|
|
1071
|
+
t.integer "basket_id"
|
1072
|
+
t.integer "item_id"
|
1073
|
+
t.integer "librarian_id"
|
1074
|
+
t.datetime "created_at", null: false
|
1075
|
+
t.datetime "updated_at", null: false
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
|
1079
|
+
add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
|
1080
|
+
|
1052
1081
|
end
|
data/spec/fixtures/nii_types.yml
CHANGED
@@ -76,3 +76,16 @@ nii_type_00013:
|
|
76
76
|
display_name: Others
|
77
77
|
note:
|
78
78
|
position: 13
|
79
|
+
|
80
|
+
# == Schema Information
|
81
|
+
#
|
82
|
+
# Table name: nii_types
|
83
|
+
#
|
84
|
+
# id :integer not null, primary key
|
85
|
+
# name :string not null
|
86
|
+
# display_name :text
|
87
|
+
# note :text
|
88
|
+
# position :integer
|
89
|
+
# created_at :datetime
|
90
|
+
# updated_at :datetime
|
91
|
+
#
|
metadata
CHANGED
@@ -1,99 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_nii
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.beta.
|
4
|
+
version: 0.2.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: 2016-
|
11
|
+
date: 2016-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: enju_subject
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2.0.beta.
|
19
|
+
version: 0.2.0.beta.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2.0.beta.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: faraday
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
26
|
+
version: 0.2.0.beta.2
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: enju_leaf
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.2.0.beta.
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.2.0.beta.1
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: enju_library
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.2.0.beta.1
|
33
|
+
version: 1.2.0.beta.2
|
62
34
|
type: :development
|
63
35
|
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
37
|
requirements:
|
66
38
|
- - "~>"
|
67
39
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
40
|
+
version: 1.2.0.beta.2
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
42
|
+
name: globalize
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
72
44
|
requirements:
|
73
|
-
- - "
|
45
|
+
- - ">="
|
74
46
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
47
|
+
version: '0'
|
76
48
|
type: :development
|
77
49
|
prerelease: false
|
78
50
|
version_requirements: !ruby/object:Gem::Requirement
|
79
51
|
requirements:
|
80
|
-
- - "
|
52
|
+
- - ">="
|
81
53
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
54
|
+
version: '0'
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
56
|
+
name: globalize-accessors
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
58
|
requirements:
|
87
|
-
- - "
|
59
|
+
- - ">="
|
88
60
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
61
|
+
version: '0'
|
90
62
|
type: :development
|
91
63
|
prerelease: false
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
93
65
|
requirements:
|
94
|
-
- - "
|
66
|
+
- - ">="
|
95
67
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
68
|
+
version: '0'
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
70
|
name: sqlite3
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,6 +426,15 @@ files:
|
|
454
426
|
- spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
|
455
427
|
- spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
|
456
428
|
- spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
|
429
|
+
- spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
|
430
|
+
- spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
|
431
|
+
- spec/dummy/db/migrate/20150924115059_create_withdraws.rb
|
432
|
+
- spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
|
433
|
+
- spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
|
434
|
+
- spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
|
435
|
+
- spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
|
436
|
+
- spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
|
437
|
+
- spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
|
457
438
|
- spec/dummy/db/schema.rb
|
458
439
|
- spec/dummy/public/404.html
|
459
440
|
- spec/dummy/public/422.html
|
@@ -677,6 +658,15 @@ test_files:
|
|
677
658
|
- spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
|
678
659
|
- spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
|
679
660
|
- spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
|
661
|
+
- spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
|
662
|
+
- spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
|
663
|
+
- spec/dummy/db/migrate/20150924115059_create_withdraws.rb
|
664
|
+
- spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
|
665
|
+
- spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
|
666
|
+
- spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
|
667
|
+
- spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
|
668
|
+
- spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
|
669
|
+
- spec/dummy/db/migrate/20160813130535_add_email_to_library_group.rb
|
680
670
|
- spec/dummy/db/schema.rb
|
681
671
|
- spec/dummy/public/404.html
|
682
672
|
- spec/dummy/public/422.html
|