ruby-changes:47000
From: hsbt <ko1@a...>
Date: Mon, 19 Jun 2017 22:03:11 +0900 (JST)
Subject: [ruby-changes:47000] hsbt:r59115 (trunk): Make string literal to frozen object on gemspec of defulte gems.
hsbt 2017-06-19 22:03:06 +0900 (Mon, 19 Jun 2017) New Revision: 59115 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59115 Log: Make string literal to frozen object on gemspec of defulte gems. Added following gemspecs. * extensions: date, dbm, etc, fiddle, gdbm, sdbm, stringio, strscan, zlib * pure ruby libraries: cmath, csv, fileutils, scanf, webrick psych and rdoc is out of scope of this commit. I will merge after upstream was change to `frozen_string_literal: true`. Modified files: trunk/ext/date/date.gemspec trunk/ext/dbm/dbm.gemspec trunk/ext/etc/etc.gemspec trunk/ext/fiddle/fiddle.gemspec trunk/ext/gdbm/gdbm.gemspec trunk/ext/sdbm/sdbm.gemspec trunk/ext/stringio/stringio.gemspec trunk/ext/strscan/strscan.gemspec trunk/ext/zlib/zlib.gemspec trunk/lib/cmath.gemspec trunk/lib/csv.gemspec trunk/lib/fileutils.gemspec trunk/lib/scanf.gemspec trunk/lib/webrick/webrick.gemspec Index: ext/gdbm/gdbm.gemspec =================================================================== --- ext/gdbm/gdbm.gemspec (revision 59114) +++ ext/gdbm/gdbm.gemspec (revision 59115) @@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.gemspec#L1 # coding: utf-8 +# frozen_string_literal: true Gem::Specification.new do |spec| spec.name = "gdbm" Index: ext/etc/etc.gemspec =================================================================== --- ext/etc/etc.gemspec (revision 59114) +++ ext/etc/etc.gemspec (revision 59115) @@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.gemspec#L1 # coding: utf-8 +# frozen_string_literal: true Gem::Specification.new do |spec| spec.name = "etc" Index: ext/strscan/strscan.gemspec =================================================================== --- ext/strscan/strscan.gemspec (revision 59114) +++ ext/strscan/strscan.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "strscan" s.version = '0.0.1' Index: ext/sdbm/sdbm.gemspec =================================================================== --- ext/sdbm/sdbm.gemspec (revision 59114) +++ ext/sdbm/sdbm.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/sdbm/sdbm.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "sdbm" s.version = '0.0.1' Index: ext/zlib/zlib.gemspec =================================================================== --- ext/zlib/zlib.gemspec (revision 59114) +++ ext/zlib/zlib.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "zlib" s.version = '0.0.1' Index: ext/date/date.gemspec =================================================================== --- ext/date/date.gemspec (revision 59114) +++ ext/date/date.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/date/date.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "date" s.version = '0.0.1' Index: ext/fiddle/fiddle.gemspec =================================================================== --- ext/fiddle/fiddle.gemspec (revision 59114) +++ ext/fiddle/fiddle.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/fiddle.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |spec| spec.name = "fiddle" spec.version = '1.0.0.beta1' Index: ext/stringio/stringio.gemspec =================================================================== --- ext/stringio/stringio.gemspec (revision 59114) +++ ext/stringio/stringio.gemspec (revision 59115) @@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.gemspec#L1 # -*- encoding: utf-8 -*- +# frozen_string_literal: true # stub: stringio 0.0.0 ruby lib # stub: extconf.rb Index: ext/dbm/dbm.gemspec =================================================================== --- ext/dbm/dbm.gemspec (revision 59114) +++ ext/dbm/dbm.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "dbm" s.version = '0.5.1' Index: lib/webrick/webrick.gemspec =================================================================== --- lib/webrick/webrick.gemspec (revision 59114) +++ lib/webrick/webrick.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/webrick/webrick.gemspec#L1 +# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path('../lib', __FILE__) require 'webrick/version' Index: lib/fileutils.gemspec =================================================================== --- lib/fileutils.gemspec (revision 59114) +++ lib/fileutils.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/fileutils.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "fileutils" s.version = '0.7.2' Index: lib/scanf.gemspec =================================================================== --- lib/scanf.gemspec (revision 59114) +++ lib/scanf.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/scanf.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "scanf" s.version = '0.0.1' Index: lib/csv.gemspec =================================================================== --- lib/csv.gemspec (revision 59114) +++ lib/csv.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/csv.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "csv" s.version = '0.0.1' Index: lib/cmath.gemspec =================================================================== --- lib/cmath.gemspec (revision 59114) +++ lib/cmath.gemspec (revision 59115) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/cmath.gemspec#L1 +# frozen_string_literal: true Gem::Specification.new do |s| s.name = "cmath" s.version = '0.0.1' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/