simpler-tiles 0.0.5 → 0.0.7
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.
- data/ext/simpler_tiles/extconf.rb +3 -3
- data/index.erb +5 -1
- data/index.html +7 -1
- data/lib/simpler_tiles/map.rb +4 -2
- data/lib/simpler_tiles/version.rb +1 -1
- metadata +2 -2
@@ -3,8 +3,8 @@ require 'mkmf'
|
|
3
3
|
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
4
4
|
|
5
5
|
ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
|
6
|
-
LIBDIR =
|
7
|
-
INCLUDEDIR =
|
6
|
+
LIBDIR = RbConfig::CONFIG['libdir']
|
7
|
+
INCLUDEDIR = RbConfig::CONFIG['includedir']
|
8
8
|
|
9
9
|
$CFLAGS << " #{ENV["CFLAGS"]}" << `pkg-config --cflags simple-tiles pangocairo`.chomp << `gdal-config --cflags`.chomp
|
10
10
|
$LIBS << " #{ENV["LIBS"]}" << `pkg-config --libs simple-tiles pangocairo`.chomp << `gdal-config --libs`
|
@@ -32,7 +32,7 @@ def missing(lib)
|
|
32
32
|
end
|
33
33
|
|
34
34
|
missing "cairo" unless find_library "cairo", "cairo_surface_write_to_png_stream"
|
35
|
-
missing "simple-tiles" unless find_library "
|
35
|
+
missing "simple-tiles" unless find_library "simple_tiles", "simplet_map_render_to_stream"
|
36
36
|
missing "gdal" unless find_header "ogr_api.h"
|
37
37
|
missing "gdal" unless find_header "ogr_srs_api.h"
|
38
38
|
missing "cairo" unless find_header "cairo.h"
|
data/index.erb
CHANGED
@@ -435,7 +435,11 @@ CODE
|
|
435
435
|
<h2>Change Log</h2>
|
436
436
|
|
437
437
|
<dl>
|
438
|
-
<dd><b>0.0.
|
438
|
+
<dd><b>0.0.7</b> — February, 27th 2013</dd>
|
439
|
+
<dt>Fix deprecation warnings and compatibility with Simple Tiles 0.3.0, (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
440
|
+
<dd><b>0.0.6</b> — January, 30th 2013</dd>
|
441
|
+
<dt><tt>ar_layer</tt> now yields like <tt>layer</tt></dt>
|
442
|
+
<dd><b>0.0.5</b> — January, 14th 2013</dd>
|
439
443
|
<dt>Make the connection string for <tt>ar_layer</tt> more robust.</dt>
|
440
444
|
<dd><b>0.0.4</b> — December 8, 2012</dd>
|
441
445
|
<dt>Fix connection string for <tt>ar_layer</tt> (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
data/index.html
CHANGED
@@ -173,7 +173,7 @@ $ gem install simpler-tiles
|
|
173
173
|
</p>
|
174
174
|
|
175
175
|
<p>
|
176
|
-
The api docs are <a href="
|
176
|
+
The api docs are <a href="http://rdoc.info/github/propublica/simpler-tiles/master/framesl">here</a>, and if you have
|
177
177
|
comments or questions head on over to <tt>#newsapps</tt> or <tt>#propublica</tt>
|
178
178
|
on Freenode, or post them in the github issue
|
179
179
|
<a href="https://github.com/propublica/simpler-tiles/issues?sort=created&direction=desc&state=open">tracker</a>.
|
@@ -415,6 +415,12 @@ $ gem install simpler-tiles
|
|
415
415
|
<h2>Change Log</h2>
|
416
416
|
|
417
417
|
<dl>
|
418
|
+
<dd><b>0.0.7</b> — February, 27th 2013</dd>
|
419
|
+
<dt>Fix deprecation warnings and compatibility with Simple Tiles 0.3.0, (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
420
|
+
<dd><b>0.0.6</b> — January, 30th 2013</dd>
|
421
|
+
<dt><tt>ar_layer</tt> now yields like <tt>layer</tt></dt>
|
422
|
+
<dd><b>0.0.5</b> — January, 14th 2013</dd>
|
423
|
+
<dt>Make the connection string for <tt>ar_layer</tt> more robust.</dt>
|
418
424
|
<dd><b>0.0.4</b> — December 8, 2012</dd>
|
419
425
|
<dt>Fix connection string for <tt>ar_layer</tt> (thanks <a href="http://github.com/adamtrilling">adamtrilling</a>)</dt>
|
420
426
|
<dd><b>0.0.3</b> — June 23, 2012</dd>
|
data/lib/simpler_tiles/map.rb
CHANGED
@@ -17,7 +17,7 @@ module SimplerTiles
|
|
17
17
|
|
18
18
|
# A convienence method to use Active Record configuration and add a new
|
19
19
|
# layer.
|
20
|
-
def ar_layer
|
20
|
+
def ar_layer(&blk)
|
21
21
|
if !defined?(ActiveRecord)
|
22
22
|
raise "ActiveRecord not available"
|
23
23
|
end
|
@@ -31,7 +31,9 @@ module SimplerTiles
|
|
31
31
|
:password => config[:password]
|
32
32
|
}
|
33
33
|
|
34
|
-
|
34
|
+
conn = "PG:" + params.reject {|k,v| v.nil? }.map {|k,v| "#{k}=#{v}"}.join(' ')
|
35
|
+
|
36
|
+
layer conn, &blk
|
35
37
|
end
|
36
38
|
|
37
39
|
# Render the data to a blob of png data.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpler-tiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
segments:
|
135
135
|
- 0
|
136
|
-
hash:
|
136
|
+
hash: 4098444294922625178
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|