hfu-hfu-segue 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -0
- data/Rakefile +14 -0
- data/VERSION +1 -0
- data/hfu-segue.gemspec +38 -0
- data/segue.rb +10 -0
- metadata +57 -0
data/README
ADDED
File without changes
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
begin
|
2
|
+
require 'jeweler'
|
3
|
+
Jeweler::Tasks.new do |gemspec|
|
4
|
+
gemspec.name = "hfu-segue"
|
5
|
+
gemspec.summary = "Sequel Geospatial Utilitiy Extension"
|
6
|
+
gemspec.email = "hfu@svgmapdata.sakura.ne.jp"
|
7
|
+
gemspec.homepage = "http://d.hatena.ne.jp/hfu/"
|
8
|
+
gemspec.description = "Sequel Geospatial Utility Extension"
|
9
|
+
gemspec.authors = ["hfu"]
|
10
|
+
end
|
11
|
+
rescue LoadError
|
12
|
+
puts "Jeweler not available."
|
13
|
+
end
|
14
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
data/hfu-segue.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{hfu-segue}
|
5
|
+
s.version = "0.0.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["hfu"]
|
9
|
+
s.date = %q{2009-07-04}
|
10
|
+
s.description = %q{Sequel Geospatial Utility Extension}
|
11
|
+
s.email = %q{hfu@svgmapdata.sakura.ne.jp}
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"README"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
"README",
|
17
|
+
"Rakefile",
|
18
|
+
"VERSION",
|
19
|
+
"hfu-segue.gemspec",
|
20
|
+
"segue.rb"
|
21
|
+
]
|
22
|
+
s.has_rdoc = true
|
23
|
+
s.homepage = %q{http://d.hatena.ne.jp/hfu/}
|
24
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
s.rubygems_version = %q{1.3.1}
|
27
|
+
s.summary = %q{Sequel Geospatial Utilitiy Extension}
|
28
|
+
|
29
|
+
if s.respond_to? :specification_version then
|
30
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
31
|
+
s.specification_version = 2
|
32
|
+
|
33
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
34
|
+
else
|
35
|
+
end
|
36
|
+
else
|
37
|
+
end
|
38
|
+
end
|
data/segue.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
class Sequel::Dataset
|
2
|
+
def to_shp(path)
|
3
|
+
qi = self.quote_identifiers?
|
4
|
+
self.quote_identifiers = false
|
5
|
+
cmd = "pgsql2shp -f #{path} -h #{self.db.opts[:host] or 'localhost'} -p #{self.db.opts[:port] or 5432} -P #{self.db.opts[:password]} -u #{self.db.opts[:user]} #{self.db.opts[:database]} \"#{self.sql}\""
|
6
|
+
system(cmd)
|
7
|
+
self.quote_identifiers = qi
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hfu-hfu-segue
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- hfu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-07-04 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Sequel Geospatial Utility Extension
|
17
|
+
email: hfu@svgmapdata.sakura.ne.jp
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
files:
|
25
|
+
- README
|
26
|
+
- Rakefile
|
27
|
+
- VERSION
|
28
|
+
- hfu-segue.gemspec
|
29
|
+
- segue.rb
|
30
|
+
has_rdoc: true
|
31
|
+
homepage: http://d.hatena.ne.jp/hfu/
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options:
|
34
|
+
- --charset=UTF-8
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "0"
|
42
|
+
version:
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
requirements: []
|
50
|
+
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.2.0
|
53
|
+
signing_key:
|
54
|
+
specification_version: 2
|
55
|
+
summary: Sequel Geospatial Utilitiy Extension
|
56
|
+
test_files: []
|
57
|
+
|