about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2010-09-28 00:27:44 +0000
committerEric Wong <e@yhbt.net>2010-09-28 00:28:49 +0000
commite4d204c86e9420023ba3e4d8dbeb6b3fea8d6cf7 (patch)
tree09aaf958bb9ba7a7baed629e3cc5b3f6231cce58
parent8984b9556a3493570fbb4f747fce712d58f2cdd8 (diff)
downloadkgio-e4d204c86e9420023ba3e4d8dbeb6b3fea8d6cf7.tar.gz
Documentation and release infrastructure updates
and such...
-rwxr-xr-xGIT-VERSION-GEN2
-rw-r--r--GNUmakefile2
-rw-r--r--README10
-rw-r--r--Rakefile19
-rw-r--r--kgio.gemspec2
5 files changed, 26 insertions, 9 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index 92e03e3..88b943a 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v0.0.0.GIT
+DEF_VER=v1.0.0.GIT
 
 LF='
 '
diff --git a/GNUmakefile b/GNUmakefile
index 559bc75..6864751 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -144,6 +144,8 @@ release: verify package $(release_notes) $(release_changes)
         # in case of gem downloads from RubyForge releases page
         -rubyforge add_file \
           $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
+        $(RAKE) raa_update VERSION=$(VERSION)
+        $(RAKE) publish_news VERSION=$(VERSION)
 else
 gem install-gem: GIT-VERSION-FILE
         $(MAKE) $@ VERSION=$(GIT_VERSION)
diff --git a/README b/README
index 2347c79..70a7997 100644
--- a/README
+++ b/README
@@ -7,13 +7,13 @@ applications.
 
 == Features
 
-* Avoids exceptions on common EAGAIN/EINPROGRESS errors, returning
-  Kgio::WaitReadable or Kgio::WaitWritable instead.
+* Can avoid expensive exceptions on common EAGAIN/EINPROGRESS errors,
+  returning Kgio::WaitReadable or Kgio::WaitWritable instead.
   These exceptions got more expensive to hit under Ruby 1.9.2
   (but should be fixed in Ruby 1.9.3 to 1.9.1 performance levels)
 
 * Returns the unwritten portion of the string on partial writes,
-  making it ideal for buffering unwritten portions.
+  making it ideal for buffering unwritten data.
 
 * May be assigned Kgio.wait_writable= and Kgio.wait_readable=
   methods to allow socket/pipe objects to make custom callbacks
@@ -24,7 +24,9 @@ applications.
   {accept4}[http://kernel.org/doc/man-pages/online/pages/man2/accept4.2.html]
   on new GNU/Linux systems to avoid unnecessary fcntl() calls
 
-* uses MSG_DONTWAIT where available to further avoid unnecessary fcntl() calls
+* Uses MSG_DONTWAIT on GNU/Linux to further avoid unnecessary fcntl() calls
+
+* Compatible with existing Ruby IO objects and Ruby threading.
 
 == Install
 
diff --git a/Rakefile b/Rakefile
index 52787c6..42ddf76 100644
--- a/Rakefile
+++ b/Rakefile
@@ -102,11 +102,24 @@ task :release_notes do
   puts body
 end
 
-desc "read news article from STDIN and post to rubyforge"
+desc "post news article to rubyforge"
 task :publish_news do
   require 'rubyforge'
-  IO.select([STDIN], nil, nil, 1) or abort "E: news must be read from stdin"
-  msg = STDIN.readlines
+  spec = Gem::Specification.load('kgio.gemspec')
+  tmp = Tempfile.new('rf-news')
+  _, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
+  tmp.puts subject
+  tmp.puts
+  tmp.puts spec.description.strip
+  tmp.puts ""
+  tmp.puts "* #{spec.homepage}"
+  tmp.puts "* #{spec.email}"
+  tmp.puts "* #{git_url}"
+  tmp.print "\nChanges:\n\n"
+  tmp.puts body
+  tmp.flush
+  system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
+  msg = File.readlines(tmp.path)
   subject = msg.shift
   blank = msg.shift
   blank == "\n" or abort "no newline after subject!"
diff --git a/kgio.gemspec b/kgio.gemspec
index 285f065..abeae4c 100644
--- a/kgio.gemspec
+++ b/kgio.gemspec
@@ -32,5 +32,5 @@ Gem::Specification.new do |s|
   s.test_files = Dir['test/test_*.rb']
   s.extensions = %w(ext/kgio/extconf.rb)
 
-  # s.license = %w(GPL Ruby) # disabled for compatibility with older RubyGems
+  # s.license = %w(LGPL) # disabled for compatibility with older RubyGems
 end