ymaps 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,14 +4,15 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
- gem.name = "ymaps"
7
+ gem.name = 'ymaps'
8
8
  gem.summary = %Q{Helpers for using YMaps}
9
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"
10
+ gem.email = 'rotuka@rotuka.com'
11
+ gem.homepage = 'http://github.com/rotuka/ymaps'
12
+ gem.authors = ['Alexander Semyonov']
13
+ gem.add_development_dependency 'shoulda', '>= 0'
14
+ gem.add_development_dependency 'yard', '>= 0'
15
+ gem.add_dependency 'geokit', '1.5.0'
15
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
17
  end
17
18
  Jeweler::GemcutterTasks.new
@@ -51,3 +52,6 @@ rescue LoadError
51
52
  abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
52
53
  end
53
54
  end
55
+
56
+ task :rdoc => :yard
57
+ task :doc => :yard
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -6,7 +6,7 @@ module Geokit
6
6
 
7
7
  class LatLng
8
8
  def pos
9
- "#{lat} #{lng}"
9
+ "#{lng} #{lat}"
10
10
  end
11
11
  end
12
12
 
@@ -74,8 +74,8 @@ module Geokit
74
74
 
75
75
  # basics
76
76
  coordinates = doc.elements['.//Point/pos'].text.to_s.split(' ')
77
- res.lat = coordinates[0]
78
- res.lng = coordinates[1]
77
+ res.lng = coordinates[0]
78
+ res.lat = coordinates[1]
79
79
 
80
80
  # extended -- false if not available
81
81
  res.city = doc.elements['.//LocalityName'].try(:text)
@@ -9,11 +9,3 @@ module YMaps
9
9
  Geokit::Geocoders::Yandex.geocode(query)
10
10
  end
11
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
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymaps}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
12
- s.date = %q{2010-03-12}
12
+ s.date = %q{2010-04-03}
13
13
  s.description = %q{Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps}
14
14
  s.email = %q{rotuka@rotuka.com}
15
15
  s.extra_rdoc_files = [
@@ -48,15 +48,18 @@ Gem::Specification.new do |s|
48
48
  s.specification_version = 3
49
49
 
50
50
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
51
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
52
52
  s.add_development_dependency(%q<yard>, [">= 0"])
53
+ s.add_runtime_dependency(%q<geokit>, ["= 1.5.0"])
53
54
  else
54
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
55
+ s.add_dependency(%q<shoulda>, [">= 0"])
55
56
  s.add_dependency(%q<yard>, [">= 0"])
57
+ s.add_dependency(%q<geokit>, ["= 1.5.0"])
56
58
  end
57
59
  else
58
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
60
+ s.add_dependency(%q<shoulda>, [">= 0"])
59
61
  s.add_dependency(%q<yard>, [">= 0"])
62
+ s.add_dependency(%q<geokit>, ["= 1.5.0"])
60
63
  end
61
64
  end
62
65
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexander Semyonov
@@ -14,11 +14,11 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-12 00:00:00 +03:00
17
+ date: 2010-04-03 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: thoughtbot-shoulda
21
+ name: shoulda
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  requirements:
@@ -41,6 +41,20 @@ dependencies:
41
41
  version: "0"
42
42
  type: :development
43
43
  version_requirements: *id002
44
+ - !ruby/object:Gem::Dependency
45
+ name: geokit
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - "="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 1
53
+ - 5
54
+ - 0
55
+ version: 1.5.0
56
+ type: :runtime
57
+ version_requirements: *id003
44
58
  description: Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps
45
59
  email: rotuka@rotuka.com
46
60
  executables: []