grassgis 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/Vagrantfile +18 -0
- data/lib/grassgis/context.rb +3 -1
- data/lib/grassgis/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0391ccd83b3396a2f846319ff69a2f484ca02656
|
4
|
+
data.tar.gz: fa5d6e3c92d9e8df97cfbcf4332266c4edccb8b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14e1f99e4793061d22fd0efc81f45d08859720d41b3d7aa0b7ad3b88c526701b280adedfa1c801b89fdbe59c2fff48a0df7f7b0798f32feac7aeb7998546c3ac
|
7
|
+
data.tar.gz: 56893fb7c50fe78307e0025ff4785d13f11263d97ef38a1f76365cbac08a8311e5d916047cfaffd90ef89a467962447e4aeab2ec05bf767556236b460c6043bf
|
data/README.md
CHANGED
@@ -80,6 +80,7 @@ So, you first need to know where is GRASS installed on your system
|
|
80
80
|
to define the `:gisbase` option to point to the base directory of the GRASS
|
81
81
|
installation.
|
82
82
|
|
83
|
+
For *Ubuntu* it will typically be `/usr/lib/grass70` for version 7 of GRASS.
|
83
84
|
In *Windows*, if installed with
|
84
85
|
[OSGeo4W](http://trac.osgeo.org/osgeo4w/) it is typically of
|
85
86
|
the form `C:\OGeo4W\app\grass\grass-7.0.0` (the last directory will vary
|
data/Vagrantfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
Vagrant.configure(2) do |config|
|
5
|
+
config.vm.box = "ubuntu/trusty32"
|
6
|
+
|
7
|
+
config.vm.provision "shell", inline: <<-SHELL
|
8
|
+
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
|
9
|
+
sudo add-apt-repository -y ppa:grass/grass-stable
|
10
|
+
sudo apt-get update -y
|
11
|
+
sudo apt-get install -y grass7
|
12
|
+
sudo apt-get install -y grass7-dev
|
13
|
+
sudo apt-get install -y build-essential
|
14
|
+
sudo apt-get install -y ruby-dev
|
15
|
+
sudo apt-get install -y libsqlite3-dev
|
16
|
+
sudo gem install bundler
|
17
|
+
SHELL
|
18
|
+
end
|
data/lib/grassgis/context.rb
CHANGED
@@ -23,6 +23,7 @@ module GrassGis
|
|
23
23
|
config[:png_auto_write] = true unless config.key?(:png_auto_write)
|
24
24
|
config[:gnuplot] ||= 'gnuplot -persist'
|
25
25
|
config[:gui] ||= 'wxpython'
|
26
|
+
config[:pyhton] ||= 'python'
|
26
27
|
|
27
28
|
config[:errors] ||= :raise
|
28
29
|
config[:echo] = :commands unless config.key?(:echo)
|
@@ -96,6 +97,7 @@ module GrassGis
|
|
96
97
|
replace_var 'GRASS_TRANSPARENT', bool_var(@config[:transparent])
|
97
98
|
replace_var 'GRASS_PNG_AUTO_WRITE', bool_var(@config[:png_auto_write])
|
98
99
|
replace_var 'GRASS_GNUPLOT', @config[:gnuplot]
|
100
|
+
replace_var 'GRASS_PYTHON', @config[:python]
|
99
101
|
|
100
102
|
paths = ['bin', 'scripts']
|
101
103
|
if OS.windows?
|
@@ -236,7 +238,7 @@ module GrassGis
|
|
236
238
|
# end
|
237
239
|
#
|
238
240
|
def grass_version
|
239
|
-
|
241
|
+
GrassGis.version @config[:version]
|
240
242
|
end
|
241
243
|
|
242
244
|
private
|
data/lib/grassgis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grassgis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Goizueta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sys_cmd
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- LICENSE.txt
|
80
80
|
- README.md
|
81
81
|
- Rakefile
|
82
|
+
- Vagrantfile
|
82
83
|
- grassgis.gemspec
|
83
84
|
- lib/grassgis.rb
|
84
85
|
- lib/grassgis/context.rb
|