Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:

- restore_cache:
keys:
- has_normalized_attributes-dependencies-v1-{{ checksum "has_normalized_attributes.gemspec" }}
- has_normalized_attributes-dependencies-v1-
- has_normalized_attributes-dependencies-v1-{{ checksum "has_normalized_attributes.gemspec" }}
- has_normalized_attributes-dependencies-v1-

- run:
name: Install dependencies
Expand Down Expand Up @@ -65,8 +65,8 @@ jobs:

- restore_cache:
keys:
- has_normalized_attributes-dependencies-v1-{{ checksum "has_normalized_attributes.gemspec" }}
- has_normalized_attributes-dependencies-v1-
- has_normalized_attributes-dependencies-v1-{{ checksum "has_normalized_attributes.gemspec" }}
- has_normalized_attributes-dependencies-v1-

- run:
name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
inherit_from:
- https://onehq.com/rubocop3_4.yml
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.4.4
9 changes: 4 additions & 5 deletions .tekton/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ type: application
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0


dependencies:
- name: ruby-pipelines
alias: delivery
version: "0.2.0-dev.4"
repository: "oci://public.ecr.aws/c7o8r4o5"
- name: ruby-pipelines
alias: delivery
version: "0.2.0-dev.4"
repository: "oci://public.ecr.aws/c7o8r4o5"
12 changes: 1 addition & 11 deletions .tekton/templates/pipeline-gem-delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ spec:
- name: spec-path
description: Path for ruby specs (e.g. "spec/{abilities,apis,commands}")
default: "spec"

workspaces:
- name: git-source
tasks:

- name: set-initial-status
taskRef:
kind: Task
Expand All @@ -31,7 +29,6 @@ spec:
value: $(params.gem-name)
- name: gitOrganization
value: OneHQ

# This job gets the source from git
- name: fetch-from-git
taskRef:
Expand All @@ -47,7 +44,6 @@ spec:
workspaces:
- name: output
workspace: git-source

# This job gets the source from git
- name: build-ci-image
params:
Expand Down Expand Up @@ -76,11 +72,8 @@ spec:
value: $(params.spec-path)
- name: app
value: $(params.gem-name)

runAfter:
- build-ci-image


- name: run-rubocop
params:
- name: app
Expand All @@ -89,10 +82,8 @@ spec:
value: $(params.ci-image-name):$(params.git-sha)
taskRef:
name: ruby-run-rubocop

runAfter:
- build-ci-image

- name: publish-gem
params:
- name: gem-name
Expand All @@ -102,13 +93,12 @@ spec:
when:
- input: "$(params.publish)"
operator: in
values: ["true"]
values: [ "true" ]
taskRef:
name: publish-to-gemfury
runAfter:
- run-rubocop
- run-specs

finally:
- name: set-final-status
taskRef:
Expand Down
6 changes: 1 addition & 5 deletions .tekton/templates/pipelinerun.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: {{ .Release.Name }}-{{ .Release.Revision }}
name: { { .Release.Name } }-{{ .Release.Revision }}
annotations:
"helm.sh/hook": post-upgrade,post-install
spec:
Expand All @@ -21,9 +21,6 @@ spec:
value: "{{ required "Required .Values.git.ref" .Values.git.ref }}"
- name: rubyVersion
value: "{{ .Values.rubyVersion }}"
workspaces:


pipelineRef:
name: gem-delivery-has-normalized-attributes
timeout: 1h30m0s
Expand All @@ -35,7 +32,6 @@ spec:
- serviceAccountToken:
path: oidc-token
expirationSeconds: 1800

workspaces:
- name: git-source
volumeClaimTemplate:
Expand Down
72 changes: 36 additions & 36 deletions .tekton/values-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@ delivery:
- role: cr_admin_pipes
name: adminpipe
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_adminpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygemsadminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_adminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_adminpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygemsadminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_adminallpipe
- role: cr_operator_pipes
name: operatorpipe
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_operatorpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_operatorpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_operatorallpipe
- role: cr_read_PLR
name: readPLR
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_readpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_readpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readallpipe
- role: cr_read_rerun_PLR
name: readrerunPLR
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_readrerunpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_release_readrerunpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readrerunallpipe
54 changes: 27 additions & 27 deletions .tekton/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ delivery:
- role: cr_admin_pipes
name: adminpipe
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_adminpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_adminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_adminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_adminpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_adminallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_adminallpipe
- role: cr_operator_pipes
name: operatorpipe
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_operatorpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_operatorpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_operatorallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_operatorallpipe
- role: cr_read_rerun_PLR
name: readrerunPLR
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_readrerunpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_pr_readrerunpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_rubygems_readrerunallpipe
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: g_hq_readrerunallpipe
6 changes: 3 additions & 3 deletions .tekton/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ git:
# sha:

global:
taskAnnotations:
taskAnnotations:
vault.security.banzaicloud.io/vault-addr: "https://vault.internal.onehq.com"
vault.security.banzaicloud.io/vault-path: "jwt"
vault.security.banzaicloud.io/vault-auth-method: "jwt"
vault.security.banzaicloud.io/vault-tls-secret: "custom-trusted-ca"
vault.security.banzaicloud.io/vault-tls-secret: "custom-trusted-ca"
gem: *gem
rubyVersion: 3.0.2
rubyVersion: 3.4.4
mountGemDockerfile: true
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# HAS_NORMALIZED_ATTRIBUTES

# Changelog

All notable changes to this project are documented in this file

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Guiding Principles

- Changelogs are for humans, not machines.
- There should be an entry for every single version.
- The same types of changes should be grouped.
- Versions and sections should be linkable.
- The latest version comes first.
- The release date of each version is displayed.
- Mention whether you follow Semantic Versioning.

### Types of changes

- **Added** for new features.
- **Changed** for changes in existing functionality.
- **Deprecated** for soon-to-be removed features.
- **Removed** for now removed features.
- **Fixed** for any bug fixes.
- **Security** in case of vulnerabilities.

## [5.0.0] 2025-12-01

### Added

- Main changelog file created

### Changed

- Ruby version upgrade from 3.0.0 to 3.4.4
- In the gemspec file, allow to be used for Rails versions between 6.1 and 7.2.3.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

# Specify your gem's dependencies in send_grid.gemspec
Expand Down
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
require 'bundler'
require 'rspec/core/rake_task'
# frozen_string_literal: true

require "bundler"
require "rspec/core/rake_task"

Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task default: :spec
Loading