From b8a4a8ce51f0d69e0f738a333fb8727286f7ed5a Mon Sep 17 00:00:00 2001 From: Mike Lowis Date: Mon, 15 Jan 2024 13:19:13 -0500 Subject: [PATCH] fixed up html and ruby to play correctly and stay synced. next up is rudimentary controls --- atv/Gemfile.lock | 29 ++++++++++------------------- atv/Rakefile.rb | 23 +++-------------------- atv/assets/index.html | 35 ++++++++++++++++++++++++++--------- atv/atv.gemspec | 41 ++++++++++++++++++----------------------- atv/bin/atv | 2 +- atv/lib/atv/channel.rb | 5 +++-- atv/lib/atv/database.rb | 13 +++++++------ 7 files changed, 68 insertions(+), 80 deletions(-) diff --git a/atv/Gemfile.lock b/atv/Gemfile.lock index 43c1815..0ca4371 100644 --- a/atv/Gemfile.lock +++ b/atv/Gemfile.lock @@ -1,21 +1,15 @@ +PATH + remote: . + specs: + atv (1.0.0) + iodine + GEM - remote: https://rubygems.org/ specs: diff-lcs (1.5.0) docile (1.4.0) - gentex-gems-teamcity_utils (1.13.2) - nokogiri (~> 1.6) - rexml (~> 3.0) - gentex-gpkg (1.29.0) - bundler - rexml (~> 3.0) - yawpa (~> 1.1) - json (2.7.1) - nokogiri (1.13.8-x86_64-linux) - racc (~> 1.4) - racc (1.6.0) + iodine (0.7.55) rake (13.1.0) - rexml (3.2.5) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) @@ -36,19 +30,16 @@ GEM simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) yard (0.9.34) - yawpa (1.3.0) PLATFORMS - x86_64-linux + ruby DEPENDENCIES - gentex-gems-teamcity_utils (~> 1.3) - gentex-gpkg (>= 1.16, < 99.0) - json (~> 2.0) + atv! rake (~> 13.0) rspec (~> 3.0) simplecov (~> 0.9) yard (~> 0.9) BUNDLED WITH - 2.4.7 + 2.1.4 diff --git a/atv/Rakefile.rb b/atv/Rakefile.rb index 7e2048a..81794f4 100644 --- a/atv/Rakefile.rb +++ b/atv/Rakefile.rb @@ -6,21 +6,17 @@ rescue Bundler::BundlerError => e end require "rake/clean" -require "gpkg/rake_tasks" +require "bundler/gem_tasks" require "rspec" require "rspec/core/rake_task" require "yard" require "simplecov" -require "json" -require "gentex/gems/teamcity_utils" CLEAN.include "pkg" CLEAN.include "coverage" CLOBBER.include ".yardoc" CLOBBER.include "doc" -task :default => :spec - RSpec::Core::RakeTask.new(:spec, :example_string) do |task, args| if args.example_string ENV["partial_specs"] = "1" @@ -28,18 +24,6 @@ RSpec::Core::RakeTask.new(:spec, :example_string) do |task, args| end end -task :spec do - # Report coverage % to TeamCity - if Gentex::Gems::TeamcityUtils.server_exec? - begin - cov_pct = JSON.load(File.read("coverage/.last_run.json"))["result"]["line"] - Gentex::Gems::TeamcityUtils.append_build_status(" (cov: #{cov_pct}%)") - rescue Exception => e - $stderr.puts "Error reporting coverage: #{e.message}" - end - end -end - YARD::Rake::YardocTask.new do |yard| yard.options = ["--private", "--title", "atv gem"] yard.files = ["lib/**/*.rb"] @@ -54,10 +38,9 @@ task :yard do end end -task :build_pkg => :yard +task :build => :yard task :default => [ :spec, - :yard, - :build_pkg, + :build, ] diff --git a/atv/assets/index.html b/atv/assets/index.html index f6bc175..cbd7f90 100644 --- a/atv/assets/index.html +++ b/atv/assets/index.html @@ -20,21 +20,38 @@