From 1cc2c83a0241ff8d36811d40062ba26ae8e28485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 20 Apr 2011 09:47:47 +0200 Subject: set edje lib and specs, remove eina lib and specs --- lib/e17/edje.rb | 20 ++------------------ lib/e17/eina.rb | 26 -------------------------- spec/edje_spec.rb | 14 +++++++------- spec/eina_spec.rb | 22 ---------------------- 4 files changed, 9 insertions(+), 73 deletions(-) delete mode 100644 lib/e17/eina.rb delete mode 100644 spec/eina_spec.rb diff --git a/lib/e17/edje.rb b/lib/e17/edje.rb index 1e5ff87..c86b431 100644 --- a/lib/e17/edje.rb +++ b/lib/e17/edje.rb @@ -1,26 +1,10 @@ #! /usr/bin/env ruby # -*- coding: UTF-8 -*- # -require 'e17/ffi_helper' +require 'e17/edje/edje-ffi' # module E17 - module EDJE - # - extend FFIHelper - extend FFI::Library - # - ffi_lib 'edje' - # - fcts = [ - # TODO - # http://docs.enlightenment.org/auto/edje/Edje_8h.html - [ :edje_init, [], :int], - [ :edje_shutdown, [], :int], - ] - # - attach_fcts fcts - # - create_aliases 'edje_'.length, fcts + module Edje # end end diff --git a/lib/e17/eina.rb b/lib/e17/eina.rb deleted file mode 100644 index 9309cfe..0000000 --- a/lib/e17/eina.rb +++ /dev/null @@ -1,26 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'e17/ffi_helper' -# -module E17 - module EINA - # - extend FFIHelper - extend FFI::Library - # - ffi_lib 'eina' - # - fcts = [ - [ :eina_init, [], :int], - [ :eina_shutdown, [], :int], - ] - # - attach_fcts fcts - # - create_aliases 'eina_'.length, fcts - # - end -end -# -# EOF diff --git a/spec/edje_spec.rb b/spec/edje_spec.rb index 79bab21..9ec6686 100644 --- a/spec/edje_spec.rb +++ b/spec/edje_spec.rb @@ -3,20 +3,20 @@ # require 'e17/edje' # -describe E17::EDJE do +describe E17::Edje do # include E17 # it "should init" do - EDJE.init.should eql 1 - EDJE.init.should eql 2 - EDJE.init.should eql 3 + Edje.init.should eql 1 + Edje.init.should eql 2 + Edje.init.should eql 3 end # it "should shutdown" do - EDJE.shutdown.should eql 2 - EDJE.shutdown.should eql 1 - EDJE.shutdown.should eql 0 + Edje.shutdown.should eql 2 + Edje.shutdown.should eql 1 + Edje.shutdown.should eql 0 end # end diff --git a/spec/eina_spec.rb b/spec/eina_spec.rb deleted file mode 100644 index c110d67..0000000 --- a/spec/eina_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'e17/eina' -# -describe E17::EINA do - # - include E17 - # - it "should init" do - EINA.init.should eql 1 - EINA.init.should eql 2 - EINA.init.should eql 3 - end - # - it "should shutdown" do - EINA.shutdown.should eql 2 - EINA.shutdown.should eql 1 - EINA.shutdown.should eql 0 - end - # -end -- cgit v1.1-2-g2b99