smusher 0.4.4 → 0.4.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/VERSION +1 -1
- data/lib/smusher/puny_png.rb +1 -1
- data/smusher.gemspec +5 -5
- metadata +5 -5
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.5
|
data/lib/smusher/puny_png.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Smusher
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def self.optimized_image_data_for(file)
|
|
16
|
-
url = 'http://www.
|
|
16
|
+
url = 'http://www.punypng.com/api/optimize'
|
|
17
17
|
response = HTTPClient.post url, { 'img' => File.new(file), 'key' => api_key}
|
|
18
18
|
response = JSON.parse(response.body.content)
|
|
19
19
|
raise "puny_png: #{response['error']}" if response['error']
|
data/smusher.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{smusher}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Michael Grosser"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-08-20}
|
|
13
13
|
s.default_executable = %q{smusher}
|
|
14
14
|
s.email = %q{grosser.michael@gmail.com}
|
|
15
15
|
s.executables = ["smusher"]
|
|
@@ -50,10 +50,10 @@ Gem::Specification.new do |s|
|
|
|
50
50
|
s.rubygems_version = %q{1.3.6}
|
|
51
51
|
s.summary = %q{Automatic Lossless Reduction Of All Your Images}
|
|
52
52
|
s.test_files = [
|
|
53
|
-
"spec/
|
|
53
|
+
"spec/smusher/puny_png_spec.rb",
|
|
54
|
+
"spec/smusher/smush_it_spec.rb",
|
|
54
55
|
"spec/smusher_spec.rb",
|
|
55
|
-
"spec/
|
|
56
|
-
"spec/smusher/smush_it_spec.rb"
|
|
56
|
+
"spec/spec_helper.rb"
|
|
57
57
|
]
|
|
58
58
|
|
|
59
59
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 4
|
|
8
|
-
-
|
|
9
|
-
version: 0.4.
|
|
8
|
+
- 5
|
|
9
|
+
version: 0.4.5
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Michael Grosser
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-08-20 00:00:00 +02:00
|
|
18
18
|
default_executable: smusher
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -119,7 +119,7 @@ signing_key:
|
|
|
119
119
|
specification_version: 3
|
|
120
120
|
summary: Automatic Lossless Reduction Of All Your Images
|
|
121
121
|
test_files:
|
|
122
|
-
- spec/spec_helper.rb
|
|
123
|
-
- spec/smusher_spec.rb
|
|
124
122
|
- spec/smusher/puny_png_spec.rb
|
|
125
123
|
- spec/smusher/smush_it_spec.rb
|
|
124
|
+
- spec/smusher_spec.rb
|
|
125
|
+
- spec/spec_helper.rb
|