assembly-objectfile 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -59,6 +59,7 @@ content type specific operations (such as jp2 generation).
59
59
  - 1.5.2 Fix for Rails 4 and support for 'rake console'
60
60
  - 1.5.3 More gemfile updates
61
61
  - 1.5.4 jp2able? method now returns true even if profile description is missing; add new method which does a check for existing color profile in an image
62
+ - 1.5.5 do not allow jp2s to have jp2s derivatives generated
62
63
 
63
64
  ==Usage
64
65
 
@@ -3,7 +3,7 @@ module Assembly
3
3
 
4
4
  class ObjectFile
5
5
  # Project version number
6
- VERSION = "1.5.4"
6
+ VERSION = "1.5.5"
7
7
  end
8
8
 
9
9
  end
@@ -3,8 +3,8 @@ module Assembly
3
3
  # the path to the gem, used to access profiles stored with the gem
4
4
  PATH_TO_GEM = File.expand_path(File.dirname(__FILE__) + '/..')
5
5
 
6
- # if input image is not one of these mime types, it will not be regarded as a valid image
7
- VALID_IMAGE_MIMETYPES=["image/jpeg","image/tiff","image/jp2","image/tif","image/png"]
6
+ # if input image is not one of these mime types, it will not be regarded as a valid image for the purpose of generating a JP2 derivative
7
+ VALID_IMAGE_MIMETYPES=["image/jpeg","image/tiff","image/tif","image/png"]
8
8
 
9
9
  # the list of mimetypes that will be "trusted" by the unix file command; if a mimetype other than one of these is returned
10
10
  # by the file command, then a check will be made to see if exif data exists...if so, the mimetype returned by the exif data will be used
@@ -53,13 +53,13 @@ describe Assembly::ObjectFile do
53
53
  @ai.dpg_folder.should == "05"
54
54
  end
55
55
 
56
- it "should tell us that a jp2 file is jp2able but has no color profile" do
56
+ it "should tell us that a jp2 file is not jp2able" do
57
57
  File.exists?(TEST_JP2_INPUT_FILE).should be true
58
58
  @ai = Assembly::ObjectFile.new(TEST_JP2_INPUT_FILE)
59
59
  @ai.image?.should == true
60
60
  @ai.object_type.should == :image
61
61
  @ai.valid_image?.should == true
62
- @ai.jp2able?.should == true
62
+ @ai.jp2able?.should == false
63
63
  @ai.has_color_profile?.should == false
64
64
  end
65
65
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assembly-objectfile
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 4
10
- version: 1.5.4
9
+ - 5
10
+ version: 1.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Peter Mangiafico