dr-ffi-proj4 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +2 -3
- data/ffi-proj4.gemspec +1 -1
- data/lib/ffi-proj4.rb +2 -2
- data/lib/ffi-proj4/version.rb +1 -1
- data/test/test_helper.rb +9 -0
- metadata +11 -12
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/ffi-proj4.gemspec
CHANGED
@@ -5,12 +5,12 @@ require File.expand_path('../lib/ffi-proj4/version', __FILE__)
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "dr-ffi-proj4"
|
7
7
|
s.version = Proj4::VERSION
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
8
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
10
9
|
s.authors = ["J Smith"]
|
11
10
|
s.description = "An ffi wrapper for the PROJ.4 Cartographic Projections library."
|
12
11
|
s.summary = s.description
|
13
12
|
s.email = "dark.panda@gmail.com"
|
13
|
+
s.license = "MIT"
|
14
14
|
s.files = `git ls-files`.split($\)
|
15
15
|
s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
16
16
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
data/lib/ffi-proj4.rb
CHANGED
@@ -36,7 +36,7 @@ module Proj4
|
|
36
36
|
elsif FFI::Platform::IS_WINDOWS
|
37
37
|
ENV['PATH'].split(File::PATH_SEPARATOR)
|
38
38
|
else
|
39
|
-
[ '/usr/local/{lib64,lib}', '/opt/local/{lib64,lib}', '/usr/{lib64,lib}' ]
|
39
|
+
[ '/usr/local/{lib64,lib}', '/opt/local/{lib64,lib}', '/usr/{lib64,lib}', '/usr/lib/{x86_64,i386}-linux-gnu' ]
|
40
40
|
end
|
41
41
|
|
42
42
|
@proj4_library_path = Dir.glob(paths.collect { |path|
|
@@ -139,7 +139,7 @@ module Proj4
|
|
139
139
|
|
140
140
|
def proj_lib=(lib)
|
141
141
|
@proj_lib = lib
|
142
|
-
if RUBY_PLATFORM == 'java'
|
142
|
+
if RUBY_PLATFORM == 'java' && FFIProj4.respond_to?(:setenv)
|
143
143
|
FFIProj4.setenv('PROJ_LIB', lib, 1)
|
144
144
|
else
|
145
145
|
ENV['PROJ_LIB'] = lib
|
data/lib/ffi-proj4/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dr-ffi-proj4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- J Smith
|
@@ -15,12 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-11-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
26
25
|
- - ">="
|
@@ -31,8 +30,9 @@ dependencies:
|
|
31
30
|
- 0
|
32
31
|
- 0
|
33
32
|
version: 1.0.0
|
34
|
-
|
35
|
-
|
33
|
+
requirement: *id001
|
34
|
+
prerelease: false
|
35
|
+
name: ffi
|
36
36
|
description: An ffi wrapper for the PROJ.4 Cartographic Projections library.
|
37
37
|
email: dark.panda@gmail.com
|
38
38
|
executables: []
|
@@ -90,8 +90,8 @@ files:
|
|
90
90
|
- test/test_helper.rb
|
91
91
|
- test/transformation_tests.rb
|
92
92
|
homepage: http://github.com/dark-panda/ffi-proj4
|
93
|
-
licenses:
|
94
|
-
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
95
|
post_install_message:
|
96
96
|
rdoc_options: []
|
97
97
|
|
@@ -130,4 +130,3 @@ test_files:
|
|
130
130
|
- test/simple_transformation_tests.rb
|
131
131
|
- test/test_helper.rb
|
132
132
|
- test/transformation_tests.rb
|
133
|
-
has_rdoc:
|