nyaplot 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "geo-boundaries-world-110m",
3
+ "title": "Country Polygons as GeoJSON at 1:110m",
4
+ "version": "0.1.0",
5
+ "description": "geodata data package providing geojson polygons for all the world's countries",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/datasets/geo-boundaries-world-110m.git"
9
+ },
10
+ "sources": [{
11
+ "name": "Natural Earth",
12
+ "web": "http://www.naturalearthdata.com/downloads/10m-cultural-vectors/"
13
+ }],
14
+ "keywords": [
15
+ "geodata",
16
+ "vector"
17
+ ],
18
+ "licenses": {
19
+ "type": "ODC-PDDL",
20
+ "url": "http://opendatacommons.org/licenses/pddl/1.0/"
21
+ },
22
+ "resources": [
23
+ {
24
+ "name": "countries",
25
+ "path": "countries.geojson",
26
+ "format": "geojson",
27
+ "mediatype": "application/json",
28
+ "bytes": 689418
29
+ }
30
+ ],
31
+ "bugs": {
32
+ "url": "https://github.com/datasets/geo-boundaries-world-110m/issues"
33
+ },
34
+ "homepage": "https://github.com/datasets/geo-boundaries-world-110m"
35
+ }
@@ -3,7 +3,7 @@ require 'erb'
3
3
  module Nyaplot
4
4
 
5
5
  @@dep_libraries = {
6
- d3:'http://d3js.org/d3.v3.min',
6
+ d3:'https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min',
7
7
  downloadable: 'http://cdn.rawgit.com/domitry/d3-downloadable/master/d3-downloadable'
8
8
  }
9
9
  @@additional_libraries = {}
@@ -170,6 +170,10 @@ module Nyaplot
170
170
  # @return [Bool] decide if the diagram prepare legend
171
171
  define_group_properties(:options, [:title, :x, :y, :fill_by, :shape_by, :size_by, :color, :shape, :size, :stroke_color, :stroke_width, :tooltip_contents, :legend])
172
172
 
173
+ def tooltips(labels)
174
+ tooltip_contents((labels.is_a?(Symbol) ? [labels] : labels))
175
+ end
176
+
173
177
  def process_data(df, labels)
174
178
  label_x = labels[0]
175
179
  label_y = labels[1]
@@ -1,3 +1,3 @@
1
1
  module Nyaplot
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Nyaplot
2
2
  add_extension("Elegans")
3
3
  add_dependency("THREE","http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min")
4
- add_dependency("Elegans","http://cdn.rawgit.com/domitry/elegans/nyaplot-extension/release/elegans")
4
+ add_dependency("Elegans","https://cdn.rawgit.com/domitry/elegans/d81a728f62edaeeb67261516a272438fb39fa80a/release/elegans")
5
5
  init_iruby if defined? IRuby
6
6
  end
@@ -54,4 +54,30 @@ EOF
54
54
  spec.add_development_dependency "rake"
55
55
  spec.add_development_dependency "rspec"
56
56
  spec.add_development_dependency "pry"
57
+
58
+ root_path = File.expand_path(File.dirname(__FILE__))
59
+
60
+ # get an array of submodule dirs by executing 'pwd' inside each submodule
61
+ `git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
62
+ # for each submodule, change working directory to that submodule
63
+ Dir.chdir(submodule_path) do
64
+ # issue git ls-files in submodule's directory
65
+ submodule_files = `git ls-files`.split($\)
66
+
67
+ # prepend the submodule path to create absolute file paths
68
+ submodule_files_fullpaths = submodule_files.map do |filename|
69
+ "#{submodule_path}/#{filename}"
70
+ end
71
+
72
+ # remove leading path parts to get paths relative to the gem's root dir
73
+ # (this assumes, that the gemspec resides in the gem's root dir)
74
+ submodule_files_paths = submodule_files_fullpaths.map do |filename|
75
+ str = filename.gsub root_path, ""
76
+ str[1..(str.length-1)]
77
+ end
78
+
79
+ # add relative paths to gem.files
80
+ spec.files += submodule_files_paths
81
+ end
82
+ end
57
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyaplot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naoki Nishida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-17 00:00:00.000000000 Z
11
+ date: 2015-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -658,6 +658,9 @@ files:
658
658
  - lib/mapnya/datasets/countries/dist/countries.xml
659
659
  - lib/mapnya/datasets/countries/index.js
660
660
  - lib/mapnya/datasets/countries/package.json
661
+ - lib/mapnya/datasets/geo-boundaries-world-110m/README.md
662
+ - lib/mapnya/datasets/geo-boundaries-world-110m/countries.geojson
663
+ - lib/mapnya/datasets/geo-boundaries-world-110m/datapackage.json
661
664
  - lib/mapnya/datasets/world.geo.json
662
665
  - lib/mapnya/js/.gitignore
663
666
  - lib/mapnya/js/Gruntfile.js