ddr-models 3.0.6 → 3.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc755e51981ed91392c59b4a6f074b9f97a4e267
|
4
|
+
data.tar.gz: 3d3d35677acfcce375f0e96ea5504afd17fcdebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40afd627cbc299fba97ccbcdcb210767048b76b6d190b48b2657c3cf9b4a77b5a33430f54743f42a82bc82d1f3193dfda4238151bbcae74cd3255b861e13991
|
7
|
+
data.tar.gz: aeba98c52e7467fe99cbad263d58198a3a6cc5363058f243e75f5b7d7c8c9bd11f5470920674718afa4859c75d2fcffe9c068ca3318b2d7b2ba7b5a6be1c6368
|
data/lib/ddr/models/version.rb
CHANGED
data/lib/ddr/notifications.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
RSpec.describe ActiveFedora::File do
|
2
|
+
describe "after_save" do
|
3
|
+
let(:callback) {
|
4
|
+
proc { |*args| nil }
|
5
|
+
}
|
6
|
+
around(:example) do |example|
|
7
|
+
ActiveSupport::Notifications.subscribed(callback, Ddr::Notifications::FILE_SAVE) do
|
8
|
+
example.run
|
9
|
+
end
|
10
|
+
end
|
11
|
+
it "sends a notification" do
|
12
|
+
expect(callback).to receive(:call).once
|
13
|
+
file = described_class.new
|
14
|
+
file.content = "foo"
|
15
|
+
file.save
|
16
|
+
file.save
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -408,6 +408,7 @@ files:
|
|
408
408
|
- bin/rails
|
409
409
|
- config/fedora.yml
|
410
410
|
- config/initializers/active_fedora_base.rb
|
411
|
+
- config/initializers/active_fedora_file.rb
|
411
412
|
- config/initializers/devise.rb
|
412
413
|
- config/initializers/subscriptions.rb
|
413
414
|
- config/locales/ddr-models.en.yml
|
@@ -697,6 +698,7 @@ files:
|
|
697
698
|
- spec/managers/derivatives_manager_spec.rb
|
698
699
|
- spec/managers/technical_metadata_manager_spec.rb
|
699
700
|
- spec/models/active_fedora_base_spec.rb
|
701
|
+
- spec/models/active_fedora_file_spec.rb
|
700
702
|
- spec/models/admin_set_spec.rb
|
701
703
|
- spec/models/administrative_metadata_spec.rb
|
702
704
|
- spec/models/attached_files_profile_spec.rb
|
@@ -873,6 +875,7 @@ test_files:
|
|
873
875
|
- spec/managers/derivatives_manager_spec.rb
|
874
876
|
- spec/managers/technical_metadata_manager_spec.rb
|
875
877
|
- spec/models/active_fedora_base_spec.rb
|
878
|
+
- spec/models/active_fedora_file_spec.rb
|
876
879
|
- spec/models/admin_set_spec.rb
|
877
880
|
- spec/models/administrative_metadata_spec.rb
|
878
881
|
- spec/models/attached_files_profile_spec.rb
|