class AddAccountLink
include CGI::Util
def add_pair(job)
# yield a (name, value) pair
# You can include HTML tags and CSS, Sidekiq does not do any
# escaping so beware user data injection! Note how we use CGI's
# h escape helper.
aid = job["account_id"]
yield "Account", "<a href='/accounts/#{h aid}'>#{h aid}</a>" if aid
end
end
7.0.1
Allow an embedding process to reuse its own heartbeat thread
Change ActiveRecord::Coders::YAMLColumn default to safe_load
This adds two new configuration options The configuration options are as
follows:
config.active_storage.use_yaml_unsafe_load
When set to true, this configuration option tells Rails to use the old
"unsafe" YAML loading strategy, maintaining the existing behavior but leaving
the possible escalation vulnerability in place. Setting this option to true
is not recommended, but can aid in upgrading.
The "safe YAML" loading method does not allow all classes to be deserialized
by default. This option allows you to specify classes deemed "safe" in your
application. For example, if your application uses Symbol and Time in
serialized data, you can add Symbol and Time to the allowed list as follows:
Using policy_class and a namespaced record now passes only the record when instantiating the policy. (#697, #689, #694, #666)
Changed
Require users to explicitly define Scope#resolve in generated policies (#711, #722)
Deprecated
Deprecate include Pundit in favor of include Pundit::Authorization (#621)
2.1.1 (2021-08-13)
Friday 13th-release!
Careful! The bugfix below (#626) could break existing code. If you rely on the
return value for authorize and namespaced policies you might need to do some
changes.
Fixed
.authorize and #authorize return the instance, even for namespaced
policies (#626)
Changed
Generate application scope with protected attr_readers. (#616)
Removed
Dropped support for Ruby end-of-life versions: 2.1 and 2.2. (#604)
Dropped support for Ruby end-of-life versions: 2.3 (#633)
Dropped support for Ruby end-of-life versions: 2.4, 2.5 and JRuby 9.1 (#676)
Prevent generated job specs from duplicating _job in filenames.
(Nick Flückiger, #2496)
Fix ActiveRecord::TestFixture#uses_transaction by using example description
to replace example name rather than example in our monkey patched
run_in_transaction? method. (Stan Lo, #2495)
Prevent keyword arguments being lost when methods are invoked dynamically
in controller specs. (Josh Cheek, #2509, #2514)
Fix automatic disconnection when the process was forked. See #1157.
5.0.4
Cast ttl argument to integer in expire, setex and a few others.
5.0.3
Add OutOfMemoryError as a subclass of CommandError
5.0.2
Fix Redis#close to properly reset the fork protection check.
5.0.1
Added a fake Redis::Connections.drivers method to be compatible with older sidekiq versions.
5.0.0
Eagerly and strictly cast Integer and Float parameters.
Allow to call subscribe, unsubscribe, psubscribe and punsubscribe from a subscribed client. See #1131.
Use MD5 for hashing server nodes in Redis::Distributed. This should improve keys distribution among servers. See #1089.
Changed sadd and srem to now always return an Integer.
Added sadd? and srem? which always return a Boolean.
Added support for IDLE paramter in xpending.
Cluster support has been moved to a redis-clustering companion gem.
select no longer record the current database. If the client has to reconnect after select was used, it will reconnect to the original database.
Better support Float timeout in blocking commands. See #977.
Redis.new will now raise an error if provided unknown options.
Removed positional timeout in blocking commands (BLPOP, etc). Timeout now must be passed as an option: r.blpop("key", timeout: 2.5)
Removed logger option.
Removed reconnect_delay_max and reconnect_delay, you can pass precise sleep durations to reconnect_attempts instead.
Require Ruby 2.5+.
Removed the deprecated queue and commit methods. Use pipelined instead.
Removed the deprecated Redis::Future#==.
Removed the deprecated pipelined and multi signature. Commands now MUST be called on the block argument, not the original redis instance.
Removed Redis.current. You shouldn't assume there is a single global Redis connection, use a connection pool instead,
and libaries using Redis should accept a Redis instance (or connection pool) as a config. E.g. MyLibrary.redis = Redis.new(...).
Removed the synchrony driver.
Removed Redis.exists_returns_integer, it's now always enabled.
4.8.0
Introduce sadd? and srem? as boolean returning versions of sadd and srem.
Deprecate sadd and srem returning a boolean when called with a single argument.
To enable the redis 5.0 behavior you can set Redis.sadd_returns_boolean = false.
Deprecate passing timeout as a positional argument in blocking commands (brpop, blop, etc).
factory_bot_rails versioning is synced with factory_bot releases. For this reason
there might not be any notable changes in new versions of this project.
NEWS
6.2.0 (May 7, 2021)
Changed: factory_bot dependency to ~> 6.2.0
6.1.0 (July 8, 2020)
Changed: factory_bot dependency to ~> 6.1.0
6.0.0 (June 18, 2020)
Fixed: generate a plural factory name when the --force-plural flag is provided
Changed: factory_bot dependency to ~> 6.0.0
Removed: "factory_bot.register_reloader" initializer, now registering the
reloader after application initialization
Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
5.2.0 (April 26, 2020)
Changed: factory_bot dependency to ~> 5.2.0
5.1.1 (September 24, 2019)
Fixed: Ensure definitions do not load before I18n is initialized
5.1.0 (September 24, 2019)
Changed: factory_bot dependency to ~> 5.1.0
5.0.2 (April 14, 2019)
Bugfix: Reload factory_bot whenever the application changes to avoid holding
onto stale object references
Bugfix: Avoid watching project root when no factory definitions exist
5.0.1 (February 9, 2019)
Bugfix: Avoid watching files and directories that don't exist (to avoid a
file watching bug in Rails rails/rails#32700)
5.0.0 (February 1, 2019)
Added: calling reload! in the Rails console will reload any factory definition files that have changed
Added: support for custom generator templates
Added: definition_file_paths configuration option, making it easier to place factories in custom locations
Changed: namespaced models are now generated inside a directory matching the namespace
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/zooniverse/talk-api/network/alerts).
Bumps sinatra, rack-cors, sidekiq, rails, logstasher, json-schema_builder, pundit, rspec-rails, redis, factory_girl_rails, schema_plus_pg_indexes and zooniverse_social. These dependencies needed to be updated together. Updates
sinatra
from 1.4.8 to 3.0.4Changelog
Sourced from sinatra's changelog.
... (truncated)
Commits
eca7b54
3.0.4 releasebbc1d47
Merge pull request #1841 from sinatra/filename-escapingea8fc94
escape filename in the Content-Disposition headerc90f203
Merge pull request #1839 from andrykonchin/ak/skip-falcon-in-specs42e3eed
Don't run integration specs on falcon against TruffleRubycafaab9
3.0.3 release44ff149
Merge pull request #1835 from dentarg/puma-edge-jobe328d08
CI: fix typo in job name variable88844e4
CI: shorter job name9b5fcd0
CI: include Puma in job nameUpdates
rack-cors
from 1.0.6 to 1.1.1Changelog
Sourced from rack-cors's changelog.
Commits
6fbc109
Up gem version8572837
Allow more flexible <resource>/* matchinga5b2d5a
Bump puma from 3.12.1 to 3.12.2 in /examples/rails5f962395
Bump rack from 2.0.6 to 2.0.8 in /examples/rack14b6bed
Bump rack from 2.0.7 to 2.0.8 in /examples/rails5dc58f04
Remove Rails 4 examplef42315e
Update Rails/Rack examplesc8f9a61
Return 400 on preflight for invalid requestsed91aef
Don’t attempt to clean path if it is invalidf971f24
Check to see if path is valid before cleaningUpdates
sidekiq
from 5.2.8 to 7.0.2Changelog
Sourced from sidekiq's changelog.
... (truncated)
Commits
93f8ede
latest changes621cab6
changes0bf4a43
Require latest redis-client version for #67b8fa4d1
Update standardrb gem, formatting updateaac4237
Adjust deploy API so you can easily pass in custom pool, #564778deaa5
Revert "Use configured Redis pool in Sidekiq::Deploy (#5647)"8e3f8f5
Make ::Logger patching optional, fixes #5673c4dbc92
Further reduce Sidekiq-specific shim so Sidekiq will work with plain old redi...96552f6
bump1db35cc
update doc with correct method name for retrieving global config (#5648)Updates
rails
from 4.2.11.3 to 5.2.8.1Release notes
Sourced from rails's releases.
... (truncated)
Commits
8030cff
Preparing for 5.2.8.1 release85b72c3
Ruby 3.1 compatibilityec10235
updating version and changelog6576aa7
Change ActiveRecord::Coders::YAMLColumn default to safe_load2652133
Preparing for 5.2.8 releasea1b8a9b
Merge pull request #45027 from rails/fix-tag-helper-regressioncfef5e9
Merge pull request #44966 from fallwith/patch-1cd9d9f0
retain Ruby 2.2 compatibility for Rails 5.29f3761a
Merge branch '5-2-sec' into 5-2-stableb290430
Preparing for 5.2.7.1 releaseUpdates
logstasher
from 0.9.0 to 2.1.5Release notes
Sourced from logstasher's releases.
Changelog
Sourced from logstasher's changelog.
Commits
63af9dd
Version bump after merging #1700d2d180
Ensure that default_source is defined before it gets invoked on Railtie class...ee918a7
Version bump after merging #169821ef54
Fix default value of source option (#169)3bc905f
Bump version after PR merge #168090dcfb
Updated version of the add_backtrace_filter PR (#168)390c890
Version bump after merging #167c276471
Use ActiveJob’s serialiser to serialise AJ arguments (#167)764d0dd
Rubocop run (#166)aac51d2
Trim spec_helper fileUpdates
json-schema_builder
from 0.0.8 to 0.8.2Commits
0adaef5
Bugfix Entity#required= with non-true values44dc6a4
Allow required property errors to be customized more easily3b6e870
Bump version90e16e4
Allow entity definitions to reopened and extendeda1931ce
Allow schemas to be built iterativelya0ec3a9
Bump versionf5ee96d
Prevent array items from attempting to merge anyOf children. Fixes #67b5c302
Merge pull request #3 from jirutka/pattern_properties372d069
Fix pattern_properties to be actually usablecc16075
Bump versionUpdates
pundit
from 1.1.0 to 2.2.0Changelog
Sourced from pundit's changelog.
... (truncated)
Commits
d569083
Release v2.2.0a636019
Merge pull request #722 from varvet/kbs+dgms/test-generators5acf84c
Merge pull request #710 from petergoldstein/feature/add_ruby_3_1_to_travis44cfa73
Require users to explicitly define Scope#resolve54675c6
Merge pull request #717 from drewmoore/update-documentation-for-headless-poli...856d74d
Merge pull request #719 from varvet/kbs/add-documentation-note-to-README3aefb95
Add another note about API documentation67e0dd3
Remove Struct inheritance from headless policy example3c725c7
Merge pull request #708 from MarceloAGuimaraes/update-rubocop4bb0c7d
Removing ruby 2.6 as required version because JRuby jruby-9.2 considers itsel...Updates
rspec-rails
from 3.4.2 to 5.1.2Release notes
Sourced from rspec-rails's releases.
Changelog
Sourced from rspec-rails's changelog.
... (truncated)
Commits
7faa22c
Version 5.1.242eaba8
Changelog for #259719d6165
Merge pull request #2597 from jasonkarns/patch-14e87c78
Changelog for #25911c35c19
Merge pull request #2591 from taketo1113/controller-spec-update056432f
Version 5.1.1f21521a
Changelog for #2578d7e5638
Merge pull request #2578 from rspec/have-enqueued-mail-fix6f029a8
Add regression check for mailer with global job is and fix swapped argument bug29a0f93
Fix Ruby 2.2 buildsUpdates
redis
from 3.3.5 to 5.0.5Changelog
Sourced from redis's changelog.
... (truncated)
Commits
f3d886f
Release 5.0.5bdd51c9
Bump redis-cluster-client9429205
Merge pull request #1158 from casperisfine/fork-handling389d8b6
Fix automatic disconnection when the process was forkedfdf61e5
Merge pull request #1156 from roharon/hash_flatten_performance525e5c4
Modify: improve performance of hash flatten without to_a method912c008
Merge pull request #1155 from dentarg/patch-1371d8c1
Fix Ruby syntax in example in README07cccee
Merge pull request #1153 from supercaracal/fix-cluster-testd6cf651
Shrink cluster test cases guaranteed by redis-cluster-client and focus on beh...Updates
factory_girl_rails
from 4.7.0 to 4.9.0Release notes
Sourced from factory_girl_rails's releases.
Changelog
Sourced from factory_girl_rails's changelog.
... (truncated)
Commits
13ecff9
Bump version to 4.9.0ebd3310
Update FactoryGirl requirement to 4.9.0dca3731
Bump version to 4.8.091dfdca
Update Factory Girl requirement to 4.8.04a7afc4
Updates ReadMe to recommend environments for gemec478f1
Appraise against Rails 5.04044827
link to confguring the test suitea44854d
Update Gemspec file to not usegit ls-files
282b293
Add $ to command line instruction24f3624
update gemspec descriptionUpdates
schema_plus_pg_indexes
from 0.1.12 to 0.3.2Commits
a7e2d23
version bump to 0.3.2d1b39ec
add rails 5.2 supportcba2661
relax rspec version constraint46db5ce
version bump 0.3.1c71d49f
Merge pull request #19 from joxxoxo/fix-schema-dump-for-complex-order-clausea741253
Fix schema dump for complex order clausea583df3
version bump 0.3.0ee595b0
change "History" => "Release Notes"f8b4e2d
Merge branch 'AR-5.1'f3fbba6
adjust expectations to match AR 5.1 dumpUpdates
zooniverse_social
from 1.1.0 to 1.2.0Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/zooniverse/talk-api/network/alerts).