fcc 1.3.0 → 1.4.1
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/.github/workflows/release.yml +27 -0
- data/.github/workflows/tests.yml +53 -0
- data/CHANGELOG.md +6 -2
- data/Gemfile +1 -1
- data/Gemfile.lock +11 -13
- data/fcc.gemspec +1 -1
- data/lib/fcc/station/extended_info.rb +1 -2
- data/lib/fcc/station/result.rb +2 -0
- data/lib/version.rb +1 -1
- data/package.json +92 -0
- metadata +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92beb72946f9fc6f903ccc6092daaf1a7218ee317f60a3ee540e57455877fc7d
|
4
|
+
data.tar.gz: 71cbb93562b568844f8163c0cd981492bec01f262173d71331bb95eaccaee8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed6c541358a4b81eee8c1a37c94435b9e2ed3904f392cfa4f05d24ce947a6bd162d47d68fb8600e3850abb458b7595a9bcab3d278cb3da5f85afa54a58e50312
|
7
|
+
data.tar.gz: 18304970201bb0c9becfc758ff96a95f62b7246922c51832b48b4a0e8f97a0ab14608e38685a80033f1e21063f72ba25f835afa544be30a7dd263f9a31835016
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
name: Generate New Release
|
3
|
+
|
4
|
+
on:
|
5
|
+
workflow_dispatch:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
release:
|
9
|
+
name: Release
|
10
|
+
runs-on: ubuntu-18.04
|
11
|
+
steps:
|
12
|
+
- name: Checkout
|
13
|
+
uses: actions/checkout@v2
|
14
|
+
with:
|
15
|
+
fetch-depth: 0
|
16
|
+
persist-credentials: false
|
17
|
+
- name: Setup Node.js
|
18
|
+
uses: actions/setup-node@v2
|
19
|
+
with:
|
20
|
+
node-version: 14
|
21
|
+
- name: Install Dependencies
|
22
|
+
run: yarn install --frozen-lockfile
|
23
|
+
- name: Release
|
24
|
+
env:
|
25
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
26
|
+
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
27
|
+
run: node_modules/.bin/semantic-release
|
@@ -0,0 +1,53 @@
|
|
1
|
+
name: Tests
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
pull_request:
|
5
|
+
concurrency:
|
6
|
+
group: ci-tests-${{ github.ref }}-1
|
7
|
+
cancel-in-progress: true
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
name: Run Tests
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
os: [ ubuntu-latest ]
|
15
|
+
ruby: [ '2.7' ]
|
16
|
+
runs-on: ${{ matrix.os }}
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v3
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
23
|
+
- uses: actions/cache@v3
|
24
|
+
with:
|
25
|
+
path: vendor/bundle
|
26
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
27
|
+
restore-keys: |
|
28
|
+
${{ runner.os }}-gems-
|
29
|
+
- name: Bundle Install
|
30
|
+
run: |
|
31
|
+
gem install bundler
|
32
|
+
bundle install --jobs 4 --retry 3
|
33
|
+
|
34
|
+
- name: Run RSpec
|
35
|
+
run: bundle exec rspec -f j -o tmp/rspec_results.json -f p
|
36
|
+
|
37
|
+
- name: RSpec Report
|
38
|
+
uses: SonicGarden/rspec-report-action@v2
|
39
|
+
with:
|
40
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
41
|
+
json-path: tmp/rspec_results.json
|
42
|
+
if: always()
|
43
|
+
publish:
|
44
|
+
name: Release
|
45
|
+
runs-on: ubuntu-latest
|
46
|
+
if: github.ref == 'refs/heads/main'
|
47
|
+
needs: [test]
|
48
|
+
steps:
|
49
|
+
- name: Dispatch Release
|
50
|
+
uses: benc-uk/workflow-dispatch@v1
|
51
|
+
with:
|
52
|
+
workflow: Generate New Release
|
53
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
fcc changelog
|
2
2
|
|
3
|
-
## [1.
|
3
|
+
## [1.4.1](https://github.com/jkeen/fcc/compare/v1.4.0...v1.4.1) (2023-02-12)
|
4
4
|
|
5
|
+
# 1.4.0 (2022-11-25)
|
6
|
+
- https://github.com/jkeen/fcc/compare/v1.4.0...v1.3.0
|
7
|
+
|
8
|
+
# 1.3.0 (2022-07-10)
|
5
9
|
- Combine data from multiple sources to get a full picture of the station data (transition api, public api, LMS csv files)
|
6
|
-
- Now includes related transmitters, repeaters, low power stations, etc
|
10
|
+
- Now includes related transmitters, repeaters, low power stations, etc
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,32 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fcc (1.
|
4
|
+
fcc (1.4.0)
|
5
5
|
activesupport (>= 6.1)
|
6
6
|
httparty (~> 0.18)
|
7
7
|
lightly (~> 0.3.3)
|
8
8
|
logger
|
9
|
-
rubyzip
|
9
|
+
rubyzip (~> 2.3.2)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (7.0.
|
14
|
+
activesupport (7.0.4.2)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
18
18
|
tzinfo (~> 2.0)
|
19
|
-
concurrent-ruby (1.
|
19
|
+
concurrent-ruby (1.2.0)
|
20
20
|
diff-lcs (1.5.0)
|
21
|
-
httparty (0.
|
22
|
-
|
21
|
+
httparty (0.21.0)
|
22
|
+
mini_mime (>= 1.0.0)
|
23
23
|
multi_xml (>= 0.5.2)
|
24
|
-
i18n (1.
|
24
|
+
i18n (1.12.0)
|
25
25
|
concurrent-ruby (~> 1.0)
|
26
26
|
lightly (0.3.3)
|
27
|
-
logger (1.5.
|
28
|
-
|
29
|
-
|
30
|
-
mime-types-data (3.2022.0105)
|
31
|
-
minitest (5.16.2)
|
27
|
+
logger (1.5.3)
|
28
|
+
mini_mime (1.1.2)
|
29
|
+
minitest (5.17.0)
|
32
30
|
multi_xml (0.6.0)
|
33
31
|
rake (12.3.3)
|
34
32
|
rspec (3.9.0)
|
@@ -45,7 +43,7 @@ GEM
|
|
45
43
|
rspec-support (~> 3.9.0)
|
46
44
|
rspec-support (3.9.4)
|
47
45
|
rubyzip (2.3.2)
|
48
|
-
tzinfo (2.0.
|
46
|
+
tzinfo (2.0.6)
|
49
47
|
concurrent-ruby (~> 1.0)
|
50
48
|
|
51
49
|
PLATFORMS
|
data/fcc.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_dependency "activesupport", ">= 6.1"
|
21
21
|
spec.add_dependency "httparty", "~> 0.18"
|
22
22
|
spec.add_dependency "lightly", "~> 0.3.3"
|
23
|
-
spec.add_dependency "rubyzip"
|
23
|
+
spec.add_dependency "rubyzip", "~> 2.3.2"
|
24
24
|
spec.add_dependency "logger"
|
25
25
|
spec.add_development_dependency "bundler", "~> 2.1"
|
26
26
|
spec.add_development_dependency "rake", "~> 12.3.3"
|
@@ -7,7 +7,7 @@ module FCC
|
|
7
7
|
include HTTParty
|
8
8
|
attr_accessor :results, :service
|
9
9
|
|
10
|
-
base_uri 'https://
|
10
|
+
base_uri 'https://fcc-cache.b-cdn.net/fcc-bin/'
|
11
11
|
|
12
12
|
def initialize(service)
|
13
13
|
@service = service
|
@@ -69,7 +69,6 @@ module FCC
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def find_directly(options)
|
72
|
-
|
73
72
|
response = self.class.get("/#{service.to_s.downcase}q", @options.merge(query: @query.merge(options)))
|
74
73
|
FCC.log response.request.uri.to_s.gsub('&list=4', '&list=0')
|
75
74
|
response.parsed_response
|
data/lib/fcc/station/result.rb
CHANGED
data/lib/version.rb
CHANGED
data/package.json
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
{
|
2
|
+
"name": "fcc",
|
3
|
+
"version": "1.x.x-semantic-release",
|
4
|
+
"repository": {
|
5
|
+
"type": "git",
|
6
|
+
"url": "git+https://github.com/jkeen/fcc.git"
|
7
|
+
},
|
8
|
+
"author": "jkeen",
|
9
|
+
"license": "MIT",
|
10
|
+
"bugs": {
|
11
|
+
"url": "https://github.com/jkeen/fcc/issues"
|
12
|
+
},
|
13
|
+
"homepage": "https://github.com/jkeen/fcc#readme",
|
14
|
+
"scripts": {
|
15
|
+
"semantic-release": "semantic-release"
|
16
|
+
},
|
17
|
+
"devDependencies": {
|
18
|
+
"semantic-release-rubygem": "^1.2.0",
|
19
|
+
"semantic-release": "^19.0.3",
|
20
|
+
"@semantic-release/changelog": "^6.0.1",
|
21
|
+
"@semantic-release/git": "^10.0.1"
|
22
|
+
},
|
23
|
+
"release": {
|
24
|
+
"branches": ["main"],
|
25
|
+
"plugins": [
|
26
|
+
[
|
27
|
+
"@semantic-release/commit-analyzer",
|
28
|
+
{
|
29
|
+
"releaseRules": [
|
30
|
+
{
|
31
|
+
"type": "*!",
|
32
|
+
"release": "major"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"type": "feat",
|
36
|
+
"release": "minor"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"type": "build",
|
40
|
+
"release": "patch"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"type": "ci",
|
44
|
+
"release": "patch"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"type": "chore",
|
48
|
+
"release": "patch"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"type": "docs",
|
52
|
+
"release": "patch"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"type": "refactor",
|
56
|
+
"release": "patch"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"type": "style",
|
60
|
+
"release": "patch"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"type": "test",
|
64
|
+
"release": "patch"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"parserOpts": {
|
68
|
+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
|
69
|
+
}
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"@semantic-release/release-notes-generator",
|
73
|
+
[
|
74
|
+
"@semantic-release/changelog",
|
75
|
+
{
|
76
|
+
"changelogTitle": "fcc changelog",
|
77
|
+
"changelogFile": "CHANGELOG.md"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"semantic-release-rubygem",
|
81
|
+
"@semantic-release/github",
|
82
|
+
[
|
83
|
+
"@semantic-release/git",
|
84
|
+
{
|
85
|
+
"assets": ["CHANGELOG.md"],
|
86
|
+
"message": "${nextRelease.version} CHANGELOG [skip ci]\n\n${nextRelease.notes}"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
],
|
90
|
+
"debug": false,
|
91
|
+
"dryRun": false
|
92
|
+
}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fcc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Keen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rubyzip
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.3.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.3.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: logger
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +131,8 @@ extensions: []
|
|
131
131
|
extra_rdoc_files: []
|
132
132
|
files:
|
133
133
|
- ".document"
|
134
|
+
- ".github/workflows/release.yml"
|
135
|
+
- ".github/workflows/tests.yml"
|
134
136
|
- ".gitignore"
|
135
137
|
- CHANGELOG.md
|
136
138
|
- Gemfile
|
@@ -155,13 +157,14 @@ files:
|
|
155
157
|
- lib/fcc/station/record_group.rb
|
156
158
|
- lib/fcc/station/result.rb
|
157
159
|
- lib/version.rb
|
160
|
+
- package.json
|
158
161
|
- spec/fcc_spec.rb
|
159
162
|
- spec/spec_helper.rb
|
160
163
|
homepage: http://github.com/jkeen/fcc
|
161
164
|
licenses:
|
162
165
|
- MIT
|
163
166
|
metadata: {}
|
164
|
-
post_install_message:
|
167
|
+
post_install_message:
|
165
168
|
rdoc_options: []
|
166
169
|
require_paths:
|
167
170
|
- lib
|
@@ -176,8 +179,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
179
|
- !ruby/object:Gem::Version
|
177
180
|
version: '0'
|
178
181
|
requirements: []
|
179
|
-
|
180
|
-
|
182
|
+
rubyforge_project:
|
183
|
+
rubygems_version: 2.7.6
|
184
|
+
signing_key:
|
181
185
|
specification_version: 4
|
182
186
|
summary: Searches the FCC's FM, AM, and TV databases
|
183
187
|
test_files:
|