ipparse 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/ipparse.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ipparse}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Zhang Jinzhu"]
9
- s.date = %q{2009-02-18}
9
+ s.date = %q{2009-02-19}
10
10
  s.default_executable = %q{ipparse}
11
11
  s.description = %q{IP Parse}
12
12
  s.email = %q{wosmvp@gmail.com}
data/lib/ipparse.rb CHANGED
@@ -9,7 +9,7 @@ class IPParse
9
9
 
10
10
  [ip[0,3].to_i,0].each do |f|
11
11
  file = "#{File.dirname(__FILE__)}/../data/#{f.to_s}.txt"
12
- @@data[f] ||= File.exist?(file) ? File.new(file).to_a : false
12
+ @@data[f] ||= File.exist?(file) ? File.open(file){|m| m.to_a} : false
13
13
 
14
14
  if @@data[f]
15
15
  addr = dichotomizing(@@data[f],ip)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IPParse
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhang Jinzhu
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-18 00:00:00 +08:00
12
+ date: 2009-02-19 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15