simple_mapnik 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7542a228ce898502c94c2750ff0373a1eb71a16e
4
- data.tar.gz: ea21a17adb9a0ec0c918f45b5f9c9b63db3c8ba4
3
+ metadata.gz: 822e24a92b3078c02d0f49a991f34c7d81dba0f3
4
+ data.tar.gz: 692f6b7ab90804e3ec7b2d3bc14878c7a1f34712
5
5
  SHA512:
6
- metadata.gz: 36cdf2707bf4dd05c69551f30f8ed5e70d9d78da7e33ffcabc185fbf748374e71a8cc94325048e6a8d837690420ebfea8db05472c57e596f99a20ce7e967a3b7
7
- data.tar.gz: 319756c54ecaa107fe25f6eb942f03ed43235bc1593dc3c8912551b58e9e6b0057fa0690d882b15ea4e788d4c489e13db532ae36304ae93d7bed76625993f785
6
+ metadata.gz: 22b9a3f9cdb79a612cd08d19e65d1f111a5c15f408501bf58a77ee1127358941a1be1b030f18cbe7d92780fe03b2ca314cab8b318b70d8c9f383e169724fd865
7
+ data.tar.gz: bb9a107bfe011443ba999c8ede87d7a4d9be847d64cfd3e2e20218475a3ee3ea4e96a8a1f6716b5f7e91a440d7c1744c70c3ac9c76e70ff6289672ac97d227fc
data/.gitignore CHANGED
@@ -1,8 +1,6 @@
1
1
  Gemfile.lock
2
2
  /pkg
3
3
  *.gem
4
- *.dylib
5
- *.so
6
4
  .bundle/
7
5
  .byebug_history
8
6
  coverage
data/README.md CHANGED
@@ -7,14 +7,21 @@ Simple ruby access to the Mapnik library using [ruby-ffi](https://github.com/ffi
7
7
 
8
8
  ## Prerequisites
9
9
 
10
- SimpleMapnik requires that Mapnik 3.x or 2.x be installed at `/usr/local/lib/libmapnik.*`. In addition, a C++ compiler and build environment is needed for the c api extension.
10
+ SimpleMapnik requires that Mapnik 3.x or 2.x be installed at `/usr/local/lib/libmapnik.*`. The gem comes with a pre-built c api library compiled on OSX 10.10.5. For linux a C++ compiler and build environment is needed.
11
11
 
12
- On Mac OS X:
12
+ If the OSX binary does not work, the library can be compiled (after installing a build environment) by running:
13
+
14
+ ```
15
+ $ rake api:build
16
+ ```
17
+
18
+ Mac OS X:
13
19
 
14
20
  - https://github.com/mapnik/mapnik/wiki/MacInstallation or ```brew install mapnik```
15
21
  - Build environment: [Xcode](https://developer.apple.com/xcode/)
16
22
 
17
- On Linux:
23
+ Linux:
24
+
18
25
  - https://github.com/mapnik/mapnik/wiki/LinuxInstallation
19
26
  - Build environment: [gcc](https://help.ubuntu.com/community/InstallingCompilers) or clang
20
27
 
data/Rakefile CHANGED
@@ -20,10 +20,19 @@ begin
20
20
  rescue LoadError
21
21
  end
22
22
 
23
- require './lib/simple_mapnik/api.rb'
23
+ require 'simple_mapnik/api'
24
+ require 'ffi'
24
25
 
25
- task :install do
26
- SimpleMapnik::Api.new.install
26
+ namespace :api do
27
+ desc 'check for mapnik c api and install'
28
+ task :check_and_install do
29
+ SimpleMapnik::Api.new.check_and_install
30
+ end
31
+
32
+ desc 'build mapnik c api'
33
+ task :build do
34
+ SimpleMapnik::Api.new.install
35
+ end
27
36
  end
28
37
 
29
- task default: :install
38
+ task default: ['api:check_and_install']
@@ -1,3 +1,3 @@
1
1
  module SimpleMapnik
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
data/libmapnik_c.dylib ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_mapnik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eliot Jordan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-09 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -162,6 +162,7 @@ files:
162
162
  - lib/simple_mapnik/coordinate.rb
163
163
  - lib/simple_mapnik/map.rb
164
164
  - lib/simple_mapnik/version.rb
165
+ - libmapnik_c.dylib
165
166
  - simple_mapnik.gemspec
166
167
  - spec/fixtures/sample/missing_attribute.xml
167
168
  - spec/fixtures/sample/stylesheet.xml