Hello community, here is the log from the commit of package rubygem-jbuilder for openSUSE:Factory checked in at 2015-03-23 12:18:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-jbuilder (Old) and /work/SRC/openSUSE:Factory/.rubygem-jbuilder.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-jbuilder" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-jbuilder/rubygem-jbuilder.changes 2015-03-12 16:38:54.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-jbuilder.new/rubygem-jbuilder.changes 2015-03-23 12:18:21.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Mar 20 20:46:24 UTC 2015 - [email protected] + +- updated to version 2.2.12 + [Replace explici block calls with yield for performance] + +------------------------------------------------------------------- Old: ---- jbuilder-2.2.11.gem New: ---- jbuilder-2.2.12.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-jbuilder.spec ++++++ --- /var/tmp/diff_new_pack.hPM2Dp/_old 2015-03-23 12:18:21.000000000 +0100 +++ /var/tmp/diff_new_pack.hPM2Dp/_new 2015-03-23 12:18:21.000000000 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-jbuilder -Version: 2.2.11 +Version: 2.2.12 Release: 0 %define mod_name jbuilder %define mod_full_name %{mod_name}-%{version} ++++++ jbuilder-2.2.11.gem -> jbuilder-2.2.12.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2015-03-07 06:48:34.000000000 +0100 +++ new/CHANGELOG.md 2015-03-20 05:23:14.000000000 +0100 @@ -1,5 +1,10 @@ # Changelog +2.2.12 +------ + +* [Replace explici block calls with yield for performance](https://github.com/rails/jbuilder/commit/3184f941276ad03a071cf977133d1a32302afa47) + 2.2.11 ------ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jbuilder.gemspec new/jbuilder.gemspec --- old/jbuilder.gemspec 2015-03-07 06:48:34.000000000 +0100 +++ new/jbuilder.gemspec 2015-03-20 05:23:14.000000000 +0100 @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'jbuilder' - s.version = '2.2.11' + s.version = '2.2.12' s.authors = ['David Heinemeier Hansson', 'Pavel Pravosud'] s.email = ['[email protected]', '[email protected]'] s.summary = 'Create JSON structures via a Builder-style DSL' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jbuilder/jbuilder_template.rb new/lib/jbuilder/jbuilder_template.rb --- old/lib/jbuilder/jbuilder_template.rb 2015-03-07 06:48:34.000000000 +0100 +++ new/lib/jbuilder/jbuilder_template.rb 2015-03-20 05:23:14.000000000 +0100 @@ -9,9 +9,9 @@ self.template_lookup_options = { handlers: [:jbuilder] } - def initialize(context, *args, &block) + def initialize(context, *args) @context = context - super(*args, &block) + super(*args) end def partial!(name_or_options, locals = {}) @@ -74,8 +74,8 @@ # json.cache_if! !admin?, @person, expires_in: 10.minutes do # json.extract! @person, :name, :age # end - def cache_if!(condition, *args, &block) - condition ? cache!(*args, &block) : yield + def cache_if!(condition, *args) + condition ? cache!(*args, &::Proc.new) : yield end protected diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jbuilder.rb new/lib/jbuilder.rb --- old/lib/jbuilder.rb 2015-03-07 06:48:34.000000000 +0100 +++ new/lib/jbuilder.rb 2015-03-20 05:23:14.000000000 +0100 @@ -18,18 +18,18 @@ end # Yields a builder and automatically turns the result into a JSON string - def self.encode(*args, &block) - new(*args, &block).target! + def self.encode(*args) + new(*args, &::Proc.new).target! end BLANK = Blank.new - def set!(key, value = BLANK, *args, &block) - result = if block + def set!(key, value = BLANK, *args) + result = if ::Kernel.block_given? if !_blank?(value) # json.comments @post.comments { |comment| ... } # { "comments": [ { ... }, { ... } ] } - _scope{ array! value, &block } + _scope{ array! value, &::Proc.new } else # json.comments { ... } # { "comments": ... } @@ -174,11 +174,11 @@ # json.array! [1, 2, 3] # # [1,2,3] - def array!(collection = [], *attributes, &block) + def array!(collection = [], *attributes) array = if collection.nil? [] - elsif block - _map_collection(collection, &block) + elsif ::Kernel.block_given? + _map_collection(collection, &::Proc.new) elsif attributes.any? _map_collection(collection) { |element| extract! element, *attributes } else @@ -213,9 +213,9 @@ end end - def call(object, *attributes, &block) - if block - array! object, &block + def call(object, *attributes) + if ::Kernel.block_given? + array! object, &::Proc.new else extract! object, *attributes end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-03-07 06:48:34.000000000 +0100 +++ new/metadata 2015-03-20 05:23:14.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: jbuilder version: !ruby/object:Gem::Version - version: 2.2.11 + version: 2.2.12 platform: ruby authors: - David Heinemeier Hansson @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2015-03-07 00:00:00.000000000 Z +date: 2015-03-20 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
