geoip-extensions 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +17 -0
- data/Guardfile +17 -0
- data/Rakefile +1 -12
- data/geoip-extensions.gemspec +1 -5
- data/lib/geoip/extensions/version.rb +1 -1
- data/test/test_helper.rb +17 -7
- metadata +5 -68
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,3 +1,20 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
|
+
|
5
|
+
gem "rdoc", "~> 3.12"
|
6
|
+
gem "rake", "~> 10.0"
|
7
|
+
gem "minitest"
|
8
|
+
gem "minitest-reporters"
|
9
|
+
gem "guard-minitest"
|
10
|
+
gem "simplecov"
|
11
|
+
|
12
|
+
if RbConfig::CONFIG['host_os'] =~ /^darwin/
|
13
|
+
gem "rb-fsevent"
|
14
|
+
gem "growl"
|
15
|
+
end
|
16
|
+
|
17
|
+
if File.exists?('Gemfile.local')
|
18
|
+
instance_eval File.read('Gemfile.local')
|
19
|
+
end
|
20
|
+
|
data/Guardfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
guard 'minitest', :test_folders => 'test', :test_file_patterns => '*_tests.rb' do
|
3
|
+
watch(%r|^test/(.+)_tests\.rb|)
|
4
|
+
|
5
|
+
watch(%r|^lib/(.*)([^/]+)\.rb|) do |m|
|
6
|
+
"test/#{m[1]}#{m[2]}_tests.rb"
|
7
|
+
end
|
8
|
+
|
9
|
+
watch(%r|^test/test_helper\.rb|) do
|
10
|
+
"test"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
if File.exists?('Guardfile.local')
|
15
|
+
instance_eval File.read('Guardfile.local')
|
16
|
+
end
|
17
|
+
|
data/Rakefile
CHANGED
@@ -2,23 +2,12 @@
|
|
2
2
|
# -*- ruby -*-
|
3
3
|
|
4
4
|
require 'rubygems'
|
5
|
-
|
6
|
-
gem 'rdoc', '~> 3.12'
|
7
|
-
|
8
5
|
require 'rubygems/package_task'
|
9
6
|
require 'rake/testtask'
|
10
7
|
require 'rdoc/task'
|
11
8
|
require 'bundler/gem_tasks'
|
12
9
|
|
13
|
-
|
14
|
-
begin
|
15
|
-
gem 'psych'
|
16
|
-
rescue Exception => e
|
17
|
-
# it's okay, fall back on the bundled psych
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
$:.push 'lib'
|
10
|
+
$:.push File.expand_path(File.dirname(__FILE__), 'lib')
|
22
11
|
|
23
12
|
version = GeoIP::Extensions::VERSION
|
24
13
|
|
data/geoip-extensions.gemspec
CHANGED
@@ -17,13 +17,9 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.files = `git ls-files`.split($\)
|
18
18
|
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
19
19
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
20
|
-
s.homepage = "https://
|
20
|
+
s.homepage = "https://github.com/zoocasa/geoip-extensions"
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
23
|
s.add_dependency("geoip-c")
|
24
24
|
s.add_dependency("ffi-geos")
|
25
|
-
s.add_dependency("rdoc")
|
26
|
-
s.add_dependency("rake", ["~> 0.9"])
|
27
|
-
s.add_dependency("minitest")
|
28
|
-
s.add_dependency("turn")
|
29
25
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
+
if RUBY_VERSION >= '1.9'
|
4
|
+
require 'simplecov'
|
5
|
+
|
6
|
+
SimpleCov.command_name('Unit Tests')
|
7
|
+
SimpleCov.start do
|
8
|
+
add_filter '/test/'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
3
12
|
require 'rubygems'
|
4
13
|
require 'minitest/autorun'
|
5
|
-
|
14
|
+
|
15
|
+
if RUBY_VERSION >= '1.9'
|
16
|
+
require 'minitest/reporters'
|
17
|
+
end
|
18
|
+
|
6
19
|
require File.join(File.dirname(__FILE__), %w{ .. lib geoip-extensions })
|
7
20
|
|
8
21
|
module TestHelper
|
@@ -13,10 +26,7 @@ module TestHelper
|
|
13
26
|
end
|
14
27
|
end
|
15
28
|
|
16
|
-
if
|
17
|
-
|
18
|
-
def self.color_supported?
|
19
|
-
true
|
20
|
-
end
|
21
|
-
end
|
29
|
+
if RUBY_VERSION >= '1.9'
|
30
|
+
MiniTest::Reporters.use!(MiniTest::Reporters::SpecReporter.new)
|
22
31
|
end
|
32
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoip-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: geoip-c
|
@@ -43,70 +43,6 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rdoc
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.9'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0.9'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: minitest
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :runtime
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: turn
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
46
|
description: Extensions to the GeoIP library.
|
111
47
|
email: code@zoocasa.com
|
112
48
|
executables: []
|
@@ -116,6 +52,7 @@ extra_rdoc_files:
|
|
116
52
|
files:
|
117
53
|
- .gitignore
|
118
54
|
- Gemfile
|
55
|
+
- Guardfile
|
119
56
|
- MIT-LICENSE
|
120
57
|
- README.rdoc
|
121
58
|
- Rakefile
|
@@ -126,7 +63,7 @@ files:
|
|
126
63
|
- lib/geoip/extensions/version.rb
|
127
64
|
- test/geos_tests.rb
|
128
65
|
- test/test_helper.rb
|
129
|
-
homepage: https://
|
66
|
+
homepage: https://github.com/zoocasa/geoip-extensions
|
130
67
|
licenses: []
|
131
68
|
post_install_message:
|
132
69
|
rdoc_options: []
|
@@ -146,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
83
|
version: '0'
|
147
84
|
requirements: []
|
148
85
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.24
|
150
87
|
signing_key:
|
151
88
|
specification_version: 3
|
152
89
|
summary: Extensions to the GeoIP library.
|