Giter Site home page Giter Site logo

Comments (16)

yujideveloper avatar yujideveloper commented on July 16, 2024 8

v3.1.1 has been released that supports Ruby 3.x.
https://rubygems.org/gems/active_hash/versions/3.1.1

from active_hash.

aknicol avatar aknicol commented on July 16, 2024 7

Have these issues for Ruby 3 been resolved? I'm still receiving Undefined method 'arity' on my model definitions.

from active_hash.

aknicol avatar aknicol commented on July 16, 2024 3

Has there been any progress on this?

from active_hash.

flavorjones avatar flavorjones commented on July 16, 2024 2

@kbrock You've been invited as an owner on rubygems.org! 🎉

from active_hash.

franzliedke avatar franzliedke commented on July 16, 2024 2

v3.2.0 is out. Thanks, @kbrock! 🎉

(So this can probably be closed now.)

from active_hash.

aknicol avatar aknicol commented on July 16, 2024 1

As I mentioned I'm still having issues, my code follows the example in the docs almost exactly, I have:

class Person < ActiveRecord::Base

  extend ActiveHash::Associations::ActiveRecordExtensions
  belongs_to_active_hash :country

on the next line,

belongs_to :surname, optional: true

I get the error undefined method `arity' for {:optional=>true}:Hash

from active_hash.

cath-oneill avatar cath-oneill commented on July 16, 2024 1

Finally upgrading to Ruby 3, and running into the same issues. It does appeared to be fixed for my use-case both in master (f644831) as @nsommer pointed out, and @gazayas' offered another possible fix in his PR. Anything that can be done to help get the work that's already been done released?

from active_hash.

yujideveloper avatar yujideveloper commented on July 16, 2024 1

@neocoin
Sorry, I don't have commit and release permissions.

@adampal @kbrock
Could you release a new version?

from active_hash.

nsommer avatar nsommer commented on July 16, 2024

@kbrock @syguer any chance you would release soonish? 🙂

from active_hash.

kbrock avatar kbrock commented on July 16, 2024

Hi @syguer -- are you the one to push these changes live?
Anything other people need to do to help with this effort?

from active_hash.

Sixeight avatar Sixeight commented on July 16, 2024

@zilkey Could you release a new version? Current version has some problem with Ruby 3.x.
Or, How about an idea create new organization for this library to maintain the library by community.
Thanks for the great library!

from active_hash.

Sixeight avatar Sixeight commented on July 16, 2024

https://github.com/active-hash had been created. but the new version has not been released. does anyone has publishable permission?

from active_hash.

neocoin avatar neocoin commented on July 16, 2024

@yujideveloper

Please release version v3.1.2.

I've made some monkey patches to make active_hash work in Ruby 3.2 and Rails 7.

For example, Ruby 3.2 must need these commits.

00f9811
bb11159

from active_hash.

neocoin avatar neocoin commented on July 16, 2024

@adampal @kbrock
plz check this library update.

from active_hash.

kbrock avatar kbrock commented on July 16, 2024

I just checked, I'm not an owner in gems. That is all @adampal or @flavorjones (the ones that I think are active).
Also, could we merge #268 first? it has generated so many PRs and issues. Just in final review status.

Hmm, this CHANGELOG is going to be a doozy, I'll see if I can spare some cycles and get a PR in for that

from active_hash.

flavorjones avatar flavorjones commented on July 16, 2024

@kbrock I'll make you an owner in rubygems -- can you confirm your username or email address for me?

from active_hash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.