topojson_generator 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/topojson_generator.rb +27 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 62d58aee4978010f28d031b72f9a6508e35c46ae
4
+ data.tar.gz: a54be8ae87259bf7bd383bbda64009f9bbe00b81
5
+ SHA512:
6
+ metadata.gz: 2a7d335ecbc974adacf089f26c1ceb556dd8843987935a2e8827914cf8e18a505254caca5d8ca2bacf81bb723f70e2204eb0fc79e895ef2a81fbed81ce9720fc
7
+ data.tar.gz: 270e28c8b5d511cc8079b321c8b8edc522550cfca4c410d9fe82fa935a79b4f747a4a51f945e075d314e1f3a651d93302d998aa4be689865cee08377f7390775
@@ -0,0 +1,27 @@
1
+ module TopojsonGenerator
2
+ attr_accessor :state_code
3
+
4
+ def topojson_with_state_key(state_key = :state_code)
5
+ @state_code = state_key
6
+ end
7
+
8
+ def topojson_generator(model_object)
9
+ end
10
+ end
11
+
12
+
13
+ #extend TopojsonGenerator
14
+ #topojson_with_state_key :state_code
15
+ #topojson_generator(5)
16
+
17
+ ## Example
18
+ #module Delinquency
19
+ # class DeliquenciesController < ApplicationController
20
+ # extend TopojsonGenerator
21
+ # topojson_with_state_key :state_code
22
+ #
23
+ # def index
24
+ # respond_with(topojson_generator(StateState.all))
25
+ # end
26
+ # end
27
+ #end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: topojson_generator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Kirby Fike
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple gem for inserting rails model data into a topo json file.
14
+ email: kirbyfike@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/topojson_generator.rb
20
+ homepage: http://rubygems.org/gems/topojson_generator
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.0.3
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: A simple gem for inserting Rails model data into a topo json file.
44
+ test_files: []