redeye 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/ext/redeye/extconf.rb +14 -4
  3. metadata +83 -56
  4. checksums.yaml +0 -7
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ spec = Gem::Specification.new do |s|
22
22
  s.name = "redeye"
23
23
  s.author = "Geoff Youngs"
24
24
  s.email = "git@intersect-uk.co.uk"
25
- s.version = "1.0.0"
25
+ s.version = "1.0.1"
26
26
  s.homepage = "http://github.com/geoffyoungs/redeye"
27
27
  s.summary = "Redeye correction for Gdk::Pixbuf"
28
28
  s.add_dependency("rubber-generate", ">= 0.0.17")
@@ -19,13 +19,23 @@ end
19
19
  # Look for headers in {gem_root}/ext/{package}
20
20
  if use_gems
21
21
  %w[
22
- glib2 gdk_pixbuf2 atk gtk2 ].each do |package|
23
- require package
24
- $CFLAGS += " -I"+Gem.loaded_specs[package].full_gem_path+"/ext/"+package
22
+ glib2 gdk_pixbuf2 atk gtk2].each do |package|
23
+ require package
24
+ if Gem.loaded_specs[package]
25
+ $CFLAGS += " -I" + Gem.loaded_specs[package].full_gem_path + "/ext/" + package
26
+ else
27
+ if fn = $".find { |n| n.sub(/[.](so|rb)$/,'') == package }
28
+ dr = $:.find { |d| File.exist?(File.join(d, fn)) }
29
+ pt = File.join(dr,fn) if dr && fn
30
+ else
31
+ pt = "??"
32
+ end
33
+ STDERR.puts "require '" + package + "' loaded '"+pt+"' instead of the gem - trying to continue, but build may fail"
34
+ end
25
35
  end
26
36
  end
27
37
  if RbConfig::CONFIG.has_key?('rubyhdrdir')
28
- $CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
38
+ $CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
29
39
  end
30
40
 
31
41
  $CFLAGS += " -I."
metadata CHANGED
@@ -1,65 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: redeye
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Geoff Youngs
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2013-06-05 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rubber-generate
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: 0.0.17
20
- type: :runtime
17
+
18
+ date: 2013-06-14 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
21
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 61
28
+ segments:
29
+ - 0
30
+ - 0
31
+ - 17
26
32
  version: 0.0.17
27
- - !ruby/object:Gem::Dependency
28
- name: glib2
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: 1.1.9
34
33
  type: :runtime
34
+ name: rubber-generate
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
35
37
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
39
- - !ruby/object:Gem::Version
40
- version: 1.1.9
41
- - !ruby/object:Gem::Dependency
42
- name: gdk_pixbuf2
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 1
44
+ segments:
45
+ - 1
46
+ - 1
47
+ - 9
47
48
  version: 1.1.9
48
49
  type: :runtime
50
+ name: glib2
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
49
53
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 1
60
+ segments:
61
+ - 1
62
+ - 1
63
+ - 9
54
64
  version: 1.1.9
65
+ type: :runtime
66
+ name: gdk_pixbuf2
67
+ version_requirements: *id003
55
68
  description: |
56
69
  Redeye correction methods for redeye
70
+
57
71
  email: git@intersect-uk.co.uk
58
72
  executables: []
59
- extensions:
73
+
74
+ extensions:
60
75
  - ext/redeye/extconf.rb
61
76
  extra_rdoc_files: []
62
- files:
77
+
78
+ files:
63
79
  - ext/redeye/redeye.c
64
80
  - ext/redeye/redeye.cr
65
81
  - ext/redeye/redeye.rd
@@ -69,25 +85,36 @@ files:
69
85
  - ext/redeye/extconf.rb
70
86
  homepage: http://github.com/geoffyoungs/redeye
71
87
  licenses: []
72
- metadata: {}
88
+
73
89
  post_install_message:
74
90
  rdoc_options: []
75
- require_paths:
91
+
92
+ require_paths:
76
93
  - lib
77
- required_ruby_version: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - '>='
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- required_rubygems_version: !ruby/object:Gem::Requirement
83
- requirements:
84
- - - '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 3
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ hash: 3
109
+ segments:
110
+ - 0
111
+ version: "0"
87
112
  requirements: []
113
+
88
114
  rubyforge_project:
89
- rubygems_version: 2.0.0.rc.2
115
+ rubygems_version: 1.8.24
90
116
  signing_key:
91
- specification_version: 4
117
+ specification_version: 3
92
118
  summary: Redeye correction for Gdk::Pixbuf
93
119
  test_files: []
120
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 6f0acad32d2e9ee0122e452c3cff1f4823cd4193
4
- data.tar.gz: fbc4592fd714bf7bbddd1a4e0631484e8f56b590
5
- SHA512:
6
- metadata.gz: d481371139a391fa4b863e11b65b8b6599da2cf7d021a25f92250a2f835d018cda834c490baa5b72a6d479ca58a64bc07092ffc7c4d8fae60c425680a264f2df
7
- data.tar.gz: 6211f766b9827c43c6001e7f0b30ac9ce47b1389059fa590a93e70a10cd34f7117e1d091f8c2b03037ea7fc1b33d1f4d888fb618e5606f6c0c9204f30e8cd2ec