2016-05-03 7 views
0

私は実際にルビーデベロッパーではありません。プロジェクトから開発環境の設定を取得しようとしています。私はサーバーをロードすることができます。私は主にフロントエンドの仕事をしています。とにかく、私のエラーは、次のとおりです。gem 'ahoy_matey'をロードしようとしたときにエラーが発生しました

There was an error while trying to load the gem 'ahoy_matey'. 
Gem Load Error is: undefined method `hours' for 4:Fixnum 

私は最後の2日間は、Googleを検索してきたし、「ahoy_matey」宝石でこの問題が発生して誰に遭遇することはできません。サーバーまたはレイクの移行を開始しようとすると、このエラーが発生します。

ルビー1.9.3

のRails 3.2.13

mysql2 0.3.17

すべてのヘルプは高く評価されます。

全トレース:あなたはレールを必要とする前に、あなたのバンドルを必要とするかもしれないよう

 
Bundler::GemRequireError: There was an error while trying to load the gem 'ahoy_matey'. 
Gem Load Error is: undefined method `hours' for 4:Fixnum 
Backtrace for gem load error is: 
/home/sirtastic/.rvm/gems/[email protected]/gems/ahoy_matey-1.1.0/lib/ahoy.rb:43:in `' 
/home/sirtastic/.rvm/gems/[email protected]/gems/ahoy_matey-1.1.0/lib/ahoy.rb:39:in `' 
/home/sirtastic/.rvm/gems/[email protected]/gems/ahoy_matey-1.1.0/lib/ahoy_matey.rb:1:in `require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/ahoy_matey-1.1.0/lib/ahoy_matey.rb:1:in `' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `block (2 levels) in require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler.rb:102:in `require' 
/home/sirtastic/projects/dataraptor/config/application.rb:7:in `' 
/home/sirtastic/projects/dataraptor/Rakefile:5:in `require' 
/home/sirtastic/projects/dataraptor/Rakefile:5:in `' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in `load_rakefile' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:689:in `raw_load_rakefile' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:94:in `block in load_rakefile' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:93:in `load_rakefile' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:77:in `block in run' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:176:in `standard_exception_handling' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/lib/rake/application.rb:75:in `run' 
/home/sirtastic/.rvm/gems/[email protected]/gems/rake-11.1.2/bin/rake:33:in `' 
/home/sirtastic/.rvm/gems/[email protected]/bin/rake:23:in `load' 
/home/sirtastic/.rvm/gems/[email protected]/bin/rake:23:in `' 
/home/sirtastic/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval' 
/home/sirtastic/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `' 
Bundler Error Backtrace: 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:90:in `rescue in block (2 levels) in require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:85:in `block (2 levels) in require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require' 
/home/sirtastic/.rvm/gems/[email protected]/gems/bundler-1.12.1/lib/bundler.rb:102:in `require' 
/home/sirtastic/projects/dataraptor/config/application.rb:7:in `' 
/home/sirtastic/projects/dataraptor/Rakefile:5:in `require' 
/home/sirtastic/projects/dataraptor/Rakefile:5:in `' 
/home/sirtastic/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval' 
/home/sirtastic/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `' 
(See full trace by running task with --trace) 
 

    source 'http://rubygems.org' 

    gem 'rails', '3.2.13' 

    gem 'mysql2'#, '~> 0.3.11' 
    gem 'sass-rails', '~> 3.2.3' # Because SCSS is compiled for embedded quoters 

    # Gems used only for assets and not required 
    # in production environments by default. 
    group :assets do 
    gem 'coffee-rails', '~> 3.2.1' 

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    gem 'therubyracer', :platforms => :ruby 
    gem 'execjs', :platforms => :ruby 

    gem 'uglifier', '>= 1.0.3' 
    end 

    gem 'jquery-rails', '~> 3.0.4' 
    gem 'jquery-ui-rails', '~> 4.0.5' 
    gem 'jquery_datepicker' 

    group :production do 
    gem 'pry', require:false 
    end 

    group :development, :test do 
    gem 'capybara', :require => false 
    gem 'database_cleaner', :require => false    # for use with capybara tests 
    gem 'factory_girl', '~> 4.1'   # for generating test models 
    gem 'factory_girl_rails', require:false 
    gem 'forgery'       # for generating test data 
    gem 'pry' 
    gem 'pry_debug' 
    gem 'pry-nav' 
    gem 'spork-rails', platform: [:mswin, :mingw] # Fast rpsec testing on Windows 
    #### DON'T JUST ADD GEMS TO THE END OF THIS LIST! ALPHABETIZE! ### 
    end 

    group :development do 
    gem 'thin'    # Sane development server 
    gem 'bullet'   # for identifying areas to speed up database queries 
    gem 'meta_request'  # for chrome rails-panel 
    gem 'rack-mini-profiler', require:false 
    #### DON'T JUST ADD GEMS TO THE END OF THIS LIST! ALPHABETIZE! ### 
    end 

    group :test do 
    gem 'launchy', :require => false 
    gem 'rspec-rails' 
    gem "selenium-webdriver", "~> 2.40.0" # for AJAX testing 
    gem 'shoulda', :require => false 
    gem 'simplecov', :require => false # Test coverage 
    gem 'timecop' 
    gem 'vcr', '~> 2.9.3'#'~> 2.5.0' 
    gem "webmock", '~> 1.10.2' 
    #### DON'T JUST ADD GEMS TO THE END OF THIS LIST! ALPHABETIZE! ### 
    end 

    group :dev, :release, :development do 
    gem 'better_errors' 
    gem 'binding_of_caller' # supports better errors by providing IDE in browser when error occurs 
    end 

    gem 'activeuuid', '>= 0.5.0' 
    gem 'ahoy_matey', '1.1.0'  #needs this exact version in order to output UUIDs consistently. the next version after does not. 
    gem 'american_date'    # by default, dates are parsed/formatted with American style 
    gem 'angularjs-rails', '~> 1.0.7' 
    gem 'attr_encrypted', '~> 1.2' # encrypt activerecord attributes in db 
    gem 'authlogic', '~> 3.2'  # user login 
    gem 'aws-sdk' 
    gem 'capistrano', require: false# deployment of application 
    gem 'capistrano-ext', require: false 
    gem 'carrierwave'    # file upload solution 
    gem 'daemons'     # used for running delayed_job jobs 
    gem 'encryptor', '~> 1.1'  # handle encryption of ActiveRecord fields 
    gem 'exception_notification', '~> 4.0.0' 
    gem 'faraday'     # REST client for interfacing with external APIs 
    gem 'faraday_middleware' 
    gem 'fog', '~> 1.22'   # for Amazon Web Services cloud storage 
    gem 'formatador', '~> 0.2'  # This shouldn't need to be here. It is/was a dependency for fog-core, but it wasn't getting bundled (for some reason), so raking assets:precompile consistently failed. 2014-09-17. 
    gem 'haml', '~> 4.0.3' 
    gem 'holidays', '~> 2.1.0' 
    gem 'httpi', '~> 2.2.7' 
    gem 'json', '~> 1.8.1'   # Specified so as to 'safely' conduct an update for the sake of stripe gem (2014-05-21) 
    gem 'liquid', '~> 2.5.0'  # rendering templates, such as Marketing::Email::Template 
    gem 'mini_magick'    # photo resizing 
    gem 'momentjs-rails' 
    gem 'multi_xml' 
    gem 'paperclip', '~> 3.5.0'  # handle file attachments to activerecord 
    gem "paypal-recurring" 
    gem 'nested_form' 
    gem 'rails3-jquery-autocomplete'# supports autocomplete fields 
    gem 'redis'      # for publishing 
    gem 'remotipart', '~> 1.0'  # enables multipart form submissions over ajax 
    gem 'ruby-saml', '~> 1.0.0' 
    gem 'rvm-capistrano', require: false # for deploying to servers where multiple rubies are available 
    gem 'safe_attributes'   # takes care of attribute name collisions w/ ActiveRecord (we use 'delay') 
    gem 'savon', '~> 2.7' 
    gem "select2-rails"    # makes an autocomplete select box, compatible with x-editable 
    gem 'sidekiq', '~> 2.17.0'  # handles background/delayed jobs 
    gem 'spreadsheet', require: false 
    gem "stripe", '~> 1.11.0' 
    gem 'tinymce-rails', '>= 4.0.8' # version 4.0.8 includes important bug fixes 
    gem 'transaction_retry'   # Catch mysql deadlock and try again 
    gem 'tzip', '~> 0.0.4'   # Find timezone by zip code 
    gem 'whenever', require: false # handles scheduled tasks 
    gem 'wicked_pdf'    # creates pdfs from html (is a wrapper for wkhtmltopdf) 
    gem 'will_paginate', '~> 3.0' # paginates index pages for activerecord 
    gem 'wkhtmltopdf-binary'  # the backend linux tool that creates pdfs from html using QT Webkit rendering engine 
    #### DON'T JUST ADD GEMS TO THE END OF THIS LIST! ALPHABETIZE! ### 

+0

...あなたのGemfileとの' config/application.rb'を追加することができますか? – patkoperwas

+0

私はgem activesupport(3.2.13)がインストールされています..あなたのためのgemlistでの作業 – Camitose

+0

オリジナルの投稿にgemlistを追加しました。潜在的に機密性の高い情報であるapplication.rbを投稿できませんか? – Camitose

答えて

0

が見えます。あなたはapplication.rbファイルに以下の2行を持っている場合、彼らはこの順序である必要があります。おそらく、 `activesupport`宝石を逃し

require 'rails/all' 

Bundler.require(:default, Rails.env) 
+0

私は3行目のすべてのレールと7行目の後のバンドルを必要としています。 – Camitose

関連する問題