gcmapper 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +17 -2
- data/lib/gcmapper.rb +1 -2
- data/lib/gcmapper/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -113,14 +113,16 @@ 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 August 27th 2012
|
117
|
+
|
118
|
+
* Updated for [vatsim_online](https://rubygems.org/gems/vatsim_online) compatibility
|
119
|
+
|
116
120
|
### v. 0.2 July 2nd 2012
|
117
121
|
|
118
122
|
* [Enhancement] Maps now show the user input code (ICAO or IATA) instead of ICAO only
|
119
123
|
* [Feature] New hash option `:city` to toggle city labels on or off (see [Usage](#usage))
|
120
124
|
* [Feature] New hash option `:airport_name` to toggle airport name labels on or off (see [Usage](#usage))
|
121
125
|
|
122
|
-
|
123
|
-
|
124
126
|
## Contributing
|
125
127
|
|
126
128
|
1. Fork it
|
@@ -128,3 +130,16 @@ Finally, here's an example of how to use the gem in a Rails application:
|
|
128
130
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
129
131
|
4. Push to the branch (`git push origin my-new-feature`)
|
130
132
|
5. Create new Pull Request
|
133
|
+
|
134
|
+
## Credits
|
135
|
+
|
136
|
+
Copyright © 2012 [Svilen Vassilev](http://about.me/svilen)
|
137
|
+
|
138
|
+
*If you find my work useful or time-saving, you can endorse it or buy me a beer:*
|
139
|
+
|
140
|
+
[](http://coderwall.com/svilenv)
|
141
|
+
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5FR7AQA4PLD8A)
|
142
|
+
|
143
|
+
Released under the [MIT LICENSE](https://github.com/tarakanbg/airdata/blob/master/LICENSE)
|
144
|
+
|
145
|
+
Maps generated by the [Great Circle Mapper](http://www.gcmap.com/), copyright Karl L. Swartz
|
data/lib/gcmapper.rb
CHANGED
@@ -15,7 +15,6 @@ module Gcmapper
|
|
15
15
|
url = "http://www.gcmap.com/map?P=#{route}%0d%0a&MS=#{tr}&MR=120&MX=#{width}x#{height}&PM=#{style}"
|
16
16
|
end
|
17
17
|
|
18
|
-
private
|
19
18
|
# disc + user code b:disc7%2b%25U
|
20
19
|
# disc + user_code + city b:disc7%2b\"%25U%25+%28N\"
|
21
20
|
# disc + airport_name b:disc7+%A
|
@@ -24,7 +23,7 @@ private
|
|
24
23
|
style = 'b:disc7%2b' #basic
|
25
24
|
args[:city] == false ? style += '%25U' : style += '"%25U%25+%28N"'
|
26
25
|
style = 'b:disc7+%A' if args[:airport_name] == true
|
27
|
-
|
26
|
+
style
|
28
27
|
end
|
29
28
|
end
|
30
29
|
|
data/lib/gcmapper/version.rb
CHANGED
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: '0.
|
4
|
+
version: '0.3'
|
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-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|