blacklight_marc 0.0.5 → 0.0.6

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: 37e22ed6ab9f48e7660d6ff4e7fc96842dce788f
4
- data.tar.gz: ef49ae16306b08c3264829b6376e1f87a5ac7e90
3
+ metadata.gz: 8b4870724570c056a2d91c1bf88e482f1bb2c67b
4
+ data.tar.gz: c5b83522ad592c1693c5f1657591393413376d60
5
5
  SHA512:
6
- metadata.gz: 6976d71575ef6834d2cfab14a6f650266b7c9bd31c9aff9be72e2925108925c78769f72cb0722099803923ca12a01da2dca583bfc4de49e998e652a634e2a9dd
7
- data.tar.gz: 853de50d49f2d36e9acfae99b6f1e21cbb06418a504879d404e6fc1ba92cc058e4195ede550d64136186b2fa4af69c117cc1e05208e655bbcd3c3f9ba633a662
6
+ metadata.gz: 1b4a7552c668a3696895cde9e2d816a16f8dab864179bd9c34f0dcf4cc8574d9ff107f67172b15641bd4a2200f7047c18d41af66b469e3d5eb80d4ae070e32fd
7
+ data.tar.gz: 73ed1286c4d595b16f558c64ada2b7bcfe51533fd41fe6fd10014b04758a0420e0c15dc2c492fa4e1a80d300d3b1bf2d24dec1ab7bf7f5cf548c86b1a1972e8c
data/.travis.yml CHANGED
@@ -2,11 +2,18 @@ notifications:
2
2
  email: false
3
3
 
4
4
  rvm:
5
+ - 2.1.0
6
+ - 2.0.0
5
7
  - 1.9.3
6
8
  - jruby-19mode
7
- - 2.0.0
9
+
10
+ before_install:
11
+ - gem install bundler
8
12
 
9
13
  notifications:
10
14
  irc: "irc.freenode.org#blacklight"
11
15
  email:
12
- - blacklight-commits@googlegroups.com
16
+ - blacklight-commits@googlegroups.com
17
+ env:
18
+ global:
19
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
data/Gemfile CHANGED
@@ -3,17 +3,13 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in blacklight_marc.gemspec
4
4
  gemspec
5
5
 
6
- gem 'simplecov', :platform => :mri
7
-
8
6
  group :test do
9
7
  gem 'devise'
10
- gem 'devise-guests'
11
8
  gem "bootstrap-sass"
12
9
  gem 'turbolinks'
13
- gem "unicode", :platforms => [:mri_18, :mri_19]
14
10
  gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
15
11
  end
16
12
 
17
13
  if File.exists?('spec/test_app_templates/Gemfile.extra')
18
14
  eval File.read('spec/test_app_templates/Gemfile.extra'), nil, 'spec/test_app_templates/Gemfile.extra'
19
- end
15
+ end
@@ -1,4 +1,4 @@
1
- <div id="marc_view">
1
+ <div id="marc_view" class="modal-body">
2
2
  <% fields = @document.to_marc.find_all{|f| ('000'..'999') === f.tag } %>
3
3
  <div class="field"><%= t('blacklight.search.librarian_view.leader', :leader => @document.to_marc.leader) %></div>
4
4
  <%- fields.each do |field| -%>
@@ -1,7 +1,7 @@
1
1
 
2
2
  <div class="modal-header">
3
3
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
4
- <h1 class="modal-title"><%= t('blacklight.search.librarian_view.title') %></h1>
4
+ <h3 class="modal-title"><%= t('blacklight.search.librarian_view.title') %></h3>
5
5
  </div>
6
6
  <%- if @document.respond_to?(:to_marc) -%>
7
7
  <%= render "marc_view" %>
@@ -1,3 +1,3 @@
1
1
  module BlacklightMarc
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Routing" do
4
+ describe "Paths Generated by Custom Routes:" do
5
+ it "should map {:controller => 'catalog', :id => '111', :action => 'librarian_view'} to /catalog/111/librarian_view" do
6
+ { :get => "/catalog/111/librarian_view" }.should route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
7
+ { :get => librarian_view_catalog_path('111') }.should route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
8
+ end
9
+ end
10
+ end
11
+
12
+
@@ -13,11 +13,7 @@ gem 'jquery-rails'
13
13
  group :test do
14
14
  gem 'rspec-rails', '~> 2.13'
15
15
  gem 'generator_spec'
16
- if defined? :JRUBY_VERSION
17
- gem 'capybara', '~> 1.0'
18
- else
19
- gem 'capybara'
20
- end
16
+ gem 'capybara'
21
17
  gem 'simplecov', :platform => :mri_19
22
18
  end
23
19
 
@@ -23,7 +23,8 @@ class TestAppGenerator < Rails::Generators::Base
23
23
  def run_blacklight_generator
24
24
  say_status("warning", "GENERATING BL", :yellow)
25
25
 
26
- generate 'blacklight', '--marc'
26
+ generate 'blacklight'
27
+ generate 'blacklight_marc:marc'
27
28
  end
28
29
 
29
30
  def run_test_support_generator
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_marc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-28 00:00:00.000000000 Z
11
+ date: 2013-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -162,6 +162,7 @@ files:
162
162
  - spec/lib/blacklight_solr_document_marc_spec.rb
163
163
  - spec/lib/marc_export_spec.rb
164
164
  - spec/lib/tasks/solr_marc_task_spec.rb
165
+ - spec/routing/routes_spec.rb
165
166
  - spec/spec_helper.rb
166
167
  - spec/test_app_templates/Gemfile.extra
167
168
  - spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -197,6 +198,7 @@ test_files:
197
198
  - spec/lib/blacklight_solr_document_marc_spec.rb
198
199
  - spec/lib/marc_export_spec.rb
199
200
  - spec/lib/tasks/solr_marc_task_spec.rb
201
+ - spec/routing/routes_spec.rb
200
202
  - spec/spec_helper.rb
201
203
  - spec/test_app_templates/Gemfile.extra
202
204
  - spec/test_app_templates/lib/generators/test_app_generator.rb