enju_event 0.3.3 → 0.3.4

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
  SHA256:
3
- metadata.gz: 4c09dc227acb998f612104371e9211b43d9206edfccb3f229311a8d10c710f7f
4
- data.tar.gz: b00ab7c4d137983044ca7dd1620e7916596b40dadd78e8e398e3e1c77e8604d1
3
+ metadata.gz: 86085078847539c062412610f95d4c641547b0d50a79e647f890b184f1493295
4
+ data.tar.gz: bfb76bb84ae941ac9edd410def82a3f73da7e94df75ae693019d71b9f6e0c925
5
5
  SHA512:
6
- metadata.gz: 71911c2e7ab9c57f2c10e53bd183ec40e9cc436f2d410fbc50abff90fa49f29208da966ef250d124c8af3081f562baf5532231063f4952c9cfac27149c8df37c
7
- data.tar.gz: bd6193c2f51731140c1cb97ed5be3752ca0abf2d9ef3866313597f3cf44c8248d4b22abefc0f0c3a1c59943a6b0700631279c491e61e25757d9ad52ced7919a2
6
+ metadata.gz: 682305a24cc0e7a5b6a598c1b60a9698823ccf7ce6c84e0fd9e3652acaf1c3de0366d9f189ecc72d9f68f4db792441899caeb5c178977646ea307cb3f9c10415
7
+ data.tar.gz: 666a769639a846b11a92d295a7e8aefb7fe21239a8f17d6bcffb63d5ee6274a90a65a1b92cdf2e3de35167925bb36e77e22df805a32d27f3b4557eaede220c42
@@ -2,7 +2,6 @@ require "enju_message"
2
2
  require "ri_cal"
3
3
  require "csv"
4
4
  require "nkf"
5
- require "jbuilder"
6
5
  begin
7
6
  require 'charlock_holmes/string'
8
7
  rescue LoadError
@@ -1,3 +1,3 @@
1
1
  module EnjuEvent
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -5,7 +5,7 @@ class EnjuEvent::SetupGenerator < Rails::Generators::Base
5
5
  directory("db/fixtures", "db/fixtures/enju_event")
6
6
  rake("enju_event_engine:install:migrations")
7
7
  inject_into_file 'app/controllers/application_controller.rb',
8
- " enju_event\n", after: "enju_library\n"
8
+ " include EnjuEvent::Controller\n", after: "include EnjuLibrary::Controller\n"
9
9
  inject_into_file 'app/assets/stylesheets/application.css',
10
10
  " *= require enju_event/application\n", after: " *= require enju_leaf\n"
11
11
  inject_into_file 'app/assets/javascripts/application.js',
@@ -2,10 +2,10 @@ class CreateCountries < ActiveRecord::Migration[4.2]
2
2
 
3
3
  # ISO 3166 is the International Standard for country codes.
4
4
  #
5
- # ISO 3166-1:2006 Codes for the representation of names of countries and their subdivisions - Part 1:
6
- # Country codes which is what most users know as ISO's country codes. First published in 1974, it is has since
7
- # then become one of the world's most popular and most widely used standard solution for coding country names.
8
- # It contains a two-letter code which is recommended as the general purpose code, a three-letter code which has
5
+ # ISO 3166-1:2006 Codes for the representation of names of countries and their subdivisions - Part 1:
6
+ # Country codes which is what most users know as ISO's country codes. First published in 1974, it is has since
7
+ # then become one of the world's most popular and most widely used standard solution for coding country names.
8
+ # It contains a two-letter code which is recommended as the general purpose code, a three-letter code which has
9
9
  # better mnenomic properties and a numeric-3 code which can be useful if script independence of the codes is important.
10
10
  #
11
11
  # http://www.iso.org/iso/country_codes/background_on_iso_3166/what_is_iso_3166.htm
@@ -1,6 +1,6 @@
1
1
  class CreateIsbnRecords < ActiveRecord::Migration[5.2]
2
2
  def change
3
- create_table :isbn_records do |t|
3
+ create_table :isbn_records, class: 'ISBN' do |t|
4
4
  t.string :body, index: {unique: true}, null: false
5
5
  t.string :isbn_type
6
6
  t.string :source
@@ -0,0 +1,5 @@
1
+ class AddMemoToManifestation < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :manifestations, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddMemoToItem < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :items, :memo, :text
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ class CreateCustomProperties < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :custom_properties do |t|
4
+ t.integer :resource_id, null: false
5
+ t.string :resource_type, null: false
6
+ t.text :label, null: false
7
+ t.text :value
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -10,7 +10,7 @@
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: 2019_03_14_151124) do
13
+ ActiveRecord::Schema.define(version: 2019_12_19_122214) do
14
14
 
15
15
  create_table "accepts", force: :cascade do |t|
16
16
  t.integer "basket_id"
@@ -378,6 +378,15 @@ ActiveRecord::Schema.define(version: 2019_03_14_151124) do
378
378
  t.index ["work_id"], name: "index_creates_on_work_id"
379
379
  end
380
380
 
381
+ create_table "custom_properties", force: :cascade do |t|
382
+ t.integer "resource_id", null: false
383
+ t.string "resource_type", null: false
384
+ t.text "label", null: false
385
+ t.text "value"
386
+ t.datetime "created_at", null: false
387
+ t.datetime "updated_at", null: false
388
+ end
389
+
381
390
  create_table "donates", force: :cascade do |t|
382
391
  t.integer "agent_id", null: false
383
392
  t.integer "item_id", null: false
@@ -569,16 +578,6 @@ ActiveRecord::Schema.define(version: 2019_03_14_151124) do
569
578
  t.index ["user_id"], name: "index_import_requests_on_user_id"
570
579
  end
571
580
 
572
- create_table "isbn_record_and_manifestations", force: :cascade do |t|
573
- t.integer "isbn_record_id", null: false
574
- t.integer "manifestation_id", null: false
575
- t.integer "position"
576
- t.datetime "created_at", null: false
577
- t.datetime "updated_at", null: false
578
- t.index ["isbn_record_id"], name: "index_isbn_record_and_manifestations_on_isbn_record_id"
579
- t.index ["manifestation_id"], name: "index_isbn_record_and_manifestations_on_manifestation_id"
580
- end
581
-
582
581
  create_table "isbn_records", force: :cascade do |t|
583
582
  t.string "body", null: false
584
583
  t.string "isbn_type"
@@ -588,25 +587,6 @@ ActiveRecord::Schema.define(version: 2019_03_14_151124) do
588
587
  t.index ["body"], name: "index_isbn_records_on_body", unique: true
589
588
  end
590
589
 
591
- create_table "issn_record_and_manifestations", force: :cascade do |t|
592
- t.integer "issn_record_id", null: false
593
- t.integer "manifestation_id", null: false
594
- t.integer "position"
595
- t.datetime "created_at", null: false
596
- t.datetime "updated_at", null: false
597
- t.index ["issn_record_id"], name: "index_issn_record_and_manifestations_on_issn_record_id"
598
- t.index ["manifestation_id"], name: "index_issn_record_and_manifestations_on_manifestation_id"
599
- end
600
-
601
- create_table "issn_records", force: :cascade do |t|
602
- t.string "body", null: false
603
- t.string "issn_type"
604
- t.string "source"
605
- t.datetime "created_at", null: false
606
- t.datetime "updated_at", null: false
607
- t.index ["body"], name: "index_issn_records_on_body", unique: true
608
- end
609
-
610
590
  create_table "item_has_use_restrictions", force: :cascade do |t|
611
591
  t.integer "item_id", null: false
612
592
  t.integer "use_restriction_id", null: false
@@ -639,6 +619,7 @@ ActiveRecord::Schema.define(version: 2019_03_14_151124) do
639
619
  t.string "binding_call_number"
640
620
  t.datetime "binded_at"
641
621
  t.integer "manifestation_id", null: false
622
+ t.text "memo"
642
623
  t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
643
624
  t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
644
625
  t.index ["checkout_type_id"], name: "index_items_on_checkout_type_id"
@@ -884,6 +865,7 @@ ActiveRecord::Schema.define(version: 2019_03_14_151124) do
884
865
  t.text "publication_place"
885
866
  t.text "extent"
886
867
  t.text "dimensions"
868
+ t.text "memo"
887
869
  t.index ["access_address"], name: "index_manifestations_on_access_address"
888
870
  t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
889
871
  t.index ["doi"], name: "index_manifestations_on_doi"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-12-29 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_message
@@ -665,7 +665,6 @@ files:
665
665
  - spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb
666
666
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
667
667
  - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
668
- - spec/dummy/db/migrate/20160319144230_create_issn_records.rb
669
668
  - spec/dummy/db/migrate/20160506144040_create_isbn_records.rb
670
669
  - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
671
670
  - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
@@ -682,8 +681,6 @@ files:
682
681
  - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
683
682
  - spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb
684
683
  - spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb
685
- - spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb
686
- - spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb
687
684
  - spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb
688
685
  - spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb
689
686
  - spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb
@@ -704,6 +701,9 @@ files:
704
701
  - spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb
705
702
  - spec/dummy/db/migrate/20190311154610_create_periodicals.rb
706
703
  - spec/dummy/db/migrate/20190314151124_add_full_name_translations_to_create.rb
704
+ - spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb
705
+ - spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb
706
+ - spec/dummy/db/migrate/20191219122214_create_custom_properties.rb
707
707
  - spec/dummy/db/schema.rb
708
708
  - spec/dummy/public/404.html
709
709
  - spec/dummy/public/422.html
@@ -843,7 +843,6 @@ test_files:
843
843
  - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
844
844
  - spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb
845
845
  - spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb
846
- - spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb
847
846
  - spec/dummy/db/migrate/035_create_reserves.rb
848
847
  - spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb
849
848
  - spec/dummy/db/migrate/047_create_produces.rb
@@ -929,7 +928,6 @@ test_files:
929
928
  - spec/dummy/db/migrate/20081025083323_create_countries.rb
930
929
  - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
931
930
  - spec/dummy/db/migrate/20080905191442_create_agent_types.rb
932
- - spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb
933
931
  - spec/dummy/db/migrate/006_create_items.rb
934
932
  - spec/dummy/db/migrate/069_create_shelves.rb
935
933
  - spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb
@@ -955,6 +953,7 @@ test_files:
955
953
  - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
956
954
  - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
957
955
  - spec/dummy/db/migrate/125_create_donates.rb
956
+ - spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb
958
957
  - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
959
958
  - spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb
960
959
  - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
@@ -1001,11 +1000,11 @@ test_files:
1001
1000
  - spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
1002
1001
  - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
1003
1002
  - spec/dummy/db/migrate/032_create_checkins.rb
1004
- - spec/dummy/db/migrate/20160319144230_create_issn_records.rb
1005
1003
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
1006
1004
  - spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb
1007
1005
  - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
1008
1006
  - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
1007
+ - spec/dummy/db/migrate/20191219122214_create_custom_properties.rb
1009
1008
  - spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb
1010
1009
  - spec/dummy/db/migrate/117_create_form_of_works.rb
1011
1010
  - spec/dummy/db/migrate/20080819181903_create_message_requests.rb
@@ -1044,6 +1043,7 @@ test_files:
1044
1043
  - spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb
1045
1044
  - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
1046
1045
  - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
1046
+ - spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb
1047
1047
  - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
1048
1048
  - spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
1049
1049
  - spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
@@ -1,11 +0,0 @@
1
- class CreateIssnRecords < ActiveRecord::Migration[5.2]
2
- def change
3
- create_table :issn_records do |t|
4
- t.string :body, index: {unique: true}, null: false
5
- t.string :issn_type
6
- t.string :source
7
-
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- class CreateIssnRecordAndManifestations < ActiveRecord::Migration[5.2]
2
- def change
3
- create_table :issn_record_and_manifestations do |t|
4
- t.references :issn_record, foreign_key: true, on_delete: :cascade, null: false
5
- t.references :manifestation, foreign_key: true, on_delete: :cascade, null: false
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- class CreateIsbnRecordAndManifestations < ActiveRecord::Migration[5.2]
2
- def change
3
- create_table :isbn_record_and_manifestations do |t|
4
- t.references :isbn_record, foreign_key: true, on_delete: :cascade, null: false
5
- t.references :manifestation, foreign_key: true, null: false, on_delete: :cascade
6
- t.integer :position
7
-
8
- t.timestamps
9
- end
10
- end
11
- end