gcmapper 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -1
- data/lib/gcmapper/version.rb +1 -1
- data/spec/gcmapper_spec.rb +7 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -113,6 +113,11 @@ Finally, here's an example of how to use the gem in a Rails application:
|
|
113
113
|
|
114
114
|
## Changelog
|
115
115
|
|
116
|
+
### v. 0.3.1 September 23rd 2012
|
117
|
+
|
118
|
+
* More test cases
|
119
|
+
* Typos
|
120
|
+
|
116
121
|
### v. 0.3 August 27th 2012
|
117
122
|
|
118
123
|
* Updated for [vatsim_online](https://rubygems.org/gems/vatsim_online) compatibility
|
@@ -140,6 +145,6 @@ Copyright © 2012 [Svilen Vassilev](http://about.me/svilen)
|
|
140
145
|
[![endorse](http://api.coderwall.com/svilenv/endorse.png)](http://coderwall.com/svilenv)
|
141
146
|
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5FR7AQA4PLD8A)
|
142
147
|
|
143
|
-
Released under the [MIT LICENSE](https://github.com/tarakanbg/
|
148
|
+
Released under the [MIT LICENSE](https://github.com/tarakanbg/gcmapper/blob/master/LICENSE)
|
144
149
|
|
145
150
|
Maps generated by the [Great Circle Mapper](http://www.gcmap.com/), copyright Karl L. Swartz
|
data/lib/gcmapper/version.rb
CHANGED
data/spec/gcmapper_spec.rb
CHANGED
@@ -65,6 +65,13 @@ describe String do
|
|
65
65
|
route.gcmap(:width => 800, :height => 400).should eq("http://www.gcmap.com/map?P=egll-lowi%0d%0a&MS=wls&MR=120&MX=800x400&PM=b:disc7%2b\"%25U%25+%28N\"")
|
66
66
|
end
|
67
67
|
|
68
|
+
it "should interpret non-default simplified width and height as variables" do
|
69
|
+
route = "egll-lowi"
|
70
|
+
w = 400
|
71
|
+
h = 400
|
72
|
+
route.gcmap(:width => w, :height => h).should eq("http://www.gcmap.com/map?P=egll-lowi%0d%0a&MS=wls&MR=120&MX=400x400&PM=b:disc7%2b\"%25U%25+%28N\"")
|
73
|
+
end
|
74
|
+
|
68
75
|
it "should support layover routes" do
|
69
76
|
route = "egll-lowi-lqsa"
|
70
77
|
route.gcmap.should eq("http://www.gcmap.com/map?P=egll-lowi-lqsa%0d%0a&MS=wls&MR=120&MX=720x360&PM=b:disc7%2b\"%25U%25+%28N\"")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gcmapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|