Greg Hazel

Results 75 issues of Greg Hazel

Similar to Pacecar and Rails 3, it would be nice (for us on Rails 2.3.10) to have a `.limited(10)` scope which would product `LIMIT 10` in SQL.

The `_equals` function works for strings and nil, but the `_does_not_equal` function does not. ``` User.name_equals(x) ``` Submits either: ``` SELECT * FROM `users` WHERE (users.name = 'foo') ``` or:...

As seen here https://github.com/ffi/ffi/wiki/Structs#pointers-to-functions if a function returns a pointer to a struct, it should use `SomeStruct.by_ref` as the return type. Otherwise, ffi returns an `FFI::Pointer`.

getFieldOrder is required: http://twall.github.io/jna/3.5.1/javadoc/com/sun/jna/Structure.html

JNA struct members appear without names: ``` public static class Blob extends Structure { public NativeLong ; public Pointer ; } ``` The code says: ``` ruby @fields.each do |field|...

``` C #pragma GCC visibility push(default) enum fun { FOO, BAR }; #pragma GCC visibility pop ``` ``` /Library/Ruby/Gems/2.0.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:379:in `block in read_declaration': undefined method `raw' for nil:NilClass (NoMethodError) from /Library/Ruby/Gems/2.0.0/gems/ffi_gen-1.2.0/lib/ffi_gen.rb:372:in...

``` c struct foo { int length; char data[]; } ``` Translates as: ``` ruby class Foo < FFI::Struct layout :length, :int, :data, :pointer end ``` However, this is incorrect....

Could you support Python 2? Even the latest yet-unreleased version of OS X doesn't come with python3.

enhancement

The query, which can take several seconds: ``` UPDATE `delayed_jobs` SET `delayed_jobs`.`locked_at` = '2016-02-17 05:20:59', `delayed_jobs`.`locked_by` = 'host:mine pid:60282' WHERE ((run_at