rubber-generate 0.0.17 → 0.0.18

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.
@@ -30,16 +30,26 @@ EOMK
30
30
  io << " glib2" if scanner.options.glib
31
31
  io << " gdk_pixbuf2 atk gtk2" if scanner.options.gtk
32
32
  io.write <<-EOX
33
- ].each do |package|
34
- require package
35
- $CFLAGS += " -I"+Gem.loaded_specs[package].full_gem_path+"/ext/"+package
33
+ ].each do |package|
34
+ require package
35
+ if Gem.loaded_specs[package]
36
+ $CFLAGS += " -I" + Gem.loaded_specs[package].full_gem_path + "/ext/" + package
37
+ else
38
+ if fn = $".find { |n| n.sub(/[.](so|rb)$/,'') == package }
39
+ dr = $:.find { |d| File.exist?(File.join(d, fn)) }
40
+ pt = File.join(dr,fn) if dr && fn
41
+ else
42
+ pt = "??"
43
+ end
44
+ STDERR.puts "require '" + package + "' loaded '"+pt+"' instead of the gem - trying to continue, but build may fail"
45
+ end
36
46
  end
37
47
  end
38
48
  EOX
39
49
 
40
50
  io.write <<-EOY
41
51
  if RbConfig::CONFIG.has_key?('rubyhdrdir')
42
- $CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
52
+ $CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
43
53
  end
44
54
 
45
55
  $CFLAGS += " -I."
@@ -1,5 +1,5 @@
1
1
  module Rubber
2
- VERSION = [0,0,17]
2
+ VERSION = [0,0,18]
3
3
  def VERSION.to_s
4
4
  self.map{|i|i.to_s}.join('.')
5
5
  end
metadata CHANGED
@@ -1,27 +1,32 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rubber-generate
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.17
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 18
10
+ version: 0.0.18
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Geoff Youngs
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
17
+
18
+ date: 2013-06-14 00:00:00 Z
13
19
  dependencies: []
14
- description: ! " rubber-c-binder allows a rubyish means of generating bindings
15
- for C libraries,\n including (but not limited to) GObject based libraries.\n\n
16
- \ It allows C code to be written in the context of a ruby style class/method layout\n
17
- \ and eases type checking and conversion between Ruby & C datatypes.\n"
20
+
21
+ description: " rubber-c-binder allows a rubyish means of generating bindings for C libraries,\n including (but not limited to) GObject based libraries.\n\n It allows C code to be written in the context of a ruby style class/method layout\n and eases type checking and conversion between Ruby & C datatypes.\n"
18
22
  email: g@intersect-uk.co.uk
19
- executables:
23
+ executables:
20
24
  - rubber-generate
21
25
  extensions: []
22
- extra_rdoc_files:
26
+
27
+ extra_rdoc_files:
23
28
  - README.textile
24
- files:
29
+ files:
25
30
  - bin/rubber-generate
26
31
  - lib/rubber/codegen/param.rb
27
32
  - lib/rubber/codegen/ginterface.rb
@@ -51,28 +56,36 @@ files:
51
56
  - example/vte.cr
52
57
  homepage: http://github.com/geoffyoungs/rubber-generate
53
58
  licenses: []
59
+
54
60
  post_install_message:
55
61
  rdoc_options: []
56
- require_paths:
62
+
63
+ require_paths:
57
64
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
65
+ required_ruby_version: !ruby/object:Gem::Requirement
59
66
  none: false
60
- requirements:
61
- - - ! '>='
62
- - !ruby/object:Gem::Version
63
- version: '0'
64
- required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
75
  none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ hash: 3
80
+ segments:
81
+ - 0
82
+ version: "0"
70
83
  requirements: []
84
+
71
85
  rubyforge_project:
72
86
  rubygems_version: 1.8.24
73
87
  signing_key:
74
88
  specification_version: 3
75
89
  summary: Template language for generating Ruby bindings for C libraries
76
- test_files:
90
+ test_files:
77
91
  - example/vte.cr
78
- has_rdoc: