Nitro + Og 0.25.0 Og scope, dynamic finders, evolution, helpers, bug fixes

Discussion in 'Ruby' started by George Moschovitis, Nov 17, 2005.

  1. Dear devs,

    I am pleased to announce new versions of Nitro and Og

    homepage: http://www.nitrohq.com
    download: http://rubyforge.org/projects/nitro/
    mailing list: http://rubyforge.org/mailman/listinfo/nitro-general
    irc: irc.freenode.net #nitro


    What new
    =3D=3D=3D=3D=3D=3D=3D

    This is the first in a series of releases focused on stability
    and refinement. Many bugs where fixed, the high level api was
    improved where needed, and we still got some small but incredibly
    useful new features. Enjoy!

    Most notable changes:

    * Support for constrained / scoped queries in Og, here are
    some examples:

    User.with_scope:)condition =3D> 'age > 2') {
    users =3D User.all
    }

    Users.articles.find "title LIKE %t%" # =3D> constrain i users articles.

    * Dynamic auto generators, you can now query the database in
    English:

    User.find_by_name_and_age('gmosx', 'age')
    User.find_or_create_by_name_and_age(...)

    * Added experimental version of a new schema evolution system. Assuming
    evolve_schema =3D true and evolve_schema_cautious =3D false

    * With this patch, on application startup, fields are added and deleted.
    * During run-time, if the file containing Og.setup is touched,
    fields are added.
    * Fields are _not_ deleted during run-time, only at application startup.

    a the moment this works only in the PostgreSQL store, support for more
    stores is coming in the next versions. Thanks to Rob Pitt and Bryan Sotto
    for this feature.

    * Template morphing now handles nested elements, an example:

    <div if=3D"@user.admin?">
    <ul>
    <li each=3D"role in @user.roles" />
    </ul>
    </div>

    * Added some useful helpers to make the code you write cleaner,
    here are some examples:

    class Article
    is Taggable

    instead of

    class Article
    include Og::Taggable

    or

    class MainController
    helper :pager, :javascript, :sitemap

    instead of

    class MainController
    include Nitro::pagerHelper
    include Nitro::JavascriptHelper
    ...

    and stuff like that...

    * New, improved, clean taggable implementation. This new implementation
    supports polymorphism.

    class Article
    is Taggable
    end

    class Photo
    is Taggable
    end

    ...

    t =3D Tag.find_by_name('new')
    t.articles
    t.photos

    * Added useful StaticInclude as a separate compiler module to act
    as the first stage in the compilation pipeline.

    * Integrated latest versions of Prototype, Scriptaculous, KirbyBase
    and facets.

    * General code cleanup and refactoring.

    * Many, many bug fixes, including security fixes.


    What is Nitro?
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    Nitro provides everything you need to develop professional Web
    applications using Ruby and Javascript.

    Nitro redefines Rapid Application Development by providing a
    clean, yet efficient API, a layer of domain specific languages
    implemented on top of Ruby and the most powerful and elegant
    object relational mapping solution available everywhere.

    Nitro is Web 2.0 ready, featuring excellent support for AJAX,
    XML, Syndication while staying standards compliant.



    Enjoy,
    George Moschovitis


    --
    http://www.gmosx.com
    http://www.navel.gr
    http://www.nitrohq.com
    George Moschovitis, Nov 17, 2005
    #1
    1. Advertising

  2. George Moschovitis

    Jeff Wood Guest

    ------=_Part_30097_5819032.1132226220489
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    Heya George,

    Congrats on the new version.

    I've been looking around, is Nitro currently compatible with postres-pr (
    the pure ruby postgres client library ) ???

    I'm hopin' ... Let me know.

    j.

    On 11/17/05, George Moschovitis <> wrote:
    >
    > Dear devs,
    >
    > I am pleased to announce new versions of Nitro and Og
    >
    > homepage: http://www.nitrohq.com
    > download: http://rubyforge.org/projects/nitro/
    > mailing list: http://rubyforge.org/mailman/listinfo/nitro-general
    > irc: irc.freenode.net <http://irc.freenode.net> #nitro
    >
    >
    > What new
    > =3D=3D=3D=3D=3D=3D=3D
    >
    > This is the first in a series of releases focused on stability
    > and refinement. Many bugs where fixed, the high level api was
    > improved where needed, and we still got some small but incredibly
    > useful new features. Enjoy!
    >
    > Most notable changes:
    >
    > * Support for constrained / scoped queries in Og, here are
    > some examples:
    >
    > User.with_scope:)condition =3D> 'age > 2') {
    > users =3D User.all
    > }
    >
    > Users.articles.find "title LIKE %t%" # =3D> constrain i users articles.
    >
    > * Dynamic auto generators, you can now query the database in
    > English:
    >
    > User.find_by_name_and_age('gmosx', 'age')
    > User.find_or_create_by_name_and_age(...)
    >
    > * Added experimental version of a new schema evolution system. Assuming
    > evolve_schema =3D true and evolve_schema_cautious =3D false
    >
    > * With this patch, on application startup, fields are added and deleted.
    > * During run-time, if the file containing Og.setup is touched,
    > fields are added.
    > * Fields are _not_ deleted during run-time, only at application startup.
    >
    > a the moment this works only in the PostgreSQL store, support for more
    > stores is coming in the next versions. Thanks to Rob Pitt and Bryan Sotto
    > for this feature.
    >
    > * Template morphing now handles nested elements, an example:
    >
    > <div if=3D"@user.admin?">
    > <ul>
    > <li each=3D"role in @user.roles" />
    > </ul>
    > </div>
    >
    > * Added some useful helpers to make the code you write cleaner,
    > here are some examples:
    >
    > class Article
    > is Taggable
    >
    > instead of
    >
    > class Article
    > include Og::Taggable
    >
    > or
    >
    > class MainController
    > helper :pager, :javascript, :sitemap
    >
    > instead of
    >
    > class MainController
    > include Nitro::pagerHelper
    > include Nitro::JavascriptHelper
    > ...
    >
    > and stuff like that...
    >
    > * New, improved, clean taggable implementation. This new implementation
    > supports polymorphism.
    >
    > class Article
    > is Taggable
    > end
    >
    > class Photo
    > is Taggable
    > end
    >
    > ...
    >
    > t =3D Tag.find_by_name('new')
    > t.articles
    > t.photos
    >
    > * Added useful StaticInclude as a separate compiler module to act
    > as the first stage in the compilation pipeline.
    >
    > * Integrated latest versions of Prototype, Scriptaculous, KirbyBase
    > and facets.
    >
    > * General code cleanup and refactoring.
    >
    > * Many, many bug fixes, including security fixes.
    >
    >
    > What is Nitro?
    > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    >
    > Nitro provides everything you need to develop professional Web
    > applications using Ruby and Javascript.
    >
    > Nitro redefines Rapid Application Development by providing a
    > clean, yet efficient API, a layer of domain specific languages
    > implemented on top of Ruby and the most powerful and elegant
    > object relational mapping solution available everywhere.
    >
    > Nitro is Web 2.0 ready, featuring excellent support for AJAX,
    > XML, Syndication while staying standards compliant.
    >
    >
    >
    > Enjoy,
    > George Moschovitis
    >
    >
    > --
    > http://www.gmosx.com
    > http://www.navel.gr
    > http://www.nitrohq.com
    >
    >



    --
    "Remember. Understand. Believe. Yield! -> http://ruby-lang.org"

    Jeff Wood

    ------=_Part_30097_5819032.1132226220489--
    Jeff Wood, Nov 17, 2005
    #2
    1. Advertising

  3. George Moschovitis

    Jeff Wood Guest

    ------=_Part_30213_5531455.1132226772835
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    uh, I meant Postgres-pr ... sorry for the typo.

    j.

    On 11/17/05, Jeff Wood <> wrote:
    >
    > Heya George,
    >
    > Congrats on the new version.
    >
    > I've been looking around, is Nitro currently compatible with postres-pr (
    > the pure ruby postgres client library ) ???
    >
    > I'm hopin' ... Let me know.
    >
    > j.
    >
    > On 11/17/05, George Moschovitis <> wrote:
    > >
    > > Dear devs,
    > >
    > > I am pleased to announce new versions of Nitro and Og
    > >
    > > homepage: http://www.nitrohq.com
    > > download: http://rubyforge.org/projects/nitro/
    > > mailing list: http://rubyforge.org/mailman/listinfo/nitro-general
    > > irc: irc.freenode.net <http://irc.freenode.net> #nitro
    > >
    > >
    > > What new
    > > =3D=3D=3D=3D=3D=3D=3D
    > >
    > > This is the first in a series of releases focused on stability
    > > and refinement. Many bugs where fixed, the high level api was
    > > improved where needed, and we still got some small but incredibly
    > > useful new features. Enjoy!
    > >
    > > Most notable changes:
    > >
    > > * Support for constrained / scoped queries in Og, here are
    > > some examples:
    > >
    > > User.with_scope:)condition =3D> 'age > 2') {
    > > users =3D User.all
    > > }
    > >
    > > Users.articles.find "title LIKE %t%" # =3D> constrain i users articles.
    > >
    > > * Dynamic auto generators, you can now query the database in
    > > English:
    > >
    > > User.find_by_name_and_age('gmosx', 'age')
    > > User.find_or_create_by_name_and_age(...)
    > >
    > > * Added experimental version of a new schema evolution system. Assuming
    > > evolve_schema =3D true and evolve_schema_cautious =3D false
    > >
    > > * With this patch, on application startup, fields are added and deleted=
    Jeff Wood, Nov 17, 2005
    #3
  4. George Moschovitis, Nov 17, 2005
    #4
  5. George Moschovitis

    James Britt Guest

    Re: Nitro + Og 0.25.0 Og scope, dynamic finders, evolution, helpers,bug fixes

    George Moschovitis wrote:
    > Dear devs,
    >
    > I am pleased to announce new versions of Nitro and Og
    >
    > homepage: http://www.nitrohq.com
    > download: http://rubyforge.org/projects/nitro/
    > mailing list: http://rubyforge.org/mailman/listinfo/nitro-general
    > irc: irc.freenode.net #nitro


    Great news, George!

    I've been looking forward to this.

    James

    --

    http://www.ruby-doc.org - Ruby Help & Documentation
    http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
    http://www.rubystuff.com - The Ruby Store for Ruby Stuff
    http://www.jamesbritt.com - Playing with Better Toys
    http://www.30secondrule.com - Building Better Tools
    James Britt, Nov 17, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Heinemeier Hansson
    Replies:
    0
    Views:
    109
    David Heinemeier Hansson
    Jan 4, 2005
  2. George  Moschovitis
    Replies:
    0
    Views:
    104
    George Moschovitis
    Mar 28, 2005
  3. Ilias Lazaridis
    Replies:
    7
    Views:
    86
    Ilias Lazaridis
    May 8, 2005
  4. George Moschovitis
    Replies:
    4
    Views:
    120
  5. Gerald Bauer
    Replies:
    0
    Views:
    108
    Gerald Bauer
    Feb 25, 2009
Loading...

Share This Page