jpeg 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +7 -1
  2. data/VERSION +1 -1
  3. data/ext/jpeg_jpeg.c +2 -2
  4. data/jpeg.gemspec +2 -2
  5. metadata +3 -3
data/README.rdoc CHANGED
@@ -10,9 +10,15 @@ or
10
10
  == Usage
11
11
  jpeg = Jpeg.open('path/to/file')
12
12
  jpeg.size # => [1920, 1080]
13
+ jpeg.width # => 1920
14
+ jpeg.height # => 1080
15
+ jpeg.color_info # => :rgb or :gray
16
+ jpeg.rgb? # => true
17
+ jpeg.gray? # => false
13
18
 
14
19
  == What can do
15
20
  - get size
21
+ - get color_info
16
22
 
17
23
  == Contributing to jpeg
18
24
 
@@ -26,6 +32,6 @@ or
26
32
 
27
33
  == Copyright
28
34
 
29
- Copyright (c) 2012 Yamada Masaki. See LICENSE.txt for
35
+ Copyright (c) 2012 masarakki. See LICENSE.txt for
30
36
  further details.
31
37
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/ext/jpeg_jpeg.c CHANGED
@@ -51,10 +51,10 @@ static void jpeg_jpeg_mark(struct jpeg_jpeg *p) {
51
51
  static void jpeg_jpeg_free(struct jpeg_jpeg *p) {
52
52
  if (p->read) {
53
53
  jpeg_destroy_decompress(p->read);
54
- free(p->read);
54
+ xfree(p->read);
55
55
  }
56
56
  if (p->error) {
57
- free(p->error);
57
+ xfree(p->error);
58
58
  }
59
59
  xfree(p);
60
60
  }
data/jpeg.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "jpeg"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["masarakki"]
12
- s.date = "2012-04-07"
12
+ s.date = "2012-05-17"
13
13
  s.description = "libjpeg wrapper for ruby"
14
14
  s.email = "masaki@hisme.net"
15
15
  s.extensions = ["ext/extconf.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-07 00:00:00.000000000 Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: -1032745497266643110
123
+ hash: -145717571
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements: