blacklight 5.1.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b2d38f9b220bd5f8964188bb0ee5789fb834a3c
4
- data.tar.gz: a25ff32577292eada643a0b1410c48d9544b3cde
3
+ metadata.gz: 3a001b98201040df18b0c251d644db58d7b462cb
4
+ data.tar.gz: f193d5ea8bb6f8b106e525884982a34578c50cf1
5
5
  SHA512:
6
- metadata.gz: 4130f90f31cbcc0bbe4650f508bc38b88ed7779ab8af2523311bac816a879f2790ebd39c079410f10070761291ed20e04678651a19aa11b81bfe079f7f28851e
7
- data.tar.gz: 83af8dee407631644e94b28af90ad3b995584c0856071fcbfdb7c9440a02e099b3def65e11c162a045dab11cef9230c49ab0c06ff8fd803b8917c6441d83fb98
6
+ metadata.gz: 632d7373d5a5060a2459df1d57c57d26bfe5584bb7c7883e3382f9190f8b53eef02450bd971e282fb1e8912c9411ce1b665efab6bc2f6c81beb02c7cc00c720d
7
+ data.tar.gz: 991c52e5c79ececb1a29300ce97a8f457c8489cbb2447a6913374d6c24bfb8b9a7fc5802a9af279dfeaf0aaa95bb6b2089b7503377a98cc4c246c00016a2260f
data/.gitignore CHANGED
@@ -11,5 +11,5 @@ log/*
11
11
  solr_marc/solrmarc.log
12
12
  lib/solrmarc.log.*
13
13
  tmp/*
14
- spec/internal/
15
- pkg/*
14
+ pkg/*
15
+ spec/internal
data/Gemfile CHANGED
@@ -1,21 +1,21 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Please see blacklight.gemspec for dependency information.
4
- gemspec
4
+ gemspec path: File.expand_path('..', __FILE__)
5
5
 
6
6
 
7
7
  gem 'simplecov', require: false
8
8
  gem 'coveralls', require: false
9
9
 
10
+ gem 'engine_cart', '~> 0.3.0'
11
+
10
12
  group :test do
11
- gem 'devise'
12
- gem 'devise-guests'
13
- gem "bootstrap-sass"
14
- gem 'turbolinks'
15
- gem 'sass-rails'
16
- gem 'blacklight-marc', :github => 'projectblacklight/blacklight_marc'
13
+ gem "blacklight-marc", "~> 5.0", github: "projectblacklight/blacklight_marc"
14
+ gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
17
15
  end
18
16
 
19
- if File.exists?('spec/test_app_templates/Gemfile.extra')
20
- eval File.read('spec/test_app_templates/Gemfile.extra'), nil, 'spec/test_app_templates/Gemfile.extra'
17
+ file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path("../spec/internal", __FILE__))
18
+ if File.exists?(file)
19
+ puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
20
+ instance_eval File.read(file)
21
21
  end
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'rubygems'
3
+ require 'rails'
3
4
  begin
4
5
  require 'bundler/setup'
5
6
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.1.0
1
+ 5.1.1
@@ -215,4 +215,9 @@ module Blacklight::UrlHelperBehavior
215
215
  p
216
216
  end
217
217
 
218
- end
218
+ if ::Rails.version < "4.0"
219
+ def asset_url *args
220
+ "#{request.protocol}#{request.host_with_port}#{asset_path(*args)}"
221
+ end
222
+ end
223
+ end
data/blacklight.gemspec CHANGED
@@ -17,18 +17,18 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- # PRODUCTION GEM REQUIREMENTS
21
- # ---------------------------------------
22
20
  s.add_dependency "rails", ">= 3.2.6", "< 5"
23
21
  s.add_dependency "nokogiri", "~>1.6" # XML Parser
24
22
  s.add_dependency "kaminari", "~> 0.13" # the pagination (page 1,2,3, etc..) of our search results
25
23
  s.add_dependency "rsolr", "~> 1.0.6" # Library for interacting with rSolr.
26
- s.add_dependency "sass-rails"
27
24
  s.add_dependency "bootstrap-sass", "~> 3.0"
28
25
  s.add_dependency "deprecation"
26
+
29
27
  s.add_development_dependency "jettywrapper", ">= 1.5.2"
30
28
  s.add_development_dependency "blacklight-marc", "~> 5.0"
31
29
  s.add_development_dependency "rspec-rails"
30
+ s.add_development_dependency "capybara"
31
+ s.add_development_dependency "poltergeist"
32
32
  s.add_development_dependency 'engine_cart', ">= 0.1.0"
33
33
  s.add_development_dependency "equivalent-xml"
34
34
  end
@@ -1,23 +1,9 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- # Please see blacklight.gemspec for dependency information.
4
- gemspec :path=>"../"
5
-
6
- gem 'rails', "~> 3.2"
7
-
8
- gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
9
-
10
- group :test do
11
- gem 'simplecov', require: false
12
- gem 'coveralls', require: false
13
- gem 'devise'
14
- gem 'devise-guests'
15
- gem "bootstrap-sass"
16
- gem 'turbolinks'
17
- gem 'uglifier'
3
+ file = File.expand_path("../../Gemfile", __FILE__)
4
+ if File.exists?(file)
5
+ puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
6
+ instance_eval File.read(file)
18
7
  end
19
8
 
20
- f = File.expand_path(File.dirname(__FILE__) + '/../spec/test_app_templates/Gemfile.extra')
21
- if File.exists?(f)
22
- eval File.read(f), nil, f
23
- end
9
+ gem 'rails', "3.2.17"
@@ -1,22 +1,10 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- # Please see blacklight.gemspec for dependency information.
4
- gemspec :path=>"../"
3
+ file = File.expand_path("../../Gemfile", __FILE__)
5
4
 
6
- gem 'rails', '~> 4.0.0'
7
-
8
- gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
9
-
10
- group :test do
11
- gem 'simplecov', require: false
12
- gem 'coveralls', require: false
13
- gem 'devise'
14
- gem 'devise-guests'
15
- gem "bootstrap-sass"
16
- gem 'turbolinks'
5
+ if File.exists?(file)
6
+ puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
7
+ instance_eval File.read(file)
17
8
  end
18
9
 
19
- f = File.expand_path(File.dirname(__FILE__) + '/../spec/test_app_templates/Gemfile.extra')
20
- if File.exists?(f)
21
- eval File.read(f), nil, f
22
- end
10
+ gem 'rails', '4.0.3'
@@ -11,13 +11,8 @@ class TestAppGenerator < Rails::Generators::Base
11
11
  end
12
12
  end
13
13
 
14
- def copy_blacklight_test_app_rake_task
15
- copy_file "lib/tasks/blacklight_test_app.rake"
16
- end
17
-
18
14
  def remove_index
19
15
  remove_file "public/index.html"
20
- remove_file 'app/assets/images/rails.png'
21
16
  end
22
17
 
23
18
  def run_blacklight_generator
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'catalog/opensearch.xml.builder' do
4
+ it "should render an OpenSearch description document" do
5
+ render
6
+ doc = Nokogiri::XML.parse(rendered)
7
+ doc.remove_namespaces!
8
+ expect(doc.xpath('/OpenSearchDescription').length).to eq 1
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2014-02-13 00:00:00.000000000 Z
20
+ date: 2014-03-13 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: 1.0.6
84
- - !ruby/object:Gem::Dependency
85
- name: sass-rails
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :runtime
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  - !ruby/object:Gem::Dependency
99
85
  name: bootstrap-sass
100
86
  requirement: !ruby/object:Gem::Requirement
@@ -165,6 +151,34 @@ dependencies:
165
151
  - - ">="
166
152
  - !ruby/object:Gem::Version
167
153
  version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: capybara
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: poltergeist
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
168
182
  - !ruby/object:Gem::Dependency
169
183
  name: engine_cart
170
184
  requirement: !ruby/object:Gem::Requirement
@@ -455,9 +469,7 @@ files:
455
469
  - spec/support/features.rb
456
470
  - spec/support/features/session_helpers.rb
457
471
  - spec/support/include_text.rb
458
- - spec/test_app_templates/Gemfile.extra
459
472
  - spec/test_app_templates/lib/generators/test_app_generator.rb
460
- - spec/test_app_templates/lib/tasks/blacklight_test_app.rake
461
473
  - spec/views/catalog/_constraints.html.erb_spec.rb
462
474
  - spec/views/catalog/_constraints_element.html.erb_spec.rb
463
475
  - spec/views/catalog/_document.html.erb_spec.rb
@@ -476,6 +488,7 @@ files:
476
488
  - spec/views/catalog/facet.html.erb_spec.rb
477
489
  - spec/views/catalog/index.atom.builder_spec.rb
478
490
  - spec/views/catalog/index.html.erb_spec.rb
491
+ - spec/views/catalog/opensearch.xml.builder_spec.rb
479
492
  - spec/views/catalog/show.html.erb_spec.rb
480
493
  - tasks/blacklight.rake
481
494
  homepage: http://projectblacklight.org/
@@ -498,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
511
  version: '0'
499
512
  requirements: []
500
513
  rubyforge_project:
501
- rubygems_version: 2.2.0
514
+ rubygems_version: 2.2.2
502
515
  signing_key:
503
516
  specification_version: 4
504
517
  summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
@@ -560,9 +573,7 @@ test_files:
560
573
  - spec/support/features.rb
561
574
  - spec/support/features/session_helpers.rb
562
575
  - spec/support/include_text.rb
563
- - spec/test_app_templates/Gemfile.extra
564
576
  - spec/test_app_templates/lib/generators/test_app_generator.rb
565
- - spec/test_app_templates/lib/tasks/blacklight_test_app.rake
566
577
  - spec/views/catalog/_constraints.html.erb_spec.rb
567
578
  - spec/views/catalog/_constraints_element.html.erb_spec.rb
568
579
  - spec/views/catalog/_document.html.erb_spec.rb
@@ -581,4 +592,5 @@ test_files:
581
592
  - spec/views/catalog/facet.html.erb_spec.rb
582
593
  - spec/views/catalog/index.atom.builder_spec.rb
583
594
  - spec/views/catalog/index.html.erb_spec.rb
595
+ - spec/views/catalog/opensearch.xml.builder_spec.rb
584
596
  - spec/views/catalog/show.html.erb_spec.rb
@@ -1,21 +0,0 @@
1
- platforms :jruby do
2
- gem 'jdbc-sqlite3'
3
- gem 'mediashelf-loggable', '>= 0.4.8'
4
- gem 'therubyrhino'
5
- end
6
-
7
- platforms :ruby do
8
- gem 'sqlite3'
9
- end
10
-
11
- gem 'jquery-rails'
12
-
13
- group :test do
14
- gem 'rspec-rails', '~> 2.13'
15
- gem 'generator_spec'
16
- gem 'poltergeist'
17
- gem 'simplecov'
18
- end
19
-
20
- gem 'jettywrapper', '>= 1.2.0'
21
-
@@ -1,14 +0,0 @@
1
- require 'rspec/core/rake_task'
2
-
3
- desc "run the blacklight gem spec"
4
- gem_home = File.expand_path('../../../../..', __FILE__)
5
-
6
- namespace :blacklight_test_app do
7
-
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.pattern = gem_home + '/spec/**/*_spec.rb'
10
- t.rspec_opts = "--colour"
11
- t.ruby_opts = "-I#{gem_home}/spec"
12
- end
13
-
14
- end