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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ab26b86be90ae3d9a802ef1cbcabdde490cf16
4
- data.tar.gz: ccb193e1f9241d8e6c0035741e6423e7bca0e1b3
3
+ metadata.gz: ccfe1c13a75513c3a8c79b2588d46d72252f70a2
4
+ data.tar.gz: fc56817e44bfdbc91eafb2a48baf308aed4b5c2e
5
5
  SHA512:
6
- metadata.gz: 5ca9a7f42ff9964fe0375792e0e11837d2071e7935445f6c238147d0fc6bc0752966c42feda90b347f54dfd491a092b2e8fbfdc5cf86632ce8e35db1e0c8b747
7
- data.tar.gz: f51f14c7a769969e98e7f331566a78d57715092106bdda5d204785222e76c59bac705403870271d8c1760d1bd2bd4209e458df3a25dfb6a4ac2a29add9cefe59
6
+ metadata.gz: 288c8967ca1ae3546476c289521093b4a51d613fa4c45de6dec91f2d6af6ff6a6cb3b178b954a778d6ed8ff6065f67f3699ab8a120d85eaf8ddaf1fd4f5d37f0
7
+ data.tar.gz: 0f309f4c8bd40810e632eb98f4104923c272f61e90a7317351687389668a3be64c94c89ad39c97bcd32e94f5c21e4b737407d788d44f5799a2b1aa6f9e27ced9
@@ -8,7 +8,7 @@ end
8
8
  # Table name: nii_types
9
9
  #
10
10
  # id :integer not null, primary key
11
- # name :string(255) not null
11
+ # name :string not null
12
12
  # display_name :text
13
13
  # note :text
14
14
  # position :integer
@@ -1,5 +1,4 @@
1
- require 'enju_biblio'
2
- require 'nokogiri'
1
+ require 'enju_subject'
3
2
  require 'rss'
4
3
 
5
4
  module EnjuNii
@@ -1,3 +1,3 @@
1
1
  module EnjuNii
2
- VERSION = "0.2.0.beta.1"
2
+ VERSION = "0.2.0.beta.2"
3
3
  end
@@ -1,6 +1,5 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
- include EnjuLeaf::Controller
4
3
  include EnjuBiblio::Controller
5
4
  include EnjuLibrary::Controller
6
5
  before_action :set_paper_trail_whodunnit
@@ -3,5 +3,5 @@ class User < ActiveRecord::Base
3
3
  :recoverable, :rememberable, :trackable, #, :validatable
4
4
  :lockable, :lock_strategy => :none, :unlock_strategy => :none
5
5
 
6
- include EnjuLeaf::EnjuUser
6
+ include EnjuSeed::EnjuUser
7
7
  end
@@ -6,6 +6,8 @@ Bundler.require(*Rails.groups)
6
6
  require "enju_nii"
7
7
  require "enju_leaf"
8
8
  require "enju_subject"
9
+ require 'globalize'
10
+ require 'globalize-accessors'
9
11
 
10
12
  module Dummy
11
13
  class Application < Rails::Application
@@ -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.string :user_import_file_size
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,5 @@
1
+ class AddSettingsToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :settings, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToUserImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :user_import_results, :error_message, :text
4
+ end
5
+ end
@@ -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
@@ -0,0 +1,9 @@
1
+ class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
2
+ def up
3
+ LibraryGroup.add_translation_fields! footer_banner: :text
4
+ end
5
+
6
+ def down
7
+ remove_column :library_group_translations, :footer_banner
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddHtmlSnippetToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :html_snippet, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserImportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_import_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_import_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class AddMostRecentToUserExportFileTransitions < ActiveRecord::Migration
2
+ def up
3
+ add_column :user_export_file_transitions, :most_recent, :boolean, null: true
4
+ end
5
+
6
+ def down
7
+ remove_column :user_export_file_transitions, :most_recent
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddEmailToLibraryGroup < ActiveRecord::Migration
2
+ def change
3
+ add_column :library_groups, :email, :string
4
+ end
5
+ end
@@ -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: 20141115051741) do
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.string "user_import_file_size"
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
@@ -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.1
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-07-31 00:00:00.000000000 Z
11
+ date: 2016-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: enju_biblio
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.1
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.1
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.1
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: 0.2.0.beta.1
40
+ version: 1.2.0.beta.2
69
41
  - !ruby/object:Gem::Dependency
70
- name: enju_manifestation_viewer
42
+ name: globalize
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
- - - "~>"
45
+ - - ">="
74
46
  - !ruby/object:Gem::Version
75
- version: 0.2.0.beta.1
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.2.0.beta.1
54
+ version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
- name: enju_subject
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.2.0.beta.1
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.2.0.beta.1
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