1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/test
Edward Anderson 2f9258e4fe Put source encoding comment as line for (j)ruby 1.9 compatibility (#3255)
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.
2016-11-22 20:39:00 -08:00
..
fixtures Allow dynamic sidekiq-web locale paths, for localized extensions, fixes #1261 2013-10-21 12:07:18 -07:00
config.yml Dont use logger in options parsing, fixes #1335 2013-11-13 21:33:44 -08:00
env_based_config.yml Clean up option processing 2013-01-18 20:57:26 -08:00
fake_env.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
helper.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_actors.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_api.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_cli.rb Fix Ruby warnings, thanks for the reminder @nateberkopec 2016-08-30 13:29:03 -07:00
test_client.rb Handle case of no jobs to push_bulk, fixes #2997 2016-05-31 10:05:16 -07:00
test_exception_handler.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_extensions.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_fetch.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_launcher.rb Add event when a process has a new heartbeat 2016-08-12 12:34:41 -07:00
test_logging.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_manager.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_middleware.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_processor.rb Pass job hash to handle_exception again (#3224) 2016-11-06 13:11:07 -08:00
test_rails.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_redis_connection.rb Symbolize keys in options hash for RedisConnection.create 2016-05-26 12:50:37 +07:00
test_retry.rb Put source encoding comment as line for (j)ruby 1.9 compatibility (#3255) 2016-11-22 20:39:00 -08:00
test_retry_exhausted.rb switch syntax for jruby 2016-02-04 10:40:46 -08:00
test_scheduled.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_scheduling.rb Fix the error in worker#perform_in about interval type (#3170) 2016-09-30 02:31:08 -07:00
test_sidekiq.rb Put source encoding comment as line for (j)ruby 1.9 compatibility (#3255) 2016-11-22 20:39:00 -08:00
test_testing.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00
test_testing_fake.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_testing_inline.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_util.rb Merge branch 'master' into frozen 2016-04-21 13:15:00 -07:00
test_web.rb Put source encoding comment as line for (j)ruby 1.9 compatibility (#3255) 2016-11-22 20:39:00 -08:00
test_web_helpers.rb Freeze all string literals in source, fixes #2741 2015-12-31 15:33:35 -08:00