tenants_helper 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/release.yml +59 -0
- data/.github/workflows/ruby.yml +21 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -0
- data/README.md +2 -0
- data/lib/tenants_helper/version.rb +2 -1
- data/tenants_helper.gemspec +4 -6
- metadata +14 -40
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 64348a9e9bfd926bd08570f6efe34c4ae77fa6f3f7205b466031ed7a13c4da5e
|
4
|
+
data.tar.gz: 0bbdbab0280810edfb93d72a4c3c2afce821d06aaeac7aca9ddf7593f37c3b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ced5c6f0d582255f12913166af8e0e402745b7ec0b3cae147046679dee4e2ef4a53127e9a0ccfcca586131b7eff29b3c7cebc6a4aa6577ec228a4c45fdb9561
|
7
|
+
data.tar.gz: 0caabc8dc41a7adcda23207276ab036e943cd68df215f3f1de3699c2c1f35f4cb612221f9108e12227cf685929f1041087319d3293070371201864db31cf58ae
|
@@ -0,0 +1,59 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- "v*"
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
bundler-cache: true
|
18
|
+
- run: bundle exec rake
|
19
|
+
|
20
|
+
release:
|
21
|
+
needs: build
|
22
|
+
name: Release
|
23
|
+
runs-on: ubuntu-latest
|
24
|
+
steps:
|
25
|
+
- name: Checkout
|
26
|
+
uses: actions/checkout@v2
|
27
|
+
|
28
|
+
- name: Generate Changelog
|
29
|
+
run: |
|
30
|
+
# Get version from github ref (remove 'refs/tags/' and prefix 'v')
|
31
|
+
version="${GITHUB_REF#refs/tags/v}"
|
32
|
+
npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
|
33
|
+
|
34
|
+
- name: Release
|
35
|
+
uses: softprops/action-gh-release@v1
|
36
|
+
with:
|
37
|
+
body_path: ${{ github.workflow }}-CHANGELOG.txt
|
38
|
+
env:
|
39
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
40
|
+
|
41
|
+
publish:
|
42
|
+
needs: [build, release]
|
43
|
+
name: Publish
|
44
|
+
runs-on: ubuntu-latest
|
45
|
+
|
46
|
+
steps:
|
47
|
+
- uses: actions/checkout@v2
|
48
|
+
- uses: ruby/setup-ruby@v1
|
49
|
+
|
50
|
+
- name: Publish to RubyGems
|
51
|
+
run: |
|
52
|
+
mkdir -p $HOME/.gem
|
53
|
+
touch $HOME/.gem/credentials
|
54
|
+
chmod 0600 $HOME/.gem/credentials
|
55
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
56
|
+
gem build *.gemspec
|
57
|
+
gem push *.gem
|
58
|
+
env:
|
59
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: Build and Test
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
ruby: ["3.0", "3.1", "3.2"]
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: ${{ matrix.ruby }}
|
15
|
+
bundler-cache: true
|
16
|
+
- run: bundle exec rake
|
17
|
+
- name: Coveralls
|
18
|
+
uses: coverallsapp/github-action@master
|
19
|
+
with:
|
20
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
21
|
+
path-to-lcov: coverage/lcov.info
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.0
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
|
+
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
6
|
+
|
7
|
+
## 0.3.0
|
8
|
+
|
9
|
+
- [PLAT-183] Ruby 3.1 add coverage-kit
|
10
|
+
- [PLAT-1175] Update to Ruby 3.2
|
11
|
+
|
12
|
+
## 0.2.0
|
13
|
+
|
14
|
+
- [TT-8611] Update to build with github actions / ruby 3.0
|
15
|
+
- [TT-1392] Changelog file
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# TenantsHelper
|
2
2
|
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/sealink/tenants_helper/badge.svg?branch=master)](https://coveralls.io/github/sealink/tenants_helper?branch=master)
|
4
|
+
|
3
5
|
TenantsHelper is a gem designed to help you load and query a tenants configuration file.
|
4
6
|
A tenants configuration is a very specific YML config file in your project that is in the following format:
|
5
7
|
|
data/tenants_helper.gemspec
CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.required_ruby_version = '>=
|
25
|
+
spec.required_ruby_version = '>= 3.0'
|
26
26
|
|
27
|
-
spec.add_dependency 'yamload'
|
27
|
+
spec.add_dependency 'yamload'
|
28
28
|
spec.add_dependency 'anima'
|
29
29
|
spec.add_dependency 'queryable_collection', '~> 0.1'
|
30
30
|
spec.add_dependency 'memoist', '~> 0.14'
|
@@ -34,9 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_development_dependency 'rake'
|
35
35
|
spec.add_development_dependency 'dotenv'
|
36
36
|
spec.add_development_dependency 'rspec'
|
37
|
-
spec.add_development_dependency '
|
38
|
-
spec.add_development_dependency 'simplecov-rcov'
|
39
|
-
spec.add_development_dependency 'coveralls'
|
37
|
+
spec.add_development_dependency 'coverage-kit'
|
40
38
|
spec.add_development_dependency 'rubocop'
|
41
|
-
spec.add_development_dependency '
|
39
|
+
spec.add_development_dependency 'pry-byebug'
|
42
40
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenants_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akil Madan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yamload
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: anima
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,35 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: simplecov-rcov
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: coveralls
|
140
|
+
name: coverage-kit
|
169
141
|
requirement: !ruby/object:Gem::Requirement
|
170
142
|
requirements:
|
171
143
|
- - ">="
|
@@ -193,7 +165,7 @@ dependencies:
|
|
193
165
|
- !ruby/object:Gem::Version
|
194
166
|
version: '0'
|
195
167
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
168
|
+
name: pry-byebug
|
197
169
|
requirement: !ruby/object:Gem::Requirement
|
198
170
|
requirements:
|
199
171
|
- - ">="
|
@@ -214,11 +186,14 @@ executables: []
|
|
214
186
|
extensions: []
|
215
187
|
extra_rdoc_files: []
|
216
188
|
files:
|
189
|
+
- ".github/dependabot.yml"
|
190
|
+
- ".github/workflows/release.yml"
|
191
|
+
- ".github/workflows/ruby.yml"
|
217
192
|
- ".gitignore"
|
218
193
|
- ".rspec"
|
219
194
|
- ".rubocop.yml"
|
220
195
|
- ".ruby-version"
|
221
|
-
-
|
196
|
+
- CHANGELOG.md
|
222
197
|
- CODE_OF_CONDUCT.md
|
223
198
|
- Gemfile
|
224
199
|
- LICENSE.txt
|
@@ -243,15 +218,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
218
|
requirements:
|
244
219
|
- - ">="
|
245
220
|
- !ruby/object:Gem::Version
|
246
|
-
version: '
|
221
|
+
version: '3.0'
|
247
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
223
|
requirements:
|
249
224
|
- - ">="
|
250
225
|
- !ruby/object:Gem::Version
|
251
226
|
version: '0'
|
252
227
|
requirements: []
|
253
|
-
|
254
|
-
rubygems_version: 2.5.1
|
228
|
+
rubygems_version: 3.4.1
|
255
229
|
signing_key:
|
256
230
|
specification_version: 4
|
257
231
|
summary: Gem to validate and query tenants using a standardised tenants config
|
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.1
|
4
|
-
- 2.2
|
5
|
-
- 2.3.0
|
6
|
-
before_install: gem install bundler -v 1.11.2
|
7
|
-
notifications:
|
8
|
-
email:
|
9
|
-
- support@travellink.com.au
|
10
|
-
flowdock:
|
11
|
-
secure: rjxg7hIW69k5k/pAMwx7Z3WKdzeNhBV8EvBoD0U7cQ3j0BdTHCw68FrcqiN/AKQkfVbK4IlytLz0LGAZpQ7eGjSWH0O7W23oOk//hqO8caoYr1V2vF29y6rj92vuSlWMJQ6sBvMSNraAh5Xey/LXHT5Cw1KtZcYIorZBS6lxaKIxC9MMjVx7IIorIdYThpMv7SuvZStG9Ra8hZVD1LNOZtmdcEVT2wD0MyBE2LKtFciZlSDxlPJv38jw5k2xT0hOLJ5L4p8PrFhkiKkg/dt8/RLjt+WWNm0XVo5DDkBB4FHty5iUQcXH5BrCLKutH4+KwaUcF3O2jEMLstxZPWX0mHxjD5QOo2OOu1gAFKXE7jFEy+kXYJB7z1cX2hUb1Sgqn9OGqf2D5020peH2nj+vGOWIq7zKzSWYuGn/uQOVIDkS8YiV5PgrhaFj/ieDlKnk2sQ+vL00ERs/GXpg1lMKuyKasIxydfXoHP8bHUE7R2t5gVsZTLTdYInukVg9wFA0S2I09WvyUiQxniP7ljTcqigD+O+NuHGTPga+IJM9jpB/ZHuha2jC0omkR96/dvlhDZtBlnXB88N5kfFFYbaT2a1erYvwBTuVY8QueIv7V3kOmu6pCMTcnR8DNoekzpi3dLQwW8rifu+6MsuLaxsywd8JJmNJQDGxU4CSV5yQUl4=
|
12
|
-
sudo: false
|
13
|
-
cache: bundler
|