qa 0.5.0 → 0.6.0
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/README.md +37 -0
- data/app/controllers/qa/terms_controller.rb +1 -1
- data/lib/qa/authorities.rb +2 -0
- data/lib/qa/authorities/assign_fast.rb +17 -0
- data/lib/qa/authorities/assign_fast/generic_authority.rb +61 -0
- data/lib/qa/authorities/assign_fast_subauthority.rb +31 -0
- data/lib/qa/authorities/getty.rb +12 -3
- data/lib/qa/authorities/getty/aat.rb +3 -2
- data/lib/qa/authorities/getty/tgn.rb +80 -0
- data/lib/qa/authorities/getty/ulan.rb +71 -0
- data/lib/qa/authorities/web_service_base.rb +6 -4
- data/lib/qa/version.rb +1 -1
- data/spec/controllers/terms_controller_spec.rb +26 -12
- data/spec/fixtures/assign-fast-noheader.json +1 -0
- data/spec/fixtures/assign-fast-noresults.json +10 -0
- data/spec/fixtures/assign-fast-oneresult.json +16 -0
- data/spec/fixtures/assign-fast-topical-result.json +130 -0
- data/spec/fixtures/getty-tgn-find-response.json +1469 -0
- data/spec/fixtures/getty-ulan-find-response.json +11565 -0
- data/spec/fixtures/tgn-response.txt +87 -0
- data/spec/fixtures/ulan-response.txt +1854 -0
- data/spec/lib/authorities/assign_fast_spec.rb +115 -0
- data/spec/lib/authorities/getty/aat_spec.rb +1 -1
- data/spec/lib/authorities/getty/tgn_spec.rb +95 -0
- data/spec/lib/authorities/getty/ulan_spec.rb +97 -0
- data/spec/lib/authorities/loc_spec.rb +1 -1
- data/spec/lib/tasks/mesh.rake_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -3
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- metadata +35 -116
- data/spec/internal/Gemfile +0 -44
- data/spec/internal/Gemfile.lock +0 -180
- data/spec/internal/README.rdoc +0 -28
- data/spec/internal/Rakefile +0 -6
- data/spec/internal/app/assets/javascripts/application.js +0 -16
- data/spec/internal/app/assets/stylesheets/application.css +0 -15
- data/spec/internal/app/controllers/application_controller.rb +0 -5
- data/spec/internal/app/helpers/application_helper.rb +0 -2
- data/spec/internal/app/views/layouts/application.html.erb +0 -14
- data/spec/internal/bin/bundle +0 -3
- data/spec/internal/bin/rails +0 -4
- data/spec/internal/bin/rake +0 -4
- data/spec/internal/bin/setup +0 -29
- data/spec/internal/config.ru +0 -4
- data/spec/internal/config/application.rb +0 -26
- data/spec/internal/config/authorities.yml +0 -1
- data/spec/internal/config/authorities/authority_A.yml +0 -10
- data/spec/internal/config/authorities/authority_B.yml +0 -7
- data/spec/internal/config/authorities/authority_C.yml +0 -4
- data/spec/internal/config/authorities/authority_D.yml +0 -4
- data/spec/internal/config/authorities/states.yml +0 -101
- data/spec/internal/config/boot.rb +0 -3
- data/spec/internal/config/database.yml +0 -25
- data/spec/internal/config/environment.rb +0 -5
- data/spec/internal/config/environments/development.rb +0 -41
- data/spec/internal/config/environments/production.rb +0 -79
- data/spec/internal/config/environments/test.rb +0 -42
- data/spec/internal/config/initializers/assets.rb +0 -11
- data/spec/internal/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/internal/config/initializers/cookies_serializer.rb +0 -3
- data/spec/internal/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/internal/config/initializers/inflections.rb +0 -16
- data/spec/internal/config/initializers/mime_types.rb +0 -4
- data/spec/internal/config/initializers/session_store.rb +0 -3
- data/spec/internal/config/initializers/wrap_parameters.rb +0 -14
- data/spec/internal/config/locales/en.yml +0 -23
- data/spec/internal/config/oclcts-authorities.yml +0 -24
- data/spec/internal/config/routes.rb +0 -58
- data/spec/internal/config/secrets.yml +0 -22
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/migrate/20150311214117_create_qa_subject_mesh_terms.qa.rb +0 -12
- data/spec/internal/db/migrate/20150311214118_create_qa_mesh_tree.qa.rb +0 -11
- data/spec/internal/db/migrate/20150311214119_add_term_lower_to_qa_subject_mesh_terms.qa.rb +0 -8
- data/spec/internal/db/schema.rb +0 -34
- data/spec/internal/db/seeds.rb +0 -7
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/lib/generators/test_app_generator.rb +0 -29
- data/spec/internal/log/development.log +0 -21909
- data/spec/internal/public/404.html +0 -67
- data/spec/internal/public/422.html +0 -67
- data/spec/internal/public/500.html +0 -66
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/internal/public/robots.txt +0 -5
- data/spec/internal/test/test_helper.rb +0 -10
| @@ -1,67 +0,0 @@ | |
| 1 | 
            -
            <!DOCTYPE html>
         | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
            <head>
         | 
| 4 | 
            -
              <title>The page you were looking for doesn't exist (404)</title>
         | 
| 5 | 
            -
              <meta name="viewport" content="width=device-width,initial-scale=1">
         | 
| 6 | 
            -
              <style>
         | 
| 7 | 
            -
              body {
         | 
| 8 | 
            -
                background-color: #EFEFEF;
         | 
| 9 | 
            -
                color: #2E2F30;
         | 
| 10 | 
            -
                text-align: center;
         | 
| 11 | 
            -
                font-family: arial, sans-serif;
         | 
| 12 | 
            -
                margin: 0;
         | 
| 13 | 
            -
              }
         | 
| 14 | 
            -
             | 
| 15 | 
            -
              div.dialog {
         | 
| 16 | 
            -
                width: 95%;
         | 
| 17 | 
            -
                max-width: 33em;
         | 
| 18 | 
            -
                margin: 4em auto 0;
         | 
| 19 | 
            -
              }
         | 
| 20 | 
            -
             | 
| 21 | 
            -
              div.dialog > div {
         | 
| 22 | 
            -
                border: 1px solid #CCC;
         | 
| 23 | 
            -
                border-right-color: #999;
         | 
| 24 | 
            -
                border-left-color: #999;
         | 
| 25 | 
            -
                border-bottom-color: #BBB;
         | 
| 26 | 
            -
                border-top: #B00100 solid 4px;
         | 
| 27 | 
            -
                border-top-left-radius: 9px;
         | 
| 28 | 
            -
                border-top-right-radius: 9px;
         | 
| 29 | 
            -
                background-color: white;
         | 
| 30 | 
            -
                padding: 7px 12% 0;
         | 
| 31 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 32 | 
            -
              }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
              h1 {
         | 
| 35 | 
            -
                font-size: 100%;
         | 
| 36 | 
            -
                color: #730E15;
         | 
| 37 | 
            -
                line-height: 1.5em;
         | 
| 38 | 
            -
              }
         | 
| 39 | 
            -
             | 
| 40 | 
            -
              div.dialog > p {
         | 
| 41 | 
            -
                margin: 0 0 1em;
         | 
| 42 | 
            -
                padding: 1em;
         | 
| 43 | 
            -
                background-color: #F7F7F7;
         | 
| 44 | 
            -
                border: 1px solid #CCC;
         | 
| 45 | 
            -
                border-right-color: #999;
         | 
| 46 | 
            -
                border-left-color: #999;
         | 
| 47 | 
            -
                border-bottom-color: #999;
         | 
| 48 | 
            -
                border-bottom-left-radius: 4px;
         | 
| 49 | 
            -
                border-bottom-right-radius: 4px;
         | 
| 50 | 
            -
                border-top-color: #DADADA;
         | 
| 51 | 
            -
                color: #666;
         | 
| 52 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 53 | 
            -
              }
         | 
| 54 | 
            -
              </style>
         | 
| 55 | 
            -
            </head>
         | 
| 56 | 
            -
             | 
| 57 | 
            -
            <body>
         | 
| 58 | 
            -
              <!-- This file lives in public/404.html -->
         | 
| 59 | 
            -
              <div class="dialog">
         | 
| 60 | 
            -
                <div>
         | 
| 61 | 
            -
                  <h1>The page you were looking for doesn't exist.</h1>
         | 
| 62 | 
            -
                  <p>You may have mistyped the address or the page may have moved.</p>
         | 
| 63 | 
            -
                </div>
         | 
| 64 | 
            -
                <p>If you are the application owner check the logs for more information.</p>
         | 
| 65 | 
            -
              </div>
         | 
| 66 | 
            -
            </body>
         | 
| 67 | 
            -
            </html>
         | 
| @@ -1,67 +0,0 @@ | |
| 1 | 
            -
            <!DOCTYPE html>
         | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
            <head>
         | 
| 4 | 
            -
              <title>The change you wanted was rejected (422)</title>
         | 
| 5 | 
            -
              <meta name="viewport" content="width=device-width,initial-scale=1">
         | 
| 6 | 
            -
              <style>
         | 
| 7 | 
            -
              body {
         | 
| 8 | 
            -
                background-color: #EFEFEF;
         | 
| 9 | 
            -
                color: #2E2F30;
         | 
| 10 | 
            -
                text-align: center;
         | 
| 11 | 
            -
                font-family: arial, sans-serif;
         | 
| 12 | 
            -
                margin: 0;
         | 
| 13 | 
            -
              }
         | 
| 14 | 
            -
             | 
| 15 | 
            -
              div.dialog {
         | 
| 16 | 
            -
                width: 95%;
         | 
| 17 | 
            -
                max-width: 33em;
         | 
| 18 | 
            -
                margin: 4em auto 0;
         | 
| 19 | 
            -
              }
         | 
| 20 | 
            -
             | 
| 21 | 
            -
              div.dialog > div {
         | 
| 22 | 
            -
                border: 1px solid #CCC;
         | 
| 23 | 
            -
                border-right-color: #999;
         | 
| 24 | 
            -
                border-left-color: #999;
         | 
| 25 | 
            -
                border-bottom-color: #BBB;
         | 
| 26 | 
            -
                border-top: #B00100 solid 4px;
         | 
| 27 | 
            -
                border-top-left-radius: 9px;
         | 
| 28 | 
            -
                border-top-right-radius: 9px;
         | 
| 29 | 
            -
                background-color: white;
         | 
| 30 | 
            -
                padding: 7px 12% 0;
         | 
| 31 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 32 | 
            -
              }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
              h1 {
         | 
| 35 | 
            -
                font-size: 100%;
         | 
| 36 | 
            -
                color: #730E15;
         | 
| 37 | 
            -
                line-height: 1.5em;
         | 
| 38 | 
            -
              }
         | 
| 39 | 
            -
             | 
| 40 | 
            -
              div.dialog > p {
         | 
| 41 | 
            -
                margin: 0 0 1em;
         | 
| 42 | 
            -
                padding: 1em;
         | 
| 43 | 
            -
                background-color: #F7F7F7;
         | 
| 44 | 
            -
                border: 1px solid #CCC;
         | 
| 45 | 
            -
                border-right-color: #999;
         | 
| 46 | 
            -
                border-left-color: #999;
         | 
| 47 | 
            -
                border-bottom-color: #999;
         | 
| 48 | 
            -
                border-bottom-left-radius: 4px;
         | 
| 49 | 
            -
                border-bottom-right-radius: 4px;
         | 
| 50 | 
            -
                border-top-color: #DADADA;
         | 
| 51 | 
            -
                color: #666;
         | 
| 52 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 53 | 
            -
              }
         | 
| 54 | 
            -
              </style>
         | 
| 55 | 
            -
            </head>
         | 
| 56 | 
            -
             | 
| 57 | 
            -
            <body>
         | 
| 58 | 
            -
              <!-- This file lives in public/422.html -->
         | 
| 59 | 
            -
              <div class="dialog">
         | 
| 60 | 
            -
                <div>
         | 
| 61 | 
            -
                  <h1>The change you wanted was rejected.</h1>
         | 
| 62 | 
            -
                  <p>Maybe you tried to change something you didn't have access to.</p>
         | 
| 63 | 
            -
                </div>
         | 
| 64 | 
            -
                <p>If you are the application owner check the logs for more information.</p>
         | 
| 65 | 
            -
              </div>
         | 
| 66 | 
            -
            </body>
         | 
| 67 | 
            -
            </html>
         | 
| @@ -1,66 +0,0 @@ | |
| 1 | 
            -
            <!DOCTYPE html>
         | 
| 2 | 
            -
            <html>
         | 
| 3 | 
            -
            <head>
         | 
| 4 | 
            -
              <title>We're sorry, but something went wrong (500)</title>
         | 
| 5 | 
            -
              <meta name="viewport" content="width=device-width,initial-scale=1">
         | 
| 6 | 
            -
              <style>
         | 
| 7 | 
            -
              body {
         | 
| 8 | 
            -
                background-color: #EFEFEF;
         | 
| 9 | 
            -
                color: #2E2F30;
         | 
| 10 | 
            -
                text-align: center;
         | 
| 11 | 
            -
                font-family: arial, sans-serif;
         | 
| 12 | 
            -
                margin: 0;
         | 
| 13 | 
            -
              }
         | 
| 14 | 
            -
             | 
| 15 | 
            -
              div.dialog {
         | 
| 16 | 
            -
                width: 95%;
         | 
| 17 | 
            -
                max-width: 33em;
         | 
| 18 | 
            -
                margin: 4em auto 0;
         | 
| 19 | 
            -
              }
         | 
| 20 | 
            -
             | 
| 21 | 
            -
              div.dialog > div {
         | 
| 22 | 
            -
                border: 1px solid #CCC;
         | 
| 23 | 
            -
                border-right-color: #999;
         | 
| 24 | 
            -
                border-left-color: #999;
         | 
| 25 | 
            -
                border-bottom-color: #BBB;
         | 
| 26 | 
            -
                border-top: #B00100 solid 4px;
         | 
| 27 | 
            -
                border-top-left-radius: 9px;
         | 
| 28 | 
            -
                border-top-right-radius: 9px;
         | 
| 29 | 
            -
                background-color: white;
         | 
| 30 | 
            -
                padding: 7px 12% 0;
         | 
| 31 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 32 | 
            -
              }
         | 
| 33 | 
            -
             | 
| 34 | 
            -
              h1 {
         | 
| 35 | 
            -
                font-size: 100%;
         | 
| 36 | 
            -
                color: #730E15;
         | 
| 37 | 
            -
                line-height: 1.5em;
         | 
| 38 | 
            -
              }
         | 
| 39 | 
            -
             | 
| 40 | 
            -
              div.dialog > p {
         | 
| 41 | 
            -
                margin: 0 0 1em;
         | 
| 42 | 
            -
                padding: 1em;
         | 
| 43 | 
            -
                background-color: #F7F7F7;
         | 
| 44 | 
            -
                border: 1px solid #CCC;
         | 
| 45 | 
            -
                border-right-color: #999;
         | 
| 46 | 
            -
                border-left-color: #999;
         | 
| 47 | 
            -
                border-bottom-color: #999;
         | 
| 48 | 
            -
                border-bottom-left-radius: 4px;
         | 
| 49 | 
            -
                border-bottom-right-radius: 4px;
         | 
| 50 | 
            -
                border-top-color: #DADADA;
         | 
| 51 | 
            -
                color: #666;
         | 
| 52 | 
            -
                box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
         | 
| 53 | 
            -
              }
         | 
| 54 | 
            -
              </style>
         | 
| 55 | 
            -
            </head>
         | 
| 56 | 
            -
             | 
| 57 | 
            -
            <body>
         | 
| 58 | 
            -
              <!-- This file lives in public/500.html -->
         | 
| 59 | 
            -
              <div class="dialog">
         | 
| 60 | 
            -
                <div>
         | 
| 61 | 
            -
                  <h1>We're sorry, but something went wrong.</h1>
         | 
| 62 | 
            -
                </div>
         | 
| 63 | 
            -
                <p>If you are the application owner check the logs for more information.</p>
         | 
| 64 | 
            -
              </div>
         | 
| 65 | 
            -
            </body>
         | 
| 66 | 
            -
            </html>
         | 
| 
            File without changes
         | 
| @@ -1,10 +0,0 @@ | |
| 1 | 
            -
            ENV['RAILS_ENV'] ||= 'test'
         | 
| 2 | 
            -
            require File.expand_path('../../config/environment', __FILE__)
         | 
| 3 | 
            -
            require 'rails/test_help'
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            class ActiveSupport::TestCase
         | 
| 6 | 
            -
              # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
         | 
| 7 | 
            -
              fixtures :all
         | 
| 8 | 
            -
             | 
| 9 | 
            -
              # Add more helper methods to be used by all tests here...
         | 
| 10 | 
            -
            end
         |