jvectormap-rails 1.0.0 → 1.0.1
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.
- checksums.yaml +7 -0
- data/History.txt +4 -0
- data/README.md +50 -1
- data/jvectormap-rails.gemspec +1 -1
- data/lib/jvectormap/rails/version.rb +1 -1
- metadata +24 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1804b1fc5df76401f9031bf93e3a339a8e754598
|
4
|
+
data.tar.gz: 44283990773208f6a1f0cf26c70ba5d65a6dbb6e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 297d6d8d4ba15fe1285adf483b950e054e5e644598755796c84e6f76c30921043d6625ed67f091c17f5651194234543e5d3cd9ae38a247155ffc173d9501c12b
|
7
|
+
data.tar.gz: 5500dcd46bcf5559b77a6f3c08d9b15ee6028d73a49e48ab23375a062327bb20357b0c2dc1b8590c33311a3c4240a8ca454257d17fcaf2a582ecda2e7a683f17
|
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,53 @@
|
|
1
1
|
jvectormap-rails
|
2
2
|
================
|
3
3
|
|
4
|
-
jVectorMap for the Rails asset pipeline
|
4
|
+
[jVectorMap](http://jvectormap.com/) for the Rails asset pipeline
|
5
|
+
|
6
|
+
### Installation
|
7
|
+
|
8
|
+
Add it to your `Gemfile`:
|
9
|
+
```
|
10
|
+
gem 'jvectormap-rails', '~> 1.0.0'
|
11
|
+
```
|
12
|
+
|
13
|
+
### Usage
|
14
|
+
|
15
|
+
You can add jvectormap-rails to your `application.js` file using a require statement like this:
|
16
|
+
|
17
|
+
```
|
18
|
+
//= require jvectormap
|
19
|
+
```
|
20
|
+
|
21
|
+
To add support for whatever maps you want to use, include them from the `jvectormap/maps` path:
|
22
|
+
|
23
|
+
```
|
24
|
+
//= require jvectormap
|
25
|
+
//= require jvectormap/maps/us_merc_en
|
26
|
+
```
|
27
|
+
|
28
|
+
The basic pattern is `{country}-{region}_{city}_{projection}_{language}`. For example, the map `us-il-chicago_mill_en` has a country of `us` (United States), region of `il` (Illinois), city of `chicago`, projection of `mill` (Miller), and a language of `en` (English). Other common projections include Mercator (`merc`), and Albers equal area (`aea`).
|
29
|
+
|
30
|
+
### Asset Precompilation
|
31
|
+
|
32
|
+
jvectormap-rails supports precompiling individual maps. Add an initializer to your app, eg. `config/initializers/jvectormap.rb`:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
JVectorMap::Rails.precompile_maps << "us_merc_en"
|
36
|
+
```
|
37
|
+
|
38
|
+
### Rake Tasks
|
39
|
+
|
40
|
+
Get a list of all available maps by running this from within your Rails app's root:
|
41
|
+
|
42
|
+
```
|
43
|
+
bundle exec rake jvectormap:maps
|
44
|
+
```
|
45
|
+
|
46
|
+
### License
|
47
|
+
|
48
|
+
Licensed under the MIT license.
|
49
|
+
|
50
|
+
### Authors
|
51
|
+
|
52
|
+
1. This gem: Cameron Dutro [@camertron](http://twitter.com/camertron)
|
53
|
+
2. jVectorMap: Kirill Lebedev, it's [on github](https://github.com/bjornd/jvectormap)
|
data/jvectormap-rails.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.platform = Gem::Platform::RUBY
|
14
14
|
s.has_rdoc = true
|
15
15
|
|
16
|
-
s.add_dependency 'railties', '
|
16
|
+
s.add_dependency 'railties', '>= 3.1', '< 5.0'
|
17
17
|
|
18
18
|
s.require_path = 'lib'
|
19
19
|
s.files = Dir["{lib,vendor,tasks}/**/*", "Gemfile", "History.txt", "LICENSE", "README.md", "Rakefile", "jvectormap-rails.gemspec"]
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jvectormap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Cameron Dutro
|
@@ -10,24 +9,28 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: railties
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '3.1'
|
21
|
+
- - <
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.0'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - '>='
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '3.1'
|
31
|
+
- - <
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
31
34
|
description: jVectorMap for the Rails asset pipeline
|
32
35
|
email:
|
33
36
|
- camertron@gmail.com
|
@@ -36,10 +39,18 @@ executables: []
|
|
36
39
|
extensions: []
|
37
40
|
extra_rdoc_files: []
|
38
41
|
files:
|
42
|
+
- Gemfile
|
43
|
+
- History.txt
|
44
|
+
- LICENSE
|
45
|
+
- README.md
|
46
|
+
- Rakefile
|
47
|
+
- jvectormap-rails.gemspec
|
48
|
+
- lib/jvectormap-rails.rb
|
39
49
|
- lib/jvectormap/rails/engine.rb
|
40
50
|
- lib/jvectormap/rails/railtie.rb
|
41
51
|
- lib/jvectormap/rails/version.rb
|
42
|
-
-
|
52
|
+
- tasks/jvectormap.rake
|
53
|
+
- vendor/assets/javascripts/jvectormap.js
|
43
54
|
- vendor/assets/javascripts/jvectormap/jquery-jvectormap.js
|
44
55
|
- vendor/assets/javascripts/jvectormap/jquery-mousewheel.js
|
45
56
|
- vendor/assets/javascripts/jvectormap/lib/abstract-canvas-element.js
|
@@ -129,37 +140,28 @@ files:
|
|
129
140
|
- vendor/assets/javascripts/jvectormap/maps/world_mill_en.js
|
130
141
|
- vendor/assets/javascripts/jvectormap/maps/za_merc_en.js
|
131
142
|
- vendor/assets/javascripts/jvectormap/maps/za_mill_en.js
|
132
|
-
- vendor/assets/javascripts/jvectormap.js
|
133
143
|
- vendor/assets/stylesheets/jvectormap.css
|
134
|
-
- tasks/jvectormap.rake
|
135
|
-
- Gemfile
|
136
|
-
- History.txt
|
137
|
-
- LICENSE
|
138
|
-
- README.md
|
139
|
-
- Rakefile
|
140
|
-
- jvectormap-rails.gemspec
|
141
144
|
homepage: https://github.com/bjornd/jvectormap
|
142
145
|
licenses: []
|
146
|
+
metadata: {}
|
143
147
|
post_install_message:
|
144
148
|
rdoc_options: []
|
145
149
|
require_paths:
|
146
150
|
- lib
|
147
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
152
|
requirements:
|
150
|
-
- -
|
153
|
+
- - '>='
|
151
154
|
- !ruby/object:Gem::Version
|
152
155
|
version: '0'
|
153
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
157
|
requirements:
|
156
|
-
- -
|
158
|
+
- - '>='
|
157
159
|
- !ruby/object:Gem::Version
|
158
160
|
version: '0'
|
159
161
|
requirements: []
|
160
162
|
rubyforge_project:
|
161
|
-
rubygems_version:
|
163
|
+
rubygems_version: 2.2.2
|
162
164
|
signing_key:
|
163
|
-
specification_version:
|
165
|
+
specification_version: 4
|
164
166
|
summary: jVectorMap for the Rails asset pipeline
|
165
167
|
test_files: []
|