Hello community, here is the log from the commit of package rubygem-rails-4_2 for openSUSE:Factory checked in at 2015-12-14 10:13:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-rails-4_2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-rails-4_2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rails-4_2" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-rails-4_2/rubygem-rails-4_2.changes 2015-08-27 08:57:37.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rails-4_2.new/rubygem-rails-4_2.changes 2015-12-14 10:13:40.000000000 +0100 @@ -1,0 +2,10 @@ +Fri Nov 13 05:37:13 UTC 2015 - [email protected] + +- updated to version 4.2.5 + see installed CHANGELOG.md + + ## Rails 4.2.5 (November 12, 2015) ## + + * No changes. + +------------------------------------------------------------------- Old: ---- rails-4.2.4.gem New: ---- rails-4.2.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rails-4_2.spec ++++++ --- /var/tmp/diff_new_pack.1XswWT/_old 2015-12-14 10:13:41.000000000 +0100 +++ /var/tmp/diff_new_pack.1XswWT/_new 2015-12-14 10:13:41.000000000 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rails-4_2 -Version: 4.2.4 +Version: 4.2.5 Release: 0 %define mod_name rails %define mod_full_name %{mod_name}-%{version} ++++++ rails-4.2.4.gem -> rails-4.2.5.gem ++++++ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/CHANGELOG.md new/guides/CHANGELOG.md --- old/guides/CHANGELOG.md 2015-08-24 20:23:25.000000000 +0200 +++ new/guides/CHANGELOG.md 2015-11-12 18:06:42.000000000 +0100 @@ -1,3 +1,8 @@ +## Rails 4.2.5 (November 12, 2015) ## + +* No changes. + + ## Rails 4.2.4 (August 24, 2015) ## * No Changes * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/_welcome.html.erb new/guides/source/_welcome.html.erb --- old/guides/source/_welcome.html.erb 2015-08-24 20:23:25.000000000 +0200 +++ new/guides/source/_welcome.html.erb 2015-11-12 18:06:43.000000000 +0100 @@ -15,5 +15,9 @@ </p> <% end %> <p> - The guides for earlier releases: <a href="http://guides.rubyonrails.org/v4.1.8/">Rails 4.1.8</a>, <a href="http://guides.rubyonrails.org/v4.0.12/">Rails 4.0.12</a>, <a href="http://guides.rubyonrails.org/v3.2.21/">Rails 3.2.21</a> and <a href="http://guides.rubyonrails.org/v2.3.11/">Rails 2.3.11</a>. + The guides for earlier releases: + <a href="http://guides.rubyonrails.org/v4.1/">Rails 4.1</a>, + <a href="http://guides.rubyonrails.org/v4.0/">Rails 4.0</a>, + <a href="http://guides.rubyonrails.org/v3.2/">Rails 3.2</a>, and + <a href="http://guides.rubyonrails.org/v2.3/">Rails 2.3</a>. </p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/active_job_basics.md new/guides/source/active_job_basics.md --- old/guides/source/active_job_basics.md 2015-08-24 20:23:25.000000000 +0200 +++ new/guides/source/active_job_basics.md 2015-11-12 18:06:43.000000000 +0100 @@ -65,33 +65,41 @@ class GuestsCleanupJob < ActiveJob::Base queue_as :default - def perform(*args) + def perform(*guests) # Do something later end end ``` +Note that you can define `perform` with as many arguments as you want. + ### Enqueue the Job Enqueue a job like so: ```ruby -# Enqueue a job to be performed as soon the queueing system is free. -MyJob.perform_later record +# Enqueue a job to be performed as soon the queuing system is +# free. +GuestsCleanupJob.perform_later guest ``` ```ruby # Enqueue a job to be performed tomorrow at noon. -MyJob.set(wait_until: Date.tomorrow.noon).perform_later(record) +GuestsCleanupJob.set(wait_until: Date.tomorrow.noon).perform_later(guest) ``` ```ruby # Enqueue a job to be performed 1 week from now. -MyJob.set(wait: 1.week).perform_later(record) +GuestsCleanupJob.set(wait: 1.week).perform_later(guest) ``` -That's it! +```ruby +# `perform_now` and `perform_later` will call `perform` under the hood so +# you can pass as many arguments as defined in the latter. +GuestsCleanupJob.perform_later(guest1, guest2, filter: 'some_filter') +``` +That's it! Job Execution ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/active_record_querying.md new/guides/source/active_record_querying.md --- old/guides/source/active_record_querying.md 2015-08-24 20:23:25.000000000 +0200 +++ new/guides/source/active_record_querying.md 2015-11-12 18:06:43.000000000 +0100 @@ -332,8 +332,6 @@ end ``` -Another example would be if you wanted multiple workers handling the same processing queue. You could have each worker handle 10000 records by setting the appropriate `:start` option on each worker. - #### `find_in_batches` The `find_in_batches` method is similar to `find_each`, since both retrieve batches of records. The difference is that `find_in_batches` yields _batches_ to the block as an array of models, instead of individually. The following example will yield to the supplied block an array of up to 1000 invoices at a time, with the final block containing any remaining invoices: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/configuring.md new/guides/source/configuring.md --- old/guides/source/configuring.md 2015-08-24 20:23:25.000000000 +0200 +++ new/guides/source/configuring.md 2015-11-12 18:06:43.000000000 +0100 @@ -1027,7 +1027,7 @@ Custom configuration -------------------- -You can configure your own code through the Rails configuration object with custom configuration. It works like this: +You can configure your own code through the Rails configuration object with custom configuration under the `config.x` property. It works like this: ```ruby config.x.payment_processing.schedule = :daily @@ -1043,3 +1043,30 @@ Rails.configuration.x.super_debugger # => true Rails.configuration.x.super_debugger.not_set # => nil ``` + +You can also use Rails::Application.config_for to load whole configuration files: + + ```ruby + # config/payment.yml: + production: + environment: production + merchant_id: production_merchant_id + public_key: production_public_key + private_key: production_private_key + development: + environment: sandbox + merchant_id: development_merchant_id + public_key: development_public_key + private_key: development_private_key + + # config/application.rb + module MyApp + class Application < Rails::Application + config.x.payment = Rails.application.config_for(:payment) + end + end + ``` + + ```ruby + Rails.configuration.x.payment.merchant_id # => production_merchant_id or development_merchant_id + ``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/security.md new/guides/source/security.md --- old/guides/source/security.md 2015-08-24 20:23:26.000000000 +0200 +++ new/guides/source/security.md 2015-11-12 18:06:43.000000000 +0100 @@ -699,7 +699,7 @@ GET http://www.attacker.com/_app_session=836c1c25278e5b321d6bea4f19cb57e2 ``` -You can mitigate these attacks (in the obvious way) by adding the [httpOnly](http://dev.rubyonrails.org/ticket/8895) flag to cookies, so that document.cookie may not be read by JavaScript. Http only cookies can be used from IE v6.SP1, Firefox v2.0.0.5 and Opera 9.5. Safari is still considering, it ignores the option. But other, older browsers (such as WebTV and IE 5.5 on Mac) can actually cause the page to fail to load. Be warned that cookies [will still be visible using Ajax](http://ha.ckers.org/blog/20070719/firefox-implements-httponly-and-is-vulnerable-to-xmlhttprequest/), though. +You can mitigate these attacks (in the obvious way) by adding the **httpOnly** flag to cookies, so that document.cookie may not be read by JavaScript. Http only cookies can be used from IE v6.SP1, Firefox v2.0.0.5 and Opera 9.5. Safari is still considering, it ignores the option. But other, older browsers (such as WebTV and IE 5.5 on Mac) can actually cause the page to fail to load. Be warned that cookies [will still be visible using Ajax](https://www.owasp.org/index.php/HTTPOnly#Browsers_Supporting_HttpOnly), though. ##### Defacement diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-08-24 20:23:25.000000000 +0200 +++ new/metadata 2015-11-12 18:06:42.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: rails version: !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2015-08-24 00:00:00.000000000 Z +date: 2015-11-12 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,112 +16,112 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: actionpack requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: actionview requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: activemodel requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: activerecord requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: actionmailer requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: activejob requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: railties requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.4 + version: 4.2.5 - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement @@ -400,9 +400,8 @@ version: 1.8.11 requirements: [] rubyforge_project: -rubygems_version: 2.4.7 +rubygems_version: 2.4.5.1 signing_key: specification_version: 4 summary: Full-stack web application framework. test_files: [] -has_rdoc:
