gcmapper 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -1
- data/CONTRIBUTING.md +8 -0
- data/LICENSE +1 -1
- data/README.md +20 -6
- data/lib/gcmapper.rb +0 -4
- data/lib/gcmapper/version.rb +1 -1
- data/spec/gcmap_strings.txt +3 -0
- metadata +6 -3
data/.travis.yml
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
1. Fork it
|
4
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
5
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
6
|
+
4. Make sure all tests pass!
|
7
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
8
|
+
6. Create new Pull Request
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# GCMapper
|
1
|
+
# GCMapper
|
2
2
|
|
3
3
|
A Ruby gem for easy generation of Great Circle Map images between 2 or more airports.
|
4
4
|
The gem provides an API for constructing the image URLs, the maps themselves are pulled from
|
@@ -7,6 +7,15 @@ The gem provides an API for constructing the image URLs, the maps themselves are
|
|
7
7
|
The look and size of the map image can be customized by passing an optional hash of arguments, as explained
|
8
8
|
in the [Usage section](#usage).
|
9
9
|
|
10
|
+
[![Build Status](https://secure.travis-ci.org/tarakanbg/gcmapper.png?branch=master)](http://travis-ci.org/tarakanbg/gcmapper)
|
11
|
+
[![Gemnasium](https://gemnasium.com/tarakanbg/gcmapper.png?travis)](https://gemnasium.com/tarakanbg/gcmapper)
|
12
|
+
[![Gem Version](https://badge.fury.io/rb/gcmapper.png)](http://badge.fury.io/rb/gcmapper)
|
13
|
+
[![Code Climate](https://codeclimate.com/github/tarakanbg/gcmapper.png)](https://codeclimate.com/github/tarakanbg/gcmapper)
|
14
|
+
|
15
|
+
## Requirements
|
16
|
+
|
17
|
+
[Ruby 1.9.3](http://www.ruby-lang.org/en/downloads/) or higher | **Supports Ruby 2.0!**
|
18
|
+
|
10
19
|
## Installation
|
11
20
|
|
12
21
|
Add this line to your application's Gemfile:
|
@@ -113,6 +122,10 @@ Finally, here's an example of how to use the gem in a Rails application:
|
|
113
122
|
|
114
123
|
## Changelog
|
115
124
|
|
125
|
+
### v. 0.4.0 February 27rd 2013
|
126
|
+
|
127
|
+
* Ruby 2.0 support
|
128
|
+
|
116
129
|
### v. 0.3.1 September 23rd 2012
|
117
130
|
|
118
131
|
* More test cases
|
@@ -133,16 +146,17 @@ Finally, here's an example of how to use the gem in a Rails application:
|
|
133
146
|
1. Fork it
|
134
147
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
135
148
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
136
|
-
4.
|
137
|
-
5.
|
149
|
+
4. Make sure all tests pass!
|
150
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
151
|
+
6. Create new Pull Request
|
138
152
|
|
139
153
|
## Credits
|
140
154
|
|
141
|
-
Copyright ©
|
155
|
+
Copyright © 2013 [Svilen Vassilev](http://svilen.rubystudio.net)
|
142
156
|
|
143
|
-
*If you find my work useful or time-saving, you can endorse it or buy me a
|
157
|
+
*If you find my work useful or time-saving, you can endorse it or buy me a cup of coffee:*
|
144
158
|
|
145
|
-
[![endorse](http://api.coderwall.com/svilenv/
|
159
|
+
[![endorse](http://api.coderwall.com/svilenv/endorsecount.png)](http://coderwall.com/svilenv)
|
146
160
|
[![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)
|
147
161
|
|
148
162
|
Released under the [MIT LICENSE](https://github.com/tarakanbg/gcmapper/blob/master/LICENSE)
|
data/lib/gcmapper.rb
CHANGED
@@ -15,10 +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
|
-
# disc + user code b:disc7%2b%25U
|
19
|
-
# disc + user_code + city b:disc7%2b\"%25U%25+%28N\"
|
20
|
-
# disc + airport_name b:disc7+%A
|
21
|
-
|
22
18
|
def self.parse_styles(args)
|
23
19
|
style = 'b:disc7%2b' #basic
|
24
20
|
args[:city] == false ? style += '%25U' : style += '"%25U%25+%28N"'
|
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.4.0
|
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:
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -54,6 +54,7 @@ extra_rdoc_files: []
|
|
54
54
|
files:
|
55
55
|
- .gitignore
|
56
56
|
- .travis.yml
|
57
|
+
- CONTRIBUTING.md
|
57
58
|
- Gemfile
|
58
59
|
- LICENSE
|
59
60
|
- README.md
|
@@ -61,6 +62,7 @@ files:
|
|
61
62
|
- gcmapper.gemspec
|
62
63
|
- lib/gcmapper.rb
|
63
64
|
- lib/gcmapper/version.rb
|
65
|
+
- spec/gcmap_strings.txt
|
64
66
|
- spec/gcmapper_spec.rb
|
65
67
|
- spec/spec_helper.rb
|
66
68
|
homepage: https://github.com/tarakanbg/gcmapper
|
@@ -83,10 +85,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
85
|
version: '0'
|
84
86
|
requirements: []
|
85
87
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
88
|
+
rubygems_version: 1.8.25
|
87
89
|
signing_key:
|
88
90
|
specification_version: 3
|
89
91
|
summary: A Ruby gem for easy generation of Great Circle Map images
|
90
92
|
test_files:
|
93
|
+
- spec/gcmap_strings.txt
|
91
94
|
- spec/gcmapper_spec.rb
|
92
95
|
- spec/spec_helper.rb
|