snapa 0.0.1 → 0.0.2

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: 93df07bceee649365f26d777794b01099efa2552
4
- data.tar.gz: c4a1e4068d2a70121957467675a97a2b891164e0
3
+ metadata.gz: 77360d09b9abb1525c943151e0bfa58f3920311e
4
+ data.tar.gz: 260ce2e0c9ef71ec8456344b95ed8243ef2e760c
5
5
  SHA512:
6
- metadata.gz: c95861e11cffd19b9a4a95700ddc6ada12ac33b736508882b6f10329935b89767fbd072dfe0abca7d6a30e8a8c4033fff4ea62a69288d8fb4684d1fa924b4ea2
7
- data.tar.gz: 2babbcc4f9f23b62f75b5a485e4c9788ca23f0917aec81155cf2498cf05956f48f88f6ba590e863dd6f59758574291be05d0d53466d8eb8634d87a84f608a554
6
+ metadata.gz: 12be7dc97c63d0d7ab31b10c36e254f8db982cbdf9ed1f2b636d8c3fccfb330f0d772c9f5209617c704178c5c09330695b3992849afe01d801fa3542615d1910
7
+ data.tar.gz: 99c7b6b2959403c6400d7ba5bf3a2f5ea98a6db48d95fbbdee50042ea6a19ca61e1fd95dfc6750133d631c96cbf868c36357bc9aa7ee8b349459f1e1956b1192
data/lib/snapa.rb CHANGED
@@ -24,7 +24,7 @@ module Snapa
24
24
  end
25
25
 
26
26
  def build(env)
27
- system [cmd, script, url(env), @path].join(' ')
27
+ system [cmd, script, "'#{url(env)}'", "'#{@path}'"].join(' ')
28
28
  end
29
29
 
30
30
  def path(env)
data/lib/snapa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Snapa
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/public/map.html CHANGED
@@ -32,6 +32,7 @@ function getParameterByName(name) {
32
32
  var countries = (getParameterByName('c') || 'TZ').toUpperCase().split(','),
33
33
  width = getParameterByName('w') || 380,
34
34
  height = getParameterByName('h') || 230,
35
+ rotation = getParameterByName('r') || 0,
35
36
  percent = getParameterByName('p') || .95,
36
37
  maxScale = getParameterByName('m') || 300;
37
38
 
@@ -41,6 +42,7 @@ var svg = d3.select("body").append("svg")
41
42
 
42
43
  var projection = d3.geo.mercator()
43
44
  .scale(1)
45
+ .rotate(rotation)
44
46
  .translate([0, 0]);
45
47
 
46
48
  var path = d3.geo.path()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Tillman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-06 00:00:00.000000000 Z
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack