Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
7dd35f58
Commit
7dd35f58
authored
May 07, 2008
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the ENOENT test and a dumb typo.
parent
c40d947e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/paperclip/geometry.rb
+1
-1
test/test_geometry.rb
+1
-1
No files found.
lib/paperclip/geometry.rb
View file @
7dd35f58
...
...
@@ -18,7 +18,7 @@ module Paperclip
def
self
.
from_file
file
file
=
file
.
path
if
file
.
respond_to?
"path"
parse
(
`
#{
Paperclip
.
path_for_command
(
'identify'
)
}
"
#{
file
}
"`
)
||
raise
NotIdentifiedByImageMagickError
,
"
#{
file
}
is not recognized by the 'identify' command."
raise
(
NotIdentifiedByImageMagickError
.
new
(
"
#{
file
}
is not recognized by the 'identify' command."
))
end
# Parses a "WxH" formatted string, where W is the width and H is the height.
...
...
test/test_geometry.rb
View file @
7dd35f58
...
...
@@ -82,7 +82,7 @@ class GeometryTest < Test::Unit::TestCase
should
"not generate from a bad file"
do
file
=
"/home/This File Does Not Exist.omg"
assert_raise
(
Errno
::
ENOENT
){
@geo
=
Paperclip
::
Geometry
.
from_file
(
file
)
}
assert_raise
(
Paperclip
::
NotIdentifiedByImageMagick
){
@geo
=
Paperclip
::
Geometry
.
from_file
(
file
)
}
end
[[
'vertical'
,
900
,
1440
,
true
,
false
,
false
,
1440
,
900
,
0.625
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment