ymaps 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ doc
20
+ pkg
21
+ .yardoc
22
+
23
+ ## PROJECT::SPECIFIC
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Alexander Semyonov
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,17 @@
1
+ = ymaps
2
+
3
+ Description goes here.
4
+
5
+ == Note on Patches/Pull Requests
6
+
7
+ * Fork the project.
8
+ * Make your feature addition or bug fix.
9
+ * Add tests for it. This is important so I don't break it in a
10
+ future version unintentionally.
11
+ * Commit, do not mess with rakefile, version, or history.
12
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
+ * Send me a pull request. Bonus points for topic branches.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2010 Alexander Semyonov. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "ymaps"
8
+ gem.summary = %Q{Helpers for using YMaps}
9
+ gem.description = %Q{Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps}
10
+ gem.email = "rotuka@rotuka.com"
11
+ gem.homepage = "http://github.com/rotuka/ymaps"
12
+ gem.authors = ["Alexander Semyonov"]
13
+ gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
+ gem.add_development_dependency "yard", ">= 0"
15
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
+ end
17
+ Jeweler::GemcutterTasks.new
18
+ rescue LoadError
19
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
+ end
21
+
22
+ require 'rake/testtask'
23
+ Rake::TestTask.new(:test) do |test|
24
+ test.libs << 'lib' << 'test'
25
+ test.pattern = 'test/**/test_*.rb'
26
+ test.verbose = true
27
+ end
28
+
29
+ begin
30
+ require 'rcov/rcovtask'
31
+ Rcov::RcovTask.new do |test|
32
+ test.libs << 'test'
33
+ test.pattern = 'test/**/test_*.rb'
34
+ test.verbose = true
35
+ end
36
+ rescue LoadError
37
+ task :rcov do
38
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39
+ end
40
+ end
41
+
42
+ task :test => :check_dependencies
43
+
44
+ task :default => :test
45
+
46
+ begin
47
+ require 'yard'
48
+ YARD::Rake::YardocTask.new
49
+ rescue LoadError
50
+ task :yardoc do
51
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
52
+ end
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'ymaps'
@@ -0,0 +1,105 @@
1
+ require 'geokit'
2
+ require 'geokit/geocoders'
3
+
4
+ module Geokit
5
+ self.default_units = :kms
6
+
7
+ class LatLng
8
+ def pos
9
+ "#{lat} #{lng}"
10
+ end
11
+ end
12
+
13
+ module Geocoders
14
+ def self.yandex
15
+ YMaps.key
16
+ end
17
+
18
+ def self.yandex=(key)
19
+ YMaps.key = key
20
+ end
21
+
22
+ class YandexGeocoder < Geocoder
23
+
24
+ private
25
+ def self.call_geocoder_service(geocode)
26
+ res = super("http://geocode-maps.yandex.ru/1.x/?geocode=#{Geokit::Inflector::url_escape(geocode)}&key=#{Geocoders::yandex}")
27
+
28
+ unless res.is_a?(Net::HTTPSuccess) || res.is_a?(Net::HTTPOK)
29
+ return GeoLoc.new
30
+ end
31
+
32
+ xml = res.body
33
+ logger.debug "Yandex geocoding: '#{geocode}'. Result: #{xml}"
34
+ return xml2GeoLoc(xml)
35
+ end
36
+
37
+ def self.do_reverse_geocode(latlng)
38
+ latlng = LatLng.normalize(latlng)
39
+ call_geocoder_service(latlng.ll)
40
+ end
41
+
42
+ def self.do_geocode(address, options = {})
43
+ address_str = address.is_a?(GeoLoc) ? address.to_geocodable_s : address
44
+ call_geocoder_service(address_str)
45
+ end
46
+
47
+ def self.xml2GeoLoc(xml, address="")
48
+ doc = REXML::Document.new(xml)
49
+
50
+ if doc.elements['//GeocoderResponseMetaData/found'] != '0'
51
+ geoloc = nil
52
+ # Yandex can return multiple results as //featureMember elements.
53
+ # iterate through each and extract each placemark as geoloc
54
+ doc.each_element('//featureMember') do |e|
55
+ extracted_geoloc = extract_placemark(e)
56
+
57
+ if geoloc.nil?
58
+ geoloc = extracted_geoloc
59
+ else
60
+ geoloc.all.push(extracted_geoloc)
61
+ end
62
+ end
63
+
64
+ return geoloc
65
+ else
66
+ logger.ingo "Yandex was unable to geocode address: #{address}"
67
+ return GeoLoc.new
68
+ end
69
+ end
70
+
71
+ def self.extract_placemark(doc)
72
+ res = GeoLoc.new
73
+ res.provider = 'yandex'
74
+
75
+ # basics
76
+ coordinates = doc.elements['.//Point/pos'].text.to_s.split(' ')
77
+ res.lat = coordinates[0]
78
+ res.lng = coordinates[1]
79
+
80
+ # extended -- false if not available
81
+ res.city = doc.elements['.//LocalityName'].try(:text)
82
+ res.state = doc.elements['.//AdministrativeAreaName'].try(:text)
83
+ res.province = doc.elements['.//SubAdministrativeAreaName'].try(:text)
84
+ res.full_address = doc.elements['.//GeocoderMetaData/text'].try(:text)
85
+ res.zip = doc.elements['.//PostalCodeNumber'].try(:text)
86
+ res.street_address = doc.elements['.//ThoroughfareName'].try(:text)
87
+ res.country = doc.elements['.//CountryName'].try(:text)
88
+ res.district = doc.elements['.//DependentLocalityName'].try(:text)
89
+
90
+ # TODO: translate accuracy into Yahoo-style token address, street, zip, zip+4, city, state, country
91
+
92
+ if suggested_bounds = doc.elements['.//boundedBy']
93
+ res.suggested_bounds = Bounds.normalize(
94
+ suggested_bounds.elements['.//lowerCorner'].text.to_s.split(' '),
95
+ suggested_bounds.elements['.//upperCorner'].text.to_s.split(' ')
96
+ )
97
+ end
98
+
99
+ res.success = true
100
+
101
+ res
102
+ end
103
+ end
104
+ end
105
+ end
data/lib/ymaps.rb ADDED
@@ -0,0 +1,19 @@
1
+ module YMaps
2
+ mattr_accessor :key
3
+ self.key = 'REPLACE_WITH_YOUR_YANDEX_KEY'
4
+
5
+ autoload :ActionView, 'ymaps/action_view'
6
+
7
+ def self.geocode(query)
8
+ require 'geokit/geocoders/yandex_geocoder'
9
+ Geokit::Geocoders::Yandex.geocode(query)
10
+ end
11
+ end
12
+
13
+ if defined? Mime
14
+ Mime::Type.register 'application/xml', :ymapsml
15
+ end
16
+
17
+ if defined? ActionView
18
+ ActionView::Base.send(:include, YMaps::ActionView::Helpers)
19
+ end
@@ -0,0 +1,11 @@
1
+ module YMaps
2
+ module ActionView
3
+ autoload :YMapsMLHelper, 'ymaps/action_view/ymapsml_helper'
4
+ autoload :HtmlHelper, 'ymaps/action_view/html_helper'
5
+
6
+ module Helpers
7
+ include YMapsMLHelper
8
+ include HtmlHelper
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,102 @@
1
+ module YMaps
2
+ module ActionView
3
+ module HtmlHelper
4
+ class StaticMapPoint < Struct.new('MapPoint', :style, :color, :size, :number, :lat, :lng)
5
+ def to_s
6
+ "#{ll},#{style}#{color}#{size}#{number}"
7
+ end
8
+
9
+ def ll
10
+ @ll ||= "#{lat},#{lng}"
11
+ end
12
+
13
+ def ll=(latlng)
14
+ @ll = latlng
15
+ end
16
+
17
+ def attributes=(attrs)
18
+ attrs.each do |key, value|
19
+ self[key] = value
20
+ end
21
+ end
22
+ end
23
+
24
+ def map_link(resource = nil, options = {})
25
+ resource, options = nil, resource if resource.is_a?(Hash)
26
+
27
+ href = if resource
28
+ polymorphic_url(resource, :format => :ymapsml)
29
+ else
30
+ url_for(:format => :ymapsml, :only_path => false, :time => Time.now)
31
+ end
32
+
33
+ tag(:link,
34
+ options.merge!(:id => 'alternate_ymapsml',
35
+ :href => href,
36
+ :rel => 'alternate',
37
+ :type => 'application/ymapsml+xml'))
38
+ end
39
+
40
+ def ymaps_include_tag(key = nil)
41
+ key ||= YMaps.key
42
+ javascript_include_tag("http://api-maps.yandex.ru/1.1/index.xml?key=#{key}")
43
+ end
44
+
45
+ def static_map(resources, options = {})
46
+ title = options.delete(:title) { resources.to_s }
47
+ map_type = options.delete(:map) { 'map' }
48
+
49
+ common_point = StaticMapPoint.new(
50
+ options.delete(:style) { 'pm' },
51
+ options.delete(:color) { 'wt' },
52
+ options.delete(:size) { 'm' },
53
+ options.delete(:number) { 0 }
54
+ )
55
+
56
+ collection = Array(resources).inject([]) do |result, resource|
57
+ common_point.ll = resource.latlng.ll
58
+ common_point.number += 1
59
+ result << common_point.to_s
60
+ result
61
+ end.join('~')
62
+
63
+ content_tag(:div, :class => 'b-map') do
64
+ image_tag("http://static-maps.yandex.ru/1.x/?key=#{YMaps.key}&l=#{map_type}&pt=#{collection}",
65
+ :title => title,
66
+ :alt => title,
67
+ :class => 'static'
68
+ )
69
+ end
70
+ end
71
+
72
+ def geo_microformat(resource)
73
+ latlng = resource.to_latlng
74
+ resource_class ||= resource.class
75
+
76
+ content_tag(:dl, :class => 'geo') do
77
+ content_tag(:dt, resource_class.human_attribute_name(:lat)) +
78
+ content_tag(:dd, latlng.lat, :class => 'latitude') +
79
+ content_tag(:dt, resource_class.human_attribute_name(:lng)) +
80
+ content_tag(:dd, latlng.lng, :class => 'longitude')
81
+ end
82
+ end
83
+
84
+ def adr_microformat(resource)
85
+ result = []
86
+ if resource.respond_to?(:country) && resource.country.present?
87
+ result << content_tag(:span, resource.country, :class => 'country-name')
88
+ end
89
+ if resource.respond_to?(:postal_code) && resource.postal_code.present?
90
+ result << content_tag(:span, resource.postal_code, :class => 'postal-code')
91
+ end
92
+ if resource.respond_to?(:city) && resource.city.present?
93
+ result << content_tag(:span, resource.city, :class => 'locality')
94
+ end
95
+ if resource.respond_to?(:street_address) && resource.street_address.present?
96
+ result << content_tag(:span, resource.street_address, :class => 'street-address')
97
+ end
98
+ content_tag(:div, result.join(', '), :class => 'adr')
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,135 @@
1
+ require 'geokit/geocoders/yandex_geocoder'
2
+
3
+ module YMaps
4
+ module ActionView
5
+ YMAPS_XMLNS = 'http://maps.yandex.ru/ymaps/1.x'
6
+ GML_XMLNS = 'http://www.opengis.net/gml'
7
+ REPR_XMLNS = 'http://maps.yandex.ru/representation/1.x'
8
+
9
+ module YMapsMLHelper
10
+ def ymapsml(options = {}, &block)
11
+ xml = options.delete(:xml) { eval('xml', block.binding) }
12
+ xml.instruct!
13
+
14
+ ymapsml_opts = {
15
+ 'xml:lang' => options.fetch(:language) { 'en-US' },
16
+ 'xmlns' => YMAPS_XMLNS,
17
+ 'xmlns:gml' => GML_XMLNS,
18
+ 'xmlns:repr' => REPR_XMLNS
19
+ }
20
+ ymapsml_opts.merge!(options).reject! { |key, value| !key.match(/^xml/) }
21
+
22
+ xml.ymaps(ymapsml_opts) do
23
+ yield YMapsBuilder.new(xml, self, options)
24
+ end
25
+ end
26
+ end
27
+
28
+ class Builder
29
+ YMAPS_TAG_NAMES = %w(GeoObject GeoObjectCollection style ymaps AnyMetaData).map(&:to_sym)
30
+ GML_TAG_NAMES = %w(boundedBy description Envelope exterior featureMember
31
+ featureMembers interior LineString LinearString lowerCorner
32
+ metaDataProperty name Point Polygon pos posList upperCorner).map(&:to_sym)
33
+ REPR_TAG_NAMES = %w(balloonContentStyle fill fillColor hintContentStyle iconContentStyle
34
+ lineStyle href iconStyle mapType offset outline parentStyle polygonStyle
35
+ Representation shadow size strokeColor strokeWidth Style Template
36
+ template text View).map(&:to_sym)
37
+
38
+ def initialize(xml)
39
+ @xml = xml
40
+ end
41
+
42
+ private
43
+ def method_missing(method, *arguments, &block)
44
+ @xml.__send__(*xmlns_prefix!(method, arguments), &block)
45
+ end
46
+
47
+ def xmlns_prefix!(method, arguments)
48
+ if GML_TAG_NAMES.include?(method)
49
+ [:gml, method, *arguments]
50
+ elsif REPR_TAG_NAMES.include?(method)
51
+ [:repr, method, *arguments]
52
+ else
53
+ [method, *arguments]
54
+ end
55
+ end
56
+ end
57
+
58
+ class YMapsReprBuilder < Builder
59
+ def view(options = {})
60
+ View {
61
+ if options[:type]
62
+ mapType(options[:type].to_s.upcase)
63
+ end
64
+ yield if block_given?
65
+ }
66
+ end
67
+
68
+ def style(id, options = {})
69
+ Style(options.merge('gml:id' => id.to_s)) {
70
+ yield
71
+ }
72
+ end
73
+
74
+ def template(id, template_text = nil)
75
+ Template('gml:id' => id.to_s) do
76
+ text do
77
+ cdata!(template_text || yield)
78
+ end
79
+ end
80
+ end
81
+
82
+ def balloon_content(template)
83
+ balloonContentStyle {
84
+ @xml.repr(:template, "\##{template}")
85
+ }
86
+ end
87
+ end
88
+
89
+ class YMapsBuilder < Builder
90
+ def initialize(xml, view, ymaps_options = {})
91
+ @xml, @view, @ymaps_options = xml, view, ymaps_options
92
+ end
93
+
94
+ def collection(options = {})
95
+ GeoObjectCollection do
96
+ if options.key?(:style)
97
+ @xml.style("\##{options.delete(:style)}")
98
+ end
99
+ featureMembers { yield }
100
+ end
101
+ end
102
+
103
+ def object(object, options = {})
104
+ GeoObject do
105
+ if options.key?(:style)
106
+ @xml.style("\##{options.delete(:style)}")
107
+ end
108
+ point(object.latlng)
109
+ name(options.delete(:name) { object.to_s })
110
+ yield self
111
+ end
112
+ end
113
+
114
+ def point(latlng)
115
+ Point {
116
+ pos(latlng.pos)
117
+ }
118
+ end
119
+
120
+ def meta_data
121
+ metaDataProperty {
122
+ AnyMetaData {
123
+ yield(@xml)
124
+ }
125
+ }
126
+ end
127
+
128
+ def representation
129
+ Representation {
130
+ yield(YMapsReprBuilder.new(@xml))
131
+ }
132
+ end
133
+ end
134
+ end
135
+ end
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'ymaps'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestYmaps < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
data/ymaps.gemspec ADDED
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ymaps}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Alexander Semyonov"]
12
+ s.date = %q{2010-03-12}
13
+ s.description = %q{Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps}
14
+ s.email = %q{rotuka@rotuka.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "init.rb",
27
+ "lib/geokit/geocoders/yandex_geocoder.rb",
28
+ "lib/ymaps.rb",
29
+ "lib/ymaps/action_view.rb",
30
+ "lib/ymaps/action_view/html_helper.rb",
31
+ "lib/ymaps/action_view/ymapsml_helper.rb",
32
+ "test/helper.rb",
33
+ "test/test_ymaps.rb",
34
+ "ymaps.gemspec"
35
+ ]
36
+ s.homepage = %q{http://github.com/rotuka/ymaps}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.3.6}
40
+ s.summary = %q{Helpers for using YMaps}
41
+ s.test_files = [
42
+ "test/helper.rb",
43
+ "test/test_ymaps.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 3
49
+
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
52
+ s.add_development_dependency(%q<yard>, [">= 0"])
53
+ else
54
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
55
+ s.add_dependency(%q<yard>, [">= 0"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
59
+ s.add_dependency(%q<yard>, [">= 0"])
60
+ end
61
+ end
62
+
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ymaps
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Alexander Semyonov
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-12 00:00:00 +03:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: thoughtbot-shoulda
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :development
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: yard
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
42
+ type: :development
43
+ version_requirements: *id002
44
+ description: Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps
45
+ email: rotuka@rotuka.com
46
+ executables: []
47
+
48
+ extensions: []
49
+
50
+ extra_rdoc_files:
51
+ - LICENSE
52
+ - README.rdoc
53
+ files:
54
+ - .document
55
+ - .gitignore
56
+ - LICENSE
57
+ - README.rdoc
58
+ - Rakefile
59
+ - VERSION
60
+ - init.rb
61
+ - lib/geokit/geocoders/yandex_geocoder.rb
62
+ - lib/ymaps.rb
63
+ - lib/ymaps/action_view.rb
64
+ - lib/ymaps/action_view/html_helper.rb
65
+ - lib/ymaps/action_view/ymapsml_helper.rb
66
+ - test/helper.rb
67
+ - test/test_ymaps.rb
68
+ - ymaps.gemspec
69
+ has_rdoc: true
70
+ homepage: http://github.com/rotuka/ymaps
71
+ licenses: []
72
+
73
+ post_install_message:
74
+ rdoc_options:
75
+ - --charset=UTF-8
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ requirements: []
93
+
94
+ rubyforge_project:
95
+ rubygems_version: 1.3.6
96
+ signing_key:
97
+ specification_version: 3
98
+ summary: Helpers for using YMaps
99
+ test_files:
100
+ - test/helper.rb
101
+ - test/test_ymaps.rb