tranexp 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- == 0.0.1 2008-04-16
1
+ == 1.0.1 2008-04-16
2
+
3
+ * faster clean_up algorithm [Peter Cooper] http://snippets.dzone.com/posts/show/5367
4
+
5
+ == 1.0.0 2008-04-16
2
6
 
3
7
  * 1 major enhancement:
4
8
  * Initial release
@@ -28,8 +28,7 @@ class Tranexp::Http
28
28
  protected
29
29
  def clean_up dirty_text
30
30
  newstr = ""
31
- dirty_text.length.times do |i|
32
- character = dirty_text[i]
31
+ dirty_text.each_byte do |character|
33
32
  newstr += if character < 0x80
34
33
  character.chr
35
34
  elsif character < 0xC0
@@ -2,7 +2,7 @@ module Tranexp #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -16,7 +16,7 @@ class TestTranexpHttp < Test::Unit::TestCase
16
16
  end
17
17
  end
18
18
 
19
- def test_utf8
19
+ def test_utf8_from_eng_to_nor
20
20
  if_connected do
21
21
  assert_nothing_thrown do
22
22
  english = translate.translate("i would like to learn Norwegian", Tranexp::Http::English, Tranexp::Http::Norwegian)
@@ -33,7 +33,7 @@
33
33
  <h1>tranexp</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/tranexp"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/tranexp" class="numbers">1.0.0</a>
36
+ <a href="http://rubyforge.org/projects/tranexp" class="numbers">1.0.1</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;tranexp nor eng&#8217;</h1>
39
39
 
@@ -176,11 +176,10 @@ rake install_gem
176
176
  <h2>Contact</h2>
177
177
 
178
178
 
179
- <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a> via the <a href="http://groups.google.com/group/tranexp">forum</a></p>
179
+ <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a> via the <a href="http://groups.google.com/group/drnicutilities">forum</a></p>
180
180
  <p class="coda">
181
181
  <a href="drnicwilliams@gmail.com">Dr Nic Williams</a>, 16th April 2008<br>
182
- Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>,
183
- by Daniel Cadenas via <a href="http://depgraph.rubyforge.org/">DepGraph</a>
182
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
184
183
  </p>
185
184
  </div>
186
185
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tranexp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams