active-fedora 10.1.0.rc1 → 10.1.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: 0da32a629ca0c04a5d83095d550ff267d2f53167
4
- data.tar.gz: 7a68b6ee0c5231ae10e9f1c93d3cac54427ff322
3
+ metadata.gz: 87658dd9989ef6b9dcb8e43ec5b1cd5d7cb05348
4
+ data.tar.gz: 86e4e8778223f2c8716cfafa305da4a6b1fc6e4c
5
5
  SHA512:
6
- metadata.gz: 1b11aa699b0ac03ed5b4a33727e7544fc74f3e027a19487bb6774334e029814030a8099b67dc6f6bb1fdf4cd0af9690bf166ac883337f4503de9c05274877eef
7
- data.tar.gz: abadc23ff5e3f8646c991e6f3b1ac8c1367f12d8b73fea9e66d0fc98c8d8d9a1ef3d6171c78beee1d887dc49f3956b76052bb2cee101763448031f374684f07f
6
+ metadata.gz: 240c154b9a54a470c1837752ec2763d2cec77ecdee788e9e82f75c48175f39d56cf8e71ee90ffa4a4c3ef8b4df25341a5755640cfa20a1c89b46d442a7d113fa
7
+ data.tar.gz: 50c233379480b07d252afdb6192721fdded0235ff776f579049b619961c9986f14b82bef9b9192261639664d1abc9d8b1af012ef30e240b8aa130ad8db9fda65
@@ -10,6 +10,7 @@ module ActiveFedora
10
10
  module Indexing
11
11
  extend ActiveSupport::Concern
12
12
  extend ActiveSupport::Autoload
13
+ extend Deprecation
13
14
 
14
15
  eager_autoload do
15
16
  autoload :Map
@@ -105,6 +106,7 @@ module ActiveFedora
105
106
  def load_instance_from_solr(id, solr_doc = nil)
106
107
  SolrInstanceLoader.new(self, id, solr_doc).object
107
108
  end
109
+ deprecation_deprecate :load_instance_from_solr
108
110
 
109
111
  def descendant_uris(uri)
110
112
  resource = Ldp::Resource::RdfSource.new(ActiveFedora.fedora.connection, uri)
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "10.1.0.rc1".freeze
2
+ VERSION = "10.1.0".freeze
3
3
  end
@@ -42,6 +42,7 @@ describe ActiveFedora::Base do
42
42
 
43
43
  describe "saving and loading in Solr" do
44
44
  let(:object) { Foo.create!(date: [date], single_date: date2, empty_date: '', integer: 1) }
45
+ before { allow(Deprecation).to receive(:warn) }
45
46
 
46
47
  let(:subject_solr) { object.class.load_instance_from_solr(object.id) }
47
48
  it "uses DateTime objects" do
@@ -139,6 +139,7 @@ describe ActiveFedora::SolrInstanceLoader do
139
139
  end
140
140
 
141
141
  describe "loading system properties" do
142
+ before { allow(Deprecation).to receive(:warn) }
142
143
  let(:obj_solr) { Foo.load_instance_from_solr(obj.id) }
143
144
  it "loads create_date from solr" do
144
145
  expect(obj.create_date).to be_present
@@ -64,6 +64,7 @@ describe ActiveFedora::Orders do
64
64
  subject.save!
65
65
  solr_doc = ActiveFedora::SolrService.query("id:#{subject.id}").first
66
66
 
67
+ allow(Deprecation).to receive(:warn)
67
68
  expect { ActiveFedora::Base.load_instance_from_solr(subject.id, solr_doc) }.not_to raise_error
68
69
  end
69
70
 
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: 10.1.0.rc1
4
+ version: 10.1.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-07-11 00:00:00.000000000 Z
13
+ date: 2016-07-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -772,9 +772,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
772
772
  version: '2.0'
773
773
  required_rubygems_version: !ruby/object:Gem::Requirement
774
774
  requirements:
775
- - - ">"
775
+ - - ">="
776
776
  - !ruby/object:Gem::Version
777
- version: 1.3.1
777
+ version: '0'
778
778
  requirements: []
779
779
  rubyforge_project:
780
780
  rubygems_version: 2.5.1
@@ -782,4 +782,3 @@ signing_key:
782
782
  specification_version: 4
783
783
  summary: A convenience libary for manipulating documents in the Fedora Repository.
784
784
  test_files: []
785
- has_rdoc: