Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#28431], Adds time zone mapping with country codes for El Salvador #28457

Closed
wants to merge 707 commits into from
Closed

[#28431], Adds time zone mapping with country codes for El Salvador #28457

wants to merge 707 commits into from

Conversation

azeezahmed
Copy link

Summary

guilleiguaran and others added 30 commits October 16, 2016 20:12
Bump bundler version in the before_install hook of travis
This reverts commit 4cf4c86.

Reason: It broke the build
Listen, when used on JRuby, does have have access to synchronous
filesystem events. Instead, it uses a listen loop which has some
delay in registering filesystem changes. These tests checked for
events to have fired immediately after making filesystem changes,
which did not allow time for that listen loop to trigger. I added
`wait` to each test, as a few already did, to ensure the events
fire. With these changes, the tests are all green on JRuby.
Wait for file events to propagated for slower Listen backends.
JRuby does not support fork, so this test will never pass. Omit it
when running on JRuby.
blade has a transitive dependency on curses, which is a C ext and
does not install on JRuby.
…ruby

Mask forking filesystem event on JRuby.
[ci skip]

This was pointed out on
#15583 (comment)

The comment was lost in the changes made by
fcd0ac0 and
3e1373a
This is a follow up to #25681, specifically this comment:
#25681 (comment)

The way the thread local variable is stored is an implementation detail
and subject to change. It makes no sense to only generate a reader or
writer as you'd have to know where to read from or where it writes to.
`copy_time_to` is a helper function for date and time calculations.
It's being used by `prev_week`, `next_week` and `prev_weekday` to keep
the time fraction when jumping around between days.

Previously the nanoseconds part was lost during the operation. This
lead to problems in practice if you were using the `end_of_day`
calculation. Resulting in the time fraction of `end_of_day` not being
the same as next week's `end_of_day`.

With this fix `copy_time_to` doesn't forget the `nsec` digits.

(cherry picked from commit fc72d68)
…helper

Add examples of queue_adapter and perform_enqueued jobs to API Docs.
This reverts commit 5dde413.

Reason: The gem defines it so we don't need to remove
The test framework should not be autoloaded in production mode.  Before
this commit, the testing railtie would extend AS::TestCase.  This caused
AS::TestCase to be preloaded regardless of the environment in which we
were running.

This commit just moves the code that adds line filtering support in to
the test command where we actually execute the test runner.  That allows
us to maintain the line runner feature but only load the minimal amount
of code we need.
Skip test that depends on RubyVM when it is not available (JRuby).
Soften this test since YAML.dump may produce keys in other orders.
Lazy-load blade for actioncable tests; no blade on JRuby.
Add missing require in active_support/hash_with_indifferent_access.rb
generate mailer layout files if it does not already exist
Convert ActionController::Parameters to a hash in button_to
We need to use on_load so that plugins will get the same functionality
The first release note entry mentioned #on_weekday?, but that was only
added by the second PR mentioned there. To simplify reading the notes
just merge the two, since they are related methods. [ci skip]
* Put a blank line after :call-seq: otherwise it will think the whole test
is the call seq.
* Improve some text.
* Use some rdoc formatting.
* Restores the documentation of table_name_prefix.

[ci skip]
…tests

Fix brittle tests which were relying on the error message text from mysql2 gem
This image has copyright that we are not giving so it is better to use
one image that we own the copyright.
There were never public API only there by mistake.

[ci skip]
This executor currently relies on `ActiveRecord::Base.connection` not
changing between `prepare` and `complete`. If something else returns
the current ActiveRecord connection to the pool early then this
`complete` call will fail to clear the correct query cache and restore
the original `query_cache_enabled` status.

This has for example been happening in Sidekiq:

     sidekiq/sidekiq#3166

We can just keep track of the connection as part of the exector state.
kaspth and others added 24 commits February 20, 2017 22:30
…et_to_run_via

Prevent multiple values being set to `run_via`
Symptom:
/home/rubys/git/rails/railties/lib/rails/commands/test.rb:9:in `<top (required)>': wrong number of arguments (given 2, expected 1) (ArgumentError)
	from /home/rubys/git/rails/railties/lib/rails/commands/commands_tasks.rb:138:in `require'
	from /home/rubys/git/rails/railties/lib/rails/commands/commands_tasks.rb:138:in `require_command!'
	from /home/rubys/git/rails/railties/lib/rails/commands/commands_tasks.rb:95:in `test'
	from /home/rubys/git/rails/railties/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
	from /home/rubys/git/rails/railties/lib/rails/commands.rb:18:in `<top (required)>'
	from bin/rails:4:in `require'
	from bin/rails:4:in `<main>'

See:

http://intertwingly.net/projects/AWDwR4/checkdepot-50/section-7.1.html#cmd9
```
Minitest.run_via[:rails] = true
```

👆 would break because a simple alias won't catch the second
true argument there.
Bundler 1.14.5 moved to lazily loading 'rubygems/spec_fetcher' which
revealed some missing requires from the JSON encoding test file.
Further missing requires for Timeout exposed due to Bundler 1.14.5
ensure `#compact` of HWIDA to return HWIDA
Fix `wait_timeout` to configurable for mysql2 adapter
…d-rails-engine-take-2

Fix generator command for nested (namespaced) rails engine (take 2)
Make HWIA#compact not return nil when no nils
Add missing gzip footer check in ActiveSupport::Gzip.decompress
Allow ActiveSupport::MarshalWithAutoloading#load to take a Proc
…ramework_option

Use appropriate type for `test_framework` option
I'm sorry for causing #24168. I wasn't aware of --no-helper and --no-assets.
So I'm adding them to the help message.
I'm still not sure how to show `--no-test-framework` though.
@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @senny (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review.

Please see the contribution instructions for more information.

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-0-stable. Please double check that you specified the right target!

@azeezahmed azeezahmed changed the base branch from 5-0-stable to master March 17, 2017 07:25
@azeezahmed azeezahmed closed this Mar 17, 2017
@azeezahmed azeezahmed deleted the issue_28431_time_zone_addition branch March 17, 2017 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet