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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca87a23d6291dfd4c29c89cfcd301359a9c5f462
4
- data.tar.gz: e23c3c7cb8d65db9a0d69975a6caade81a5daef6
3
+ metadata.gz: fc2a36cc1fec1aa2da1551e83951ddbfa9c2a0d3
4
+ data.tar.gz: 4a0fa8557d3a46e7531f4c7573c610e8e59ec8a4
5
5
  SHA512:
6
- metadata.gz: 3e8089f8e0dbcadb8a7d0a724a527a01c3e07216b671b5cafbf769b2bc5c646c15cfd94d16d8d85c90d21737ecf37a207934732039ab4512a2f4cc6cd8554d5d
7
- data.tar.gz: 98958df3a3f1092189898370580be076ad2e0ca725dfe0570fad73d50a51e4c2c2afdc88ae8f17ceefd551d28a350a84644126b13450a3c8b00327bfcb45c067
6
+ metadata.gz: 1d7e47f691cd3db8f1bf305f3ffc63a73b8795f3680c83d862216e0b89ba82f6727a7a653f4504402dd349c9d10df0780ffe2d404fc5ac08f8251392056c0186
7
+ data.tar.gz: e2c06d079a51c8f8d219da3df9de0de778470428a3155f5ff3918a54e2e5f55124944b1d84116c34745a1163413777273982b0bb24eeebfb0353427c6045e5c8
data/.gitignore CHANGED
@@ -1,5 +1,5 @@
1
1
  /Gemfile.lock
2
2
  /pkg/
3
3
  /tmp/
4
- /lib/fastimage/resize/native_resize.bundle
5
- /lib/fastimage/resize/native_resize.so
4
+ /lib/fastimage_native_resize.bundle
5
+ /lib/fastimage_native_resize.so
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.1.1 - 2016-06-03
2
+
3
+ Fix native code structure to work after gem install.
4
+
1
5
  # 3.1.0 - 2016-06-03
2
6
 
3
7
  Replacing RubyInline with native extension.
data/Rakefile CHANGED
@@ -10,11 +10,7 @@ end
10
10
 
11
11
  require "rake/extensiontask"
12
12
 
13
- Rake::ExtensionTask.new do |ext|
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
 
@@ -2,5 +2,4 @@ require "mkmf"
2
2
 
3
3
  abort "missing libgd" unless have_library("gd")
4
4
 
5
- dir_config "fastimage_resize"
6
- create_makefile "native_resize"
5
+ create_makefile "fastimage_native_resize"
@@ -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 native_resize(VALUE self, VALUE rb_in, VALUE rb_out, VALUE rb_w, VALUE rb_h, VALUE rb_image_type, VALUE rb_jpeg_quality) {
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 Init_native_resize(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", native_resize, 6);
103
+ rb_define_singleton_method(cFastImageResize, "native_resize", fastimage_native_resize, 6);
104
104
  }
@@ -1,5 +1,5 @@
1
1
  class FastImage
2
2
  module Resize
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
5
5
  end
@@ -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|spec|features)/}) }
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/fastimage_resize/extconf.rb"
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.0
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/fastimage_resize/extconf.rb
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
- - bin/console
106
- - ext/fastimage_resize/extconf.rb
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
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "fastimage/resize"
5
-
6
- require "irb"
7
- IRB.start