active-fedora 11.5.3 → 11.5.4

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: 82489148096d04557ef8d858f4cb07d7e4893f26
4
- data.tar.gz: d7eb6b00994bc3c60359530a62a226d8a22e22b2
3
+ metadata.gz: da56e0bb225d2627a3fc10d6bd39b9726f236fa8
4
+ data.tar.gz: 95fc0a31a9a709115910d063022d2994b97a8e5e
5
5
  SHA512:
6
- metadata.gz: 4e721577c65e61ce86bc4e91e4e226d06f377e3525aa484ae35de7fef4f949c9ee838a5df04d8799bf259a84d26264ab85e167d4b90a97f19951c5fa9f8dbfe5
7
- data.tar.gz: 8947ac75e8ec68786c8bb0a9707b8806a41e8eeaddb79a840d3485e0ba8bfe099dde638d68052da0dcef3d2a196f193757c1cfa0a19e78e7feadf055994a742c
6
+ metadata.gz: 14d3fa8577f3f192887a0ba9260cec44b81cc011513b7efdb76b8834d8f1c5020cd2f58acf5b6d35b4bfc7fcc77893c5323005ad4c97d68bfb663f0625877905
7
+ data.tar.gz: 675a3119b7daac3dab00d11a8f9cc664ddbd2cb8298ea2be904e573148132fe2b9d4a725e1106693757290f6648790c82bce31f031390a33a111d0e307473b3d
@@ -154,6 +154,10 @@ module ActiveFedora
154
154
  end
155
155
  end
156
156
 
157
+ def empty?
158
+ !any?
159
+ end
160
+
157
161
  private
158
162
 
159
163
  VALID_FIND_OPTIONS = [:order, :limit, :start, :conditions, :cast].freeze
@@ -14,7 +14,7 @@ module ActiveFedora
14
14
  ].to_set
15
15
 
16
16
  delegate :length, :map, :to_ary, to: :to_a
17
- delegate :all?, :blank?, :collect, :include?, :present?, to: :each
17
+ delegate :any?, :all?, :collect, :include?, to: :each
18
18
 
19
19
  protected
20
20
 
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "11.5.3".freeze
2
+ VERSION = "11.5.4".freeze
3
3
  end
@@ -22,6 +22,10 @@ describe ActiveFedora::Base do
22
22
  end
23
23
 
24
24
  it { is_expected.to respond_to(:each_with_index) }
25
+ it { expect(libraries.any?).to eq false }
26
+ it { is_expected.to be_blank }
27
+ it { is_expected.to be_empty }
28
+ it { is_expected.not_to be_present }
25
29
 
26
30
  context "when some records exist" do
27
31
  before do
@@ -43,6 +47,11 @@ describe ActiveFedora::Base do
43
47
  end
44
48
  end
45
49
 
50
+ it { expect(libraries.any?).to eq true }
51
+ it { is_expected.not_to be_blank }
52
+ it { is_expected.not_to be_empty }
53
+ it { is_expected.to be_present }
54
+
46
55
  describe '#each' do
47
56
  before { Book.create }
48
57
 
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: 11.5.3
4
+ version: 11.5.4
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: 2018-09-22 00:00:00.000000000 Z
13
+ date: 2018-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr