ymaps 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDA3Y2MxZDlmOWViYjI2NTZlMjU1ODE5NWUwY2IyMmM4MTdlNzkwNA==
5
+ data.tar.gz: !binary |-
6
+ YzliNTBkMzZmZGFlOWE2OWI5NDEzNThjYzRmYTcxYWU0YzgwNjU2Mg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZDNiNjkwMGE3Njg0ODVkNjUxYWE1ZjM3ZTM3OTFmODY3YWU0Mzc2NTMwYTZk
10
+ M2E0MDA2MmQxYzM4MmZlYzNhN2UwYjBkZTdmNDFjNTFiODYyMTg0NGYyMDJk
11
+ NDJmYWU1OGFhM2Q3ODlhM2FkZTlkMTFhMThmZjk4MGE2MTBjYTI=
12
+ data.tar.gz: !binary |-
13
+ YzdmZDRlN2NjZWFlMjdkZGQxZDc3NGI3MTNkMjhmY2ExYTk1ODk0NDQ2Yjli
14
+ YjYzMmEzYTJkOTBjYmVkOWQ4MTljNTA2MWZjYmU4Mzk5ZWY2YjI5M2E5YTQ1
15
+ ZTEwMDIzZTAyMzI3YTY4YTM2NDY1MWMxODJlYzJiMzFkMTY2ZTc=
@@ -92,7 +92,6 @@ module Geokit
92
92
  end
93
93
 
94
94
  xml = res.body
95
- logger.debug("Yandex geocoding: '#{geocode}'. Result: #{xml}")
96
95
  return xml2GeoLoc(xml)
97
96
  end
98
97
 
@@ -40,13 +40,13 @@ module YMaps
40
40
  :type => 'application/ymapsml+xml'))
41
41
  end
42
42
 
43
- def ymaps_javascript_path(key = nil)
44
- key ||= YMaps.key
45
- "http://api-maps.yandex.ru/1.1/index.xml?key=#{key}"
43
+ def ymaps_javascript_path(key = nil, by_require = 0)
44
+ query = {:key => key || YMaps.key, :loadByRequire => by_require}.to_query
45
+ "http://api-maps.yandex.ru/1.1/index.xml?#{query}"
46
46
  end
47
47
 
48
- def ymaps_include_tag(key = nil)
49
- javascript_include_tag(ymaps_javascript_path)
48
+ def ymaps_include_tag(key = nil, by_require = 0)
49
+ javascript_include_tag(ymaps_javascript_path(key, by_require))
50
50
  end
51
51
 
52
52
  def static_map(resources, options = {})
@@ -1,3 +1,3 @@
1
1
  module YMaps
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,60 +1,65 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ymaps
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.8
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Alexander Semyonov
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-09-19 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2013-06-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: geokit
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
21
17
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "1.5"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
24
20
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: shoulda
28
21
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: shoulda
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
35
34
  type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: yard
39
35
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
46
48
  type: :development
47
- version_requirements: *id003
48
- description: Different helpers for generating YMapsML, using YMaps widgets and geocoding via Yandex.Maps
49
- email:
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Different helpers for generating YMapsML, using YMaps widgets and geocoding
56
+ via Yandex.Maps
57
+ email:
50
58
  - al@semyonov.us
51
59
  executables: []
52
-
53
60
  extensions: []
54
-
55
61
  extra_rdoc_files: []
56
-
57
- files:
62
+ files:
58
63
  - .document
59
64
  - .gitignore
60
65
  - Gemfile
@@ -76,30 +81,28 @@ files:
76
81
  - ymaps.gemspec
77
82
  homepage: http://github.com/rotuka/ymaps
78
83
  licenses: []
79
-
84
+ metadata: {}
80
85
  post_install_message:
81
86
  rdoc_options: []
82
-
83
- require_paths:
87
+ require_paths:
84
88
  - lib
85
- required_ruby_version: !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: "0"
91
- required_rubygems_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: "0"
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'
97
99
  requirements: []
98
-
99
100
  rubyforge_project: ymaps
100
- rubygems_version: 1.8.10
101
+ rubygems_version: 2.0.3
101
102
  signing_key:
102
- specification_version: 3
103
+ specification_version: 4
103
104
  summary: Helpers for using YMaps
104
- test_files: []
105
-
105
+ test_files:
106
+ - test/helper.rb
107
+ - test/test_ymaps.rb
108
+ has_rdoc: