[#396091] Crystal Report Integration in ROR — rohini kambde <lists@...>
Can anyone please tell me in detail about how to integrate crystal
Hello Rohini,
[#396107] rvm - how to run a ruby script via crontab? — Wybo Dekker <wybo@...4all.nl>
I have, for the first time, installed ruby using rvm.
On 06/03/2012 12:57 AM, Wybo Dekker wrote:
[#396126] Read from several .txt files by a pattern and write the matched lines to a new file — Robert Hansen <lists@...>
Just to be said. I am new to ruby.
$files = Array.new
[#396136] appropriate use of constants — roob roob <lists@...>
I am making a program that will get settings from a config file. I am
[#396145] My First Script — "Vinay B." <lists@...>
Hey guys!
[#396148] Facebook Group — Moses Aronov <mosesaro@...>
There is a facebook group that was recently created so we could all communicate with other fellow developers
On Wed, Jun 06, 2012 at 01:55:48AM +0900, Moses Aronov wrote:
On Wed, Jun 6, 2012 at 3:45 PM, Chad Perrin <code@apotheon.net> wrote:
On Wed, Jun 6, 2012 at 3:40 PM, Henry Maddocks <hmaddocks@me.com> wrote:
[#396152] Deadlock in large vm_xmalloc while doing backtrace — Bill Paulson <lists@...>
I work on a fairly large Ruby application that runs as a daemon,
[#396153] XML::Parser, keeping file open — Grant Schoep <lists@...>
Using:
[#396154] celluloid-io performance — Alexander Koch <lists@...>
Hi,
[#396158] Net::SFTP hangs when downloading a file. — Tim Uckun <timuckun@...>
I have some code which attempts to download some data from an sftp
[#396161] convert delphi codes to ruby — RR TT <lists@...>
Hello, I have some sample delphi codes which I want to convert to Ruby
On Wed, Jun 6, 2012 at 9:09 AM, RR TT <lists@ruby-forum.com> wrote:
[#396166] Ruby script running standalone on vserver — Michael Dutchman <lists@...>
Hello guys!
On Wed, Jun 6, 2012 at 10:54 AM, Michael Dutchman <lists@ruby-forum.com> wrote:
If the script needs to be run periodically (once a day or hour or
On Wed, Jun 6, 2012 at 11:17 AM, Peter Hickman
[#396172] Magic comments justification — "Raphael B." <lists@...>
Hi,
The encoding has to be set *before the file is even parsed*. So
Bartosz Dziewo=C5=84ski wrote in post #1063320:
[#396186] Inexplicable Argument Error — Doug Jolley <lists@...>
I am encountering a very strange argument error. I simplified my code
2012/6/6 Doug Jolley <lists@ruby-forum.com>:
> Methods ending with = can usually
[#396192] Getting runtime error while using Tk.restart — Aakash Dev <lists@...>
Hi All,
[#396197] string character count — ideal one <lists@...>
Hi,
[#396203] "Create a rock paper scissors program in ruby WITHOUT using conditionals" — "David D." <lists@...>
I'm in an introductory software development class, and my homework is to
[#396229] Thread#kill is not rescued by "rescue Exception" — Iñaki Baz Castillo <ibc@...>
Hi, let me show this easy code:
2012/6/7 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
2012/6/7 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
2012/6/7 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
On Thu, Jun 7, 2012 at 4:12 AM, I=F1aki Baz Castillo <ibc@aliax.net> wrote:
2012/6/13 Tony Arcieri <tony.arcieri@gmail.com>:
[#396246] Best way to partition a string — "cyber c." <lists@...>
Hi,
[#396248] First post - need projects to practice — Andrew Barrymore <lists@...>
Hello there!
[#396259] about using drb to read data — "dongcan z." <lists@...>
In my codes , I=E3=80=80use drb to read data from a pipe. I want to read =
On Fri, Jun 8, 2012 at 5:15 AM, dongcan z. <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1063691:
[#396276] Cannot run a ruby 1.8.7 web-app with ruby 1.9.3 — Ruby Ruby <lists@...>
hi
On Fri, Jun 8, 2012 at 2:41 PM, Ruby Ruby <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1063702:
[#396287] Problem with storing timestamp as datetime object — "cyber c." <lists@...>
Hi,
[#396296] Ruby API sub and gsub error? — "Daniel B." <lists@...>
So I am looking at the Ruby API for sub and gsub.
[#396312] Class variables and self — Mike Glaz <lists@...>
I'm currently reading The Well-Grounded Rubyist. In the section about
[#396322] Accessing Variables from Within a Module — Doug Jolley <lists@...>
I have the following Ruby script:
Hi,
> What are you trying
Doug Jolley wrote in post #1063908:
> From the description I'm guessing you want to use the module as a mixin
[#396333] Is "a,b=c,d" atomic? or do I need a Mutex? — Iñaki Baz Castillo <ibc@...>
Hi, I have two methods that could be called by different threads and
2012/6/10 I=C3=B1aki Baz Castillo <ibc@aliax.net>:
It is atomic on MRI. It may or may not be on other interpreters, if
2012/6/10 Bartosz Dziewo=C5=84ski <matma.rex@gmail.com>:
On Sun, Jun 10, 2012 at 7:52 PM, I=C3=B1aki Baz Castillo <ibc@aliax.net> wr=
2012/6/11 Robert Klemme <shortcutter@googlemail.com>:
[#396341] OpenSSL: Determining initialization vector (IV) created using OpenSSL::Cipher::Cipher#pkcs5_keyivgen with one argument — T P <tty0pts@...>
Hi,
[#396354] cgi class prints garbage in HTML output — Ruby Ruby <lists@...>
Hi everybody
[#396357] ffi - Popping image on top of the screen — "Damián M. González" <lists@...>
Ey guys, how are you? I`m developing an application in Ruby, using
[#396360] Chris Pine "Learning Programming" Question — Michael Sung <lists@...>
I'm still going through Chris Pine's book on Ruby programming and came
[#396373] Why should I learn ruby? — Kasper Steensig <lists@...>
I have wondered whether I should learn ruby or python hence they are
On Mon, Jun 11, 2012 at 12:17 PM, Kasper Steensig <lists@ruby-forum.com>wrote:
On Wed, Jun 13, 2012 at 12:18:32PM +0900, Josh Cheek wrote:
[#396412] How can i get the value from a simple html form using ruby? — gmspro gmspro <lists@...>
It's running ~/public_html/runwebrick.rb=>
[#396418] Problem with reg exp — "cyber c." <lists@...>
Hi,
[#396422] require_relative? why didn't we "relative do" — Intransition <transfire@...>
I wonder if it would been better if we had gone another route with the
[#396430] Unsubscribe me — Mondini David <mondinid@...>
Unsubscribe me from this list, please.=0A
[#396436] string.chars.to_a question — Michael Sung <lists@...>
Hello,
[#396441] How to edit particular element value from list of xml elements using ruby — Lucky Nl <lists@...>
Hi friends,
Hi,
[#396458] is there a C function for creating a instance of a given class by passing N arguments? — Iñaki Baz Castillo <ibc@...>
Hi, sure I miss something in the Ruby MRI C API, but I don't find a
[#396469] Calling methods, getting string and adding them — Michael Sung <lists@...>
I was wondering why this is not being accepted? I get an error stating
On 14/06/12 08:48, Michael Sung wrote:
On Thu, 2012-06-14 at 05:54 +0900, Sam Duncan wrote:
[#396479] sort of rational numbers — Dan Connelly <lists@...>
I was a bit surprised when I ran the following
[#396490] Simple method & array question — Michael Sung <lists@...>
Hi,
[#396503] Syntax Highlighter — Intransition <transfire@...>
Would you agree that Ruby shouldn't lack for a syntax highlighting library
[#396517] Parsing xml dict files — "cyber c." <lists@...>
Hi,
[#396534] File.delete()-Permission denied error in windows — Periyasamy Ramachandiran <lists@...>
All,
[#396562] Help using optionparser — "cyber c." <lists@...>
Hi,
[#396576] method parameters — "Zhomart M." <lists@...>
Hello,
[#396589] Unsubcripe — Suresh Rajkumar <sureshrajchennai@...>
Unsubcipe my mail address from the group.
Hello,
Because you people are dumb.
And if you do so you will find that it does not work.
[#396606] TO MR Bartosz Dziewoナгki - WHO'S DUMB — Cathy Alomari <cathy1428@...>
*On Jun 18, 2012, at 7:59 AM, Bartosz Dziewo=C5=84ski wrote:
On Mon, Jun 18, 2012 at 2:30 PM, Cathy Alomari <cathy1428@gmail.com> wrote:
Bet you're still here.
I'm here to help you fix your Ruby issues, not your life issues. I'm
@bartosz -
On Tue, Jun 19, 2012 at 03:30:46AM +0900, Cathy Alomari wrote:
[#396615] Symbols and Strings... — Hal Fulton <rubyhacker@...>
Hello, all...
On Jun 18, 2012, at 15:09, Hal Fulton wrote:
On Tue, Jun 19, 2012 at 12:31 AM, Eric Hodel <drbrain@segment7.net> wrote:
Personally, I don't have a problem with "reducing the contract"
On Tue, Jun 19, 2012 at 5:17 PM, Hal Fulton <rubyhacker@gmail.com> wrote:
> > Freezing an object also reduces its contract.
On Tue, Jun 19, 2012 at 10:12 PM, Hal Fulton <rubyhacker@gmail.com> wrote:
2012/6/20 Henry Maddocks <hmaddocks@me.com>:
On 06/20/2012 03:58 PM, Henry Maddocks wrote:
On Wed, Jun 20, 2012 at 5:06 PM, Jeremy Bopp <jeremy@bopp.net> wrote:
[#396616] Re: Unsubcribe — Tim O'Brien <timobrien@...>
QmFydHBzY3ogY2FuIGtpc3MgbXkgYXNzICEgSSB0b28gd2FzIHNlbnQgdGhlIGNvbmZpcm1hdGlv
[#396627] Does ERB have recursive template support? — Todd Wei <lists@...>
I want to use ERB template library to do some code generation. It
On Tue, Jun 19, 2012 at 5:26 AM, Todd Wei <lists@ruby-forum.com> wrote:
I am currently using ERB for code generation. I implemented this using a xml
Robert Klemme wrote in post #1065085:
On Wed, Jun 20, 2012 at 3:22 AM, Todd Wei <lists@ruby-forum.com> wrote:
[#396649] Looking for a better way to add a method to a core class than monkey patching — Iain Barnett <iainspeed@...>
Hi all,
Please do not monkey patch core libraries in gems, unless the *purpose* of
Am 20.06.2012 02:23, schrieb Avdi Grimm:
> Here an example method that I use from time to time:
On Wed, Jun 20, 2012 at 3:51 AM, Henry Maddocks <hmaddocks@me.com> wrote:
Ok, sorry to be the cause of confusion and/or consternation!
[#396652] Access array data - problem — Rasmus Sorensen <lists@...>
hi!
[#396664] Sinatra and Shotgun error — Robert Ahlberg <lists@...>
Hi while running Sinatra I do get output from the webrick server running
[#396685] Benchmark obsession? — "Jan E." <lists@...>
Hi,
On Jun 20, 2012 5:57 PM, "Ryan Davis" <ryand-ruby@zenspider.com> wrote:
[#396686] Ruby vs Python vs Java bytecode concept — gmspro gmspro <lists@...>
Hi,
Daniel Hernandez писал 20.06.2012 20:03:
[#396705] Array index confusion — "John R." <lists@...>
I cannot find an answer to this, and perhaps the answer is that "it is
See this post for an explanation: http://www.ruby-forum.com/topic/1393096#990065
[#396737] New to Ruby - Scope Question — Emeka Patrick <lists@...>
x = 10
[#396751] simple_gui_creator 0.1.3 released — Roger Pack <lists@...>
Hello all. I would like to wish happy birthday to my simple_gui_creator
[#396761] How to debug ruby source code using gdb?, can't print array content — gmspro gmspro <lists@...>
I tried something like this in array.c
Ruby has GDB helpers. Take a look at =
Alex Newone wrote in post #1065644:
[#396775] Reading only certain rows of data from a text file — Jason Peterson <lists@...>
Hi Everyone,
[#396794] Stripping symbol character from hash turned to array — Emeka Patrick <lists@...>
Hi, new to programming and Ruby and trying to work through some problems
[#396805] Enumerable#unassociate — Intransition <transfire@...>
Have a look:
On Mon, Jun 25, 2012 at 1:35 AM, Intransition <transfire@gmail.com> wrote:
On Monday, June 25, 2012 2:38:48 AM UTC-4, Robert Klemme wrote:
[#396807] have_func() does not find a func in the given .h file — Iñaki Baz Castillo <ibc@...>
Hi, in my extconf.rb I check some Ruby functions (since I'm trying
[#396815] Array#sample is Set#sample and not Array#sample ! — Michel Demazure <lists@...>
Arrays are ordered, sets are not. Sampling an array should give random
On Mon, Jun 25, 2012 at 4:53 PM, Michel Demazure <lists@ruby-forum.com> wrote:
[#396834] Neworking side of ruby — smoothed atol412 <lists@...>
Hello all,
[#396839] working with two arrays — skolo pen <lists@...>
What method could I use to do the following:
[#396854] rake db: create not working — Sakchhi Srivastava <lists@...>
I am trying to use a RoR project. I went through the installation steps.
[#396867] Match part of the calculated value — ideal one <lists@...>
Hi,
[#396877] CSV.open problem, help please — Kaye Ng <lists@...>
This code doesn't seem to work
On 06/27/2012 06:14 PM, Kaye Ng wrote:
Try "rb" instead or "r"
Ryan Davis wrote in post #1066268:
Windoze new lines are stupid. Read up on the "b" file mode to see what it do=
Ryan Davis wrote in post #1066299:
Ryan Davis wrote in post #1066410:
2012/6/27 Jan E. <lists@ruby-forum.com>:
[#396883] help for a little regexp — Quentin R-G <lists@...>
Hi everyone,
[#396892] how about adding method hook — salamond <jarodzz@...>
Hi, guys.
[#396896] Copying text from MS Word and wrapping in HTML - help please — Adam Holloway <lists@...>
Hi,
[#396914] Is this good code — masta Blasta <lists@...>
I'm digging through some older code in my application and i stumbled on
[#396920] Audio based Instructions (via Ruby and Linux)? — Marc Heiler <lists@...>
Hi.
[#396924] should $1 propagate through method calls? — Roger Pack <lists@...>
Hello all.
[#396948] Slide Show (S9) 1.2.1 Update - Quick Starter Templates, Takahashi, etc. — Gerald Bauer <gerald.bauer@...>
Hello,
[#396950] Is this the correct use of rand? — Emeka Patrick <lists@...>
In the example below why was it necessary to put (max+1)? Couldn't that
On Thu, Jun 28, 2012 at 9:44 AM, Emeka Patrick <lists@ruby-forum.com> wrote=
On Thu, Jun 28, 2012 at 11:05 AM, Robert Klemme
[#396959] Confusion about aliasing eql? and == — Jeff Storey <lists@...>
I'm new to ruby and have some confusion about the eql? and == methods. I
[#396960] Asynchronous IO — F1 dreamer <lists@...>
I have found quite a bit on the web regarding asynchronous IO, but
[#396966] Interactions between 'new' and 'initialize' ? — Cees Zeelenberg <lists@...>
In JRuby, I am extending an existing Java Class with a Ruby initialising
I redefined 'new' for Parent, not for Child, so I expected the 'new' for
On Thu, Jun 28, 2012 at 5:30 PM, Cees Zeelenberg <lists@ruby-forum.com> wro=
[#396975] stack level too deep for quicksort code — bei zhao <lists@...>
Hi, below is my quicksort implementation in ruby(using the first element
By the way, this low level element swapping isn't necessary in Ruby. The
On 06/29/2012 11:28 AM, Jan E. wrote:
[#396996] Accessor Methods with a Twist — Doug Jolley <lists@...>
I am surprised that the code shown below returns, 'Doug'. I would
On 06/29/2012 08:33 AM, Doug Jolley wrote:
Oh. I see. My knee-jerk reaction from reading the responses was, "Why
Hi,
Thanks, Jan, so much for that *VERY* thorough response.
Doug Jolley wrote in post #1066813:
Thanks again for another very thorough response.
[#397000] Ruby pty and expect — "Tim L." <lists@...>
I'm trying to write a program that will log into a list of ip's and run
[#397001] ruby performance — anaray anaray <lists@...>
Hi,
maybe try jruby in --server mode?
The MRI is, unfortunately, slow as balls, and there's not much you can
Bartosz Dziewo=C5=84ski wrote in post #1066673:
2012/6/29 Hans Mackowiak <lists@ruby-forum.com>:
2012/6/29 Hans Mackowiak <lists@ruby-forum.com>:
Bartosz Dziewo=C5=84ski wrote in post #1066681:
2012/7/1 Andreas S. <lists@ruby-forum.com>:
On Sun, Jul 1, 2012 at 1:42 PM, Bartosz Dziewo=C5=84ski <matma.rex@gmail.co=
Here's my contribution:
2012/7/2 Dan Connelly <lists@ruby-forum.com>:
I should provide version numbers... the RHEL on work machines is pretty
On Tue, Jul 3, 2012 at 8:06 AM, Dan Connelly <lists@ruby-forum.com> wrote:
ANN: Sequel 3.36.0 Released
Sequel is a lightweight database access toolkit for Ruby.
* Sequel provides thread safety, connection pooling and a concise
DSL for constructing SQL queries and table schemas.
* Sequel includes a comprehensive ORM layer for mapping records to
Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
statements, bound variables, stored procedures, savepoints,
two-phase commit, transaction isolation, master/slave
configurations, and database sharding.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
DB2, DBI, Firebird, IBM_DB, Informix, JDBC, MySQL, Mysql2, ODBC,
OpenBase, Oracle, PostgreSQL, SQLite3, Swift, and TinyTDS.
Sequel 3.36.0 has been released and should be available on the gem
mirrors.
= New Features
* An eager_each plugin has been added, which automatically makes
eagerly loaded datasets do eager loading if you call #each (or
another Enumerable method) instead of #all. By default, if you
call #each on an eager dataset, it will not do eager loading,
and if you call #each on an eager_graph dataset, you will
get plain hashes with columns from all joined tables instead of
model objects. With this plugin, #each on both eager and
eager_graph datasets will do eager loading.
* The nested attributes plugin now supports composite primary keys
in associated records. Additionally, it now deals better with
natural primary keys in associated records. There is a new
:unmatched_pk option that can be set to :create if you want to
create new associated records when the input hash contains
primary key information that doesn't match one of the existing
associated objects.
The nested attributes plugin now also supports a :transform option.
If given, this option is called with the parent object and the
input hash given for each associated record passed into the
nested atttributes setter. The callable should return the hash
of attributes to use.
* Model#from_json in the json_serializer plugin now takes an options
hash and recognizes the :fields option. If the :fields option is
given, it should be an array of field names, and set_fields is
called with the array instead of using set. This allows you to
easily filter which fields in the hash are set in the model
instance. The entire options hash is also passed to set_fields
if :fields is present, so you can additionally use the :missing =>
:raise or :missing => :skip options that set_fields supports.
* The Dataset#to_json method in the json_serializer plugin now
respects :root=>:collection and :root=>:instance options. If
:root=>:collection is given, only the collection is wrapped in a
hash, and if :root=>:instance is given, only the instances are
wrapped in a hash. For backwards compatibility, both the
instances and collection are wrapped in a hash:
Model.to_json(:root=>true)
# {"models":[{"model":{"id":1}}]}
Model.to_json(:root=>:collection)
# {"models":[{"id":1}]}
Model.to_json(:root=>:instance)
# [{"model":{"id":1}}]
Wrapping both the collection and instance in a root by default
is probably an undesired behavior, so the default for :root=>true
may change in the next major version of Sequel. Users who want
the current behavior should switch to using :root=>:both.
* The schema_dumper extension now respects an :index_names option
when dumping. This option can be set to false to never dump the
index names. It can also be set to :namespace, in which case if
the database does not have a global index namespace, it will
automatically prefix the name of the index with the name of the
table.
Database#global_index_namespace? was added to check if the
database uses a global index namespace. If false, index names are
probably namespaced per table (MySQL, MSSQL, Oracle).
* :each is now a valid prepared statement type. This prepared
statement type requires a block when you call the statement, and
iterates over the records of the statement a row at a time.
Previously, there wasn't a way to iterate over the records of a
prepared statement a row at a time, since the :select and :all
types collect all rows into an array before iterating over them.
* A :connection_handling=>:queue option is now respected for
database objects, and changes the threaded connection pools to use
a queue instead of a stack as the data structure for storing
available connections. A queue does not perform as well as a
stack, but reduces the likelihood of stale connections.
It is possible that Sequel will change in the future from using a
stack by default to using a queue by default, so any users who
specifically desire a stack to be used should specify the
:connection_handling=>:stack option.
* Sequel::Migrator now supports is_current? class method to check
if there are no outstanding migrations to apply. It also supports
a check_current class method, which raises an exception if there
are outstanding migrations to apply.
* A pg_json extension has been added, supporting PostgreSQL's 9.2
json type, similarly to the pg_array and pg_hstore extensions.
Note that with the current PostgreSQL json code, the root object
can be a string or number, but ruby's json library requires the
root json value to be an object or array. So you will probably
get an exception if you attempt to retrieve a PostgreSQL json
value that ruby's JSON library won't parse.
* A pg_inet extension has been added, which automatically typecasts
PostgreSQL inet and cidr types to ruby IPAddr objects on retrieval.
* Database#transaction on PostgreSQL now recognizes :read_only and
:deferrable options, and can use them to set the READ ONLY and
DEFERRABLE transaction flags. A :synchronous option is also
recognized, which can be set to true, false, :local, or
:remote_write, and sets the value of synchronous_commit just for
that transaction.
* When adding and dropping indexes on PostgreSQL, a :concurrently
option can be used to create or drop the index CONCURRENTLY, which
doesn't require a full write table lock.
* When dropping indexes on PostgreSQL, :if_exists and :cascade options
are now recognized.
* When using alter_table set_column_type on PostgreSQL, the :using
option is respected, and can be used to force a specific conversion
from the previous value to the new value with the USING syntax.
* On MySQL, you can now set an :sql_mode option when connecting. This
can be a string or symbol or an array of them, and each should match
one of MySQL's sql_modes. MySQL's default SQL mode is fairly loose,
and using one of the strict sql modes is recommended, but for
backwards compatibility, Sequel will not set a specific SQL mode by
default. However, that may change in the next major version of
Sequel, so to be forwards compatible you should set :sql_mode=>nil
if you do not desire a strict SQL mode to be set automatically.
* Partial indexes are now supported on Microsoft SQL Server 2008
(SQL Server refers to them as filtered indexes). Attempting to
use a partial index on an earlier version of SQL Server will
result in the database raising an exception.
* A jdbc/progress adapter has been added, supporting the Progress
database via the jdbc adapter.
= Other Improvements
* Dataset#get now works correctly if you pass it a nil or false
argument. Previously, it ignored the argument and used the block
instead. If you want to use the block argument, you should not
pass in a regular argument.
* Database#call now passes any blocks given to it to the underlying
prepared statement object. Before, a passed block was ignored.
* Sequel::Model.db is no longer set automatically when creating
an anonymous class with an associated database object. This fixes
cases where a library would create namespaced models, and the
database used by the library would be set as the default for the
user's application code.
* Model *_to_one association setters are now no-ops if you pass a
value that is the same as the cached value. This fixes issues with
reciprocal associations getting reordered, and is better
for performance.
For cases where the old behavior is desired, the
set_associated_object_if_same? method can be overridden to return
true for object. If you are manually setting objects in the
associations cache before calling the setter method, you may want
to set that.
* The dirty plugin no longer affects the return value of refresh
and lock!. Internal changes should now help ensure that plugins
don't affect the return values of these methods.
* Sequel now supports JRuby 1.7's new exception handling, fixing
exception handling when connecting in the jdbc adapter.
* When dumping unsigned integer types in the schema dumper, if the
unsigned values could overflow a 32-bit signed integer type,
the generic Bignum class is used as the type. This should fix
issues when copying a database containing an unsigned 32-bit
integer column with values between 2^31 and 2^32-1.
* In the optimistic_locking plugin, attempting to refresh and
save after a failed save now works correctly. Before, the second
save would never modify a row.
* Time types on jdbc/postgres are now typecasted accurately on
retrieval, before they could be off by up to a millisecond due to
floating point issues.
* Disconnect detection in the mysql2 adapter has been improved.
* The jdbc/mysql, do/mysql, and swift/mysql adapters all now support
the :timeout option to set the MySQL wait_timeout.
* Savepoints in prepared transactions are now supported on MySQL
5.5.23+, since the bug that caused them to be unsupported starting
in 5.5.13 has been fixed.
* Parsing foreign key metadata for tables with an explicit
schema now works correctly on PostgreSQL.
* bin/sequel -C now namespaces indexes automatically when copying
from a database without a global index namespace to a database
with a global index namespace.
* Indexes are now dropped in reverse order that they were added in
the schema_dumper.
* The Model typecasting code works around bugs in objects where
object.==('') would raise an exception instead of returning false.
* A better error message is used if an invalid JDBC URL is
provided and the JDBC driver's new.connect method returns NULL.
* A document describing Sequel's object model has been added,
describing the objects Sequel uses to represent SQL concepts.
* Most adapter specific options to Database methods are now mentioned
in the main Database method RDoc.
= Backwards Compatibility
* The nested_attributes plugin internals changed significantly. If
you were overriding one of the nested_attributes* private methods
and calling super to get the default behavior, you may have to
update your code.
* Database#case_sensitive_like has been removed on SQLite. This
method never worked correctly, it always returned false even if
the case_sensitive_like PRAGMA was set. That's because SQLite
doesn't offer a getter for this PRAGMA, only a setter. Note that
Database#case_sensitive_like= still exists and works correctly.
* Database#single_value has been removed from the native SQLite
adapter. This method was designed for internal use, and hasn't
been used for some time. Any current users of the method should
switch to Dataset#single_value.
* The private Database#defined_columns_for method in the SQLite
adapter no longer takes an options hash.
* A couple jdbc/postgres adapter methods are now private. Previously,
the jdbc/postgres adapter overrode some private superclass methods
but left the methods public.
* When using the optimistic_locking plugin, refreshing inside a
before_update method after calling super will now result in the
lock checking being skipped.
* The private Model#_refresh no longer returns self, so external
plugins should no longer rely on that behavior.
Thanks,
Jeremy
* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {Bug tracking}[http://github.com/jeremyevans/sequel/issues]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
--
Posted via http://www.ruby-forum.com/.