Created
March 27, 2013 15:32
-
-
Save anonymous/5255123 to your computer and use it in GitHub Desktop.
rake test error when using patshaughnessy-paperclip 2.3.6 with rails 3.2.13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Wed 27 Mar 2013 11:25:45 AM EDT | |
[e3@vodkir gis]$ cat Gemfile | |
# -*- mode: ruby; -*- | |
source 'http://rubygems.org' | |
gem 'rails', '~> 3.1' | |
gem 'rake', '0.9.2.2' | |
gem 'log4r' | |
gem "nokogiri", "~> 1.4.2" | |
gem 'pg' | |
gem "jquery-rails", "~> 1.0" | |
gem "passenger", "~> 3.0.5" | |
gem "patshaughnessy-paperclip", :require => 'paperclip' | |
#gem "paperclip"#, "~>3.0" | |
#gem "paperclip_database", "~> 1.0" | |
gem "acts-as-taggable-on", '~> 2.3.1' | |
gem "DanaDanger-syslog_logger", '=1.5', :require => 'syslog_logger' | |
group :test do | |
gem "mocha", "0.9.8", :require => false | |
# FIXME: watir not included with ree yet. Stop this from breaking us | |
# gem "watir-webdriver" | |
end | |
[e3@vodkir gis]$ bundle update | |
Fetching gem metadata from http://rubygems.org/......... | |
Fetching gem metadata from http://rubygems.org/.. | |
Using rake (0.9.2.2) | |
Using DanaDanger-syslog_logger (1.5) | |
Using i18n (0.6.1) | |
Using multi_json (1.7.2) | |
Using activesupport (3.2.13) | |
Using builder (3.0.4) | |
Using activemodel (3.2.13) | |
Using erubis (2.7.0) | |
Using journey (1.0.4) | |
Using rack (1.4.5) | |
Using rack-cache (1.2) | |
Using rack-test (0.6.2) | |
Using hike (1.2.1) | |
Using tilt (1.3.6) | |
Using sprockets (2.2.2) | |
Using actionpack (3.2.13) | |
Using mime-types (1.21) | |
Using polyglot (0.3.3) | |
Using treetop (1.4.12) | |
Using mail (2.5.3) | |
Using actionmailer (3.2.13) | |
Using arel (3.0.2) | |
Using tzinfo (0.3.37) | |
Using activerecord (3.2.13) | |
Using activeresource (3.2.13) | |
Using bundler (1.2.3) | |
Using rack-ssl (1.3.3) | |
Using json (1.7.7) | |
Using rdoc (3.12.2) | |
Using thor (0.18.0) | |
Using railties (3.2.13) | |
Using rails (3.2.13) | |
Using acts-as-taggable-on (2.3.3) | |
Using daemon_controller (1.1.2) | |
Using fastthread (1.0.7) | |
Using jquery-rails (1.0.19) | |
Using log4r (1.1.10) | |
Using mocha (0.9.8) | |
Using nokogiri (1.4.7) | |
Using passenger (3.0.19) | |
Using patshaughnessy-paperclip (2.3.6) | |
Using pg (0.15.0) | |
Updating files in vendor/cache | |
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed. | |
[e3@vodkir gis]$ rake test:unitss | |
NOTICE: identifier "/home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" will be truncated to "/home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/r" | |
/home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined method `read_inheritable_attribute' for #<Class:0x00000002d87cd0> (NoMethodError) | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/patshaughnessy-paperclip-2.3.6/lib/paperclip.rb:340:in `attachment_definitions' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/patshaughnessy-paperclip-2.3.6/lib/paperclip.rb:232:in `has_attached_file' | |
from /home/e3/dev/7.7.0/apps/gis/app/models/icon.rb:13:in `<class:Icon>' | |
from /home/e3/dev/7.7.0/apps/gis/app/models/icon.rb:1:in `<top (required)>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:in `load_missing_constant' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:514:in `load_missing_constant' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in `block in constantize' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `constantize' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:260:in `safe_constantize' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:133:in `inherited' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.13/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.13/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with' | |
from /home/e3/dev/7.7.0/apps/gis/app/controllers/admin/icons_controller.rb:2:in `<module:Admin>' | |
from /home/e3/dev/7.7.0/apps/gis/app/controllers/admin/icons_controller.rb:1:in `<top (required)>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
from /home/e3/dev/7.7.0/apps/gis/config/environment.rb:5:in `<top (required)>' | |
from /home/e3/dev/7.7.0/apps/gis/test/test_helper.rb:2:in `require' | |
from /home/e3/dev/7.7.0/apps/gis/test/test_helper.rb:2:in `<top (required)>' | |
from /home/e3/dev/7.7.0/apps/gis/test/unit/network_link_test.rb:1:in `require' | |
from /home/e3/dev/7.7.0/apps/gis/test/unit/network_link_test.rb:1:in `<top (required)>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in <main>' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select' | |
from /home/e3/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `<main>' | |
rake aborted! | |
Command failed with status (1): [/home/e3/.rvm/rubies/ruby-1.9.3-p194/bin/r...] | |
Tasks: TOP => test:units | |
(See full trace by running task with --trace) | |
[e3@vodkir gis]$ exit | |
Script done on Wed 27 Mar 2013 11:26:51 AM EDT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
It looks like you might be trying to use an old/incorrect version of this gem? Can you try the ":git" syntax in your Gemfile instead:
gem 'paperclip', :git => "https://github.com/patshaughnessy/paperclip"
This should give you version 2.4.5 instead:
Updating https://github.com/patshaughnessy/paperclip
Fetching gem metadata from https://rubygems.org/......
Fetching gem metadata from https://rubygems.org/..
...etc...
Using paperclip (2.4.5) from https://github.com/patshaughnessy/paperclip (at master)
...etc...
I just tried the latest version of the gem again now and it worked fine with Rails 3.2.13. I was having trouble with the test suite, however.