go_maps 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/go_maps.gemspec +4 -4
- data/lib/go_maps/direction.rb +1 -1
- data/spec/go_maps/direction_spec.rb +1 -1
- metadata +17 -4
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ begin
|
|
7
7
|
require 'jeweler'
|
8
8
|
Jeweler::Tasks.new do |gem|
|
9
9
|
gem.name = "go_maps"
|
10
|
-
gem.version = "0.3.
|
10
|
+
gem.version = "0.3.1"
|
11
11
|
gem.summary = %Q{Ruby API to geographic operations}
|
12
12
|
gem.description = %Q{Ruby API to geographic operations}
|
13
13
|
gem.homepage = "http://github.com/gonow/go_maps"
|
data/go_maps.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{go_maps}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gonow"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-19}
|
13
13
|
s.description = %q{Ruby API to geographic operations}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.homepage = %q{http://github.com/gonow/go_maps}
|
43
43
|
s.rdoc_options = ["--charset=UTF-8"]
|
44
44
|
s.require_paths = ["lib"]
|
45
|
-
s.rubygems_version = %q{1.3.
|
45
|
+
s.rubygems_version = %q{1.3.7}
|
46
46
|
s.summary = %q{Ruby API to geographic operations}
|
47
47
|
s.test_files = [
|
48
48
|
"spec/go_maps/address_spec.rb",
|
@@ -55,7 +55,7 @@ Gem::Specification.new do |s|
|
|
55
55
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
56
|
s.specification_version = 3
|
57
57
|
|
58
|
-
if Gem::Version.new(Gem::
|
58
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
59
59
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
60
60
|
s.add_development_dependency(%q<fakeweb>, [">= 1.2.8"])
|
61
61
|
s.add_runtime_dependency(%q<crack>, [">= 0.1.6"])
|
data/lib/go_maps/direction.rb
CHANGED
@@ -12,7 +12,7 @@ module GoMaps
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def to_html(options = {})
|
15
|
-
Address.new(@from).route_to(@to, :language => options[:language])['steps'].
|
15
|
+
Address.new(@from).route_to(@to, :language => options[:language])['steps'].map { |step| "<div class=\"step\">#{step['html_instructions']}</div>" }.join
|
16
16
|
end
|
17
17
|
|
18
18
|
private
|
@@ -28,7 +28,7 @@ describe GoMaps::Direction do
|
|
28
28
|
|
29
29
|
it 'should return an html with a language specified' do
|
30
30
|
map_addresses_to_file(@address1, @address2, 'direction_success_pt-BR', :language => 'pt-BR')
|
31
|
-
@direction.to_html(:language => 'pt-BR').include
|
31
|
+
@direction.to_html(:language => 'pt-BR').should include('<div class="step">Siga na direção <b>leste</b> na <b>R. dos Pinheiros</b> em direção à <b>R. Francisco Leitão</b> <span style="white-space: nowrap">- siga <b>85 m</b></span></div>')
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should raise an address not found expection' do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go_maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Gonow
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-19 00:00:00 -03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rspec
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 13
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 2
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: fakeweb
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 15
|
41
46
|
segments:
|
42
47
|
- 1
|
43
48
|
- 2
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: crack
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 23
|
55
62
|
segments:
|
56
63
|
- 0
|
57
64
|
- 1
|
@@ -63,9 +70,11 @@ dependencies:
|
|
63
70
|
name: nokogiri
|
64
71
|
prerelease: false
|
65
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
66
74
|
requirements:
|
67
75
|
- - ">="
|
68
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 5
|
69
78
|
segments:
|
70
79
|
- 1
|
71
80
|
- 4
|
@@ -115,23 +124,27 @@ rdoc_options:
|
|
115
124
|
require_paths:
|
116
125
|
- lib
|
117
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
118
128
|
requirements:
|
119
129
|
- - ">="
|
120
130
|
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
121
132
|
segments:
|
122
133
|
- 0
|
123
134
|
version: "0"
|
124
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
125
137
|
requirements:
|
126
138
|
- - ">="
|
127
139
|
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
128
141
|
segments:
|
129
142
|
- 0
|
130
143
|
version: "0"
|
131
144
|
requirements: []
|
132
145
|
|
133
146
|
rubyforge_project:
|
134
|
-
rubygems_version: 1.3.
|
147
|
+
rubygems_version: 1.3.7
|
135
148
|
signing_key:
|
136
149
|
specification_version: 3
|
137
150
|
summary: Ruby API to geographic operations
|