Skip to content

Commit 8611f33

Browse files
authored
chore: publish avo on rubygems (#151)
1 parent 66ec1c8 commit 8611f33

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,10 @@ jobs:
101101
chmod 600 ~/.gem/credentials
102102
gem push --key github --host https://rubygems.pkg.github.com/avo-hq ./pkg/avo-${{steps.gem_version.outputs.tag}}.gem
103103
104+
- name: Publish to rubygems.org
105+
id: publish-to-rubygems-package-registry
106+
run: |
107+
gem push --host https://rubygems.org/ ./pkg/avo-${{steps.gem_version.outputs.tag}}.gem
108+
104109
- name: Publish release on avohq.io
105110
run: node .github/publish-release-to-avo-hq-io.js

LICENSE.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright © Avo HQ.
2+
3+
Permission is hereby granted to any person obtaining a copy of this software (the “Software”) to use, copy, modify, merge, publish and/or distribute copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
1. **Do not plagiarize.** The above copyright notice and this license shall be included in all copies or substantial portions of the Software.
6+
7+
2. **Do not use the same license on more than one project.** Each licensed copy of the Software shall be actively installed in no more than one production environment at a time.
8+
9+
3. **Do not alter the licensing features.** Software features related to licensing shall not be altered or circumvented in any way, including (but not limited to) license validation, feature or edition restrictions, and update eligibility.
10+
11+
4. **Not for reuse.** The Software and the proprietary code therein, not limited to but including designs, components, classes, and patterns, may not be reused in other projects without the express written consent of Avo HQ.
12+
13+
5. **Follow the law.** All use of the Software shall not violate any applicable law or regulation, nor infringe the rights of any other person or entity.
14+
15+
Failure to comply with the foregoing conditions will automatically and immediately result in termination of the permission granted hereby. This license does not include any right to receive updates to the Software or technical support. Licensees bear all risk related to the quality and
16+
performance of the Software and any modifications made or obtained to it, including liability for actual and consequential harm, such as loss or corruption of data, and any necessary service, repair, or correction.
17+
18+
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, INCLUDING SPECIAL, INCIDENTAL AND CONSEQUENTIAL DAMAGES, WHETHER IN
19+
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.

avo.gemspec

-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ Gem::Specification.new do |spec|
1616

1717
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
1818
# to allow pushing to a single host or delete this section to allow pushing to any host.
19-
if spec.respond_to?(:metadata)
20-
spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com/avo-hq'
21-
else
22-
raise 'RubyGems 2.0 or newer is required to protect against ' \
23-
'public gem pushes.'
24-
end
2519

2620
spec.files = Dir['{bin,app,config,db,lib,public}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md', 'avo.gemspec', 'Gemfile', 'Gemfile.lock']
2721
.reject { |file| file.start_with? 'app/frontend' }

0 commit comments

Comments
 (0)