-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YNGJ-1058: Create Aether Observatory (#297)
Extracting `AetherObservatory` from `Talkbox`. Internal PubSub system base upon `ActiveSupport::Notifications`
- Loading branch information
Showing
29 changed files
with
2,009 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: aether_observatory | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
ruby: | ||
uses: powerhome/github-actions-workflows/.github/workflows/ruby-gem.yml@main | ||
with: | ||
package: ${{ github.workflow }} | ||
workdir: "packages/${{ github.workflow }}" | ||
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_0.gemfile','gemfiles/rails_7_1.gemfile']" | ||
ruby: '["3.0","3.3"]' | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require: | ||
- rubocop-powerhome | ||
|
||
AllCops: | ||
TargetRubyVersion: 3.0 | ||
|
||
Metrics/MethodLength: | ||
Exclude: | ||
- spec/**/*_spec.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise "rails-6-0" do | ||
gem "activemodel", "~> 6.0.6" | ||
gem "activesupport", "~> 6.0.6" | ||
end | ||
|
||
appraise "rails-6-1" do | ||
gem "activemodel", "~> 6.1.7" | ||
gem "activesupport", "~> 6.1.7" | ||
end | ||
|
||
appraise "rails-7-0" do | ||
gem "activemodel", "~> 7.0.8" | ||
gem "activesupport", "~> 7.0.8" | ||
end | ||
|
||
appraise "rails-7-1" do | ||
gem "activemodel", "~> 7.1.3" | ||
gem "activesupport", "~> 7.1.3" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem "rubocop-powerhome", path: "../rubocop-powerhome" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env rake | ||
|
||
# frozen_string_literal: true | ||
|
||
begin | ||
require "bundler/setup" | ||
rescue LoadError | ||
puts "You must `gem install bundler` and `bundle install` to run rake tasks" | ||
end | ||
Bundler::GemHelper.install_tasks | ||
|
||
require "rspec/core/rake_task" | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
require "rubocop/rake_task" | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
require "yard" | ||
YARD::Rake::YardocTask.new do |t| | ||
t.files = ["lib/**/*.rb"] | ||
t.options = [ | ||
"--no-private", | ||
] | ||
end | ||
|
||
task default: %i[rubocop spec] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "lib/aether_observatory/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "aether_observatory" | ||
spec.version = AetherObservatory::VERSION | ||
spec.authors = ["Terry Finn", "Justin Stanczak"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
|
||
spec.summary = "Aether Observatory" | ||
spec.description = "Aether Observatory provides an event broadcast system." | ||
spec.homepage = "https://github.com/powerhome/power-tools" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = ">= 3.0" | ||
|
||
spec.metadata["rubygems_mfa_required"] = "true" | ||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = spec.homepage | ||
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/packages/aether_observatory/docs/CHANGELOG.md" | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
spec.files = Dir.chdir(__dir__) do | ||
`git ls-files -z`.split("\x0").reject do |f| | ||
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) | ||
end | ||
end | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_dependency "activemodel", ">= 6.0.6.1" | ||
spec.add_dependency "activesupport", ">= 6.0.6.1" | ||
spec.add_development_dependency "appraisal", "~> 2.5.0" | ||
|
||
spec.add_development_dependency "bundler", "~> 2.1" | ||
spec.add_development_dependency "license_finder", "~> 7.0" | ||
spec.add_development_dependency "pry", ">= 0.14" | ||
spec.add_development_dependency "pry-byebug", "3.10.1" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
spec.add_development_dependency "simplecov", "0.15.1" | ||
spec.add_development_dependency "yard", "0.9.21" | ||
spec.metadata["rubygems_mfa_required"] = "true" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
- - :inherit_from | ||
- https://raw.githubusercontent.com/powerhome/oss-guide/master/license_rules.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## [0.0.1] - 2024-12-06 | ||
|
||
- Extracts AetherObservatory from Talkbox engine. |
Oops, something went wrong.