gmaps-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ (function($, undefined) {
2
+ $(function() {
3
+ var mapElements = $('[data-map]');
4
+ for (var mi = 0, len = mapElements.length; mi < len; mi++) {
5
+ var mapElement = $(mapElements[mi]);
6
+ eval('var mapData = ' + mapElement.data('map'));
7
+ mapData.map.div = '#' + mapElement.attr('id');
8
+ var map = new GMaps(mapData.map);
9
+ for (var di = 0, dlen = mapData.directives.length; di < dlen; di++) {
10
+ var d = mapData.directives[di];
11
+ map[d.name].apply(map, d.args);
12
+ }
13
+ }
14
+ });
15
+ })( jQuery );
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gmaps-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kentaro Imai
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: gmaps-rails is a gem which includes GMaps.js and provides an easy way
56
+ to use it in Rails. GMaps.js has over 4,000 stars on Github and you will love to
57
+ use it with Rails.
58
+ email:
59
+ - kentaroi@gmail.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - gmaps-rails.gemspec
70
+ - lib/gmaps-rails.rb
71
+ - lib/gmaps.rb
72
+ - lib/gmaps/js.rb
73
+ - lib/gmaps/rails.rb
74
+ - lib/gmaps/rails/core_ext.rb
75
+ - lib/gmaps/rails/engine.rb
76
+ - lib/gmaps/rails/railtie.rb
77
+ - lib/gmaps/rails/version.rb
78
+ - lib/gmaps/rails/view_helpers.rb
79
+ - vendor/assets/javascripts/gmaps.js
80
+ - vendor/assets/javascripts/gmaps_ujs.js
81
+ homepage: https://github.com/kentaroi/gmaps-rails
82
+ licenses:
83
+ - MIT
84
+ metadata: {}
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 2.2.2
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: gmaps-rails is a gem which includes GMaps.js and provides an easy way to
105
+ use it in Rails
106
+ test_files: []