Hello community, here is the log from the commit of package rubygem-rails-4_2 for openSUSE:Factory checked in at 2015-08-27 08:57:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-07-08 07:25:00.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rails-4_2.new/rubygem-rails-4_2.changes 2015-08-27 08:57:37.000000000 +0200 @@ -1,0 +2,10 @@ +Tue Aug 25 04:35:26 UTC 2015 - [email protected] + +- updated to version 4.2.4 + see installed CHANGELOG.md + + ## Rails 4.2.4 (August 24, 2015) ## + + * No Changes * + +------------------------------------------------------------------- Old: ---- rails-4.2.3.gem New: ---- rails-4.2.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-rails-4_2.spec ++++++ --- /var/tmp/diff_new_pack.nCCs0Q/_old 2015-08-27 08:57:37.000000000 +0200 +++ /var/tmp/diff_new_pack.nCCs0Q/_new 2015-08-27 08:57:37.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rails-4_2 -Version: 4.2.3 +Version: 4.2.4 Release: 0 %define mod_name rails %define mod_full_name %{mod_name}-%{version} ++++++ rails-4.2.3.gem -> rails-4.2.4.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-06-25 23:30:36.000000000 +0200 +++ new/guides/CHANGELOG.md 2015-08-24 20:23:25.000000000 +0200 @@ -1,3 +1,8 @@ +## Rails 4.2.4 (August 24, 2015) ## + +* No Changes * + + ## Rails 4.2.3 (June 25, 2015) ## * No Changes * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/action_view_overview.md new/guides/source/action_view_overview.md --- old/guides/source/action_view_overview.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/action_view_overview.md 2015-08-24 20:23:25.000000000 +0200 @@ -1110,14 +1110,6 @@ <input name="article[author_ids][]" type="hidden" value="" /> ``` -#### country_options_for_select - -Returns a string of option tags for pretty much any country in the world. - -#### country_select - -Returns select and option tags for the given object and method, using country_options_for_select to generate the list of option tags. - #### option_groups_from_collection_for_select Returns a string of `option` tags, like `options_from_collection_for_select`, but groups them by `optgroup` tags based on the object relationships of the arguments. 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-06-25 23:30:36.000000000 +0200 +++ new/guides/source/active_job_basics.md 2015-08-24 20:23:25.000000000 +0200 @@ -266,6 +266,19 @@ ``` +Internationalization +-------------------- + +Each job uses the `I18n.locale` set when the job was created. Useful if you send +emails asynchronously: + +```ruby +I18n.locale = :eo + +UserMailer.welcome(@user).deliver_later # Email will be localized to Esparanto. +``` + + GlobalID -------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/active_record_basics.md new/guides/source/active_record_basics.md --- old/guides/source/active_record_basics.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/active_record_basics.md 2015-08-24 20:23:25.000000000 +0200 @@ -258,7 +258,7 @@ ```ruby # find all users named David who are Code Artists and sort by created_at in reverse chronological order -users = User.where(name: 'David', occupation: 'Code Artist').order('created_at DESC') +users = User.where(name: 'David', occupation: 'Code Artist').order(created_at: :desc) ``` You can learn more about querying an Active Record model in the [Active Record diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/active_record_validations.md new/guides/source/active_record_validations.md --- old/guides/source/active_record_validations.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/active_record_validations.md 2015-08-24 20:23:25.000000000 +0200 @@ -944,8 +944,9 @@ You can also create methods that verify the state of your models and add messages to the `errors` collection when they are invalid. You must then -register these methods by using the `validate` class method, passing in the -symbols for the validation methods' names. +register these methods by using the `validate` +([API](http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validate)) +class method, passing in the symbols for the validation methods' names. You can pass more than one symbol for each class method and the respective validations will be run in the same order as they were registered. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/active_support_instrumentation.md new/guides/source/active_support_instrumentation.md --- old/guides/source/active_support_instrumentation.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/active_support_instrumentation.md 2015-08-24 20:23:25.000000000 +0200 @@ -305,17 +305,6 @@ } ``` -ActiveResource --------------- - -### request.active_resource - -| Key | Value | -| -------------- | -------------------- | -| `:method` | HTTP method | -| `:request_uri` | Complete URI | -| `:result` | HTTP response object | - Active Support -------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/contributing_to_ruby_on_rails.md new/guides/source/contributing_to_ruby_on_rails.md --- old/guides/source/contributing_to_ruby_on_rails.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/contributing_to_ruby_on_rails.md 2015-08-24 20:23:25.000000000 +0200 @@ -281,7 +281,7 @@ ```bash $ cd actionmailer -$ ruby -w -Itest test/mail_layout_test.rb -n test_explicit_class_layout +$ bundle exec ruby -w -Itest test/mail_layout_test.rb -n test_explicit_class_layout ``` The `-n` option allows you to run a single method instead of the whole diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/getting_started.md new/guides/source/getting_started.md --- old/guides/source/getting_started.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/getting_started.md 2015-08-24 20:23:26.000000000 +0200 @@ -1536,20 +1536,17 @@ create_table :comments do |t| t.string :commenter t.text :body - - # this line adds an integer column called `article_id`. - t.references :article, index: true + t.references :article, index: true, foreign_key: true t.timestamps null: false end - add_foreign_key :comments, :articles end end ``` -The `t.references` line sets up a foreign key column for the association between -the two models. An index for this association is also created on this column. -Go ahead and run the migration: +The `t.references` line creates an integer column called `article_id`, an index +for it, and a foreign key constraint that points to the `articles` table. Go +ahead and run the migration: ```bash $ bin/rake db:migrate @@ -1562,8 +1559,6 @@ == CreateComments: migrating ================================================= -- create_table(:comments) -> 0.0115s --- add_foreign_key(:comments, :articles) - -> 0.0000s == CreateComments: migrated (0.0119s) ======================================== ``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/routing.md new/guides/source/routing.md --- old/guides/source/routing.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/routing.md 2015-08-24 20:23:26.000000000 +0200 @@ -227,7 +227,7 @@ resources :articles, path: '/admin/articles' ``` -In each of these cases, the named routes remain the same as if you did not use `scope`. In the last case, the following paths map to `PostsController`: +In each of these cases, the named routes remain the same as if you did not use `scope`. In the last case, the following paths map to `ArticlesController`: | HTTP Verb | Path | Controller#Action | Named Helper | | --------- | ------------------------ | -------------------- | ---------------------- | @@ -611,6 +611,8 @@ Rails would match `photos/12` to the `show` action of `PhotosController`, and set `params[:format]` to `"jpg"`. +NOTE: You cannot override defaults via query parameters - this is for security reasons. The only defaults that can be overridden are dynamic segments via substitution in the URL path. + ### Naming Routes You can specify a name for any route using the `:as` option: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/guides/source/working_with_javascript_in_rails.md new/guides/source/working_with_javascript_in_rails.md --- old/guides/source/working_with_javascript_in_rails.md 2015-06-25 23:30:36.000000000 +0200 +++ new/guides/source/working_with_javascript_in_rails.md 2015-08-24 20:23:26.000000000 +0200 @@ -355,7 +355,7 @@ Turbolinks attaches a click handler to all `<a>` on the page. If your browser supports -[PushState](https://developer.mozilla.org/en-US/docs/DOM/Manipulating_the_browser_history#The_pushState(\).C2.A0method), +[PushState](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#The_pushState%28%29_method), Turbolinks will make an Ajax request for the page, parse the response, and replace the entire `<body>` of the page with the `<body>` of the response. It will then use PushState to change the URL to the correct one, preserving diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-06-25 23:30:36.000000000 +0200 +++ new/metadata 2015-08-24 20:23:25.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: rails version: !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2015-06-25 00:00:00.000000000 Z +date: 2015-08-24 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,112 +16,112 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: actionpack requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: actionview requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: activemodel requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: activerecord requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: actionmailer requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: activejob requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: railties requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement @@ -400,8 +400,9 @@ version: 1.8.11 requirements: [] rubyforge_project: -rubygems_version: 2.4.5 +rubygems_version: 2.4.7 signing_key: specification_version: 4 summary: Full-stack web application framework. test_files: [] +has_rdoc:
