enju_loc 0.1.1 → 0.2.0.beta.1

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -3
  3. data/app/controllers/loc_search_controller.rb +3 -6
  4. data/app/policies/loc_search_policy.rb +9 -0
  5. data/app/views/loc_search/index.html.erb +8 -6
  6. data/config/locales/en.yml +1 -0
  7. data/config/locales/ja.yml +1 -0
  8. data/lib/enju_loc/engine.rb +1 -2
  9. data/lib/enju_loc/version.rb +1 -1
  10. data/spec/cassette_library/LocSearch/_ModsRecord/should_parse_MODS_metadata.yml +3 -3
  11. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml +3 -3
  12. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml +3 -3
  13. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml +46 -37
  14. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_distinguish_title_information_with_subject.yml +3 -3
  15. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_a_manifestation_that_has_invalid_classification.yml +3 -3
  16. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_another_serial.yml +3 -3
  17. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_audio_book.yml +3 -3
  18. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource.yml +3 -3
  19. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_e-resource_packaged_.yml +3 -3
  20. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_lccn_exact_math.yml +3 -3
  21. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_notated_music.yml +3 -3
  22. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_note_fields.yml +3 -3
  23. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_publication_year.yml +3 -3
  24. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_serial.yml +3 -3
  25. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_import_video_publication.yml +3 -3
  26. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_parse_title_information_properly.yml +3 -3
  27. data/spec/cassette_library/LocSearch/_import_from_sru_response/should_support_name_and_title_subjects.yml +3 -3
  28. data/spec/cassette_library/LocSearch/_search/should_return_a_search_result.yml +83 -121
  29. data/spec/cassette_library/LocSearchController/GET_index/should_get_index.yml +83 -121
  30. data/spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml +118 -113
  31. data/spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml +3 -3
  32. data/spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml +4 -4
  33. data/spec/cassette_library/loc_search/index/loc_search_menu/should_reflect_query_params_for_views.yml +517 -0
  34. data/spec/dummy/app/controllers/application_controller.rb +8 -3
  35. data/spec/dummy/app/models/user.rb +1 -2
  36. data/spec/dummy/config/application.rb +6 -25
  37. data/spec/dummy/config/environments/development.rb +25 -14
  38. data/spec/dummy/config/environments/production.rb +50 -31
  39. data/spec/dummy/config/environments/test.rb +23 -18
  40. data/spec/dummy/config/initializers/enju_leaf.rb +2 -0
  41. data/spec/fixtures/library_groups.yml +31 -0
  42. data/spec/models/loc_search_spec.rb +2 -2
  43. data/spec/support/devise.rb +2 -2
  44. data/spec/views/loc_search/index.html.erb_spec.rb +14 -0
  45. metadata +40 -33
  46. data/spec/dummy/config/application.yml +0 -38
@@ -1,5 +1,10 @@
1
1
  class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
2
+ protect_from_forgery
3
+ include EnjuLibrary::Controller
4
+ include EnjuBiblio::Controller
5
+ include EnjuSubject::Controller
6
+ before_action :set_paper_trail_whodunnit
7
+ after_action :verify_authorized
8
+
9
+ include Pundit
5
10
  end
@@ -1,8 +1,7 @@
1
- # -*- encoding: utf-8 -*-
2
1
  class User < ActiveRecord::Base
3
2
  devise :database_authenticatable, #:registerable,
4
3
  :recoverable, :rememberable, :trackable, #, :validatable
5
4
  :lockable, :lock_strategy => :none, :unlock_strategy => :none
6
5
 
7
- enju_leaf_user_model
6
+ include EnjuLeaf::EnjuUser
8
7
  end
@@ -2,8 +2,10 @@ require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  require 'rails/all'
4
4
 
5
- Bundler.require
6
- require "enju_loc"
5
+ Bundler.require(*Rails.groups)
6
+ require 'enju_loc'
7
+ require 'enju_leaf'
8
+ require "enju_subject"
7
9
 
8
10
  module Dummy
9
11
  class Application < Rails::Application
@@ -11,16 +13,6 @@ module Dummy
11
13
  # Application configuration should go into files in config/initializers
12
14
  # -- all .rb files in that directory are automatically loaded.
13
15
 
14
- # Custom directories with classes and modules you want to be autoloadable.
15
- # config.autoload_paths += %W(#{config.root}/extras)
16
-
17
- # Only load the plugins named here, in the order given (default is alphabetical).
18
- # :all can be used as a placeholder for all plugins not explicitly named.
19
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
-
21
- # Activate observers that should always be running.
22
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
-
24
16
  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
17
  # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
18
  # config.time_zone = 'Central Time (US & Canada)'
@@ -29,19 +21,8 @@ module Dummy
29
21
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
22
  # config.i18n.default_locale = :de
31
23
 
32
- # Configure the default encoding used in templates for Ruby 1.9.
33
- config.encoding = "utf-8"
34
-
35
- # Configure sensitive parameters which will be filtered from the log file.
36
- config.filter_parameters += [:password]
37
-
38
- # Enable the asset pipeline
39
- config.assets.enabled = true
40
-
41
- # Version of your assets, change this if you want to expire all your assets
42
- config.assets.version = '1.0'
24
+ # Do not swallow errors in after_commit/after_rollback callbacks.
25
+ config.active_record.raise_in_transactional_callbacks = true
43
26
  end
44
27
  end
45
28
 
46
- require 'enju_leaf'
47
- require "enju_subject"
@@ -1,30 +1,41 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
5
+ # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
11
 
12
- # Show full error reports and disable caching
12
+ # Show full error reports and disable caching.
13
13
  config.consider_all_requests_local = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
- # Don't care if the mailer can't send
16
+ # Don't care if the mailer can't send.
17
17
  config.action_mailer.raise_delivery_errors = false
18
18
 
19
- # Print deprecation notices to the Rails logger
19
+ # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
24
 
25
- # Do not compress assets
26
- config.assets.compress = false
27
-
28
- # Expands the lines which load the assets
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
29
28
  config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
30
41
  end
@@ -1,60 +1,79 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
- # Code is not reloaded between requests
4
+ # Code is not reloaded between requests.
5
5
  config.cache_classes = true
6
6
 
7
- # Full error reports are disabled and caching is turned on
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
8
14
  config.consider_all_requests_local = false
9
15
  config.action_controller.perform_caching = true
10
16
 
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- config.serve_static_assets = false
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
13
26
 
14
- # Compress JavaScripts and CSS
15
- config.assets.compress = true
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
16
30
 
17
- # Don't fallback to assets pipeline if a precompiled asset is missed
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
18
32
  config.assets.compile = false
19
33
 
20
- # Generate digests for assets URLs
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
21
36
  config.assets.digest = true
22
37
 
23
- # Defaults to Rails.root.join("public/assets")
24
- # config.assets.manifest = YOUR_PATH
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
25
39
 
26
- # Specifies the header that your server uses for sending files
27
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
29
43
 
30
44
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
45
  # config.force_ssl = true
32
46
 
33
- # See everything in the log (default is :info)
34
- # config.log_level = :debug
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
35
50
 
36
- # Use a different logger for distributed setups
37
- # config.logger = SyslogLogger.new
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
38
53
 
39
- # Use a different cache store in production
40
- # config.cache_store = :mem_cache_store
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
56
 
42
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
- # config.action_controller.asset_host = "http://assets.example.com"
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
44
59
 
45
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
- # config.assets.precompile += %w( search.js )
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
47
62
 
48
- # Disable delivery errors, bad email addresses will be ignored
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
49
65
  # config.action_mailer.raise_delivery_errors = false
50
66
 
51
- # Enable threaded mode
52
- # config.threadsafe!
53
-
54
67
  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
- # the I18n.default_locale when a translation can not be found)
68
+ # the I18n.default_locale when a translation cannot be found).
56
69
  config.i18n.fallbacks = true
57
70
 
58
- # Send deprecation notices to registered listeners
71
+ # Send deprecation notices to registered listeners.
59
72
  config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
60
79
  end
@@ -1,39 +1,44 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
5
+ # test suite. You never need to work with it otherwise. Remember that
6
6
  # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
7
+ # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
13
14
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
16
18
 
17
- # Show full error reports and disable caching
19
+ # Show full error reports and disable caching.
18
20
  config.consider_all_requests_local = true
19
21
  config.action_controller.perform_caching = false
20
22
 
21
- # Raise exceptions instead of rendering exception templates
23
+ # Raise exceptions instead of rendering exception templates.
22
24
  config.action_dispatch.show_exceptions = false
23
25
 
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
26
28
 
27
29
  # Tell Action Mailer not to deliver emails to the real world.
28
30
  # The :test delivery method accumulates sent emails in the
29
31
  # ActionMailer::Base.deliveries array.
30
32
  config.action_mailer.delivery_method = :test
31
33
 
32
- # Use SQL instead of Active Record's schema dumper when creating the test database.
33
- # This is necessary if your schema can't be completely dumped by the schema dumper,
34
- # like if you have constraints or database-specific column types
35
- # config.active_record.schema_format = :sql
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
36
 
37
- # Print deprecation notices to the stderr
37
+ # Print deprecation notices to the stderr.
38
38
  config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+
43
+ config.action_mailer.default_url_options = {:host => 'localhost:3000'}
39
44
  end
@@ -0,0 +1,2 @@
1
+ Manifestation.include(EnjuSubject::EnjuManifestation)
2
+
@@ -0,0 +1,31 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+ one:
3
+ id: 1
4
+ name: enju_library
5
+ display_name: "<%= I18n.locale %>: Enju Library"
6
+ short_name: enju
7
+ note:
8
+ my_networks: 0.0.0.0/0
9
+ url: "http://localhost:3000/"
10
+
11
+
12
+ # == Schema Information
13
+ #
14
+ # Table name: library_groups
15
+ #
16
+ # id :integer not null, primary key
17
+ # name :string(255) not null
18
+ # display_name :text
19
+ # short_name :string(255) not null
20
+ # my_networks :text
21
+ # login_banner :text
22
+ # note :text
23
+ # country_id :integer
24
+ # created_at :datetime not null
25
+ # updated_at :datetime not null
26
+ # admin_networks :text
27
+ # allow_bookmark_external_url :boolean default(FALSE), not null
28
+ # position :integer
29
+ # url :string(255) default("http://localhost:3000/")
30
+ #
31
+
@@ -59,8 +59,8 @@ describe LocSearch do
59
59
  m = LocSearch.import_from_sru_response( "2012471967" )
60
60
  expect( m.series_statements.size ).to eq 2
61
61
  RSpec.describe m.series_statements.collect( &:original_title ) do
62
- it { is_expected.to include( "Pragmatic programmers" ) }
63
- it { is_expected.to include( "Facets of Ruby series" ) }
62
+ it { is_expected.to include( "The Pragmatic Programmers" ) }
63
+ it { is_expected.to include( "The Facets of Ruby Series" ) }
64
64
  end
65
65
  end
66
66
 
@@ -1,4 +1,4 @@
1
1
  RSpec.configure do |config|
2
- config.include Devise::TestHelpers, :type => :controller
3
- config.include Devise::TestHelpers, :type => :view
2
+ config.include Devise::Test::ControllerHelpers, type: :controller
3
+ config.include Devise::Test::ControllerHelpers, type: :view
4
4
  end
@@ -0,0 +1,14 @@
1
+ require "spec_helper.rb"
2
+
3
+ describe "loc_search/index" do
4
+ describe "loc search menu" do
5
+ it "should reflect query params for views", vcr: true do
6
+ params[:query] = "test"
7
+ assign(:query, "test")
8
+ books = LocSearch.search(params[:query])
9
+ assign(:books, Kaminari.paginate_array(books[:items], total_count: books[:total_entries]).page(1).per(10))
10
+ render
11
+ expect(rendered).to include "https://catalog.loc.gov/vwebv/search?searchArg=test&amp;searchCode=GKEY%5E*&amp;searchType=0"
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_loc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masao Takaku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-26 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: nokogiri
14
+ name: enju_subject
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.6
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: 1.6.6
26
+ version: 0.2.0.beta.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: enju_leaf
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.2.0.beta.2
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.2
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: sqlite3
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +70,16 @@ dependencies:
56
70
  name: mysql2
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - "~>"
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: 0.3.20
75
+ version: '0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 0.3.20
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: pg
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +136,6 @@ dependencies:
122
136
  - - ">="
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: enju_leaf
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 1.1.2
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 1.1.2
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sunspot_solr
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -165,19 +165,19 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: enju_subject
168
+ name: coveralls
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 0.1.1
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 0.1.1
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: appraisal
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -208,6 +208,7 @@ files:
208
208
  - app/controllers/loc_search_controller.rb
209
209
  - app/helpers/loc_search_helper.rb
210
210
  - app/models/loc_search.rb
211
+ - app/policies/loc_search_policy.rb
211
212
  - app/views/loc_search/index.html.erb
212
213
  - config/locales/en.yml
213
214
  - config/locales/ja.yml
@@ -240,6 +241,7 @@ files:
240
241
  - spec/cassette_library/LocSearchController/GET_index/should_get_index_with_page_parameter.yml
241
242
  - spec/cassette_library/LocSearchController/POST_create/should_create_a_bibliographic_record_if_lccn_is_set.yml
242
243
  - spec/cassette_library/LocSearchController/POST_create/should_not_create_a_bibliographic_record_if_lccn_is_not_set.yml
244
+ - spec/cassette_library/loc_search/index/loc_search_menu/should_reflect_query_params_for_views.yml
243
245
  - spec/controllers/loc_search_controller_spec.rb
244
246
  - spec/dummy/README.rdoc
245
247
  - spec/dummy/Rakefile
@@ -255,7 +257,6 @@ files:
255
257
  - spec/dummy/bin/setup
256
258
  - spec/dummy/config.ru
257
259
  - spec/dummy/config/application.rb
258
- - spec/dummy/config/application.yml
259
260
  - spec/dummy/config/boot.rb
260
261
  - spec/dummy/config/database.yml
261
262
  - spec/dummy/config/environment.rb
@@ -264,6 +265,7 @@ files:
264
265
  - spec/dummy/config/environments/test.rb
265
266
  - spec/dummy/config/initializers/backtrace_silencers.rb
266
267
  - spec/dummy/config/initializers/devise.rb
268
+ - spec/dummy/config/initializers/enju_leaf.rb
267
269
  - spec/dummy/config/initializers/inflections.rb
268
270
  - spec/dummy/config/initializers/mime_types.rb
269
271
  - spec/dummy/config/initializers/session_store.rb
@@ -423,6 +425,7 @@ files:
423
425
  - spec/fixtures/frequencies.yml
424
426
  - spec/fixtures/identifier_types.yml
425
427
  - spec/fixtures/languages.yml
428
+ - spec/fixtures/library_groups.yml
426
429
  - spec/fixtures/roles.yml
427
430
  - spec/fixtures/subject_heading_types.yml
428
431
  - spec/fixtures/subject_types.yml
@@ -433,6 +436,7 @@ files:
433
436
  - spec/spec_helper.rb
434
437
  - spec/support/controller_macros.rb
435
438
  - spec/support/devise.rb
439
+ - spec/views/loc_search/index.html.erb_spec.rb
436
440
  homepage: https://github.com/next-l/enju_loc
437
441
  licenses: []
438
442
  metadata: {}
@@ -447,16 +451,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
447
451
  version: '0'
448
452
  required_rubygems_version: !ruby/object:Gem::Requirement
449
453
  requirements:
450
- - - ">="
454
+ - - ">"
451
455
  - !ruby/object:Gem::Version
452
- version: '0'
456
+ version: 1.3.1
453
457
  requirements: []
454
458
  rubyforge_project:
455
- rubygems_version: 2.5.0
459
+ rubygems_version: 2.5.1
456
460
  signing_key:
457
461
  specification_version: 4
458
462
  summary: LoC SRU wrapper for Next-L Enju
459
463
  test_files:
464
+ - spec/cassette_library/loc_search/index/loc_search_menu/should_reflect_query_params_for_views.yml
460
465
  - spec/cassette_library/LocSearch/_import_from_sru_response/should_create_a_valid_manifestation.yml
461
466
  - spec/cassette_library/LocSearch/_import_from_sru_response/should_create_lcsh_subjects_only.yml
462
467
  - spec/cassette_library/LocSearch/_import_from_sru_response/should_create_multiple_series_statements.yml
@@ -492,7 +497,6 @@ test_files:
492
497
  - spec/dummy/bin/rake
493
498
  - spec/dummy/bin/setup
494
499
  - spec/dummy/config/application.rb
495
- - spec/dummy/config/application.yml
496
500
  - spec/dummy/config/boot.rb
497
501
  - spec/dummy/config/database.yml
498
502
  - spec/dummy/config/environment.rb
@@ -501,6 +505,7 @@ test_files:
501
505
  - spec/dummy/config/environments/test.rb
502
506
  - spec/dummy/config/initializers/backtrace_silencers.rb
503
507
  - spec/dummy/config/initializers/devise.rb
508
+ - spec/dummy/config/initializers/enju_leaf.rb
504
509
  - spec/dummy/config/initializers/inflections.rb
505
510
  - spec/dummy/config/initializers/mime_types.rb
506
511
  - spec/dummy/config/initializers/session_store.rb
@@ -663,6 +668,7 @@ test_files:
663
668
  - spec/fixtures/frequencies.yml
664
669
  - spec/fixtures/identifier_types.yml
665
670
  - spec/fixtures/languages.yml
671
+ - spec/fixtures/library_groups.yml
666
672
  - spec/fixtures/roles.yml
667
673
  - spec/fixtures/subject_heading_types.yml
668
674
  - spec/fixtures/subject_types.yml
@@ -673,3 +679,4 @@ test_files:
673
679
  - spec/spec_helper.rb
674
680
  - spec/support/controller_macros.rb
675
681
  - spec/support/devise.rb
682
+ - spec/views/loc_search/index.html.erb_spec.rb