<commit_before>= merb_sequel

A plug-in for the Merb framework that provides support for Sequel models.

This is fork of the code in the official merb-plugins 
(http://github.com/wycats/merb-plugins) repository. I did separate repository 
and Gem to allow faster and more independent release cycle to keep up with the 
Sequel monthly releases.

Plug-in should be compatible with Merb 0.9.9 and higher and Sequel 1.4.0 and 
higher including 2.x.x and incoming <b>3.0.0</b>.

<b>Any issues please report to http://github.com/pk/merb_sequel/issues</b>.


== Install

    gem install pk-merb_sequel --source http://gems.github.com

In Merb, add it as a dependency to your config/dependencies.rb:
    
    dependency 'pk-merb_sequel', :require_as => 'merb_sequel'

== Compatibility

===Ruby 1.8.7:
Sequel 2.11.0:: All pass
Sequel 2.12.0:: All pass
Sequel 3.0.0::  All pass

===Ruby 1.9.1:
Sequel 2.11.0:: All pass except session spec failing due to Marshall issues.
Sequel 2.12.0:: All pass except session spec failing due to Marshall issues.
Sequel 3.0.0::  All pass except session spec failing due to Marshall issues.


== RSpec transactional examples

If you want to cut significantly runtime of your test suite which is using 
Sequel you can enable transactional examples. Just add following line to 
your spec_helper.rb or any spec you want to be transactional:

    require 'merb_sequel/rspec/sequel'<commit_msg>Updating docs with info how to make Merb run with the gem.<commit_after>= merb_sequel

A plug-in for the Merb framework that provides support for Sequel models.

This is fork of the code in the official merb-plugins 
(http://github.com/wycats/merb-plugins) repository. I did separate repository 
and Gem to allow faster and more independent release cycle to keep up with the 
Sequel monthly releases.

Plug-in should be compatible with Merb 0.9.9 and higher and Sequel 1.4.0 and 
higher including 2.x.x and incoming <b>3.0.0</b>.

<b>Any issues please report to http://github.com/pk/merb_sequel/issues</b>.


== Install

    gem install pk-merb_sequel --source http://gems.github.com

In Merb, add it as a dependency to your config/dependencies.rb:
    
    dependency 'pk-merb_sequel', :require_as => 'merb_sequel'

<b>Because of Merb ORM plugin loading mechanism you neeed to change init.rb</b>:

    use_orm :sequel

to

    Merb.orm = :sequel

If you don't do this Merb will complain that there is no merb_sequel gem also 
if you have merb_sequel installed it will load your system wide gem instead of
the pk-merb_sequel gem.


== Compatibility

===Ruby 1.8.7:
Sequel 2.11.0:: All pass
Sequel 2.12.0:: All pass
Sequel 3.0.0::  All pass

===Ruby 1.9.1:
Sequel 2.11.0:: All pass except session spec failing due to Marshall issues.
Sequel 2.12.0:: All pass except session spec failing due to Marshall issues.
Sequel 3.0.0::  All pass except session spec failing due to Marshall issues.


== RSpec transactional examples

If you want to cut significantly runtime of your test suite which is using 
Sequel you can enable transactional examples. Just add following line to 
your spec_helper.rb or any spec you want to be transactional:

    require 'merb_sequel/rspec/sequel'
{'fraction_non_alphanumeric': 0.07940991839296924, 'fraction_numerical': 0.023854362837413684, 'mean_word_length': 3.7781109445277363, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2163488', 'n_tokens_mistral': 1050, 'n_tokens_neox': 986, 'n_words': 431}