fcc 1.3.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a40f16f549528352153a0d8fb4c1bed24c966b9c3647ae7aee71f46b419920f
4
- data.tar.gz: db47ff830e6c821ffce6fa3c07bd1bb75f34dfb60ca1ffd85566cf6cb95ce7a4
3
+ metadata.gz: 92beb72946f9fc6f903ccc6092daaf1a7218ee317f60a3ee540e57455877fc7d
4
+ data.tar.gz: 71cbb93562b568844f8163c0cd981492bec01f262173d71331bb95eaccaee8b5
5
5
  SHA512:
6
- metadata.gz: 14d033f2b67c0d3a1e8528fd2d4d787c3bf1be01e2f438feb0df731a0d39e5ab6695e721e4b292e2561efb6374591080186b20eff77b82c26f3fcb8df5556ddd
7
- data.tar.gz: 0a9da9bf1d013f096a6c9eb4cc798b8cf98546024702e7c774fe0303d82800a6f1235a0303438b6162585a6673bcd2d6cb7d7e0aadf0b4406bcfa87dc8273f2b
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.0](https://github.com/jkeen/fcc/compare/v1.3.0...v1.2.1) (2022-07-10)
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
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  git_source(:github) { |repo_name| 'https://github.com/jkeen/fcc' }
4
4
 
5
- # Specify your gem's dependencies in popularity.gemspec
5
+ # Specify your gem's dependencies in fcc.gemspec
6
6
  gemspec
7
7
 
8
8
  # group :development do
data/Gemfile.lock CHANGED
@@ -1,34 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcc (1.3.0)
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.3)
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.1.10)
19
+ concurrent-ruby (1.2.0)
20
20
  diff-lcs (1.5.0)
21
- httparty (0.20.0)
22
- mime-types (~> 3.0)
21
+ httparty (0.21.0)
22
+ mini_mime (>= 1.0.0)
23
23
  multi_xml (>= 0.5.2)
24
- i18n (1.10.0)
24
+ i18n (1.12.0)
25
25
  concurrent-ruby (~> 1.0)
26
26
  lightly (0.3.3)
27
- logger (1.5.0)
28
- mime-types (3.4.1)
29
- mime-types-data (~> 3.2015)
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.4)
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://transition.fcc.gov/fcc-bin/'
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
@@ -76,6 +76,8 @@ module FCC
76
76
  records.keys.map do |call|
77
77
  RecordDelegate.new(ExtendedInfo.new(@service).find(call))
78
78
  end.select { |f| f.status.upcase == "LIC" }
79
+ rescue
80
+ []
79
81
  end
80
82
  end
81
83
 
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FCC
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.1'
5
5
  end
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.3.0
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: 2022-07-12 00:00:00.000000000 Z
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: '0'
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: '0'
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
- rubygems_version: 3.3.7
180
- signing_key:
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: