hamfinder 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/hamfinder.gemspec +1 -1
- data/lib/hamfinder.rb +2 -2
- data/lib/hamfinder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ae413fae85a09aa7ae2408ace383eebfaae8f86
|
|
4
|
+
data.tar.gz: 900b14febd85244a36819dafadefea1d87e27502
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b382f04feefba07a6a054206d3f0351fe34466bf0e5bf278e21751034b54975b71ba14b5b0fa04301d97314f93b75405c06fa0f39eb0aa8c7f16e3a8dea78df2
|
|
7
|
+
data.tar.gz: 12b51aeabb7a572a6a9a0e91a2dd0e3b2cbb875c307767055f0f70b5c4414b4b26a112576d72ecf68c32ff2d7dc9df20205ce1f24ce53216c8d94cff535e1295
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
hamfinder (0.1.
|
|
4
|
+
hamfinder (0.1.1)
|
|
5
5
|
nokogiri (~> 1.6)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -19,20 +19,20 @@ GEM
|
|
|
19
19
|
mini_portile2 (~> 2.1.0)
|
|
20
20
|
pkg-config (~> 1.1.7)
|
|
21
21
|
pkg-config (1.1.7)
|
|
22
|
-
rake (
|
|
23
|
-
rspec (3.
|
|
24
|
-
rspec-core (~> 3.
|
|
25
|
-
rspec-expectations (~> 3.
|
|
26
|
-
rspec-mocks (~> 3.
|
|
27
|
-
rspec-core (3.
|
|
28
|
-
rspec-support (~> 3.
|
|
29
|
-
rspec-expectations (3.
|
|
22
|
+
rake (11.2.2)
|
|
23
|
+
rspec (3.5.0)
|
|
24
|
+
rspec-core (~> 3.5.0)
|
|
25
|
+
rspec-expectations (~> 3.5.0)
|
|
26
|
+
rspec-mocks (~> 3.5.0)
|
|
27
|
+
rspec-core (3.5.3)
|
|
28
|
+
rspec-support (~> 3.5.0)
|
|
29
|
+
rspec-expectations (3.5.0)
|
|
30
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
|
-
rspec-support (~> 3.
|
|
32
|
-
rspec-mocks (3.
|
|
31
|
+
rspec-support (~> 3.5.0)
|
|
32
|
+
rspec-mocks (3.5.0)
|
|
33
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
34
|
-
rspec-support (~> 3.
|
|
35
|
-
rspec-support (3.
|
|
34
|
+
rspec-support (~> 3.5.0)
|
|
35
|
+
rspec-support (3.5.0)
|
|
36
36
|
simplecov (0.12.0)
|
|
37
37
|
docile (~> 1.1.0)
|
|
38
38
|
json (>= 1.8, < 3)
|
data/hamfinder.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Jason Allen"]
|
|
10
10
|
spec.email = ["jasoncaryallen@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{Return queried
|
|
12
|
+
spec.summary = %q{Return queried HAM radio repeater stations}
|
|
13
13
|
spec.description = %q{Querying Repeaterbook.com's data using application-defined criteria, this gem returns a collection of repeaters matching the criteria as JSON objects - conveniently named by their callsigns!}
|
|
14
14
|
spec.homepage = "https://github.com/jasonallenphotography/HAMfinder_gem"
|
|
15
15
|
spec.license = "MIT"
|
data/lib/hamfinder.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Hamfinder
|
|
|
4
4
|
class Parser
|
|
5
5
|
def query(options = {})
|
|
6
6
|
band = band_selection(options[:band])
|
|
7
|
-
radius = set_radius(options[:radius])
|
|
7
|
+
options[:radius] ? radius = set_radius(options[:radius]) : radius = "&distance=10&Dunit=m"
|
|
8
8
|
zip = set_zip(options[:zip])
|
|
9
9
|
url = "https://www.repeaterbook.com/repeaters/prox_result.php?#{zip}#{radius}#{band}&status_id=1"
|
|
10
10
|
parse(url)
|
|
@@ -61,7 +61,7 @@ module Hamfinder
|
|
|
61
61
|
if radius > 0 && radius <= 200
|
|
62
62
|
return "&distance=#{radius}&Dunit=m"
|
|
63
63
|
else
|
|
64
|
-
return "&distance=
|
|
64
|
+
return "&distance=10&Dunit=m"
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
data/lib/hamfinder/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hamfinder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Allen
|
|
@@ -112,5 +112,5 @@ rubyforge_project:
|
|
|
112
112
|
rubygems_version: 2.4.5.1
|
|
113
113
|
signing_key:
|
|
114
114
|
specification_version: 4
|
|
115
|
-
summary: Return queried
|
|
115
|
+
summary: Return queried HAM radio repeater stations
|
|
116
116
|
test_files: []
|