gull 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -6
- data/gull.gemspec +4 -2
- data/lib/gull/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3e67e6a987d6007ca91221813d77ab03262127f
|
4
|
+
data.tar.gz: 010cea3851d8cc69224d10a34d1c4ad24c6bb9f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 189f4c9e572105e047f446e8d7f6d2a3581a7f831980be660733a9e6f8098a2e9b06c1d5ce9b9fabe496c373a15ee473b126ef958f632941497739f3338176cc
|
7
|
+
data.tar.gz: 16a7630a88d29959f1f6d2519c9f698efbae9f56d53a572ad99fbf45391c64b07e34f2cb5e6d627b63b82dfebeb8fceb4ef4bd65b24bac95dd0cc2d9349af6bf
|
data/README.md
CHANGED
@@ -19,22 +19,26 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
require 'gull
|
22
|
+
require 'gull'
|
23
23
|
|
24
24
|
alerts = Gull::Alert.fetch
|
25
25
|
alert = alert.first
|
26
26
|
|
27
27
|
#Generate map of polygon (if alert has one)
|
28
28
|
#requires Google Static Maps API Key
|
29
|
-
|
29
|
+
alert.polygon.image_url "your_api_key"
|
30
30
|
|
31
|
-
puts url
|
32
31
|
=> "http://maps.googleapis.com/maps/api/staticmap?size=640x640&maptype=roadmap&path=color:0xff0000|weight:3|fillcolor:0xff000060|38.73,-94.22|38.75,-94.16|38.57,-93.94|38.4,-93.84|38.4,-93.91|38.73,-94.22&key=your_api_key"
|
33
32
|
|
34
33
|
#options can be passed for map to override defaults
|
35
34
|
options = { :width => 600, :height => 300, :color => "0xfbf000", :weight => 4, :fillcolor => "0xfbf00070", :maptype => "hybrid" }
|
36
35
|
|
37
36
|
alert.polygon.image_url "your_api_key", options
|
37
|
+
|
38
|
+
#returns the centroid of the polygon
|
39
|
+
alert.polygon.centroid
|
40
|
+
|
41
|
+
=> [34.835, -91.205]
|
38
42
|
|
39
43
|
|
40
44
|
|
@@ -73,9 +77,10 @@ Or install it yourself as:
|
|
73
77
|
|
74
78
|
1. Fork it ( https://github.com/sethdeckard/gull/fork )
|
75
79
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
76
|
-
3.
|
77
|
-
4.
|
78
|
-
5.
|
80
|
+
3. Run the specs, make sure they pass and that few features are covered
|
81
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
82
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
83
|
+
6. Create a new Pull Request
|
79
84
|
|
80
85
|
## License
|
81
86
|
|
data/gull.gemspec
CHANGED
@@ -18,9 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
21
|
+
spec.required_ruby_version = '>= 1.9.3'
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
24
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "rspec"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.1"
|
24
26
|
spec.add_development_dependency "webmock"
|
25
27
|
|
26
28
|
spec.add_runtime_dependency "httpclient"
|
data/lib/gull/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gull
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Deckard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: webmock
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
129
129
|
requirements:
|
130
130
|
- - '>='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 1.9.3
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - '>='
|