Compare commits

3 Commits

3 changed files with 72 additions and 6 deletions

14
Gemfile Normal file
View File

@@ -0,0 +1,14 @@
# Gemfile
# Default source for all public gems
source "https://rubygems.org"
# Other project gems
gem "rails", "~> 7.0"
gem "puma", "~> 6.4"
# Specify that the 'evercatch' gem should be fetched from Gitea server.
# The user must have their ~/.gem/credentials configured.
source "https://git.psmattas.com/api/packages/Evercatch/rubygems" do
gem "evercatch", "~> 0.0.1"
end

25
LICENSE
View File

@@ -1,8 +1,21 @@
Copyright (c) 2026 Evercatch. All rights reserved.
MIT License
This software and its source code are proprietary and confidential.
Unauthorised copying, distribution, modification, or use of this software,
in whole or in part, via any medium, is strictly prohibited without the
prior written permission of Evercatch.
Copyright (c) 2026 Evercatch
For licensing enquiries, contact: legal@evercatch.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

39
Rakefile Normal file
View File

@@ -0,0 +1,39 @@
# Rakefile for building and publishing the evercatch gem
# --- Configuration ---
GITEA_HOST = "https://git.psmattas.com/api/packages/Evercatch/rubygems"
GEMSPEC_FILE = "evercatch.gemspec"
# --------------------
# Load gemspec to get name and version
spec = Gem::Specification.load(GEMSPEC_FILE)
PACKAGE_FILE = "#{spec.name}-#{spec.version}.gem"
desc "Build the #{PACKAGE_FILE} gem"
task :build do
puts "Building #{PACKAGE_FILE}..."
system("gem build #{GEMSPEC_FILE}")
end
namespace :publish do
desc "Publish the gem to the public RubyGems.org registry"
task :public => :build do
puts "Publishing #{PACKAGE_FILE} to RubyGems.org..."
system("gem push #{PACKAGE_FILE}")
end
desc "Publish the gem to the private Gitea registry"
task :gitea => :build do
puts "Publishing #{PACKAGE_FILE} to Gitea..."
system("gem push --host #{GITEA_HOST} #{PACKAGE_FILE}")
end
desc "Publish the gem to both Gitea and RubyGems.org"
task :all => [:gitea, :public]
end
desc "Clean up built package files"
task :clean do
puts "Cleaning up *.gem files..."
system("rm -f *.gem")
end