Commit fe706c69 by Prem Sichanugrist

Remove Ruby 1.8 support

parent b54904e0
rvm: rvm:
- 1.8.7
- 1.9.2 - 1.9.2
- 1.9.3 - 1.9.3
- ree - jruby-19mode
before_script: "sudo ntpdate -ub ntp.ubuntu.com pool.ntp.org; true" before_script: "sudo ntpdate -ub ntp.ubuntu.com pool.ntp.org; true"
script: "bundle exec rake clean test cucumber" script: "bundle exec rake clean test cucumber"
......
...@@ -78,7 +78,7 @@ module Paperclip ...@@ -78,7 +78,7 @@ module Paperclip
# http://marsorange.com/archives/of-mogrify-ruby-tempfile-dynamic-class-definitions # http://marsorange.com/archives/of-mogrify-ruby-tempfile-dynamic-class-definitions
class Tempfile < ::Tempfile class Tempfile < ::Tempfile
# This is Ruby 1.8.7's implementation. # This is Ruby 1.8.7's implementation.
if RUBY_VERSION <= "1.8.6" || RUBY_PLATFORM =~ /java/ if RUBY_PLATFORM =~ /java/
def make_tmpname(basename, n) def make_tmpname(basename, n)
case basename case basename
when Array when Array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment