active-fedora 7.2.0 → 7.3.0

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: e049566d6809c6928e2d4ea760f815d963c72a6b
4
- data.tar.gz: 4f254fc331fc5ea3bdee7318e26eaab5b4a7b234
3
+ metadata.gz: 5a665779f2fa43888b592b942b6f217c377aa697
4
+ data.tar.gz: 56d2dc414a9b0501d526dcb694894b6eb40f682d
5
5
  SHA512:
6
- metadata.gz: 381da47c98e120c5ac1cc0901eeb00e4dbb1d2f8086ee190bd144d161385b0ef037f169a823776804cdcfc5b596231f2b77d896ad889507172b8299553f8a406
7
- data.tar.gz: 85f7a9a3e29b002df812600a9049dbc663001f014089c5ef2e1fed5e257c9c9b1fb2113274282854264ebb99303eeac347e810ea5639b37696e2d5b4a4d9b783
6
+ metadata.gz: e954a87d5247fd9fe60bac328b444327d7a1bc42e9c4c72c943bacfb5ed97376f3d139cd7b2053db1439a1f4b4fb7a83cd7aebf9835154c1f295f44370fe0c35
7
+ data.tar.gz: d7a3aef837676c42fe2900161ed32426b619885694019e4193160b12c89bf44883ff8a94f592ddf59c67aa798b533e15496a0b0da349f3bac479ff1cd2ec201a
@@ -2,7 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - 2.3.1
4
4
 
5
-
6
5
  matrix:
7
6
  include:
8
7
  - rvm: 2.2.5
@@ -10,9 +9,6 @@ matrix:
10
9
  - rvm: 2.1.10
11
10
  env: RAILS_VERSION=4.2.7.1
12
11
 
13
- notifications:
14
- irc: "irc.freenode.org#projecthydra"
15
-
16
12
  env:
17
13
  global:
18
14
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
data/Gemfile CHANGED
@@ -11,3 +11,4 @@ end
11
11
  gem 'jruby-openssl', :platform=> :jruby
12
12
  gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
13
13
  gem 'linkeddata', '~> 1.99'
14
+ gem 'rake', '< 12'
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'om', '~> 3.1'
19
19
  s.add_dependency 'nom-xml', '>= 0.5.1'
20
20
  s.add_dependency "activesupport", '>= 3.0.0'
21
- s.add_dependency "rubydora", '~> 1.8'
21
+ s.add_dependency "rubydora", '~> 1.8', '< 3'
22
22
  s.add_dependency "active-triples", '~> 0.2.2'
23
23
  s.add_dependency "rdf-rdfxml", '~> 1.1'
24
24
  s.add_dependency "deprecation"
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency "rake"
28
28
  s.add_development_dependency "jettywrapper", ">=1.4.0"
29
29
  s.add_development_dependency "rspec", "~> 2.99"
30
- s.add_development_dependency "rspec-its"
30
+ s.add_development_dependency "rspec-its", "~> 1.0.1"
31
31
  s.add_development_dependency "equivalent-xml"
32
32
  s.add_development_dependency "rest-client"
33
33
  s.add_development_dependency "webmock"
@@ -63,7 +63,11 @@ module ActiveFedora
63
63
  if @full_result # side-effect from #id_reader
64
64
  ActiveFedora::SolrService.reify_solr_results([@full_result]).first
65
65
  else
66
- ActiveFedora::Base.find(id_reader, cast: true)
66
+ begin
67
+ ActiveFedora::Base.find(id_reader, cast: true)
68
+ rescue ActiveFedora::ObjectNotFoundError
69
+ nil
70
+ end
67
71
  end
68
72
  end
69
73
 
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "7.2.0"
2
+ VERSION = "7.3.0"
3
3
  end
@@ -45,6 +45,11 @@ describe ActiveFedora::Base do
45
45
  book[:library_id] = library.id
46
46
  book.library_id.should == library.id
47
47
  end
48
+
49
+ it "safely handles invalid data" do
50
+ book[:library_id] = 'bad:identifier'
51
+ book.library.should be_nil
52
+ end
48
53
  end
49
54
 
50
55
  describe "getting the id property" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-17 00:00:00.000000000 Z
13
+ date: 2017-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -81,6 +81,9 @@ dependencies:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '1.8'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '3'
84
87
  type: :runtime
85
88
  prerelease: false
86
89
  version_requirements: !ruby/object:Gem::Requirement
@@ -88,6 +91,9 @@ dependencies:
88
91
  - - "~>"
89
92
  - !ruby/object:Gem::Version
90
93
  version: '1.8'
94
+ - - "<"
95
+ - !ruby/object:Gem::Version
96
+ version: '3'
91
97
  - !ruby/object:Gem::Dependency
92
98
  name: active-triples
93
99
  requirement: !ruby/object:Gem::Requirement
@@ -204,16 +210,16 @@ dependencies:
204
210
  name: rspec-its
205
211
  requirement: !ruby/object:Gem::Requirement
206
212
  requirements:
207
- - - ">="
213
+ - - "~>"
208
214
  - !ruby/object:Gem::Version
209
- version: '0'
215
+ version: 1.0.1
210
216
  type: :development
211
217
  prerelease: false
212
218
  version_requirements: !ruby/object:Gem::Requirement
213
219
  requirements:
214
- - - ">="
220
+ - - "~>"
215
221
  - !ruby/object:Gem::Version
216
- version: '0'
222
+ version: 1.0.1
217
223
  - !ruby/object:Gem::Dependency
218
224
  name: equivalent-xml
219
225
  requirement: !ruby/object:Gem::Requirement
@@ -554,7 +560,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
554
560
  version: '0'
555
561
  requirements: []
556
562
  rubyforge_project:
557
- rubygems_version: 2.5.1
563
+ rubygems_version: 2.6.8
558
564
  signing_key:
559
565
  specification_version: 4
560
566
  summary: A convenience libary for manipulating documents in the Fedora Repository.