Permalink
Browse files

Use Cocaine 0.4.0's new API

  • Loading branch information...
1 parent 65f4941 commit d15d8d81eecf7b2235214e46dfce5d66ac5e2772 @jyurek jyurek committed Oct 5, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Gemfile.lock
  2. +1 −1 lib/paperclip/helpers.rb
  3. +1 −1 paperclip.gemspec
View
4 Gemfile.lock
@@ -5,7 +5,7 @@ PATH
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
- cocaine (>= 0.0.2)
+ cocaine (~> 0.4.0)
mime-types
GEM
@@ -62,7 +62,7 @@ GEM
xpath (~> 0.1.4)
childprocess (0.3.2)
ffi (~> 1.0.6)
- cocaine (0.2.1)
+ cocaine (0.4.0)
coderay (1.0.6)
cucumber (1.2.1)
builder (>= 2.1.2)
View
2 lib/paperclip/helpers.rb
@@ -28,7 +28,7 @@ def run(cmd, arguments = "", local_options = {})
if logging? && (options[:log_command] || local_options[:log_command])
local_options = local_options.merge(:logger => logger)
end
- Cocaine::CommandLine.new(cmd, arguments, local_options).run
+ Cocaine::CommandLine.new(cmd, arguments, local_options).run(local_options)
end
# Find all instances of the given Active Record model +klass+ with attachment +name+.
View
2 paperclip.gemspec
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
s.add_dependency('activerecord', '>= 3.0.0')
s.add_dependency('activemodel', '>= 3.0.0')
s.add_dependency('activesupport', '>= 3.0.0')
- s.add_dependency('cocaine', '>= 0.0.2')
+ s.add_dependency('cocaine', '~> 0.4.0')
s.add_dependency('mime-types')
s.add_development_dependency('shoulda')

0 comments on commit d15d8d8

Please sign in to comment.