view · edit · sidebar · attach · print · history


<< 20160705-migrate-davaz-com-dojo-to-17 | Index | 20160702-setup-davaz-com >>


  • Run in local machine with Ruby 2.3.1
  • Debug Htmlgrid and Dojo

Commits / Patches / Pull Requests, Scripts


Update to Ruby 2.3.1

Install script for Ruby 2.3.1:

character-encodings 's native extension is not correctly compiled with this ruby version.
But I think, that this gem is not needed any more for Ruby 2.3.1.

I've tried without following gems:

  • character-encodings
  • fastthread
  • smtp_tls (by doc, "Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+)")

Then I've started to find version (new version) of dependent gems to match new ruby.


Just remove
 $KCO!! [[#htmlgrid-and-dojo]] Htmlgrid and Dojo
DE = "u" 
, Ruby 2.3.1's default encoding is UTF-8


We can replace iconv with string.encoding like this:

body.encode('ISO-8859-1', :invalid => :replace, :undef => :replace, :replace => '?')


Replace with mikel/mail


Use new version and rename RMagick to rmagick

Setup test for

The has test code on selenium.
So, I try setup selenium.

emerge -av iceadtea . (It seems that current selenium depends icedtea-bin 7)

How to run test (example):


# Ruby 1.8.6                                                                       
sudo -u USER \                                                                 
  ${WORKSPACE}/bin/ruby186 \                                                       
  -rubygems \                                                                      
  -I${WORKSPACE}/src/ \                                               
  -I${WORKSPACE}/src/ \                                              
  -I${WORKSPACE}/lib/ruby/gems/1.8/gems/htmlgrid-1.0.3/lib \                       
  -I${WORKSPACE}/lib/ruby/gems/1.8/gems/rclconf-1.0.0/lib \                        

Encoding issue

The text data from database comes as ASCII-8BIT.

[2] 2.3.1-p112(#<DAVAZ::View::TextBlock>)> map.keys
=> ["Dieter Zimmer", "morphogenesis", "morphopolis", "P1", "P2", "P3", "Palette", "webpage"]
[3] 2.3.1-p112(#<DAVAZ::View::TextBlock>)> txt.encoding
=> #<Encoding:ASCII-8BIT>
[4] 2.3.1-p112(#<DAVAZ::View::TextBlock>)> map.keys.join('').encoding
=> #<Encoding:ASCII-8BIT>

I've migrated mysql gem to mysql2 gem with encoding option.                                                                
  :host     => @@db_data['host'],                                                  
  :username => @@db_data['user'],                                                  
  :password => @@db_data['password'],                                              
  :database => @@db_data['db'],                                                    
  :encoding => @@db_data['encoding']                                               

Assets location

All Css/image paths contain strange path /sbsm :

;; z.B.

Its path must be:


This 'sbsm text comes from here (as @session.flavor). (current master)

Then I've created stub method flavor. Because does not use any sbsm flavor.

# It works :)
[1] 2.3.1-p112(#<DAVAZ::View::Personal::Init>)> path
=> "http://localhost/resources/css/navigation.css"

Then davazd works on Ruby 2.3.1, expectedly.

Htmlgrid and Dojo

Current production ( works with dojo 0.3.0 + htmlgrid 1.0.3.
I update this dojo to 1.7 with htmlgrid.

ywesee.widget does not work with Dojo 1.7.
This widgets have old syntax, described at here:

view · edit · sidebar · attach · print · history
Page last modified on July 04, 2016, at 03:22 PM