Issue #11691 has been reported by Tsuyoshi Sawada.

----------------------------------------
Bug #11691: Permission denied @ rb_sysopen did_you_mean-1.0.0.beta3.gemspec
https://bugs.ruby-lang.org/issues/11691

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
When I ruby Ruby, I get this error:

~~~
/usr/local/lib/ruby/2.3.0/rubygems/stub_specification.rb:80:in `initialize': Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.3.0/specifications/did_you_mean-1.0.0.beta3.gemspec (Errno::EACCES)
	from /usr/local/lib/ruby/2.3.0/rubygems/stub_specification.rb:80:in `open'
	from /usr/local/lib/ruby/2.3.0/rubygems/stub_specification.rb:80:in `data'
	from /usr/local/lib/ruby/2.3.0/rubygems/stub_specification.rb:186:in `valid?'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:749:in `select'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:749:in `gemspec_stubs_in'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:755:in `block in map_stubs'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:755:in `each'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:755:in `flat_map'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:755:in `map_stubs'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:806:in `stubs'
	from /usr/local/lib/ruby/2.3.0/rubygems/specification.rb:1009:in `find_by_path'
	from /usr/local/lib/ruby/2.3.0/rubygems.rb:188:in `try_activate'
	from /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
	from /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:39:in `require'
	from <internal:gem_prelude>:4:in `<compiled>'

~~~



-- 
https://bugs.ruby-lang.org/