giftrim 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWFhMWNhNmJlMGRiODU4MTZiMGYzOGE1ZTlmNjgwMjZjOGQ3ODcwZA==
4
+ NGRjMDE1YjM1MjM3ZmExN2ZjZWU5NjgyYjhiODJlZWY0MWYxYTgyOQ==
5
5
  data.tar.gz: !binary |-
6
- MmNkNDAzNWYwYWNkZGVjMzM4ZGI4MDllZjA3NjFlNzZhMmIxZTc3Zg==
6
+ NjVlMmM3ZTFjYjMwMmQ3YjkyM2ZmMTU5MWE0NzdmMWE4YmRhOWQxOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzA2OTRmZWM0NjIzMDY1ODcyOTRiYTVmNDJlNjA2NWQxOGQxZjk2ZDI4ZGJl
10
- OTUyZTYwZjc0ZjEyODY3ZTg0OTNjMmNlZTM3ZTRmMzFhN2RjODU4MTY5ZTE3
11
- MTZlNmI2OWM0ZmRkMmY3YTVkNGZiYjA5ZWEyYzQ5MjljYWYxNTY=
9
+ MWNmNzQ3YzMzZWNlOWU0ZDJkMjllMWEwZjQ3MGJmOTRkZmM4ZDg3NjU1Yzgx
10
+ ZGJhODY0MzkyOGU2YWU0M2MwODI1NjkxMDY2Njk4NzEyMGE4ODBkZTU0ZGJj
11
+ MThmMjM0NDQwYzU5ZjFlZDVmOGM2YWJkMThhYjU1OGQ0OTI1NTA=
12
12
  data.tar.gz: !binary |-
13
- YTY3YWEwZTkwMTNmODNiMWUxOWE1Mzg0MWExYmNkMWRhNmRlMGZmOTI4ODk0
14
- OWJkZjMwNGY3ODUxZWRiYTQ3YmM5YTRhYTllOWRjYjkxMTFhMjc2MzE3ZGUy
15
- MmU5YWZhYmY1MjcyYzRhOTZmODY2ZGEzOTgxMmUyMDg5OTk1ZWM=
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
@@ -1,3 +1,3 @@
1
1
  module Giftrim
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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
- it "must be allowed to change processor or the path of gifsicle" do
6
- Giftrim.processor = "/usr/local/bin/gifsicle"
7
- Giftrim.processor.must_equal "/usr/local/bin/gifsicle"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giftrim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Lou