adapted gemspec and container.rb to support Rails 4