sobakasu-image_science 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/History.txt CHANGED
@@ -1,3 +1,17 @@
1
+ == 1.1.7 / 2011-02-05
2
+
3
+ * backward compatibility fix for ruby 1.8.7
4
+ * fix for compilation under rvm on OS X
5
+
6
+ == 1.1.6 / 2011-01-10
7
+
8
+ * merged in dpi code from tcaddy (https://github.com/tcaddy/image_science)
9
+ ** dpm_to_dpi, dpi_to_dpm, dpi_x, dpi_y, dpi, resize_with_dpm, dpm_x, dpm_y
10
+
11
+ == 1.1.5 / 2010-12-16
12
+
13
+ * fixes for ruby 1.9
14
+
1
15
  == 1.1.4 / 2010-09-15
2
16
 
3
17
  * added 'fit_within' command to bin/image_science.
data/ext/extconf.rb CHANGED
@@ -29,7 +29,11 @@ def expand_constants
29
29
  constants[$1] << [name]
30
30
  end
31
31
 
32
- raw_headers = headers.collect { |i| File.read(i, :encoding => "ISO-8859-1") }.join
32
+ if RUBY_VERSION >= "1.9"
33
+ raw_headers = headers.collect { |i| File.read(i, :encoding => "ISO-8859-1") }.join
34
+ else
35
+ raw_headers = headers.collect { |i| File.read(i) }.join
36
+ end
33
37
 
34
38
  # add #defined constants (load/save flags)
35
39
  constants['FLAG'] ||= []
@@ -73,7 +77,7 @@ def expand_constants
73
77
 
74
78
  end
75
79
 
76
- dir_config('freeimage')
80
+ dir_config('freeimage', %W{/opt/local /usr/local /usr})
77
81
 
78
82
  ok = have_header('FreeImage.h') &&
79
83
  have_library('stdc++') && # sometimes required on OSX
data/lib/image_science.rb CHANGED
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../ext/image_science_ext'
2
2
 
3
3
  class ImageScience
4
4
 
5
- VERSION = "1.1.6"
5
+ VERSION = "1.1.7"
6
6
 
7
7
  ##
8
8
  # Returns the type of the image as a string.
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sobakasu-image_science
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 6
9
- version: 1.1.6
4
+ prerelease:
5
+ version: 1.1.7
10
6
  platform: ruby
11
7
  authors:
12
8
  - Ryan Davis
@@ -15,7 +11,7 @@ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
13
 
18
- date: 2011-01-10 00:00:00 +10:30
14
+ date: 2011-02-05 00:00:00 +10:30
19
15
  default_executable:
20
16
  dependencies:
21
17
  - !ruby/object:Gem::Dependency
@@ -26,11 +22,7 @@ dependencies:
26
22
  requirements:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
- segments:
30
- - 2
31
- - 8
32
- - 0
33
- version: 2.8.0
25
+ version: 2.9.0
34
26
  type: :development
35
27
  version_requirements: *id001
36
28
  description: |-
@@ -73,6 +65,7 @@ files:
73
65
  - spec/fixtures/pix.gif
74
66
  - spec/spec.opts
75
67
  - spec/image_science_spec.rb
68
+ - .gemtest
76
69
  has_rdoc: true
77
70
  homepage: http://seattlerb.rubyforge.org/ImageScience.html
78
71
  licenses: []
@@ -88,21 +81,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
81
  requirements:
89
82
  - - ">="
90
83
  - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
84
  version: "0"
94
85
  required_rubygems_version: !ruby/object:Gem::Requirement
95
86
  none: false
96
87
  requirements:
97
88
  - - ">="
98
89
  - !ruby/object:Gem::Version
99
- segments:
100
- - 0
101
90
  version: "0"
102
91
  requirements: []
103
92
 
104
93
  rubyforge_project: sobakasu-image_science
105
- rubygems_version: 1.3.7
94
+ rubygems_version: 1.5.0
106
95
  signing_key:
107
96
  specification_version: 3
108
97
  summary: ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick