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 CHANGED
@@ -5,6 +5,7 @@
5
5
  *tmp*
6
6
  pkg/
7
7
  doc/
8
+ coverage/
8
9
  *.orig
9
10
  *.patch
10
11
  .vimrc_local
data/Gemfile CHANGED
@@ -8,9 +8,8 @@ gem "minitest"
8
8
  gem "minitest-reporters"
9
9
  gem "guard-minitest"
10
10
 
11
- if RbConfig::CONFIG['host_os'] =~ /^darwin/
12
- gem "rb-fsevent"
13
- gem "growl"
11
+ if RUBY_VERSION >= '1.9'
12
+ gem "simplecov"
14
13
  end
15
14
 
16
15
  if File.exists?('Gemfile.local')
@@ -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)/})
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Proj4
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1,4 +1,13 @@
1
1
 
2
+ if RUBY_VERSION >= '1.9'
3
+ require 'simplecov'
4
+
5
+ SimpleCov.command_name('FFI Proj4 Unit Tests')
6
+ SimpleCov.start do
7
+ add_filter '/test/'
8
+ end
9
+ end
10
+
2
11
  require 'rubygems'
3
12
  require 'minitest/autorun'
4
13
 
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: 29
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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: 2012-12-18 00:00:00 Z
18
+ date: 2013-11-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: ffi
22
- prerelease: false
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
- type: :runtime
35
- version_requirements: *id001
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: