Skip to content

Commit 79316a8

Browse files
authored
Merge pull request #23 from TankerHQ/jul/2.16.0
Sync version with other platforms to 2.16.0
2 parents 6aee015 + 73eb14d commit 79316a8

11 files changed

Lines changed: 292 additions & 686 deletions

File tree

.github/workflows/checks.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,22 @@ jobs:
2525
run: bundle exec rspec
2626
env:
2727
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
28+
lint:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Set up Python
33+
uses: actions/setup-python@v1
34+
with:
35+
python-version: 3.8
36+
- name: Install and configure poetry
37+
run: |
38+
python -m pip install poetry
39+
python -m poetry config virtualenvs.create false
40+
- name: Install python packages
41+
run: python -m poetry install
42+
- name: Run python linters
43+
run: |
44+
python -m poetry run black --check run-ci.py
45+
python -m poetry run mypy run-ci.py
46+
python -m poetry run flake8 run-ci.py

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.8
16+
- name: Set up Ruby
17+
uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: 2.7
20+
- name: Install and configure poetry
21+
run: python -m pip install poetry
22+
- name: Install python packages
23+
run: python -m poetry install --no-dev
24+
- name: Configure rubygems permissions
25+
run: mkdir -p "${HOME}/.gem" && echo ':rubygems_api_key:'" \"${RUBYGEMS_API_KEY}\"" > "${HOME}/.gem/credentials" && chmod 0600 "${HOME}/.gem/credentials"
26+
env:
27+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
28+
- name: Deploy
29+
run: python -m poetry run python run-ci.py deploy --version "$(git describe --tags)"

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
/.bundle/
22
/.yardoc
33
/_yardoc/
4+
/bin/
45
/coverage/
56
/doc/
67
/pkg/
78
/spec/reports/
89
/tmp/
10+
/vendor/
11+
.bundle/
12+
*.bundle
13+
*.gem
14+
.mypy_cache
915

1016
# rspec failure tracking
1117
.rspec_status

Gemfile.lock

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
tanker-identity (0.1.0)
4+
tanker-identity (0.0.1)
55
rbnacl (~> 7.0)
66

77
GEM
@@ -14,10 +14,15 @@ GEM
1414
simplecov (>= 0.15, < 0.22)
1515
diff-lcs (1.4.4)
1616
docile (1.4.0)
17-
ffi (1.15.1)
17+
ffi (1.15.3)
18+
io-console (0.5.9)
19+
irb (1.3.5)
20+
reline (>= 0.1.5)
1821
rake (13.0.3)
1922
rbnacl (7.1.1)
2023
ffi
24+
reline (0.2.5)
25+
io-console (~> 0.5)
2126
rspec (3.10.0)
2227
rspec-core (~> 3.10.0)
2328
rspec-expectations (~> 3.10.0)
@@ -31,6 +36,8 @@ GEM
3136
diff-lcs (>= 1.2.0, < 2.0)
3237
rspec-support (~> 3.10.0)
3338
rspec-support (3.10.2)
39+
rubygems-tasks (0.2.5)
40+
irb (~> 1.0)
3441
simplecov (0.21.2)
3542
docile (~> 1.1)
3643
simplecov-html (~> 0.11)
@@ -48,6 +55,7 @@ DEPENDENCIES
4855
codecov
4956
rake (~> 13.0)
5057
rspec (~> 3.0)
58+
rubygems-tasks (~> 0.2.5)
5159
simplecov
5260
tanker-identity!
5361

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
require "bundler/gem_tasks"
21
require 'bundler/audit/task'
3-
require "rspec/core/rake_task"
2+
require 'bundler/gem_tasks'
3+
require 'rspec/core/rake_task'
4+
require 'rubygems/tasks'
45

56
Bundler::Audit::Task.new
6-
7+
Gem::Tasks.new
78
RSpec::Core::RakeTask.new(:spec)
89

910
task :default => :spec

lib/tanker/identity/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Tanker
22
module Identity
3-
VERSION = '0.1.0'
3+
VERSION = '0.0.1'
44
end
55

66
def self.const_missing(name)

0 commit comments

Comments
 (0)