Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Spina::Theme::OpenStruct with Spina 2.18.0 and Rails 7.2.2 on Ruby 3.2.6 #1393

Open
donnoman opened this issue Nov 14, 2024 · 4 comments

Comments

@donnoman
Copy link

after logging in /admin/login

uninitialized constant Spina::Theme::OpenStruct

Screenshot 2024-11-13 at 3 49 09 PM

continues to happen downgrading to Rails 7.1.0

could also just be a scope of that module name issue maybe prepend with ::OpenStruct.new({ ...

I added ostruct to my gemfile and I still get the error.

Might be related to Ruby Ostruct being pulled out of system gems though. I didn't see evidence of that with Ruby 3.2.6 but Ruby 3.5.0

@donnoman
Copy link
Author

donnoman commented Nov 14, 2024

I was able to get this working without changing that file with:
Ruby 3.2.6
Ruby on Rails 6.1.7.10
Spina 2.18.0
Graphicsmagick 1.0.6

The ROR version being the important part, the rest for reference only.

@MSchmidt
Copy link
Contributor

I've just added a require 'ostruct'. Should work in any place. I've just added it on top of the Spina initializer.

@mhalano
Copy link

mhalano commented Dec 12, 2024

Very strange... I added 'ostruct' in my Gemfile{.lock} and did the trick. I'm using ROR 7.2.2.1, Ruby, 3.3.6 and Spina 2.18.

@Thomas-Malh
Copy link

Thomas-Malh commented Dec 17, 2024

+1
Ruby 3.3.5 / Rails 7.2.1 / Spina 2.18
bundle add ostruct is my "solution"

it may only be a missing gem.add_dependency "ostruct" in the gemspec (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants