[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.15,1.16

Kouhei Sutou commit at pdx.freedesktop.org
Mon Oct 10 09:07:18 PDT 2005


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory gabe:/tmp/cvs-serv5814/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/ext/rb_cairo.c: Added cairo version info.
* packages/cairo/lib/cairo.rb: Added bindings version info as
  1.0.0-beta.


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- cairo.rb	9 Oct 2005 15:56:00 -0000	1.15
+++ cairo.rb	10 Oct 2005 16:07:16 -0000	1.16
@@ -4,7 +4,16 @@
 
 module Cairo
 
+  BINDINGS_VERSION = [1, 0, 0, "beta"]
+
   module_function
+  def bindings_version
+    major, minor, micro, tag = BINDINGS_VERSION
+    version = [major, minor, micro].join('.')
+    version << "-#{tag}" if tag
+    version
+  end
+  
   def __add_one_arg_setter(klass)
     names = klass.instance_methods(false)
     names.each do |name|



More information about the cairo-commit mailing list