hruby 0.3.1 → 0.3.1.1
raw patch · 3 files changed
+25/−3 lines, 3 filesdep ~basesetup-changed
Dependency ranges changed: base
Files
- Setup.hs +1/−1
- hruby.cabal +3/−2
- test/test.rb +21/−0
Setup.hs view
@@ -39,7 +39,7 @@ Just (1,9,_) -> error $ unlines [ "Ruby 1.9 cannot be integrated with the GHC runtime. Tough luck :(" , "On Ubuntu 14.04, you can try this:" , " apt-get install libruby2.0 ruby2.0-dev"- , " cabal install hrupy -p --configure-option=\"--rubyversion=20 --rubylib=ruby-2.0 --rubyinc=/usr/include/ruby-2.0.0 --rubyinc=/usr/include/x86_64-linux-gnu/ruby-2.0.0\""+ , " cabal install hruby -p --configure-option=\"--rubyversion=20 --rubylib=ruby-2.0 --rubyinc=/usr/include/ruby-2.0.0 --rubyinc=/usr/include/x86_64-linux-gnu/ruby-2.0.0\"" ] Just v@(1,8,_) -> return $ Just $ RubyInfo v "/usr/lib/ruby/1.8"
hruby.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/ name: hruby-version: 0.3.1+version: 0.3.1.1 synopsis: Embed a Ruby intepreter in your Haskell program ! description: This doesn't work with Ruby 1.9. Everything you need should be in Foreign.Ruby.Safe. license: BSD3@@ -13,6 +13,7 @@ category: Language build-type: Custom cabal-version: >=1.8+extra-source-files: test/*.rb source-repository head type: git@@ -43,7 +44,7 @@ ghc-options: -Wall -threaded -- ghc-prof-options: -caf-all -auto-all extensions: OverloadedStrings- build-depends: base >= 4.6 && < 4.8,hruby,aeson,QuickCheck,text,attoparsec,vector+ build-depends: base >= 4.6 && < 4.9,hruby,aeson,QuickCheck,text,attoparsec,vector main-is: roundtrip.hs
+ test/test.rb view
@@ -0,0 +1,21 @@++class TestClass+ def self.testfunc(val)+ case val+ when Hash+ # puts "hash"+ val.each do |k,v|+ # puts " #{k} => #{v}"+ end+ # puts "done"+ when Array+ # puts "array"+ val.each do |x|+ # puts " #{x}"+ end+ else+ # puts val+ end+ val+ end+end