local-fastimage_resize 3.1.0 → 3.1.1
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 +4 -4
- data/.gitignore +2 -2
- data/CHANGELOG.md +4 -0
- data/Rakefile +1 -5
- data/ext/{fastimage_resize → fastimage_native_resize}/extconf.rb +1 -2
- data/ext/{fastimage_resize/native_resize.c → fastimage_native_resize/fastimage_native_resize.c} +3 -3
- data/lib/fastimage/resize/version.rb +1 -1
- data/lib/fastimage/resize.rb +1 -1
- data/local-fastimage_resize.gemspec +2 -2
- metadata +4 -5
- data/bin/console +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc2a36cc1fec1aa2da1551e83951ddbfa9c2a0d3
|
4
|
+
data.tar.gz: 4a0fa8557d3a46e7531f4c7573c610e8e59ec8a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d7e47f691cd3db8f1bf305f3ffc63a73b8795f3680c83d862216e0b89ba82f6727a7a653f4504402dd349c9d10df0780ffe2d404fc5ac08f8251392056c0186
|
7
|
+
data.tar.gz: e2c06d079a51c8f8d219da3df9de0de778470428a3155f5ff3918a54e2e5f55124944b1d84116c34745a1163413777273982b0bb24eeebfb0353427c6045e5c8
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -10,11 +10,7 @@ end
|
|
10
10
|
|
11
11
|
require "rake/extensiontask"
|
12
12
|
|
13
|
-
Rake::ExtensionTask.new
|
14
|
-
ext.name = "native_resize"
|
15
|
-
ext.ext_dir = "ext/fastimage_resize"
|
16
|
-
ext.lib_dir = "lib/fastimage/resize"
|
17
|
-
end
|
13
|
+
Rake::ExtensionTask.new "fastimage_native_resize"
|
18
14
|
|
19
15
|
Rake::Task[:test].prerequisites << :compile
|
20
16
|
|
data/ext/{fastimage_resize/native_resize.c → fastimage_native_resize/fastimage_native_resize.c}
RENAMED
@@ -7,7 +7,7 @@
|
|
7
7
|
// rb_funcall(rb_mKernel, sym_puts, 1, rb_funcall(v, sym_inspect, 0));
|
8
8
|
// }
|
9
9
|
|
10
|
-
static VALUE
|
10
|
+
static VALUE fastimage_native_resize(VALUE self, VALUE rb_in, VALUE rb_out, VALUE rb_w, VALUE rb_h, VALUE rb_image_type, VALUE rb_jpeg_quality) {
|
11
11
|
char *filename_in = StringValuePtr(rb_in);
|
12
12
|
char *filename_out = StringValuePtr(rb_out);
|
13
13
|
int w = NUM2INT(rb_w);
|
@@ -95,10 +95,10 @@ static VALUE native_resize(VALUE self, VALUE rb_in, VALUE rb_out, VALUE rb_w, VA
|
|
95
95
|
return Qnil;
|
96
96
|
}
|
97
97
|
|
98
|
-
void
|
98
|
+
void Init_fastimage_native_resize(void) {
|
99
99
|
VALUE cFastImageResize;
|
100
100
|
|
101
101
|
cFastImageResize = rb_const_get(rb_cObject, rb_intern("FastImage"));
|
102
102
|
|
103
|
-
rb_define_singleton_method(cFastImageResize, "native_resize",
|
103
|
+
rb_define_singleton_method(cFastImageResize, "native_resize", fastimage_native_resize, 6);
|
104
104
|
}
|
data/lib/fastimage/resize.rb
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
|
22
22
|
require 'tempfile'
|
23
23
|
require 'fastimage'
|
24
|
+
require 'fastimage_native_resize'
|
24
25
|
|
25
26
|
module FastImage::Resize
|
26
27
|
SUPPORTED_FORMATS = [:jpeg, :png, :gif]
|
@@ -82,5 +83,4 @@ module FastImage::Resize
|
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
85
|
-
require 'fastimage/resize/native_resize'
|
86
86
|
FastImage.send(:include, FastImage::Resize)
|
@@ -17,10 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
s.license = "MIT"
|
19
19
|
|
20
|
-
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test
|
20
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|test)/}) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.extensions = "ext/
|
23
|
+
s.extensions = "ext/fastimage_native_resize/extconf.rb"
|
24
24
|
|
25
25
|
s.add_dependency "local-fastimage", "~> 3.0"
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: local-fastimage_resize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Sykes
|
@@ -89,7 +89,7 @@ email:
|
|
89
89
|
- support@plan.io
|
90
90
|
executables: []
|
91
91
|
extensions:
|
92
|
-
- ext/
|
92
|
+
- ext/fastimage_native_resize/extconf.rb
|
93
93
|
extra_rdoc_files: []
|
94
94
|
files:
|
95
95
|
- ".gitignore"
|
@@ -102,9 +102,8 @@ files:
|
|
102
102
|
- README.textile
|
103
103
|
- Rakefile
|
104
104
|
- VERSION.yml
|
105
|
-
-
|
106
|
-
- ext/
|
107
|
-
- ext/fastimage_resize/native_resize.c
|
105
|
+
- ext/fastimage_native_resize/extconf.rb
|
106
|
+
- ext/fastimage_native_resize/fastimage_native_resize.c
|
108
107
|
- lib/fastimage/resize.rb
|
109
108
|
- lib/fastimage/resize/version.rb
|
110
109
|
- local-fastimage_resize.gemspec
|