giftrim 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/giftrim.rb +1 -1
- data/lib/giftrim/version.rb +1 -1
- data/test/giftrim_test.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGRjMDE1YjM1MjM3ZmExN2ZjZWU5NjgyYjhiODJlZWY0MWYxYTgyOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjVlMmM3ZTFjYjMwMmQ3YjkyM2ZmMTU5MWE0NzdmMWE4YmRhOWQxOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWNmNzQ3YzMzZWNlOWU0ZDJkMjllMWEwZjQ3MGJmOTRkZmM4ZDg3NjU1Yzgx
|
10
|
+
ZGJhODY0MzkyOGU2YWU0M2MwODI1NjkxMDY2Njk4NzEyMGE4ODBkZTU0ZGJj
|
11
|
+
MThmMjM0NDQwYzU5ZjFlZDVmOGM2YWJkMThhYjU1OGQ0OTI1NTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTg3ODM4ZDJkNmIxNWNiN2U0YzYzNjAyNzAwMzk0OGU4YTk4N2IyNGIwMDlj
|
14
|
+
OWEwZmFiODBkNTVlZWJiMzM1ZTI5NDg2ZGEwMWM1MTNkYmQ2MjhkY2MwN2Y0
|
15
|
+
N2E0MTg2NjFiOTRiMGJhYjk1YzE1YjQyYTc4OGYzMGZlMWQ1NWI=
|
data/lib/giftrim.rb
CHANGED
@@ -179,7 +179,7 @@ module Giftrim
|
|
179
179
|
@outfile.binmode
|
180
180
|
@outfile.close
|
181
181
|
|
182
|
-
command = "#{Giftrim.processor} --resize-fit '300x300' #{@path} #{frames_formatted} > #{@outfile.path}"
|
182
|
+
command = "#{Giftrim.processor} --unoptimize -O2 --no-comments --no-names --same-delay --same-loopcount --no-warnings --resize-fit '300x300' #{@path} #{frames_formatted} > #{@outfile.path}"
|
183
183
|
output = run_command command
|
184
184
|
if output
|
185
185
|
@tempfile = @outfile
|
data/lib/giftrim/version.rb
CHANGED
data/test/giftrim_test.rb
CHANGED
@@ -2,9 +2,11 @@ require_relative "test_helper"
|
|
2
2
|
require File.expand_path('../../lib/giftrim.rb', __FILE__)
|
3
3
|
|
4
4
|
describe Giftrim do
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
describe "processor" do
|
6
|
+
it "must be allowed to change processor or the path of gifsicle" do
|
7
|
+
Giftrim.processor = "/usr/local/bin/gifsicle"
|
8
|
+
Giftrim.processor.must_equal "/usr/local/bin/gifsicle"
|
9
|
+
end
|
8
10
|
end
|
9
11
|
|
10
12
|
it "must return frames wanted" do
|