# \[Bug #827\] Fix document for Gem::Installer#write\_spec

**URL:** <https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920>\
**Category:** Development\
**Created:** [December 5, 2008, 6:41am UTC](https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920 "2008-12-05T06:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [December 5, 2008, 6:41am UTC](https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920/1 "2008-12-05T06:41:40Z")

</div>

Bug #827: Fix document for Gem::Installer#write\_spec  
[http://redmine.ruby-lang.org/issues/show/827](http://redmine.ruby-lang.org/issues/show/827)

e$B5/I\<\<Te(B: okkez \_  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
e$B%+%F%4%je(B: lib

e$B%3!\<%I$H%I%-%e%a%s%H$,0lCW$7$F$$$J$$$h$&$@$C$?$N$G=$@5$7$F$\_$^$7$?!#e(B

# Index: lib/rubygems/installer.rb

— lib/rubygems/installer.rb (revision 20439)  
+++ lib/rubygems/installer.rb (working copy)  
@@ -270,11 +270,7 @@  
end

## 

- 
# Writes the .gemspec specification (in Ruby) to the supplied
- 
# spec\_path.
- 
# 
- 
# spec:: [Gem::Specification] The Gem specification to output
- 
# spec\_path:: [String] The location (path) to write the gemspec to

- 
# Writes the .gemspec specification (in Ruby).

def write\_spec  
rubycode = @spec.to\_ruby

---

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [December 11, 2008, 3:28am UTC](https://www.ruby-forum.com/t/bug-827-fix-document-for-gem-installer-write-spec/154920/2 "2008-12-11T03:28:36Z")

</div>

e$B%A%1%C%He(B #827 e$B$,99?7$5$l$^$7$?!#e(B (by Yuki S.)

## Erice$B$K3NG’$7$^$9e(B

[http://redmine.ruby-lang.org/issues/show/827](http://redmine.ruby-lang.org/issues/show/827)
