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

[Supported Rails < 4.2.0 ] #33

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Conversation

ElamT
Copy link
Contributor

@ElamT ElamT commented Feb 20, 2015

  • Corrected response_options mergin type opts instead options
    • Responder gem without specific version, so it's compatible with rails version less to 4.2
    • Tested on rails 4.0.0, 4.0.2 and 4.2.0

… and groovy-all-2.0.1.jar

IMPORTANT set Language = Java into reports configuration
- Corrected response_options mergin type opts instead options
- responder gem without specific version, so it's compatible with rails version less to 4.2
- Tested on rails 4.0.0, 4.0.2 and 4.2.0
@rodrigomaia
Copy link
Contributor

Hi, @ElamT

I found only one error on my tests: undefined local variable or method `opts' for #ActionController::Responder:0x007ff880935438

I believe there's no 'opts' anywhere in the code:

  • response_options = JasperRails.config[:response_options].merge(:type => options[:mime_type])
  • response_options = JasperRails.config[:response_options].merge(:type => opts[:mime_type])

I changed to "options" and worked, is there any reason why you changed it?

@ElamT
Copy link
Contributor Author

ElamT commented Apr 17, 2015

Hi @rodrigomaia opts is one param of the method define_render_rails_less_4_2

def self.define_render_rails_less_4_2(renderer,file_extension, opts = {})
     ...
end

it is strange not work. I only named it so, there isn't any particular reason.

ElamT added 3 commits May 13, 2015 16:44
- Improvement to test
- Refactor code for support any version of Rails 4.x
- Supporting Chart in Reports
- Add default task rspec (TestSuite)
@ElamT ElamT force-pushed the master branch 3 times, most recently from 70dfa3c to d8b2bbf Compare May 15, 2015 04:13
- Serverals enviroments
- Install fonts necesary to generate reports
ElamT added 4 commits May 15, 2015 01:34
- Install ttf-mscorefonts package
- add repository multiverse to install fonts Arial ttf-mscorefonts
- New font Family
p404 and others added 8 commits May 15, 2015 16:47
- add in the defult_rederer class a new render (jasperpdf) this do the
  same of pdf but allow the use of multiple pdf gems like wicked_pdf
Added expliclit use of jasper in the render
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

Successfully merging this pull request may close these issues.

4 participants