Compare commits
3 Commits
EC-21-Offi
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
f31001dd51
|
|||
|
1c6812483d
|
|||
|
a77e8f4fe5
|
14
Gemfile
Normal file
14
Gemfile
Normal 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
25
LICENSE
@@ -1,8 +1,21 @@
|
|||||||
Copyright (c) 2026 Evercatch. All rights reserved.
|
MIT License
|
||||||
|
|
||||||
This software and its source code are proprietary and confidential.
|
Copyright (c) 2026 Evercatch
|
||||||
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.
|
|
||||||
|
|
||||||
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
39
Rakefile
Normal 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
|
||||||
Reference in New Issue
Block a user