tinyimg 0.1.4 → 0.1.6

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
- SHA1:
3
- metadata.gz: 5c78967e8d009c48624f294022767f9ae638aac1
4
- data.tar.gz: ad732e2833692887729f60ce0bcf1f7c8f29ef02
2
+ SHA256:
3
+ metadata.gz: 8dc63f8f137b569a187ac50a1082317299b3f694054cafa1102a6c9bd2397ee6
4
+ data.tar.gz: 88fcf8a42e0f78c2343b084f709af080269b51d4c71f5933dc44126e0451242e
5
5
  SHA512:
6
- metadata.gz: 4417c46de9733d20b4091408e815c13eafccd55ce4e14519c65aacf9ea269c8a010993f3a83559448b1185674aff87bc4bca9cfab1c80bdc498063a0baa1c464
7
- data.tar.gz: 81bd7334ef275c6f31ac5d0b2c50a478d71255f0495066d428973ff075b6a52c688798b7c4904981948e444469b2fd3be41c13392e949352860bd6674a01e0c0
6
+ metadata.gz: 5bcf6e5e6cdd63705312bc6a87c7cc54f46ded6c6f7144e0e91c49ef6995612cb770315f9784cbc96cd8cd9d46f3a59cdb6ae24129977da2599dbc05cdd8e094
7
+ data.tar.gz: e20585dd72f2edb5066647f00368251bc99de78b416af6c5d1e0afd6a2cec0193fd9dafe33cf5ba4fe0ac1c6990010ad72f86c90bc94b6ef835029e7bdd1c19f
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
+ Gemfile.lock
1
2
  /*.gem
2
- ext/tinyimg/Makefile
3
- ext/tinyimg/mkmf.log
4
- ext/tinyimg/*.bundle
5
- ext/tinyimg/*.o
3
+ /tmp
4
+ /lib/tinyimg/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.2.0
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require "rake/extensiontask"
2
+
3
+ Rake::ExtensionTask.new "tinyimg" do |ext|
4
+ ext.lib_dir = "lib/tinyimg"
5
+ end
6
+
7
+ begin
8
+ require 'rspec/core/rake_task'
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+
12
+ task :default => [:compile, :spec]
13
+ rescue LoadError
14
+ # no rspec available
15
+ end
@@ -1,7 +1,7 @@
1
1
  require 'mkmf'
2
2
 
3
3
  def filter_dirs(dirs)
4
- dirs.select {|dir| Dir.exists?(dir)}
4
+ dirs.select {|dir| Dir.exist?(dir)}
5
5
  end
6
6
 
7
7
  def cannot_find_gd
@@ -18,8 +18,8 @@ def cannot_find_gd
18
18
  TEXT
19
19
  end
20
20
 
21
- header_dirs = %w(/opt/local/include /usr/local/include /usr/include)
22
- lib_dirs = %w(/opt/local/lib /usr/local/lib /usr/lib)
21
+ header_dirs = %w(/opt/local/include /usr/local/include /usr/include /opt/homebrew/include)
22
+ lib_dirs = %w(/opt/local/lib /usr/local/lib /usr/lib /opt/homebrew/lib)
23
23
 
24
24
  dir_config('gd', filter_dirs(header_dirs), filter_dirs(lib_dirs))
25
25
 
@@ -328,7 +328,10 @@ VALUE internal_crop_bang(VALUE self, VALUE x_value, VALUE y_value, VALUE width_v
328
328
  void Init_tinyimg()
329
329
  {
330
330
  VALUE cTinyimg = rb_define_class("Tinyimg", rb_cObject);
331
- rb_define_class_under(cTinyimg, "Image", rb_cObject);
331
+
332
+ VALUE cTinyimgImage = rb_define_class_under(cTinyimg, "Image", rb_cObject);
333
+ rb_undef_alloc_func(cTinyimgImage);
334
+
332
335
  rb_define_class_under(cTinyimg, "Error", rb_const_get(rb_cObject, rb_intern("StandardError")));
333
336
 
334
337
  rb_define_method(cTinyimg, "resize_exact!", resize_exact_bang, 2);
data/lib/tinyimg.rb CHANGED
@@ -1,4 +1,4 @@
1
- require_relative '../ext/tinyimg/tinyimg'
1
+ require 'tinyimg/tinyimg'
2
2
 
3
3
  class Tinyimg
4
4
  attr_reader :width, :height
data/tinyimg.gemspec CHANGED
@@ -1,11 +1,10 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'tinyimg'
3
- gem.version = '0.1.4'
3
+ gem.version = '0.1.6'
4
4
  gem.summary = "Tiny and fast JPEG/PNG cropping and resizing"
5
5
  gem.description = "Convert between JPEG/PNG, crop and resize images, either all in memory or via disk. Only requires libgd to function."
6
- gem.has_rdoc = false
7
- gem.author = "Roger Nesbitt"
8
- gem.email = "roger@seriousorange.com"
6
+ gem.author = "Mog Nesbitt"
7
+ gem.email = "mog@seriousorange.com"
9
8
  gem.homepage = "http://github.com/mogest/tinyimg"
10
9
  gem.license = 'MIT'
11
10
 
@@ -17,4 +16,5 @@ Gem::Specification.new do |gem|
17
16
  gem.required_ruby_version = '>= 2.0.0'
18
17
 
19
18
  gem.add_development_dependency "rspec", "~> 3.0"
19
+ gem.add_development_dependency "rake-compiler", "~> 1.2.1"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinyimg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
- - Roger Nesbitt
8
- autorequire:
7
+ - Mog Nesbitt
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-07 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,19 +24,34 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.2.1
27
41
  description: Convert between JPEG/PNG, crop and resize images, either all in memory
28
42
  or via disk. Only requires libgd to function.
29
- email: roger@seriousorange.com
43
+ email: mog@seriousorange.com
30
44
  executables: []
31
45
  extensions:
32
46
  - ext/tinyimg/extconf.rb
33
47
  extra_rdoc_files: []
34
48
  files:
35
49
  - ".gitignore"
50
+ - ".ruby-version"
36
51
  - Gemfile
37
- - Gemfile.lock
38
52
  - LICENSE
39
53
  - README.md
54
+ - Rakefile
40
55
  - ext/tinyimg/extconf.rb
41
56
  - ext/tinyimg/tinyimg.c
42
57
  - lib/tinyimg.rb
@@ -48,7 +63,7 @@ homepage: http://github.com/mogest/tinyimg
48
63
  licenses:
49
64
  - MIT
50
65
  metadata: {}
51
- post_install_message:
66
+ post_install_message:
52
67
  rdoc_options: []
53
68
  require_paths:
54
69
  - lib
@@ -63,9 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
78
  - !ruby/object:Gem::Version
64
79
  version: '0'
65
80
  requirements: []
66
- rubyforge_project:
67
- rubygems_version: 2.6.8
68
- signing_key:
81
+ rubygems_version: 3.4.4
82
+ signing_key:
69
83
  specification_version: 4
70
84
  summary: Tiny and fast JPEG/PNG cropping and resizing
71
85
  test_files:
data/Gemfile.lock DELETED
@@ -1,32 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- tinyimg (0.1.4)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- diff-lcs (1.2.5)
10
- rspec (3.3.0)
11
- rspec-core (~> 3.3.0)
12
- rspec-expectations (~> 3.3.0)
13
- rspec-mocks (~> 3.3.0)
14
- rspec-core (3.3.2)
15
- rspec-support (~> 3.3.0)
16
- rspec-expectations (3.3.1)
17
- diff-lcs (>= 1.2.0, < 2.0)
18
- rspec-support (~> 3.3.0)
19
- rspec-mocks (3.3.2)
20
- diff-lcs (>= 1.2.0, < 2.0)
21
- rspec-support (~> 3.3.0)
22
- rspec-support (3.3.0)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- rspec (~> 3.0)
29
- tinyimg!
30
-
31
- BUNDLED WITH
32
- 1.15.4