sleepy_penguin RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [sleepy.penguin] [PATCH 1/3] test_epoll_gc: force GC on EMFILE/ENFILE
@ 2013-04-12 22:26 Eric Wong
  2013-04-12 22:26 ` [sleepy.penguin] [PATCH 2/3] .gitignore: add .rbx Eric Wong
  2013-04-12 22:26 ` [sleepy.penguin] [PATCH 3/3] license + gem packaging cleanups Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2013-04-12 22:26 UTC (permalink / raw)
  To: sleepy.penguin

This helps avoid test errors on Rubinius where rb_gc() is a noop.
Otherwise, we might as well infinite loop on thread-creation to
trigger GC.
---
 test/test_epoll_gc.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/test_epoll_gc.rb b/test/test_epoll_gc.rb
index b0a1868..ed2df05 100644
--- a/test/test_epoll_gc.rb
+++ b/test/test_epoll_gc.rb
@@ -42,6 +42,8 @@ def test_gc_safety
         2048.times { IO.pipe; File.open(__FILE__)}
         done = true
       end
+    rescue Errno::EMFILE, Errno::ENFILE
+      Thread.new { GC.start }.join
     end while true
   end
 end if ENV["GC_STRESS"].to_i != 0
-- 
1.8.2.1.366.ge2af9e3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [sleepy.penguin] [PATCH 2/3] .gitignore: add .rbx
  2013-04-12 22:26 [sleepy.penguin] [PATCH 1/3] test_epoll_gc: force GC on EMFILE/ENFILE Eric Wong
@ 2013-04-12 22:26 ` Eric Wong
  2013-04-12 22:26 ` [sleepy.penguin] [PATCH 3/3] license + gem packaging cleanups Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2013-04-12 22:26 UTC (permalink / raw)
  To: sleepy.penguin

Rubinius drops this directory on us nowadays
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 2368011..a47f7fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
 *.log
 *.so
 *.rbc
+/.rbx
 /.config
 /InstalledFiles
 /doc
-- 
1.8.2.1.366.ge2af9e3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [sleepy.penguin] [PATCH 3/3] license + gem packaging cleanups
  2013-04-12 22:26 [sleepy.penguin] [PATCH 1/3] test_epoll_gc: force GC on EMFILE/ENFILE Eric Wong
  2013-04-12 22:26 ` [sleepy.penguin] [PATCH 2/3] .gitignore: add .rbx Eric Wong
@ 2013-04-12 22:26 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2013-04-12 22:26 UTC (permalink / raw)
  To: sleepy.penguin

require_paths and date are automatically set in modern RubyGems
versions.  Since we only use modern RubyGems versions, the
licenses= accessor is also activated.

Since the FSF may change mailing addresses again in the future,
prefer the web address to point to licenses.  This change is
acceptable for GNU projects, so it should be for us, too:
http://sourceware.org/bugzilla/show_bug.cgi?id=13673
---
 LICENSE                | 3 +--
 sleepy_penguin.gemspec | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/LICENSE b/LICENSE
index 9cb1ff0..b2a8e6e 100644
--- a/LICENSE
+++ b/LICENSE
@@ -14,5 +14,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
 General Public License for more details.
 
 You should have received a copy of the GNU Lesser General Public License
-along with this library; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
+along with this library; if not, see http://www.gnu.org/licenses/
diff --git a/sleepy_penguin.gemspec b/sleepy_penguin.gemspec
index c080524..5507dec 100644
--- a/sleepy_penguin.gemspec
+++ b/sleepy_penguin.gemspec
@@ -9,13 +9,11 @@ Gem::Specification.new do |s|
   s.version = ENV["VERSION"].dup
   s.homepage = Wrongdoc.config[:rdoc_url]
   s.authors = ["#{name} hackers"]
-  s.date = Time.now.utc.strftime('%Y-%m-%d')
   s.description = readme_description
   s.email = %q{sleepy.penguin@librelist.org}
   s.extra_rdoc_files = extra_rdoc_files(manifest)
   s.files = manifest
   s.rdoc_options = rdoc_options
-  s.require_paths = %w(lib ext)
   s.rubyforge_project = %q{rainbows}
   s.summary = summary
   s.test_files = Dir['test/test_*.rb']
@@ -23,5 +21,5 @@ Gem::Specification.new do |s|
   s.add_development_dependency('wrongdoc', '~> 1.5')
   s.add_development_dependency('strace_me', '~> 1.0')
 
-  # s.license = %w(LGPL) # disabled for compatibility with older RubyGems
+  s.licenses = %w(LGPLv2.1 LGPLv3)
 end
-- 
1.8.2.1.366.ge2af9e3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-12 22:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 22:26 [sleepy.penguin] [PATCH 1/3] test_epoll_gc: force GC on EMFILE/ENFILE Eric Wong
2013-04-12 22:26 ` [sleepy.penguin] [PATCH 2/3] .gitignore: add .rbx Eric Wong
2013-04-12 22:26 ` [sleepy.penguin] [PATCH 3/3] license + gem packaging cleanups Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/sleepy_penguin.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).