Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved unicode tables out into a data file.

This probably should have happened a long time ago. Closes #65.
  • Loading branch information...
commit 5b84777fceafac8929de6f7ea1e6413fc16851fc 1 parent 25c04c9
Bob Aman authored
Showing with 34,166 additions and 4,235 deletions.
  1. +34,141 −0 data/unicode.yaml
  2. +10 −4,235 lib/addressable/idna/pure.rb
  3. +15 −0 spec/addressable/idna_spec.rb
View
34,141 data/unicode.yaml
34,141 additions, 0 deletions not shown
View
4,245 lib/addressable/idna/pure.rb
10 additions, 4,235 deletions not shown
View
15 spec/addressable/idna_spec.rb
@@ -196,6 +196,21 @@
it_should_behave_like "converting from unicode to ASCII"
it_should_behave_like "converting from ASCII to unicode"
+
+ begin
+ require "fiber"
+
+ it "should not blow up inside fibers" do
+ f = Fiber.new do
+ Addressable.send(:remove_const, :IDNA)
+ load "addressable/idna/pure.rb"
+ end
+ f.resume
+ end
+ rescue LoadError
+ # Fibers aren't supported in this version of Ruby, skip this test.
+ warn('Fibers unsupported.')
+ end
end
begin
Please sign in to comment.
Something went wrong with that request. Please try again.