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

In ruby 2.1.0 getting undefined method `deg2rad' #97

Closed
ashrafuzzaman opened this issue Jan 28, 2014 · 4 comments
Closed

In ruby 2.1.0 getting undefined method `deg2rad' #97

ashrafuzzaman opened this issue Jan 28, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@ashrafuzzaman
Copy link

Hi,
I am developing a gem for rails reporting 'query_report'. I am getting the following error while running in ruby 2.1.0,

undefined method `deg2rad' for #<BigDecimal:523e010,'0.18E3',9(18)>

The spec runs fine in 1.9.3, fails in 2.1.0. The problem caused for rendering a Pie chart. I am using the prawn '~>1.0.0.rc2'.

@rich311
Copy link

rich311 commented Mar 1, 2014

Same for me but not using prawn, when calling this on a pie chart:

g.write(filename)

Gruff throws this error:

NoMethodError: undefined method `deg2rad' for #<BigDecimal:5396f48,'0.1775319377 972191776E2',27(36)>

ruby-2.1.0/gems/gruff-0.5.1/lib/gruff/pie.rb:94:in `draw_label'
ruby-2.1.0/gems/gruff-0.5.1/lib/gruff/pie.rb:68:in `block in draw'
ruby-2.1.0/gems/gruff-0.5.1/lib/gruff/pie.rb:47:in `each'
ruby-2.1.0/gems/gruff-0.5.1/lib/gruff/pie.rb:47:in `draw'
ruby-2.1.0/gems/gruff-0.5.1/lib/gruff/base.rb:424:in `write'

@donv
Copy link
Collaborator

donv commented May 31, 2016

Hi @ashrafuzzaman @rich311 !

Could you give an example of what you do to get the error? All tests are green for me locally and in travis using Ruby 2.1, 2.2, and 2.3.

@donv
Copy link
Collaborator

donv commented May 31, 2016

Looks like this was fixed in #110 . Closing. Please reopen if it is still a problem.

@donv donv closed this as completed May 31, 2016
@donv donv added this to the 0.7.0 milestone May 31, 2016
@donv donv added the bug label May 31, 2016
@donv donv self-assigned this May 31, 2016
@rich311
Copy link

rich311 commented Jun 1, 2016

Hey @donv, #110 fixed it for me, verified a while ago. Thanks for checking!

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

No branches or pull requests

3 participants