Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check vulnerabilities #143

Closed
wants to merge 204 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
27578df
Add initial CircleCI config
Oct 2, 2018
831f397
Publish pre-release gem versions to JFrog
Oct 2, 2018
5d32480
Cache dependencies
Oct 2, 2018
ef7afb6
CircleCI integration
finalwharf Oct 2, 2018
70d06dd
Merge pull request #3 from FundingCircle/circleci-publish-to-artifactory
finalwharf Oct 2, 2018
6f46db9
Require tests to pass for tagged releases
Oct 2, 2018
54b6047
Merge pull request #4 from FundingCircle/circleci-support-tags
finalwharf Oct 4, 2018
f3705db
Fix tag builds on CircleCI
finalwharf Oct 4, 2018
adaa035
Merge pull request #5 from FundingCircle/fix_circleci_tag_build
finalwharf Oct 4, 2018
ba2de1f
Persist attributes before save
finalwharf Aug 15, 2018
95a1243
Merge pull request #2 from FundingCircle/persist_before_save
finalwharf Oct 4, 2018
7cac8c7
Add serializers for Dates, Integers and Floats
finalwharf Oct 5, 2018
74002dc
Merge pull request #6 from FundingCircle/serializers
finalwharf Oct 8, 2018
f71550c
Convergent encryption support
finalwharf Aug 17, 2018
fc715f2
Merge pull request #1 from FundingCircle/convergent_encryption
finalwharf Oct 9, 2018
dc550ef
Improve lazy decrypt
finalwharf Oct 8, 2018
1edffd2
Merge pull request #7 from FundingCircle/improve_lazy_decrypt
finalwharf Oct 9, 2018
d1013b6
Update README.md
finalwharf Oct 9, 2018
85f19d3
Merge pull request #8 from FundingCircle/update_readme
finalwharf Oct 9, 2018
9feedaa
Bump to v0.5.0
finalwharf Oct 9, 2018
f0e6722
Merge pull request #9 from FundingCircle/bump_to_v0.5.0
finalwharf Oct 9, 2018
11b81b2
Rename gem to fc-vault-rails.
finalwharf Oct 10, 2018
4473906
Merge pull request #10 from FundingCircle/rename_gem
finalwharf Oct 10, 2018
09df960
Remove Rails 4.1 dependency
finalwharf Oct 15, 2018
cb72242
Merge pull request #12 from FundingCircle/remove_rails_4_1
finalwharf Oct 15, 2018
fd5e604
Replace Rails with AR
finalwharf Oct 15, 2018
96d2e2c
Merge pull request #13 from FundingCircle/replace_rails_with_active_r…
finalwharf Oct 15, 2018
9477caa
Bump to v0.6.0
finalwharf Oct 15, 2018
439808f
Merge pull request #14 from FundingCircle/bump_to_v0.6.0
finalwharf Oct 15, 2018
4e81a3e
Don't rely on Rails for the default encoding
h-lame Oct 15, 2018
ddd1142
Use `ActiveRecord::Base.logger` instead of `Rails.logger`
h-lame Oct 15, 2018
a66c7c8
Fix typo in convergent_encryption_context getter error
h-lame Oct 15, 2018
df5f9fc
Allow explicitly setting a default encoding value
h-lame Oct 16, 2018
c09936e
Merge pull request #15 from FundingCircle/decrease-reliance-on-rails-…
finalwharf Oct 16, 2018
e4135e9
Allow nil values in JSON serializer.
finalwharf Oct 16, 2018
7d979c5
Merge pull request #17 from FundingCircle/allow_nil_in_json_serializer
finalwharf Oct 16, 2018
dcf526b
Bump to version 0.6.1
h-lame Oct 16, 2018
7cd818d
Merge pull request #19 from FundingCircle/bump-to-v0.6.1
finalwharf Oct 16, 2018
93889d5
Bump lowest supported version of ActiveRecord and Rails.
finalwharf Oct 17, 2018
818f1df
Merge pull request #20 from FundingCircle/bump_active_record
finalwharf Oct 17, 2018
7dd889e
Improve CircleCI integration
finalwharf Oct 23, 2018
3facda6
Merge pull request #25 from FundingCircle/improve_circleci_integration
finalwharf Oct 24, 2018
bb05868
Attribute API
finalwharf Oct 16, 2018
f3c0a91
Merge pull request #16 from FundingCircle/attribute_api
finalwharf Oct 24, 2018
dcf0725
Increase highest supported version of ActiveRecord to 5.2+ and < 6.0
finalwharf Oct 17, 2018
a2ff086
Merge pull request #24 from FundingCircle/rails_5.2
finalwharf Oct 24, 2018
b935c98
Attribute Proxy
finalwharf Oct 17, 2018
9cf34ad
Implement #vault_attribute_proxy
popovm Oct 18, 2018
42aab74
Include attribute proxy in README
popovm Oct 18, 2018
aab627d
Add different names for vault attribute and its column
finalwharf Oct 24, 2018
94dbff1
Merge pull request #23 from FundingCircle/attribute_proxy
finalwharf Oct 24, 2018
9d0f01c
Bump to v0.7.0
finalwharf Oct 24, 2018
9ba2268
Merge pull request #26 from FundingCircle/bump_to_v0.7.0
finalwharf Oct 24, 2018
a56769c
Fix indentation in CircleCI config
finalwharf Oct 24, 2018
ebb88ed
Merge pull request #27 from FundingCircle/fix_circleci_config
finalwharf Oct 24, 2018
3df72c1
Mention how to setup the test db
elenatanasoiu Oct 29, 2018
43ac087
Merge pull request #31 from FundingCircle/add-docs-for-setting-up-tes…
elenatanasoiu Oct 30, 2018
7cf0581
Update changelog for 0.7.x
h-lame Nov 12, 2018
c10d63f
Merge pull request #38 from FundingCircle/update-changelog-for-master
h-lame Nov 12, 2018
98a6a95
Test against rails 5, 5.1, and 5.2 not just 4.2
h-lame Nov 12, 2018
bdb80c8
Fix bug with `vault_persist_before_save!` and rails 5.2
h-lame Nov 12, 2018
f99aebd
Clear up Person vs. EagerPerson when testing vault_persist_before_save!
h-lame Nov 12, 2018
258e000
Merge pull request #36 from FundingCircle/fix-persist-before-save-in-…
h-lame Nov 12, 2018
606dcb3
Improve loading of encrypted attributes.
finalwharf Oct 30, 2018
af6d13e
Merge pull request #32 from FundingCircle/improve_vault_attribute_loa…
finalwharf Nov 12, 2018
87de1df
Add methods for batch decryption and encryption
popovm Oct 17, 2018
6bdb766
Add README for batch encryption and decryption
popovm Nov 9, 2018
3412d3c
Merge pull request #22 from FundingCircle/batch-encrypt-and-decrypt
popovm Nov 13, 2018
30092d1
Introduce deprecation warnings for 0.6->0.7 differences
h-lame Nov 21, 2018
eabde1c
Add documentation for upgrading from 0.6 to 0.7
h-lame Nov 21, 2018
beb5a4e
Update changelog with latest features in 0.7
h-lame Nov 21, 2018
6e19b99
Bump to 0.7.1 in preparation for release
h-lame Nov 21, 2018
9036e8b
Merge pull request #42 from FundingCircle/documentation-and-upgrade-p…
h-lame Nov 21, 2018
1823cc0
Actually drop support for rails 4.x
h-lame Dec 3, 2018
aa4a1c2
Tidy up serializer specs to remove extra space
h-lame Dec 3, 2018
64bb172
Introduce spec for JSON serializer
h-lame Dec 3, 2018
a373093
Introduce serializers for `time` and `datetime`
h-lame Dec 3, 2018
49e3340
Use `ActiveRecord::Type.lookup` to find type classes
h-lame Dec 3, 2018
7d49ad3
Detect serializer based on type for vault_attribute
h-lame Dec 3, 2018
5daba09
Add a serializer for IPAddr objects
h-lame Dec 3, 2018
00fc07e
Merge pull request #44 from FundingCircle/new-inet-type-and-automatic…
h-lame Dec 3, 2018
cbd9a57
Include 0.6.4->0.6.6 in changelog
h-lame Dec 3, 2018
5197e63
Create v0.7.2
h-lame Dec 3, 2018
b9c1aed
Merge pull request #47 from FundingCircle/create-v0.7.2
h-lame Dec 3, 2018
662b0c5
Handle blank values in batch encryption and decryption
popovm Nov 19, 2018
bfbe76a
Merge pull request #50 from FundingCircle/fix-batch-encryption-for-0.7
h-lame Dec 10, 2018
ef90d72
Include 0.6.7 in the 0.7.x changelog
h-lame Dec 10, 2018
319a0fb
Create 0.7.3
h-lame Dec 10, 2018
3c1c0ce
Merge pull request #51 from FundingCircle/bump-to-v0.7.3
h-lame Dec 10, 2018
fb25ed1
Fix typo in #memory_batch_encrypt
popovm Nov 19, 2018
6369a38
Add convergent field #passport_number for LazyPerson
popovm Nov 19, 2018
24722f1
Add EncryptedModel methods for batch operations
popovm Nov 19, 2018
222f0e7
Extract attribute batch operations in PerformInBatches
popovm Nov 20, 2018
b67bc0d
Add changelog entries for the features we ported from 0.6
h-lame Dec 12, 2018
aef596d
Merge pull request #53 from FundingCircle/add-model-level-batch-api-t…
h-lame Dec 12, 2018
bd5d47f
Create v0.7.4
h-lame Dec 12, 2018
0d80258
Merge pull request #54 from FundingCircle/bump-to-v0.7.4
h-lame Dec 12, 2018
f284c24
Add option for uniqueness validation of vault attributes
popovm Dec 12, 2018
eefca32
Encrypt plaintext in a separate method `.encrypt_value`
popovm Dec 14, 2018
25515a6
Add ability to search by vault attributes
popovm Dec 13, 2018
627a73a
Update README about searching encrypted attributes
popovm Dec 14, 2018
a1a818e
Merge pull request #57 from FundingCircle/search-and-validations
popovm Dec 17, 2018
e30a0fd
Bump version to v0.7.5
popovm Dec 17, 2018
38988f4
Merge pull request #58 from FundingCircle/bump-to-v0.7.5
popovm Dec 17, 2018
995af77
Add validate option to vault_persist_all
popovm Feb 27, 2019
a519f24
Update README about Vault batch operations
popovm Feb 27, 2019
5285fea
Drop support of ruby 2.2
popovm Feb 27, 2019
16c7210
Set sqlite3 version to 1.13.6 and bundle update
popovm Feb 27, 2019
2d11249
Bump version to 0.7.6
popovm Feb 27, 2019
43abbbf
Merge pull request #63 from FundingCircle/add-validation-option-to-va…
popovm Feb 27, 2019
f9ca096
Cleanse error messages when uniqueness validation is used
ahmetabdi Mar 6, 2019
0a0406a
Merge pull request #64 from FundingCircle/uniqueness_validator_cleans…
ahmetabdi Mar 6, 2019
24cc468
Bump version to 0.7.7
Mar 6, 2019
3837d77
Merge pull request #65 from FundingCircle/0_7_7
ahmetabdi Mar 6, 2019
d867df2
Updates find_by and where searching for encrypted fields
ahmetabdi Mar 11, 2019
26c356c
Bump version to 1.0.0
ahmetabdi Mar 11, 2019
c701ff1
Merge pull request #68 from FundingCircle/improve_find_by_and_where
ahmetabdi Mar 11, 2019
29dde57
Adds encrypted_where_not method
ahmetabdi Mar 14, 2019
f056995
Bump version to 1.0.1
Mar 14, 2019
4cdac9b
Merge pull request #70 from FundingCircle/adds_encrypted_where_not
ahmetabdi Mar 14, 2019
0993db1
Fix deprecation warning for Rails 5.1
jdcalvin Apr 4, 2019
b1c1d2b
Merge pull request #72 from FundingCircle/fix-51-deprecation-warning
Apr 8, 2019
4fa8176
Merge 0.6 and master branches to add support for Rails >= 4.2
ahmetabdi Apr 17, 2019
0a0bc92
Move version requiring before all
Apr 17, 2019
b879e6c
Merge pull request #74 from FundingCircle/merging_master_and_0_6_branch
ahmetabdi Apr 17, 2019
2a4107b
Bump version to 2.0.0
Apr 17, 2019
0a3898b
Merge pull request #75 from FundingCircle/2_0_0
ahmetabdi Apr 17, 2019
9fe3af9
Override .attributes method on legacy EncryptedModel and adds .unencr…
ahmetabdi Apr 29, 2019
2263c4b
Update unencrypted_attributes method to use vault_attributes for retr…
Apr 30, 2019
56989b2
Merge pull request #76 from FundingCircle/gdpreng-894_override_attrib…
ahmetabdi May 2, 2019
2923a69
Bump version to 2.0.1
ahmetabdi May 2, 2019
0ffd1ae
Merge pull request #77 from FundingCircle/version_2_0_1
ahmetabdi May 2, 2019
2d40b4e
Fixes bug with memory decryption not handing blank values
May 16, 2019
659ec59
Merge pull request #78 from FundingCircle/bug_with_vault_load_all_and…
ahmetabdi May 16, 2019
0c826c7
Version 2.0.2
May 16, 2019
7e145d9
Merge pull request #79 from FundingCircle/2_0_2
ahmetabdi May 17, 2019
94da2ba
Update JSONSerializer when encoding to return value if already a JSON…
ahmetabdi Aug 22, 2019
2af00f6
Merge pull request #80 from FundingCircle/fix_issue_in_json_serializa…
Aug 22, 2019
191b1ee
Version 2.0.3
ahmetabdi Aug 22, 2019
d5d8bbc
Merge pull request #81 from FundingCircle/2_0_3
Aug 22, 2019
8fcc037
Remove travis-ci dependency by moving completely to CircleCI
klebervirgilio Dec 1, 2019
c075fea
Add Rails 6 support
klebervirgilio Dec 1, 2019
7e700d9
Merge pull request #82 from FundingCircle/add-rails6-support
Dec 2, 2019
e39ed30
Bump version
klebervirgilio Dec 2, 2019
d6a60ad
Merge pull request #84 from FundingCircle/bump-version
Dec 2, 2019
ec5859e
Update ruby versions in ci
bliof-fc Apr 2, 2020
04648b2
Bump bundler to 2.1.4
bliof-fc Apr 2, 2020
13c3653
Merge pull request #86 from FundingCircle/update-ci
bliof-fc Apr 3, 2020
13c29cc
Do not pollute record changes when loading attributes for the first time
bliof-fc Oct 19, 2020
1234929
Bump version to 2.0.5
bliof-fc Oct 19, 2020
887e708
Merge pull request #88 from FundingCircle/do-not-pollute-model-changes
bliof-fc Oct 20, 2020
d0bc93e
Test bug in rails 5 db:create / assets:precompile
bliof-fc Apr 2, 2020
006f61c
Prevent db connection on boot
bliof-fc Jan 11, 2022
93bd3f2
Merge pull request #87 from FundingCircle/fix-rails-db-create
bliof-fc Jan 11, 2022
a92bfba
Export VaultTransitJsonCodec from fca
ivan-dimov Jan 27, 2022
f537b57
Merge pull request #90 from FundingCircle/extract-fca-vault-transit-j…
ivan-dimov Feb 1, 2022
60327f8
Added rails 7
IsmaelMarinMolina Sep 11, 2023
6af8643
Adding codeowners
IsmaelMarinMolina Sep 11, 2023
b6b7b26
Remove CircleCI and add drone
IsmaelMarinMolina Sep 12, 2023
a3e4434
Forcing drone to rebuild
IsmaelMarinMolina Sep 12, 2023
5c8158a
Added vault version
IsmaelMarinMolina Sep 12, 2023
c7127d9
Added into the steps
IsmaelMarinMolina Sep 12, 2023
346da6b
Change name to secret
IsmaelMarinMolina Sep 12, 2023
c369dc8
Force to use 1.1.3
IsmaelMarinMolina Sep 12, 2023
ff30a99
get the environment
IsmaelMarinMolina Sep 12, 2023
7142278
Force version
IsmaelMarinMolina Sep 12, 2023
3182e20
Remove sudo
IsmaelMarinMolina Sep 12, 2023
fdd809a
Refactor yaml
IsmaelMarinMolina Sep 14, 2023
f9bc5d6
Debugging vault
IsmaelMarinMolina Sep 14, 2023
959e061
Try without params
IsmaelMarinMolina Sep 14, 2023
8887e40
Maybe it populate it
IsmaelMarinMolina Sep 14, 2023
e8db77a
build with environment production and ruby 3
IsmaelMarinMolina Sep 14, 2023
7ede94f
Move to 2.6 ruby version due to incompatibility between sqlite and ru…
IsmaelMarinMolina Sep 14, 2023
03b7d71
RAILS_env to default
IsmaelMarinMolina Sep 14, 2023
cb2a5e5
Use development
IsmaelMarinMolina Sep 14, 2023
17f66d0
Modify step 5
IsmaelMarinMolina Sep 14, 2023
7d87070
Back to normal
IsmaelMarinMolina Sep 14, 2023
124ba04
add set environment
IsmaelMarinMolina Sep 14, 2023
789da75
forcing to have the development
IsmaelMarinMolina Sep 14, 2023
9bf5e0a
Trying to move environment variable
IsmaelMarinMolina Sep 14, 2023
d49eaff
Use test instead
IsmaelMarinMolina Sep 15, 2023
1961bf0
Force environment
IsmaelMarinMolina Sep 15, 2023
2f9e90a
Disable database check
IsmaelMarinMolina Sep 15, 2023
d182fec
Adding publishing steps
IsmaelMarinMolina Sep 15, 2023
5679ec4
remove rails env
IsmaelMarinMolina Sep 15, 2023
0d5f6af
Move to oficial ruby images
IsmaelMarinMolina Sep 15, 2023
8d1a293
Added tzinfo into the appraisal
IsmaelMarinMolina Sep 15, 2023
571e346
regenerate the gemfiles
IsmaelMarinMolina Sep 15, 2023
a19cb5a
downgrade bundler on 4.2
IsmaelMarinMolina Sep 15, 2023
0f6c534
Add txinfo into ruby 4
IsmaelMarinMolina Sep 15, 2023
5e89c6f
disable the check on the database
IsmaelMarinMolina Sep 15, 2023
db94ebe
Fixed typo
IsmaelMarinMolina Sep 15, 2023
edb946a
Merge pull request #93 from FundingCircle/cd-150-codeowners
IsmaelMarinMolina Sep 25, 2023
df0d091
Added rails 7
IsmaelMarinMolina Sep 11, 2023
4342d1c
Merge branch 'cd-150-support-rails-7' of github.com:FundingCircle/fc-…
IsmaelMarinMolina Sep 25, 2023
b4e48e4
Added update warning in the README
IsmaelMarinMolina Sep 25, 2023
be401b3
Merge pull request #91 from FundingCircle/cd-150-support-rails-7
IsmaelMarinMolina Sep 25, 2023
07884a0
Fix deprecation warning when using connection_config
bliof-fc Nov 17, 2023
679ca5e
Add rails 7 build
bliof-fc Nov 17, 2023
83ca019
Update version to 2.1.2
bliof-fc Nov 17, 2023
4f54148
Merge pull request #94 from FundingCircle/fix-deprecation-warning
bliof-fc Nov 20, 2023
6497f8c
Fix bin/check_gem_version and make it executable
bliof-fc Nov 21, 2023
24fc43c
Merge pull request #97 from FundingCircle/fix-promote-build
bliof-fc Nov 21, 2023
418b3f2
check Wiz Report
zainabott Feb 28, 2024
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
205 changes: 205 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
---
kind: pipeline
type: docker
name: build

trigger:
event:
- push

platform:
os: linux
arch: amd64

anchors:
artifactory_credentials: &artifactory_credentials
ARTIFACTORY_USER:
from_secret: artifactory_user
ARTIFACTORY_PASSWORD:
from_secret: artifactory_password
vault_tag: &vault_tag
VAULT_VERSION:
from_secret: vault_version
commands: &commands
- apk add --no-cache curl
- curl -sSL -o /usr/local/bin/vault.zip https://releases.hashicorp.com/vault/$(echo $VAULT_VERSION)/vault_$(echo $VAULT_VERSION)_linux_amd64.zip
- unzip /usr/local/bin/vault.zip -d /usr/local/bin
- chmod +x /usr/local/bin/vault
- apk add --no-cache build-base sqlite-dev
- bundle install --jobs=4 --retry=3
- bundle exec rake app:db:create
- bundle exec rake app:db:schema:load
- bundle exec rake app:db:test:prepare
- bundle exec rake


concurrency:
limit: 1

steps:
- name: build_rails4
image: ruby:2.6-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_4.2.gemfile
<<: [*vault_tag, *artifactory_credentials]
commands: *commands

- name: build_rails5
image: ruby:2.7-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_5.0.gemfile
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
<<: [*vault_tag, *artifactory_credentials]
commands: *commands
depends_on:
- build_rails4

- name: build_rails51
image: ruby:2.7-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_5.1.gemfile
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
<<: [*vault_tag, *artifactory_credentials]
commands: *commands
depends_on:
- build_rails4
- build_rails5

- name: build_rails52
image: ruby:2.7-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_5.2.gemfile
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
<<: [*vault_tag, *artifactory_credentials]
commands: *commands
depends_on:
- build_rails4
- build_rails5
- build_rails51

- name: build_rails6
image: ruby:3.0-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_6.gemfile
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
<<: [*vault_tag, *artifactory_credentials]
commands: *commands
depends_on:
- build_rails4
- build_rails5
- build_rails51
- build_rails52

- name: build_rails7
image: ruby:3.0-alpine
environment:
BUNDLE_GEMFILE: gemfiles/rails_7.gemfile
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
<<: [*vault_tag, *artifactory_credentials]
commands: *commands
depends_on:
- build_rails4
- build_rails5
- build_rails51
- build_rails52
- build_rails6

- name: publish_feature_branch_gem
image: quay.io/fundingcircle/alpine-ruby-builder:2.7
environment:
<<: *artifactory_credentials
GEM_REPOSITORY: 'rubygems-pre-releases'
commands:
- gem install gem-versioner
- PRE_RELEASE=$(git rev-parse --short HEAD) gem build fc-vault-rails.gemspec
- |
mkdir -p ~/.gem
curl -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-pre-releases/api/v1/api_key.yaml > ~/.gem/credentials
chmod 600 ~/.gem/credentials
- |
package=$(ls -t1 fc-vault-rails*.gem | head -1)
gem push $package --host https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-pre-releases
depends_on:
- build_rails4
- build_rails5
- build_rails51
- build_rails52
- build_rails6
- build_rails7
when:
branch:
exclude:
- master


---
kind: pipeline
type: docker
name: deploy

trigger:
event:
- promote
when:
branch:
- master

anchors:
artifactory_credentials: &artifactory_credentials
ARTIFACTORY_USER:
from_secret: artifactory_user
ARTIFACTORY_PASSWORD:
from_secret: artifactory_password

# Platform for job, always Linux amd64
platform:
os: linux
arch: amd64

steps:
- name: check_gem_version
image: quay.io/fundingcircle/alpine-ruby-builder:latest
environment:
<<: *artifactory_credentials
commands:
- bin/check_gem_version
depends_on:
- clone

- name: publish_master_gem
image: quay.io/fundingcircle/alpine-ruby-builder:2.7
environment:
<<: *artifactory_credentials
GEM_REPOSITORY: 'rubygems-local'
commands:
- gem build fc-vault-rails.gemspec
- |
mkdir -p ~/.gem
curl -u "$ARTIFACTORY_USER":"$ARTIFACTORY_PASSWORD" https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local/api/v1/api_key.yaml > ~/.gem/credentials
chmod 600 ~/.gem/credentials
- |
package=$(ls -t1 fc-vault-rails*.gem | head -1)
gem push $package --host https://fundingcircle.jfrog.io/fundingcircle/api/gems/rubygems-local
depends_on:
- check_gem_version

- name: tag_git_repo
image: quay.io/fundingcircle/alpine-ruby-builder:latest
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- |
current_version="$(ruby -e 'require "./lib/vault/rails/version.rb";puts Vault::Rails::VERSION')";
git tag v$current_version -m v$current_version;
git push --tags;
depends_on:
- publish_master_gem

- name: status
image: quay.io/fundingcircle/drone-github-status:latest
settings:
env: production
locale: UK
depends_on:
- publish_master_gem
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @FundingCircle/team-customer-data
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/test/tmp/
/test/version_tmp/
/tmp/
/.byebug_history

## Specific to RubyMotion:
.dat*
Expand All @@ -32,6 +33,7 @@ build/
Gemfile.lock
.ruby-version
.ruby-gemset
gemfiles/*.gemfile.lock

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
Expand Down
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--format documentation
--color

44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

41 changes: 37 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
appraise "rails-4.1" do
gem "rails", "~> 4.1.0"
appraise 'rails-4.2' do
gem 'rails', '~> 4.2.0'
gem 'sqlite3', '~> 1.3.13'
gem 'bundler', '~> 1.17.2'
gem 'tzinfo-data'
end

appraise "rails-4.2" do
gem "rails", "~> 4.2.0"
appraise 'rails-5.0' do
gem 'rails', '~> 5.0.0'
gem 'sqlite3', '~> 1.3.13'
gem 'tzinfo-data'
end

appraise 'rails-5.1' do
gem 'rails', '~> 5.1.0'
gem 'sqlite3', '~> 1.3.13'
gem 'tzinfo-data'
end

appraise 'rails-5.2' do
gem 'rails', '~> 5.2.0'
gem 'sqlite3', '~> 1.3.13'
gem 'tzinfo-data'
end

appraise 'rails-6' do
gem 'rails', '~> 6'
gem 'sqlite3', '~> 1.4'
gem 'tzinfo-data'
end

appraise "rails-7" do
gem "rails", "~> 7"
gem 'sqlite3', '~> 1.4'
end

appraise "rails-7" do
gem "rails", "~> 7"
gem 'sqlite3', '~> 1.4'
end
Loading
Loading