enju_leaf 1.3.4 → 2.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/app/assets/javascripts/enju_leaf/application.js +12 -0
- data/app/assets/javascripts/{autocomplete_agent.js → enju_leaf/autocomplete_agent.js} +0 -0
- data/app/assets/javascripts/{menu.js → enju_leaf/menu.js} +0 -0
- data/app/assets/javascripts/enju_leaf/mobile.js +5 -0
- data/app/assets/javascripts/{portlets.js → enju_leaf/portlets.js} +0 -0
- data/app/assets/javascripts/{select_locale.js → enju_leaf/select_locale.js} +0 -0
- data/app/assets/stylesheets/{enju_leaf.css → enju_leaf/application.scss} +6 -6
- data/app/assets/stylesheets/{enju.css → enju_leaf/enju.css} +0 -0
- data/app/assets/stylesheets/{enju_mobile.css → enju_leaf/enju_mobile.css} +0 -0
- data/app/assets/stylesheets/{enju_print.css → enju_leaf/enju_print.css} +0 -0
- data/app/assets/stylesheets/{mobile.css → enju_leaf/mobile.css} +1 -1
- data/app/assets/stylesheets/{pagination.css → enju_leaf/pagination.css} +0 -0
- data/app/assets/stylesheets/{portlets.css → enju_leaf/portlets.css} +0 -0
- data/app/assets/stylesheets/{print.css → enju_leaf/print.css} +1 -1
- data/app/assets/stylesheets/{scaffold_modified.css → enju_leaf/scaffold_modified.css} +0 -0
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/app/views/layouts/application.html.erb +4 -4
- data/app/views/page/_include.html.erb +1 -1
- data/app/views/page/_index.html+phone.erb +1 -1
- data/app/views/page/_menu.html.erb +1 -1
- data/app/views/page/_mobile.html+phone.erb +2 -2
- data/app/views/page/about.en.html.erb +4 -4
- data/app/views/page/about.ja.html.erb +4 -4
- data/app/views/page/advanced_search.html.erb +5 -5
- data/app/views/page/configuration.html.erb +0 -2
- data/app/views/page/opensearch.xml.builder +2 -2
- data/config/locales/en.yml +0 -4
- data/config/locales/ja.yml +0 -4
- data/lib/enju_leaf/engine.rb +1 -1
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +5 -2
- data/lib/generators/enju_leaf/setup/setup_generator.rb +22 -17
- data/lib/generators/enju_leaf/setup/templates/Procfile +2 -2
- data/lib/generators/enju_leaf/setup/templates/config/schedule.rb +2 -2
- data/lib/generators/enju_leaf/setup/templates/db/seeds.rb +0 -4
- data/lib/tasks/enju_leaf_tasks.rake +2 -5
- data/spec/acceptance/profile.rb +9 -0
- data/spec/controllers/page_controller_spec.rb +1 -1
- data/spec/dummy/app/assets/javascripts/application.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +1 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -1
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config.ru +3 -2
- data/spec/dummy/config/application.rb +3 -2
- data/spec/dummy/config/boot.rb +4 -9
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/environments/development.rb +9 -2
- data/spec/dummy/config/environments/production.rb +7 -4
- data/spec/dummy/config/environments/test.rb +7 -1
- data/spec/dummy/config/initializers/assets.rb +1 -2
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/locales/en.yml +30 -2
- data/spec/dummy/config/puma.rb +34 -0
- data/spec/dummy/config/routes.rb +2 -58
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/005_create_manifestations.rb +3 -3
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +3 -7
- data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +3 -7
- data/spec/dummy/db/migrate/149_create_message_templates.rb +3 -8
- data/spec/dummy/db/migrate/154_create_messages.rb +6 -14
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +4 -4
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +6 -5
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +1 -1
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +2 -4
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +1 -1
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +1 -1
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -1
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +1 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +1 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +1 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -1
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +4 -5
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +4 -9
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +4 -9
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160319144230_create_issn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160506144040_create_isbn_records.rb +11 -0
- data/spec/dummy/db/migrate/20160703185015_add_most_recent_to_message_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160814165332_add_most_recent_to_message_request_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/20170114174536_add_profile_id_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
- data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +5 -0
- data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20181030072731_add_not_null_to_position_on_carrier_type.rb +14 -0
- data/spec/dummy/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/spec/dummy/db/migrate/20190208135957_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/spec/dummy/db/schema.rb +265 -135
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/node_modules/jquery/AUTHORS.txt +278 -0
- data/spec/dummy/node_modules/jquery/LICENSE.txt +36 -0
- data/spec/dummy/node_modules/jquery/README.md +65 -0
- data/spec/dummy/node_modules/jquery/bower.json +14 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.js +9814 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.min.js +4 -0
- data/spec/dummy/node_modules/jquery/dist/jquery.min.map +1 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +2143 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/spec/dummy/node_modules/jquery/package.json +84 -0
- data/spec/dummy/node_modules/jquery/src/ajax.js +845 -0
- data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/spec/dummy/node_modules/jquery/src/ajax/load.js +83 -0
- data/spec/dummy/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/spec/dummy/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/spec/dummy/node_modules/jquery/src/ajax/script.js +68 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/spec/dummy/node_modules/jquery/src/attributes.js +11 -0
- data/spec/dummy/node_modules/jquery/src/attributes/attr.js +142 -0
- data/spec/dummy/node_modules/jquery/src/attributes/classes.js +177 -0
- data/spec/dummy/node_modules/jquery/src/attributes/prop.js +125 -0
- data/spec/dummy/node_modules/jquery/src/attributes/support.js +36 -0
- data/spec/dummy/node_modules/jquery/src/attributes/val.js +177 -0
- data/spec/dummy/node_modules/jquery/src/callbacks.js +232 -0
- data/spec/dummy/node_modules/jquery/src/core.js +494 -0
- data/spec/dummy/node_modules/jquery/src/core/access.js +65 -0
- data/spec/dummy/node_modules/jquery/src/core/init.js +134 -0
- data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/spec/dummy/node_modules/jquery/src/core/ready.js +103 -0
- data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/spec/dummy/node_modules/jquery/src/css.js +502 -0
- data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/spec/dummy/node_modules/jquery/src/css/curCSS.js +60 -0
- data/spec/dummy/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/spec/dummy/node_modules/jquery/src/css/showHide.js +48 -0
- data/spec/dummy/node_modules/jquery/src/css/support.js +121 -0
- data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/spec/dummy/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/spec/dummy/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/spec/dummy/node_modules/jquery/src/css/var/swap.js +24 -0
- data/spec/dummy/node_modules/jquery/src/data.js +187 -0
- data/spec/dummy/node_modules/jquery/src/data/Data.js +200 -0
- data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/spec/dummy/node_modules/jquery/src/deferred.js +158 -0
- data/spec/dummy/node_modules/jquery/src/deprecated.js +32 -0
- data/spec/dummy/node_modules/jquery/src/dimensions.js +54 -0
- data/spec/dummy/node_modules/jquery/src/effects.js +629 -0
- data/spec/dummy/node_modules/jquery/src/effects/Tween.js +121 -0
- data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/spec/dummy/node_modules/jquery/src/event.js +711 -0
- data/spec/dummy/node_modules/jquery/src/event/ajax.js +20 -0
- data/spec/dummy/node_modules/jquery/src/event/alias.js +27 -0
- data/spec/dummy/node_modules/jquery/src/event/focusin.js +53 -0
- data/spec/dummy/node_modules/jquery/src/event/support.js +9 -0
- data/spec/dummy/node_modules/jquery/src/event/trigger.js +183 -0
- data/spec/dummy/node_modules/jquery/src/exports/amd.js +24 -0
- data/spec/dummy/node_modules/jquery/src/exports/global.js +26 -0
- data/spec/dummy/node_modules/jquery/src/intro.js +44 -0
- data/spec/dummy/node_modules/jquery/src/jquery.js +37 -0
- data/spec/dummy/node_modules/jquery/src/manipulation.js +481 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/support.js +33 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/spec/dummy/node_modules/jquery/src/offset.js +218 -0
- data/spec/dummy/node_modules/jquery/src/outro.js +2 -0
- data/spec/dummy/node_modules/jquery/src/queue.js +143 -0
- data/spec/dummy/node_modules/jquery/src/queue/delay.js +22 -0
- data/spec/dummy/node_modules/jquery/src/selector-native.js +211 -0
- data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/spec/dummy/node_modules/jquery/src/selector.js +1 -0
- data/spec/dummy/node_modules/jquery/src/serialize.js +125 -0
- data/spec/dummy/node_modules/jquery/src/traversing.js +175 -0
- data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/spec/dummy/node_modules/jquery/src/var/arr.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/class2type.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/concat.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/document.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/documentElement.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/indexOf.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/pnum.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/push.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/spec/dummy/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/spec/dummy/node_modules/jquery/src/var/slice.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/support.js +5 -0
- data/spec/dummy/node_modules/jquery/src/var/toString.js +5 -0
- data/spec/dummy/node_modules/jquery/src/wrap.js +79 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141214-44379-1fdvvdb.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141225-67268-nerc4o.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20150123-14447-1lf8lc5.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141214-44379-1exy9mg.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58343-ztcmne.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58490-hnqvxg.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58609-5iyax7.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58776-1e9gg8b.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58951-zfxzc6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59095-l3yd2t.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59220-1mgboh1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59533-1ie807t.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59716-m8uy9h.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59834-1fcv3ir.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59932-14y6v8m.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60422-ksg8ww.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60507-j2u5ra.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60619-2j2h65.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60822-1xdqwcc.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60925-4d4ce1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-61046-y4nspn.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62053-1qsuqzd.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62204-3quf6j.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62472-w05wkf.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67112-1viizrs.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67232-11tcrfq.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67342-1bajplt.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67475-gmnmq4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74670-mxvkc6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74954-1m11avl.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75054-1ac0xmz.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75135-1r3z1p.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75289-18xm9sx.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75372-1ab1rn4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75612-14gavh8.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75709-xgjjja.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75832-uej6ye.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75905-13kbauv.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76001-13yt1kv.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76158-1pitds8.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76526-q0rb2j.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76848-ya95k2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-88475-165899e.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-89902-paupo2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90001-1eg9w1e.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90157-bcu8m7.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141221-7985-u6s6l1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44711-1amcibm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44828-ap6n8d.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-48701-14hbzl1.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-49875-1pc6esj.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64608-1wo1bpq.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64763-daej3l.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65000-1a7srlh.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65196-ggad1c.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65273-tt5ev2.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65424-1d17hts.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65662-1gqvlj3.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65725-1qpz2tm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65807-t7cfln.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65962-161pm01.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66069-h9ftv6.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66327-hsz0j4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-67268-hqxt6v.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150119-54567-1exwx4r.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-80886-1whqn2s.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-81115-hlvwc4.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86495-navftm.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86986-894a3i.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150122-4492-vaml86.txt +8 -0
- data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150123-14447-gy0ver.txt +8 -0
- data/spec/dummy/yarn.lock +8 -0
- data/spec/factories/agent.rb +1 -1
- data/spec/factories/library.rb +1 -1
- data/spec/factories/profile.rb +3 -3
- data/spec/factories/user.rb +25 -31
- data/spec/fixtures/carrier_types.yml +23 -24
- data/spec/fixtures/content_types.yml +78 -22
- data/spec/fixtures/libraries.yml +28 -31
- data/spec/fixtures/library_groups.yml +33 -16
- data/spec/fixtures/manifestations.yml +32 -27
- data/spec/fixtures/roles.yml +11 -12
- data/spec/fixtures/shelves.yml +14 -15
- data/spec/fixtures/user_groups.yml +9 -16
- data/spec/fixtures/user_has_roles.yml +2 -1
- data/spec/rails_helper.rb +11 -1
- data/spec/system/page_spec.rb +35 -0
- data/spec/views/page/configuration.html.erb_spec.rb +1 -1
- metadata +479 -93
- data/app/assets/javascripts/enju_leaf.js +0 -12
- data/app/assets/javascripts/mobile.js +0 -4
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -25
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/vendor/assets/javascripts/jquery.colorbox.js +0 -1105
- data/vendor/assets/javascripts/jquery.powertip.js +0 -1395
- data/vendor/assets/stylesheets/colorbox.css +0 -70
- data/vendor/assets/stylesheets/jquery.powertip.css +0 -105
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 602199f5d16aa5bc86247f221e820011187839881c295106b587ae4815f5cd8c
|
4
|
+
data.tar.gz: ebaaa6802346f19b15474f180e43285f038eceab1f623095e01c3533cf582dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b175016f211a158b551f7c85be496af6508dec760cfa254872844704a4ae5749b0eb8b993b0f1be101e57b55a6599b412797c1b26314b63527ff573b59bc6526
|
7
|
+
data.tar.gz: 5d64877150bb883919ae2720b5a7ff51fdcbf61e6458b55d936204af79cda1680bf7432d2e63a31260668efa67b87be2660b69e159ee24807d9689b36411227d
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Next-L Enju Leaf
|
2
|
-
[![
|
3
|
-
[![Coverage Status](https://coveralls.io/repos/github/next-l/enju_leaf/badge.svg?branch=
|
4
|
-
[![security](https://hakiri.io/github/next-l/enju_leaf/1.3.svg)](https://hakiri.io/github/next-l/enju_leaf/1.3)
|
2
|
+
[![CircleCI](https://circleci.com/gh/next-l/enju_leaf/tree/2.x.svg?style=svg)](https://circleci.com/gh/next-l/enju_leaf/tree/2.x)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/next-l/enju_leaf/badge.svg?branch=2.x)](https://coveralls.io/github/next-l/enju_leaf?branch=2.x)
|
5
4
|
|
6
5
|
Next-L Enju Leaf は、[Project Next-L](https://www.next-l.jp) で開発している図書館管理システムです。
|
7
6
|
|
@@ -35,4 +34,3 @@ library system maintained by Japanese volunteers interested in libraries.
|
|
35
34
|
## 製作者・貢献者 (Authors and contributors)
|
36
35
|
* [TANABE, Kosuke](https://github.com/nabeta) ([@nabeta](https://twitter.com/nabeta))
|
37
36
|
* [Project Next-L](https://www.next-l.jp) ([@ProjectNextL](https://twitter.com/ProjectNextL))
|
38
|
-
|
@@ -0,0 +1,12 @@
|
|
1
|
+
//= require jquery.ui.all
|
2
|
+
//= require jquery-colorbox/jquery.colorbox
|
3
|
+
//= require jquery.highlight
|
4
|
+
//= require jquery.shortcut
|
5
|
+
//= require jquery.cookie
|
6
|
+
//= require jquery.ui.menubar
|
7
|
+
//= require enju_leaf/select_locale
|
8
|
+
//= require enju_leaf/portlets
|
9
|
+
//= require enju_leaf/menu
|
10
|
+
//= require jquery-powertip/dist/jquery.powertip
|
11
|
+
//= require cocoon
|
12
|
+
//= require enju_leaf/autocomplete_agent
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/*
|
2
2
|
*= require html5-doctor-reset-stylesheet.min
|
3
|
-
*= require scaffold_modified
|
4
|
-
*= require enju
|
5
|
-
*= require colorbox
|
6
|
-
*= require pagination
|
7
|
-
*= require jquery.powertip
|
3
|
+
*= require enju_leaf/scaffold_modified
|
4
|
+
*= require enju_leaf/enju
|
5
|
+
*= require jquery-colorbox/example1/colorbox
|
6
|
+
*= require enju_leaf/pagination
|
7
|
+
*= require jquery-powertip/dist/css/jquery.powertip
|
8
8
|
*= require jquery.ui.button
|
9
9
|
*= require jquery.ui.tabs
|
10
10
|
*= require jquery.ui.menu
|
@@ -12,5 +12,5 @@
|
|
12
12
|
*= require jquery.ui.menubar
|
13
13
|
*= require jquery.ui.autocomplete
|
14
14
|
*= require jquery.ui.theme
|
15
|
-
*= require portlets
|
15
|
+
*= require enju_leaf/portlets
|
16
16
|
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,5 +3,5 @@
|
|
3
3
|
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
4
|
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
5
|
*= require_self
|
6
|
-
*= require enju_print
|
6
|
+
*= require enju_leaf/enju_print
|
7
7
|
*/
|
File without changes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<h2 class="title"><%= t('activerecord.models.registration') %></h2>
|
3
3
|
<div id="content_list">
|
4
4
|
|
5
|
-
<%= form_for(resource, as: resource_name, url:
|
5
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
6
6
|
<%= devise_error_messages! %>
|
7
7
|
|
8
8
|
<div class="field">
|
@@ -5,11 +5,11 @@
|
|
5
5
|
<%= render 'page/include' %>
|
6
6
|
<title><%= title(controller.controller_name) %></title>
|
7
7
|
<%- if controller.controller_name == 'manifestations' and controller.action_name == 'index' -%>
|
8
|
-
<%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name
|
9
|
-
<%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name
|
8
|
+
<%= auto_discovery_link_tag(:rss, url_for(params.permit.merge(format: 'rss', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name) + " (RSS)")) %>
|
9
|
+
<%= auto_discovery_link_tag(:atom, url_for(params.permit.merge(format: 'atom', page: nil, commit: nil, only_path: true)), title: (t('manifestation.library_group_manifestation', library_group_name: @library_group.display_name) + " (Atom)")) %>
|
10
10
|
<% if defined?(EnjuNews) %>
|
11
|
-
<%= auto_discovery_link_tag(:rss, news_posts_url(format: :rss, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name
|
12
|
-
<%= auto_discovery_link_tag(:atom, news_posts_url(format: :atom, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name
|
11
|
+
<%= auto_discovery_link_tag(:rss, news_posts_url(format: :rss, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name) + " (RSS)")) %>
|
12
|
+
<%= auto_discovery_link_tag(:atom, news_posts_url(format: :atom, locale: @locale), title: (t('news_post.library_group_news_post', library_group_name: @library_group.display_name) + " (Atom)")) %>
|
13
13
|
<% end %>
|
14
14
|
<% end %>
|
15
15
|
<%= book_jacket_header(@library_group.book_jacket_source) %>
|
@@ -91,7 +91,7 @@
|
|
91
91
|
<li><%= link_to t('page.calendar'), events_path(mode: 'calendar') -%></li>
|
92
92
|
<li><%= link_to t('event.all'), events_path -%></li>
|
93
93
|
<%- @library_group.real_libraries.each do |library| -%>
|
94
|
-
<li><%= link_to library.display_name
|
94
|
+
<li><%= link_to library.display_name, events_path(library_id: library.name) -%></li>
|
95
95
|
<%- end -%>
|
96
96
|
<%- if policy(Event).create? -%>
|
97
97
|
<li><%= link_to t('page.import'), new_event_import_file_path -%></li>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
2
|
-
<%= javascript_include_tag 'mobile' %>
|
3
|
-
<%= stylesheet_link_tag 'mobile' %>
|
2
|
+
<%= javascript_include_tag 'enju_leaf/mobile' %>
|
3
|
+
<%= stylesheet_link_tag 'enju_leaf/mobile' %>
|
@@ -29,8 +29,8 @@
|
|
29
29
|
</li>
|
30
30
|
<li>This system has been using bibliographic data from the following services and databases.
|
31
31
|
<ul>
|
32
|
-
<li><a href="
|
33
|
-
<li><a href="
|
32
|
+
<li><a href="http://iss.ndl.go.jp/">NDL Search</a></li>
|
33
|
+
<li><a href="http://crd.ndl.go.jp/jp/public/">National Diet Library Collaborative Reference Database</a></li>
|
34
34
|
</ul>
|
35
35
|
</li>
|
36
36
|
<li>This system has been using book jacket images from the following service.
|
@@ -51,8 +51,8 @@
|
|
51
51
|
|
52
52
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
53
53
|
<ul>
|
54
|
-
<li><a href="
|
54
|
+
<li><a href="http://www.next-l.jp/">Project Next-L</a></li>
|
55
55
|
<li><a href="https://github.com/next-l/enju_leaf">this project on GitHub</a></li>
|
56
|
-
<li><a href="
|
56
|
+
<li><a href="http://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">Mailing list</a> (in Japanese)</li>
|
57
57
|
</ul>
|
58
58
|
</div>
|
@@ -28,8 +28,8 @@
|
|
28
28
|
</li>
|
29
29
|
<li>このシステムは、以下のサービスやデータベースから得た書誌データを利用しています。
|
30
30
|
<ul>
|
31
|
-
<li><a href="
|
32
|
-
<li><a href="
|
31
|
+
<li><a href="http://iss.ndl.go.jp/">国立国会図書館サーチ (NDLサーチ)</a></li>
|
32
|
+
<li><a href="http://crd.ndl.go.jp/jp/public/">国立国会図書館レファレンス協同データベース</a></li>
|
33
33
|
</ul>
|
34
34
|
</li>
|
35
35
|
<li>このシステムは、以下のサービスから得た書影を利用しています。
|
@@ -50,8 +50,8 @@
|
|
50
50
|
|
51
51
|
<div id="submenu" class="ui-corner-all ui-widget-content">
|
52
52
|
<ul>
|
53
|
-
<li><a href="
|
53
|
+
<li><a href="http://www.next-l.jp/">Project Next-L</a></li>
|
54
54
|
<li><a href="https://github.com/next-l/enju_leaf">GitHubでのプロジェクトのページ</a></li>
|
55
|
-
<li><a href="
|
55
|
+
<li><a href="http://www.next-l.jp/?page=%A5%E1%A1%BC%A5%EA%A5%F3%A5%B0%A5%EA%A5%B9%A5%C8">メーリングリスト</a></li>
|
56
56
|
</ul>
|
57
57
|
</div>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<ul>
|
12
12
|
<% @libraries.sort_by{|l| l.position }.each do |library| %>
|
13
13
|
<li>
|
14
|
-
<%= label_tag :"#{library.name}_shelf", library.display_name
|
14
|
+
<%= label_tag :"#{library.name}_shelf", library.display_name %>:
|
15
15
|
<% Shelf.where(library_id: library.id).sort_by{|s| s.position }.each do |shelf| %>
|
16
|
-
<label><%= check_box_tag "#{library.name}_shelf[]", shelf.name %><%= shelf.display_name
|
16
|
+
<label><%= check_box_tag "#{library.name}_shelf[]", shelf.name %><%= shelf.display_name %></label>
|
17
17
|
<% end %>
|
18
18
|
<span class="check_all"><%= check_all_button "#{library.name}_shelf_", t('advanced_search.check_all') %></span>
|
19
19
|
</li>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<td><%= label_tag :library_adv, t('activerecord.models.library') %>:</td>
|
27
27
|
<td>
|
28
28
|
<% @libraries.sort_by{|l| l.position }.each do |library| %>
|
29
|
-
<label><%= check_box_tag "library_adv[]", library.name %><%= library.display_name
|
29
|
+
<label><%= check_box_tag "library_adv[]", library.name %><%= library.display_name %></label>
|
30
30
|
<% end %>
|
31
31
|
<div class="check_all"><%= check_all_button "library_adv_", t('advanced_search.check_all') %></div>
|
32
32
|
</td>
|
@@ -75,7 +75,7 @@
|
|
75
75
|
<td><label><%= t('activerecord.models.classification') %>:</label></td>
|
76
76
|
<td>
|
77
77
|
<%- types = ClassificationType.all.select{|t| ! t.classifications.empty? } -%>
|
78
|
-
<%= select_tag 'classification_type', options_from_collection_for_select( types, :id, Proc.new{|e| e.display_name
|
78
|
+
<%= select_tag 'classification_type', options_from_collection_for_select( types, :id, Proc.new{|e| e.display_name } ) -%>
|
79
79
|
<%= text_field_tag 'classification' -%>
|
80
80
|
</td>
|
81
81
|
</tr>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<select id="library_top" name="library">
|
107
107
|
<option value=""><%= t('advanced_search.all_libraries') -%></option>
|
108
108
|
<%- @libraries.each do |library| -%>
|
109
|
-
<option value="<%= library.name -%>"><%= library.display_name
|
109
|
+
<option value="<%= library.name -%>"><%= library.display_name -%></option>
|
110
110
|
<%- end -%>
|
111
111
|
</select>
|
112
112
|
</td>
|
@@ -125,8 +125,6 @@
|
|
125
125
|
<li><%= link_to t('activerecord.models.realize_type'), realize_types_path -%></li>
|
126
126
|
<li><%= link_to t('activerecord.models.produce_type'), produce_types_path -%></li>
|
127
127
|
-->
|
128
|
-
<li><%= link_to t('activerecord.models.manifestation_custom_property'), manifestation_custom_properties_path -%></li>
|
129
|
-
<li><%= link_to t('activerecord.models.item_custom_property'), item_custom_properties_path -%></li>
|
130
128
|
</ul>
|
131
129
|
</div>
|
132
130
|
</div>
|
@@ -2,8 +2,8 @@ xml.instruct! :xml, :version=>"1.0"
|
|
2
2
|
xml.OpenSearchDescription(
|
3
3
|
'xmlns' => "http://a9.com/-/spec/opensearch/1.1/",
|
4
4
|
'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/'){
|
5
|
-
xml.ShortName @library_group.display_name
|
6
|
-
xml.Description @library_group.display_name
|
5
|
+
xml.ShortName @library_group.display_name
|
6
|
+
xml.Description @library_group.display_name
|
7
7
|
xml.Tags 'Library Catalog'
|
8
8
|
xml.Contact @library_group.user.email
|
9
9
|
xml.Url type: 'text/html', template: "#{manifestations_url}?query={searchTerms}"
|
data/config/locales/en.yml
CHANGED
data/config/locales/ja.yml
CHANGED
data/lib/enju_leaf/engine.rb
CHANGED
@@ -6,7 +6,7 @@ require 'jquery-ui-rails'
|
|
6
6
|
module EnjuLeaf
|
7
7
|
class Engine < ::Rails::Engine
|
8
8
|
initializer :assets do |config|
|
9
|
-
Rails.application.config.assets.precompile += %w( mobile.js mobile.css print.css )
|
9
|
+
Rails.application.config.assets.precompile += %w( enju_leaf/mobile.js enju_leaf/mobile.css enju_leaf/print.css )
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/enju_leaf/version.rb
CHANGED
@@ -10,14 +10,17 @@ class EnjuLeaf::QuickInstallGenerator < Rails::Generators::Base
|
|
10
10
|
rake("enju_biblio_engine:install:migrations")
|
11
11
|
rake("enju_manifestation_viewer_engine:install:migrations")
|
12
12
|
rake("enju_subject_engine:install:migrations")
|
13
|
-
rake("enju_inventory_engine:install:migrations")
|
14
13
|
if !ENV['ENJU_SKIP_CONFIG']
|
15
14
|
generate("enju_seed:setup")
|
16
15
|
generate("enju_library:setup")
|
17
16
|
generate("enju_biblio:setup")
|
18
17
|
generate("enju_circulation:setup")
|
19
18
|
generate("enju_subject:setup")
|
20
|
-
generate("enju_inventory:setup")
|
21
19
|
end
|
20
|
+
rake("enju_ndl_engine:install:migrations")
|
21
|
+
append_to_file "app/models/user.rb", <<EOS.strip_heredoc
|
22
|
+
Manifestation.include(EnjuManifestationViewer::EnjuManifestation)
|
23
|
+
Manifestation.include(EnjuNdl::EnjuManifestation)
|
24
|
+
EOS
|
22
25
|
end
|
23
26
|
end
|
@@ -11,10 +11,9 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
|
|
11
11
|
<<"EOS"
|
12
12
|
config.i18n.available_locales = [:en, :ja]
|
13
13
|
config.i18n.enforce_available_locales = true
|
14
|
+
config.active_job.queue_adapter = :resque
|
14
15
|
config.i18n.default_locale = :ja
|
15
|
-
config.i18n.fallbacks = [I18n.default_locale]
|
16
16
|
config.time_zone = 'Tokyo'
|
17
|
-
config.active_job.queue_adapter = :resque
|
18
17
|
EOS
|
19
18
|
end
|
20
19
|
gsub_file 'config/schedule.rb', /\/path\/to\/enju_leaf/, Rails.root.to_s
|
@@ -31,13 +30,23 @@ EOS
|
|
31
30
|
end
|
32
31
|
inject_into_class "app/controllers/application_controller.rb", ApplicationController do
|
33
32
|
<<"EOS"
|
33
|
+
include EnjuLibrary::Controller
|
34
|
+
include EnjuBiblio::Controller
|
35
|
+
|
34
36
|
include Pundit
|
35
|
-
before_action :set_paper_trail_whodunnit
|
36
37
|
after_action :verify_authorized, unless: :devise_controller?
|
37
38
|
EOS
|
38
39
|
end
|
40
|
+
rake("active_storage:install")
|
41
|
+
rake("sitemap:install")
|
39
42
|
generate("devise:install")
|
40
43
|
generate("devise", "User")
|
44
|
+
gsub_file 'app/models/user.rb', /, :registerable,$/, ', #:registerable,'
|
45
|
+
gsub_file 'app/models/user.rb', /, :validatable$/, <<EOS
|
46
|
+
, #:validatable,
|
47
|
+
:lockable, lock_strategy: :none, unlock_strategy: :none
|
48
|
+
include EnjuSeed::EnjuUser
|
49
|
+
EOS
|
41
50
|
generate("sunspot_rails:install")
|
42
51
|
generate("kaminari:config")
|
43
52
|
generate("simple_form:install")
|
@@ -84,14 +93,15 @@ EOS
|
|
84
93
|
|
85
94
|
inject_into_file "app/assets/javascripts/application.js", after: /\/\/= require rails-ujs$\n/ do
|
86
95
|
<<"EOS"
|
87
|
-
//= require
|
88
|
-
//= require
|
96
|
+
//= require jquery/dist/jquery
|
97
|
+
//= require jquery-migrate/dist/jquery-migrate
|
98
|
+
//= require enju_leaf/application
|
89
99
|
EOS
|
90
100
|
end
|
91
101
|
inject_into_file "app/assets/stylesheets/application.css", after: / *= require_self$\n/ do
|
92
|
-
" *= require enju_leaf\n"
|
102
|
+
" *= require enju_leaf/application\n"
|
93
103
|
end
|
94
|
-
inject_into_file "config.ru", after: /
|
104
|
+
inject_into_file "config.ru", after: /require ::File.expand_path\(\'..\/config\/environment\', __FILE__\)$\n/ do
|
95
105
|
<<"EOS"
|
96
106
|
require 'rack/protection'
|
97
107
|
use Rack::Protection, except: [:escaped_params, :json_csrf, :http_origin, :session_hijacking, :remote_token]
|
@@ -102,18 +112,13 @@ EOS
|
|
102
112
|
gsub_file 'config/environments/production.rb',
|
103
113
|
/config.serve_static_assets = false$/,
|
104
114
|
"config.serve_static_assets = true"
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
"config.cache_store = :redis_store, ENV['REDIS_URL'], { expires_in: 1.day }"
|
109
|
-
else
|
110
|
-
gsub_file 'config/environments/production.rb',
|
111
|
-
/# config.cache_store = :mem_cache_store$/,
|
112
|
-
"config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'], expires_in: 1.day }"
|
113
|
-
end
|
114
|
-
|
115
|
+
gsub_file 'config/environments/production.rb',
|
116
|
+
/# config.cache_store = :mem_cache_store$/,
|
117
|
+
"config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'], expires_in: 1.day }"
|
115
118
|
gsub_file 'config/environments/production.rb',
|
116
119
|
/# config.assets.precompile \+= %w\( search.js \)$/,
|
117
120
|
"config.assets.precompile += %w( mobile.js mobile.css print.css )"
|
121
|
+
remove_file "public/favicon.ico"
|
122
|
+
copy_file("../../../../../app/assets/images/enju_leaf/favicon.ico", "#{Rails.root.to_s}/public/favicon.ico")
|
118
123
|
end
|
119
124
|
end
|
@@ -1,3 +1,3 @@
|
|
1
1
|
solr: bundle exec rake sunspot:solr:run
|
2
|
-
resque: bundle exec rake environment resque:work QUEUE=
|
3
|
-
web: bundle exec rails s
|
2
|
+
resque: bundle exec rake environment resque:work QUEUE=default,mailers TERM_CHILD=1
|
3
|
+
web: bundle exec rails s
|
@@ -23,11 +23,11 @@ set :path, '/path/to/enju_leaf'
|
|
23
23
|
set :environment, :development
|
24
24
|
set :output, "#{path}/log/cron_log.log"
|
25
25
|
|
26
|
-
every 1.day, :
|
26
|
+
every 1.day, at: '0:00 am' do
|
27
27
|
runner "User.lock_expired_users"
|
28
28
|
end
|
29
29
|
|
30
|
-
every 1.day, :
|
30
|
+
every 1.day, at: '3:00 am' do
|
31
31
|
rake "sunspot:reindex"
|
32
32
|
# rake "sitemap:refresh:no_ping"
|
33
33
|
end
|
@@ -31,10 +31,6 @@ profile.save!
|
|
31
31
|
system_user.profile = profile
|
32
32
|
system_user.save!
|
33
33
|
LibraryGroup.first.update!(user: system_user)
|
34
|
-
UserGroup.order(created_at: :desc).first.update!(
|
35
|
-
number_of_day_to_notify_overdue: 7,
|
36
|
-
number_of_day_to_notify_due_date: 3
|
37
|
-
)
|
38
34
|
|
39
35
|
user = User.new
|
40
36
|
user.username = username
|