amagical-net / rails-latex

rails-latex is a renderer for rails which allows tex files with erb to be turned into an inline pdf
MIT License
141 stars 48 forks source link

FIX: Ensure gem works with rails 3 and 4 #43

Closed macite closed 8 years ago

macite commented 8 years ago

I've been using this gem with Rails 4, but the dependencies for version 2.0.0 explicitly require version 3, and as a result, the dependency stops the gem being installed in Rails 4.

This change ensures the dependency allows the gem to work with both Rails 3 and 4.

macite commented 8 years ago

The changes also avoids the warning about open-ended dependencies:

WARNING:  open-ended dependency on rails (>= 3.0.0) is not recommended

So building the gem should be warning free:

Successfully built RubyGem
Name: rails-latex
Version: 2.0.1
File: rails-latex-2.0.1.gem