cul_scv_hydra 0.21.0 → 0.21.2

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: f2a38d4908cbe6eee8852f27a6461f8742a83463
4
- data.tar.gz: dc9fd9776b2950a80defd22108c969dbe4959f25
3
+ metadata.gz: b0934092ec2d2dcc3aeb12026a7efe01e903dbd0
4
+ data.tar.gz: 553f7caf72d4825b852da1c47e90c657fe00f07f
5
5
  SHA512:
6
- metadata.gz: 0e64e12dfc208ffdd1d24920acfd3c514a958237da2e2eef5ef9a15802d1ade943531848ab1117be2746a06ce8b739567afb2f8e5d58054f6688146ddc601914
7
- data.tar.gz: 6350e296b0deab8abd0cb536a043ffd2fc88574cc6e0e095394018d493c6e7eaa4a82509034aab9221f1ca97efa2cb67ce125f19ad9879a9d0cc4a8eab319099
6
+ metadata.gz: 08232c0256a1a07e39fdafbd430b4bcba9140a24e936c5e7d0b5da9849bc1b802a484e1002053d2cc800e97bccd14248b56369fd623ed07b36a96decb4e4420c
7
+ data.tar.gz: baf1cbee82527a782bff6a92caf624fa207c1340c52b619464bd0bef4102b02dc851ce219b65c196c787fb7c4c792ad625869df38715f2d6009803b9882362fa
@@ -19,6 +19,12 @@ module Cul::Scv::Hydra::Models::Common
19
19
 
20
20
  end
21
21
 
22
+ # A Fedora object label can only contain a string values of up to 255 characters. If we try to
23
+ # set a longer value, it causes object save errors. Truncate labels to 255 characters.
24
+ def label=(new_label)
25
+ super(new_label[0, 255])
26
+ end
27
+
22
28
  def rdf_type
23
29
  relationships[:rdf_type]
24
30
  end
data/config/fedora.yml CHANGED
@@ -1,11 +1,11 @@
1
- alcott: &alcott
2
- :url: http://alcott.cul.columbia.edu:8080/fedora
1
+ development:
3
2
  :user: fedoraAdmin
4
- :password: f+BULUS*^
5
- default: &default
6
- :url: http://127.0.0.1:8983/fedora
3
+ :password: fedoraAdmin
4
+ :url: http://localhost:8983/fedora-test
5
+ :time_zone: "America/New_York"
6
+
7
+ test:
7
8
  :user: fedoraAdmin
8
9
  :password: fedoraAdmin
9
- development: *alcott
10
- test: *default
11
- production: *alcott
10
+ :url: http://localhost:8983/fedora-test
11
+ :time_zone: "America/New_York"
data/config/solr.yml ADDED
@@ -0,0 +1,5 @@
1
+ development:
2
+ url: http://localhost:8983/solr/test
3
+
4
+ test:
5
+ url: http://localhost:8983/solr/test
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.21.0'
5
+ VERSION = '0.21.2'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -0,0 +1,11 @@
1
+
2
+ module Cul
3
+ module Scv
4
+ module Hydra
5
+ VERSION = '0.21.1'
6
+ def self.version
7
+ VERSION
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,26 +1,21 @@
1
1
  APP_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../") unless defined?(APP_ROOT)
2
2
 
3
3
  require 'jettywrapper'
4
- JETTY_ZIP_BASENAME = 'master'
4
+ JETTY_ZIP_BASENAME = '7.x-stable'
5
5
  Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip"
6
6
 
7
7
  namespace :cul_hydra do
8
- begin
9
- require 'rspec/core/rake_task'
10
- RSpec::Core::RakeTask.new(:rspec) do |spec|
11
- spec.pattern = FileList['spec/**/*_spec.rb']
12
- spec.pattern += FileList['spec/*_spec.rb']
13
- spec.rspec_opts = ['--backtrace'] if ENV['CI']
14
- end
8
+ require 'rspec/core/rake_task'
9
+ RSpec::Core::RakeTask.new(:rspec) do |spec|
10
+ spec.pattern = FileList['spec/**/*_spec.rb']
11
+ spec.pattern += FileList['spec/*_spec.rb']
12
+ spec.rspec_opts = ['--backtrace'] if ENV['CI']
13
+ end
15
14
 
16
- RSpec::Core::RakeTask.new(:rcov) do |spec|
17
- spec.pattern = FileList['spec/**/*_spec.rb']
18
- spec.pattern += FileList['spec/*_spec.rb']
19
- spec.rcov = true
20
- end
21
- rescue Exception => e
22
- puts "Exception creating rspec rake tasks: check for development environment?"
23
- puts e
15
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
16
+ spec.pattern = FileList['spec/**/*_spec.rb']
17
+ spec.pattern += FileList['spec/*_spec.rb']
18
+ spec.rcov = true
24
19
  end
25
20
 
26
21
  desc "CI build"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-06 00:00:00.000000000 Z
12
+ date: 2015-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight
@@ -327,12 +327,10 @@ files:
327
327
  - config/fedora.yml
328
328
  - config/jetty.yml
329
329
  - config/locales/ldpd_hydra.en.yml
330
- - config/locales/nnc.ntriples
331
330
  - config/predicate_mappings.yml
331
+ - config/solr.yml
332
332
  - config/solr_mappings.yml
333
333
  - config/solr_value_maps.yml
334
- - config/subs.yml
335
- - config/xsl/marc_to_mods.xsl
336
334
  - fixtures/cmodels/ldpd_ADLMetadata.xml
337
335
  - fixtures/cmodels/ldpd_AESMetadata.xml
338
336
  - fixtures/cmodels/ldpd_BagAggregator.xml
@@ -411,8 +409,6 @@ files:
411
409
  - fixtures/spec/FOXML/resource-screen.xml
412
410
  - fixtures/spec/FOXML/resource-thumb.xml
413
411
  - fixtures/spec/FOXML/static-image-aggregator.xml
414
- - fixtures/spec/MARCXML/3867996.mods.xml
415
- - fixtures/spec/MARCXML/3867996.xml
416
412
  - fixtures/spec/STRUCTMAP/structmap-examples.xml
417
413
  - fixtures/spec/STRUCTMAP/structmap-nested.xml
418
414
  - fixtures/spec/STRUCTMAP/structmap-recto.xml
@@ -453,10 +449,10 @@ files:
453
449
  - lib/cul_scv_hydra/solrizer/terminology_based_solrizer.rb
454
450
  - lib/cul_scv_hydra/solrizer/value_mapper.rb
455
451
  - lib/cul_scv_hydra/version.rb
452
+ - lib/cul_scv_hydra/version.rb~
456
453
  - lib/tasks/cmodel.rake
457
454
  - lib/tasks/cul_hydra_dev.rake
458
455
  - lib/tasks/index.rake
459
- - lib/tasks/transform.rake
460
456
  homepage: https://github.com/cul/cul_scv_hydra
461
457
  licenses: []
462
458
  metadata: {}
@@ -1,12 +0,0 @@
1
- <info:fedora/marcorg:nnc> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#CorporateName> .
2
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasReciprocalAuthority> <http://id.loc.gov/vocabulary/organizations/nnc> .
3
- <info:fedora/marcorg:nnc> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Authority> .
4
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#code> "NNC"^^<http://id.loc.gov/datatypes/orgs/code> .
5
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#code> "nnc"^^<http://id.loc.gov/datatypes/orgs/normalized> .
6
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#authoritativeLabel> "Butler Library"@en .
7
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasAbbreviationVariant> _:bnodereponncfacet .
8
- <info:fedora/marcorg:nnc> <http://www.loc.gov/mads/rdf/v1#hasExpansionVariant> _:bnodereponncfull .
9
- _:bnodereponncfacet <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
10
- _:bnodereponncfacet <http://www.loc.gov/mads/rdf/v1#variantLabel> "Butler Library"@en .
11
- _:bnodereponncfull <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#Variant> .
12
- _:bnodereponncfull <http://www.loc.gov/mads/rdf/v1#variantLabel> "Butler Library, Columbia University"@en
data/config/subs.yml DELETED
@@ -1,12 +0,0 @@
1
- development:
2
- djatoka_server: "http://iris.cul.columbia.edu:8080"
3
- fedora_server: "http://sayers.cul.columbia.edu:8080"
4
- php_server: "http://bach.cul.columbia.edu/dev"
5
- test:
6
- djatoka_server: "http://iris.cul.columbia.edu:8080"
7
- fedora_server: "http://sayers.cul.columbia.edu:8080"
8
- php_server: "http://bach.cul.columbia.edu/dev"
9
- production:
10
- djatoka_server: "http://iris.cul.columbia.edu:8080"
11
- fedora_server: "http://alcott.cul.columbia.edu:8080"
12
- php_server: "http://bach.cul.columbia.edu"