enchant 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ -- 0.4.1 --
2
+ 2010-06-29 Paolo Perego <thesp0nge@gmail.com>
3
+
4
+ * lib/enchant.rb (is_alive): code is a String. Boolean compare with an Fixnum will always fail
5
+
1
6
  -- 0.4.0 --
2
7
  2010-06-29 Paolo Perego <thesp0nge@gmail.com>
3
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -95,7 +95,7 @@ if ping != -1
95
95
 
96
96
  start_time = Time.now
97
97
  e.ping
98
- if (e.is_alive?)
98
+ if e.is_alive?
99
99
  puts e.host + " seems to be alive"
100
100
  else
101
101
  puts e.host + " seems having some trouble ("+e.code+")"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{enchant}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paolo Perego"]
@@ -63,7 +63,7 @@ class Enchant
63
63
  end
64
64
 
65
65
  def is_alive?
66
- (@code == 200)
66
+ code.to_i==200
67
67
  end
68
68
 
69
69
  def ping(*)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enchant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paolo Perego