gdal-helper 0.0.1.2 → 0.0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/gdal_helper.rb +12 -3
  2. data/lib/version.rb +1 -1
  3. metadata +3 -3
@@ -4,9 +4,18 @@
4
4
  # blame for this work goes to jay@spruceboy.net
5
5
  # Feel free to fork/revamp/whatever - credit would be nice, but not required.
6
6
  # I am hoping some more qualified folks will take this on and make it gleam with super goodness - Have at it folks!
7
- require "gdal/gdal"
8
- require "gdal/gdalconst"
9
- require 'gdal/osr'
7
+
8
+ ##
9
+ # I am confused about how gdal shows up on varous distros - here are two tries..
10
+ begin
11
+ require "gdal/gdal"
12
+ require "gdal/gdalconst"
13
+ require 'gdal/osr'
14
+ rescue LoadError=>e
15
+ require "gdal"
16
+ require "gdalconst"
17
+ require 'osr'
18
+ end
10
19
 
11
20
 
12
21
  ###
@@ -1,4 +1,4 @@
1
1
  module GdalHelper
2
- Version = "0.0.1.2"
2
+ Version = "0.0.1.3"
3
3
  end
4
4
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.0.1.2
9
+ - 3
10
+ version: 0.0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - JC
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-04-21 00:00:00 -08:00
18
+ date: 2010-04-22 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21