Another strange Sequel bug with Macruby. Check this gist
https://gist.github.com/951931 Simply you are filtering model with more than
one condition, than it raises this error... I was trying to create bug reduce,
but without success :[
- Petr
On Apr 28, 2011, at 9:09 PM, Joshua Ballanco wrote:
Ah, I've worked around this bug myself in the past (apologies for not
responding sooner). A simpler fix is to simple use this in place of alias
method:
def model
class
end
- Josh
On Thu, Apr 28, 2011 at 1:00 PM, Petr Kaleta wrote:
> btw: workaround to use Sequel with Macruby 0.10
> https://
btw: workaround to use Sequel with Macruby 0.10
https://github.com/stonehippo/sequel/commit/fab629080b450ea8a66912029415b30a10844fbe
Matt, check please modification in lib/sequel/dataset/actions.rb looks like
another macruby bug.
- Petr
On Apr 28, 2011, at 6:54 PM, Petr Kaleta wrote:
> Here i
Here is a ticket https://www.macruby.org/trac/ticket/1245
- Petr
On Apr 28, 2011, at 6:53 PM, Matt Aimonetti wrote:
> Excellent, thanks a lot!
>
> - Matt
>
> On Thu, Apr 28, 2011 at 9:40 AM, Petr Kaleta wrote:
> Hi Matt,
> here is a bug reduction:
>
> class Base
> module InstanceMethods
>
Excellent, thanks a lot!
- Matt
On Thu, Apr 28, 2011 at 9:40 AM, Petr Kaleta wrote:
> Hi Matt,
> here is a bug reduction:
>
> class Base
> module InstanceMethods
> alias_method :model, :class
> end
> end
>
> class Model
> include Base::InstanceMethods
> end
>
> class Item < Model
> en
Hi Matt,
here is a bug reduction:
class Base
module InstanceMethods
alias_method :model, :class
end
end
class Model
include Base::InstanceMethods
end
class Item < Model
end
puts Item.new.model
Here as gist as well https://gist.github.com/946712, so it is definitely bug in
Macruby. T
For the record, I couldn't trivially reduce the problem:
$ macruby -e "class Foo; alias_method :model, :class; end; p Foo.new.model;
class Bar < Foo; end; p Bar.new.model"
Foo
Bar
- Matt
On Thu, Apr 28, 2011 at 8:43 AM, Matt Aimonetti wrote:
> Petr, could you write a bug reduction and open a M
Petr, could you write a bug reduction and open a MacRuby ticket please?
Thanks,
- Matt
On Thu, Apr 28, 2011 at 7:51 AM, Petr Kaleta wrote:
> Daniel,
> I think I've found it, looks like alias_method is not working properly in
> Macruby, check this line
> https://github.com/jeremyevans/sequel/bl
Daniel,
I think I've found it, looks like alias_method is not working properly in
Macruby, check this line
https://github.com/jeremyevans/sequel/blob/master/lib/sequel/model/base.rb#L808so
thats why "model" is not initialized and sequel is crashing on this line
https://github.com/jeremyevans/se
Hi Daniel,
so you are not using Sequel Models at all?
I've reported that bug in Sequel's tracking system
http://code.google.com/p/ruby-sequel/issues/detail?id=334 so we will see. I'll
look at the source maybe I'll find something...
- Petr
On Apr 28, 2011, at 4:10 PM, Daniel Westendorf wrote:
Petr,
I can confirm that Model's don't work as expected with Sequel and Macruby.
Instead I use a workaround like this:
DB[:items].all()
DB[:items].insert(:name => "My Item")
etc.
Daniel
On Thu, Apr 28, 2011 at 7:32 AM, Petr Kaleta wrote:
> So I've made some tests. This sample is working witho
So I've made some tests. This sample is working without any problems with ruby
1.8.7 and 1.9.2 but is not working with Macruby.
Anybody here using Sequel with Macruby 0.10?
- Petr
On Apr 28, 2011, at 12:33 PM, Petr Kaleta wrote:
> One Sequel related question: check this simple code http://past
One Sequel related question: check this simple code http://pastie.org/1842796
I'm getting this very strange exception:
/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2/gems/sequel-3.22.0/lib/sequel/model/base.rb:1378:in
`set_restricted:': undefined local variable or me
Hi Laurent,
ok I've removed vendor folder, install gems using macgem utility and require
them using rubygems... So application is now executable without any problems
using:
> macruby main.rb
So how can I compile it to an *.app and include all frameworks and gems, means
create standalone distri
Hi Petr,
Have you tried using `macruby_deploy --embed --gem ...' instead of
vendoring the gems by yourself? It should work out of the box, and you
do not need to change LOAD_PATH.
Laurent
On Thu, Apr 28, 2011 at 1:16 AM, Petr Kaleta wrote:
> Thanks for this hint, this lib looks great. Problem i
Thanks for this hint, this lib looks great. Problem is, that I can't make it
work. I am loading all gems from vendor folder inside my app. So:
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor/sqlite3-ruby/lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor/sequel/lib')
On Mon, Apr 18, 2011 at 7:47 AM, Rolando Abarca
wrote:
> try sequel: http://sequel.rubyforge.org/
>
+1 for Sequel
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
try sequel: http://sequel.rubyforge.org/
On Mon, Apr 18, 2011 at 6:11 AM, Petr Kaleta wrote:
> Can you suggest me some gem/framework to work with Sqlite3 without core data?
> Something which has nice DSL and good performance.
>
> Thanks
>
> - Petr
hth,
--
Rolando Abarca M.
Games For Food S.p.A
18 matches
Mail list logo