mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
2f9258e4fe
In jruby 1.7.22 (1.9.3p551 compatibility mode), UTF-8 encoding is not properly detected, because the encoding comment is not on the first line as required in ruby 1.9. The frozen_string_literal magic comment did not come into existence until ruby 2.3, and ruby 1.9 does not look past the first line for magic comments. This results encoding-related syntax errors. Examples: SyntaxError: /home/nilbus/ws/rental_express/ROOT/rails/vendor/bundle/jruby/1.9/gems/sidekiq-4.2.6/lib/sidekiq.rb:52: Invalid char `\235' ('') in expression def self.â¨â¯Â°â¡Â°â©â¯ï¸µâ»ââ» ^ SyntaxError: /home/nilbus/ws/rental_express/ROOT/rails/vendor/bundle/jruby/1.9/gems/sidekiq-4.2.6/lib/sidekiq/api.rb:269: Invalid char `\237' ('') in expression alias_method :ð£, :clear ^ This patch should restore compatibility with ruby 1.9 and greater. |
||
---|---|---|
.. | ||
fixtures | ||
config.yml | ||
env_based_config.yml | ||
fake_env.rb | ||
helper.rb | ||
test_actors.rb | ||
test_api.rb | ||
test_cli.rb | ||
test_client.rb | ||
test_exception_handler.rb | ||
test_extensions.rb | ||
test_fetch.rb | ||
test_launcher.rb | ||
test_logging.rb | ||
test_manager.rb | ||
test_middleware.rb | ||
test_processor.rb | ||
test_rails.rb | ||
test_redis_connection.rb | ||
test_retry.rb | ||
test_retry_exhausted.rb | ||
test_scheduled.rb | ||
test_scheduling.rb | ||
test_sidekiq.rb | ||
test_testing.rb | ||
test_testing_fake.rb | ||
test_testing_inline.rb | ||
test_util.rb | ||
test_web.rb | ||
test_web_helpers.rb |