rubber-generate 0.0.19 → 0.0.20

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.
data/README.textile CHANGED
@@ -1,6 +1,6 @@
1
1
  h1. Rubber Generate
2
2
 
3
- h2. v0.0.11
3
+ h2. v0.0.20
4
4
 
5
5
  Template language for generating Ruby bindings for C libraries
6
6
  by Geoff Youngs <g@intersect-uk.co.uk>
@@ -19,7 +19,35 @@ Other features include custom named type-maps, pre/post code inclusion within
19
19
  functions and some rudimentary understanding of C code.
20
20
 
21
21
  h3. Changes
22
+ * 0.0.20 - 31st Jul 2013
23
+ - Auto-scan loaded gems for missing headers
24
+ - Add support for %include_dir gem:foo or gem:foo/path/in/gem
22
25
 
26
+ * 0.0.19 - 17th June 2013
27
+ - Ruby 1.9 changes arguments for rb_num_coerce_cmp() - fixed.
28
+
29
+ * 0.0.18 - 16th Nov 2012
30
+ - Fixes for finding ruby-gnome2 header in gems
31
+ - Improved error reporting
32
+
33
+ * 0.0.17 - 16th Nov 2012
34
+ - Ruby 1.9 fixes
35
+
36
+ * 0.0.16 - 20th Oct 2011
37
+ - Add GCC pragma to reduce warnings on unused variables
38
+
39
+ * 0.0.15 - 18th Oct 2011
40
+ - Add support for scanning gem directories for ruby-gnome2 headers
41
+ - Fix missing fileutils dependency
42
+
43
+ * 0.0.14 - 18th Oct 2011
44
+ - Add define_on_self to genum (allow constants to be defined within submodule rather than on parent module/class)
45
+
46
+ * 0.0.13 - 5th May 2011
47
+ - Bug fix for gcpool
48
+
49
+ * 0.0.12 - 3rd May 2011
50
+ - Add support for uint64 conversion
23
51
 
24
52
  * 0.0.11 - 27th Apr 2011
25
53
  - Fix parsing of %min-version numbers
@@ -57,7 +57,12 @@ have_func("rb_errinfo")
57
57
  EOY
58
58
 
59
59
  if scanner.inc_dirs
60
- io.puts "$CFLAGS += "+scanner.inc_dirs.collect { |i| " '-I#{i}'"}.join().inspect
60
+ io.puts "$CFLAGS += "+scanner.inc_dirs.reject { |i| i =~ /:/ }.collect { |i| " '-I#{i}'" }.join().inspect
61
+ scanner.inc_dirs.select { |i| i =~ /gem:/ }.each do |gem_info|
62
+ name,extra = gem_info.split(/:/)[1].split(%r'/', 2)
63
+ extra = "/#{extra}" unless extra.nil? or extra.empty?
64
+ io.puts %Q<gem '#{name}'; $CFLAGS += " '-I" + Gem.loaded_specs['#{name}'].full_gem_path + "#{extra}'">
65
+ end
61
66
  end
62
67
  if scanner.lib_dirs
63
68
  io.puts "$LDFLAGS += "+scanner.lib_dirs.collect { |i| " '-L#{i}'"}.join().inspect
@@ -68,7 +73,17 @@ EOY
68
73
  scanner.pkgs.each { |pkg| io.puts "PKGConfig.have_package(#{pkg.inspect}) or exit(-1)" } if scanner.pkgs
69
74
 
70
75
  if scanner.incs
71
- scanner.incs.each { |i| io.puts "have_header(#{i.inspect}) or exit(-1)"}
76
+ scanner.incs.each { |i|
77
+ io.puts %Q<
78
+ unless have_header(#{i.inspect})
79
+ paths = Gem.find_files(#{i.inspect})
80
+ paths.each do |path|
81
+ $CFLAGS += " '-I\#{File.dirname(path)}'"
82
+ end
83
+ have_header(#{i.inspect}) or exit -1
84
+ end
85
+ >
86
+ }
72
87
  end
73
88
  if scanner.libs
74
89
  scanner.libs.each { |i| io.puts "have_library(#{i.inspect}) or exit(-1)\n$LIBS += \" -l#{i}\""}
@@ -1,5 +1,5 @@
1
1
  module Rubber
2
- VERSION = [0,0,19]
2
+ VERSION = [0,0,20]
3
3
  def VERSION.to_s
4
4
  self.map{|i|i.to_s}.join('.')
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber-generate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoff Youngs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-17 00:00:00 Z
18
+ date: 2013-07-31 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
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"
@@ -83,9 +83,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements: []
84
84
 
85
85
  rubyforge_project:
86
- rubygems_version: 1.8.24
86
+ rubygems_version: 1.8.15
87
87
  signing_key:
88
88
  specification_version: 3
89
89
  summary: Template language for generating Ruby bindings for C libraries
90
90
  test_files:
91
91
  - example/vte.cr
92
+ has_rdoc: