/yaml_waml

Rails plugin to workaround for fixing output result of 'to_yaml' method treats multibyte UTF-8 string(such as japanese) as binary.

Primary LanguageRubyMIT LicenseMIT

YamlWaml

YamlWaml is for ‘YAML WorkAround for Multibyte Language’.

This Rails plugin originated by the blog entry written by Akira Ikeda.

(*) d.hatena.ne.jp/Rommy/20061229/1167406811

Install

Installing the gem manually

gem sources -a http://gems.github.com
gem install kakutani-yaml_waml

in ruby code …

require 'rubygems'
gem 'kakutani-yaml_waml'
...
require 'yaml_waml'

2.1.0 <= rails w/ gem dependencies

Rails::Initializer.run do |config|
  config.gem 'kakutani-yaml_waml', :version => '~> 0.1.1', :lib => 'yaml_waml',
    :source => 'http://gems.github.com'
end

2.1.0 <= rails

  • script/plugin install git://github.com/kakutani/yaml_waml.git

rails <= 2.0.2

Repositories

Git

  • git://github.com/kakutani/yaml_waml.git

SVN repository (obsoleted)

It will not maintain anymore.

License

MIT License

Running the specs

In order to run YamlWaml’s full suite of specs (rake pre_commit), you must install the following gems:

  • rspec # Tests plugin behaviour

  • rake # Runs the build script

  • rcov # Verifies that the code is 100% covered by specs

Web Site

Authors

Akira Ikeda(pinpon.ikeda at gmail.com), d.hatena.ne.jp/Rommy

Adapted by KAKUTANI Shintaro(shintaro at kakutani.com), kakutani.com

Thaks for pathes from followings: