ddr-models 3.0.0.rc2 → 3.0.0.rc3

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: 7de034ef99997f329a03eca2b79eee78a8a6ae12
4
- data.tar.gz: 3d0f8694d937b5b6a6bfbf94f0889af0520c3ecb
3
+ metadata.gz: 03eb789b541de8dd89b08af2bc03b673af56b8e4
4
+ data.tar.gz: 5185c18c6e72389a97ed4edfb216e30c9ab94ae5
5
5
  SHA512:
6
- metadata.gz: 7d279fe99f40579c4409eaf63e89213c42c644f6836c50a56c2701602be81a86045ade82d993adb5bcc4f08511a1d66859d72dacfca41f6b1c62d7e5e5e6052b
7
- data.tar.gz: db68f4040d5ac62d39a71bc7f7630ea297d2b07038812672a57273f7299caf3f05db2d31f5972362ed1cef74e006e079add3f166e9199b59fb7dd0dfa18dad8a
6
+ metadata.gz: daa97e2fb977deb31b675d503ce2d99584c1dc00caf59ea937dfe42ade38d9ec366356ac2cf5d4efc6a147284b134fbac1455cd20c5d87a7ce3c33a613e20adc
7
+ data.tar.gz: 74a7bc74d78f486bd1442e30dd0644f41b29a05fd5cbda4c638a9a3751f10dfc6dd09099532ae463078105240beb750e35e2c475756ae48e56ec1b4ac4e1c34e
@@ -74,6 +74,7 @@ module Ddr::Index
74
74
  TECHMD_IMAGE_HEIGHT = Field.new :techmd_image_height, :stored_searchable, type: :integer
75
75
  TECHMD_IMAGE_WIDTH = Field.new :techmd_image_width, :stored_searchable, type: :integer
76
76
  TECHMD_MEDIA_TYPE = Field.new :techmd_media_type, :symbol
77
+ TECHMD_MESSAGE = Field.new :techmd_message, :stored_searchable, type: :text
77
78
  TECHMD_MODIFICATION_TIME = Field.new :techmd_modification_time, :stored_searchable, type: :date
78
79
  TECHMD_PRONOM_IDENTIFIER = Field.new :techmd_pronom_identifier, :symbol
79
80
  TECHMD_VALID = Field.new :techmd_valid, :symbol
@@ -5,10 +5,20 @@ module Ddr::Managers
5
5
 
6
6
  delegate :content, :fits, to: :object
7
7
 
8
- delegate :valid, :well_formed,
9
- :media_type, :format_label, :format_version, :pronom_identifier,
10
- :created, :modified, :creating_application, :extent,
11
- :image_width, :image_height, :color_space,
8
+ delegate :color_space,
9
+ :created,
10
+ :creating_application,
11
+ :extent,
12
+ :format_label,
13
+ :format_version,
14
+ :image_height,
15
+ :image_width,
16
+ :media_type,
17
+ :message,
18
+ :modified,
19
+ :pronom_identifier,
20
+ :valid,
21
+ :well_formed,
12
22
  to: :fits
13
23
 
14
24
  alias_method :last_modified, :modified
@@ -28,6 +28,7 @@ module Ddr::Models
28
28
  t.lastmodified
29
29
  }
30
30
  t.filestatus {
31
+ t.message
31
32
  t.valid
32
33
  t.well_formed(path: "well-formed")
33
34
  }
@@ -53,6 +54,7 @@ module Ddr::Models
53
54
  t.format_version proxy: [:identification, :identity, :version]
54
55
  t.pronom_identifier proxy: [:identification, :identity, :pronom_identifier]
55
56
  # filestatus
57
+ t.message proxy: [:filestatus, :message]
56
58
  t.valid proxy: [:filestatus, :valid]
57
59
  t.well_formed proxy: [:filestatus, :well_formed]
58
60
  # fileinfo
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "3.0.0.rc2"
3
+ VERSION = "3.0.0.rc3"
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ module Ddr::Index
15
15
  Fields::TECHMD_IMAGE_HEIGHT,
16
16
  Fields::TECHMD_IMAGE_WIDTH,
17
17
  Fields::TECHMD_MEDIA_TYPE,
18
+ Fields::TECHMD_MESSAGE,
18
19
  Fields::TECHMD_MODIFICATION_TIME,
19
20
  Fields::TECHMD_PRONOM_IDENTIFIER,
20
21
  Fields::TECHMD_VALID,
@@ -43,11 +43,18 @@ module Ddr::Managers
43
43
  its(:last_modified) { is_expected.to eq(["2015-06-08T21:22:35Z"]) }
44
44
  its(:created) { is_expected.to eq(["2015:06:05 15:16:23-04:00"]) }
45
45
  its(:pronom_identifier) { is_expected.to eq(["fmt/20"]) }
46
- its(:creating_application) { is_expected.to contain_exactly("Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/PREMIS Editorial Committee", "Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/Acrobat PDFMaker 11 for Word") }
46
+ its(:creating_application) {
47
+ is_expected.to contain_exactly("Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/PREMIS Editorial Committee",
48
+ "Adobe Acrobat Pro 11.0.3 Paper Capture Plug-in/Acrobat PDFMaker 11 for Word")
49
+ }
47
50
  its(:fits_version) { is_expected.to eq("0.8.5") }
48
51
  its(:extent) { is_expected.to eq(["3786205"]) }
49
52
  its(:file_size) { is_expected.to eq([3786205]) }
50
53
  its(:media_type) { is_expected.to eq(["application/pdf"]) }
54
+ its(:message) {
55
+ is_expected.to contain_exactly("Invalid page tree node offset=390028",
56
+ "Outlines contain recursive references.")
57
+ }
51
58
 
52
59
  describe "datetime fields" do
53
60
  its(:creation_time) { is_expected.to contain_exactly(DateTime.parse("2015-06-05 15:16:23-04:00").to_time.utc) }
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.0.rc2
4
+ version: 3.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble