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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abf5512146a595a697c8e421f469242a157bd916
4
- data.tar.gz: e055f8cc0a97a8fa2990d746ffc1e3da5a9450a2
3
+ metadata.gz: 8ae413fae85a09aa7ae2408ace383eebfaae8f86
4
+ data.tar.gz: 900b14febd85244a36819dafadefea1d87e27502
5
5
  SHA512:
6
- metadata.gz: e85e01480ef450735468e96faa981622b48df424f1e6d8a529db61a93b9d8eecf21f78625882cbef5a66424c3b8d00f329a630e2db96d81f3b20c3cba20f024e
7
- data.tar.gz: db1721ee4bec2632d681b9336096f182fb345eb10d84f81fa3285e0cdaaa990836cfd67408f10d6bec6d613db9f1912844c6e14d90548d6dc380db88ebcf5ad4
6
+ metadata.gz: b382f04feefba07a6a054206d3f0351fe34466bf0e5bf278e21751034b54975b71ba14b5b0fa04301d97314f93b75405c06fa0f39eb0aa8c7f16e3a8dea78df2
7
+ data.tar.gz: 12b51aeabb7a572a6a9a0e91a2dd0e3b2cbb875c307767055f0f70b5c4414b4b26a112576d72ecf68c32ff2d7dc9df20205ce1f24ce53216c8d94cff535e1295
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hamfinder (0.1.0)
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 (10.4.2)
23
- rspec (3.4.0)
24
- rspec-core (~> 3.4.0)
25
- rspec-expectations (~> 3.4.0)
26
- rspec-mocks (~> 3.4.0)
27
- rspec-core (3.4.4)
28
- rspec-support (~> 3.4.0)
29
- rspec-expectations (3.4.0)
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.4.0)
32
- rspec-mocks (3.4.1)
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.4.0)
35
- rspec-support (3.4.1)
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)
@@ -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 amateur radio repeater stations}
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"
@@ -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=25&Dunit=m"
64
+ return "&distance=10&Dunit=m"
65
65
  end
66
66
  end
67
67
 
@@ -1,3 +1,3 @@
1
1
  module Hamfinder
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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 amateur radio repeater stations
115
+ summary: Return queried HAM radio repeater stations
116
116
  test_files: []