rtx-api 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/main.yml +44 -0
- data/Gemfile +1 -1
- data/lib/rtx/api/client.rb +1 -1
- data/lib/rtx/api/resources.rb +2 -0
- data/lib/rtx/api/version.rb +1 -1
- metadata +4 -5
- data/.travis.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1681470d551067f63f074401b7c2e6afaaaf304dca05494c095a93e4449397c5
|
4
|
+
data.tar.gz: a666939aee96baa1ec3e61fec14cfbe915af3fe2873123f5aea5391a8f24e8d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b0602c199170fa556e8699204cd1942f17888d211d8a5a1203b618a0b424c43e28d186c4d99e3e6b6838b3e1aad30dc229c175745728f9d8bc692170e6863f
|
7
|
+
data.tar.gz: d0b17010bc8d3516c30751d0ca875e33f102a9e86e7889e3c2e0b1d1a6a693d5754dbce18ea6d8317345ab04d8863dffa1ddd72c60945e7446b378398250956d
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# .github/workflows/main.yml
|
2
|
+
name: Unit Tests
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types: [ opened, synchronize ]
|
9
|
+
jobs:
|
10
|
+
unit-tests:
|
11
|
+
runs-on: ubuntu-20.04
|
12
|
+
env:
|
13
|
+
APP_NAME: rtx-api-client-ruby
|
14
|
+
RUBY_ENV: ci
|
15
|
+
RTX_ENV: ci
|
16
|
+
CI: 1
|
17
|
+
COVERAGE: 1
|
18
|
+
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_REPO_TOKEN }}
|
19
|
+
RTX_ENV_ROOT: ${{ github.workspace }}/rtx/env
|
20
|
+
steps:
|
21
|
+
# Need to manually set these since they build off other ENVs
|
22
|
+
- name: set dynamic envs
|
23
|
+
run: |
|
24
|
+
echo "APP_WORK_DIR=${{ github.workspace }}/rtx/${{ env.APP_NAME }}" >> $GITHUB_ENV
|
25
|
+
# Check out main app to workdir
|
26
|
+
- name: checkout repo
|
27
|
+
uses: actions/checkout@v3
|
28
|
+
with:
|
29
|
+
path: ${{ env.APP_WORK_DIR }}
|
30
|
+
# Install bundler packages
|
31
|
+
- name: install ruby gems
|
32
|
+
uses: ruby/setup-ruby@v1
|
33
|
+
with:
|
34
|
+
ruby-version: '2.7.1'
|
35
|
+
bundler-cache: true
|
36
|
+
working-directory: ${{ env.APP_WORK_DIR }}
|
37
|
+
- name: run rubocop
|
38
|
+
run: bundle exec rubocop .
|
39
|
+
working-directory: ${{ env.APP_WORK_DIR }}
|
40
|
+
- name: run tests
|
41
|
+
run: bundle exec rake test
|
42
|
+
working-directory: ${{ env.APP_WORK_DIR }}
|
43
|
+
- name: codeclimate report when push to master
|
44
|
+
run: '[[ ! -n "${{ github.base_ref }}" ]] && bundle exec codeclimate-test-reporter || echo "Ignoring for pull request"'
|
data/Gemfile
CHANGED
@@ -20,7 +20,7 @@ group :test do
|
|
20
20
|
gem 'minitest'
|
21
21
|
gem 'minitest-reporters', require: 'minitest/reporters'
|
22
22
|
gem 'minitest-spec-context'
|
23
|
-
gem 'mocha', require:
|
23
|
+
gem 'mocha', require: false
|
24
24
|
gem 'vcr', require: false
|
25
25
|
gem 'webmock', require: false
|
26
26
|
end
|
data/lib/rtx/api/client.rb
CHANGED
data/lib/rtx/api/resources.rb
CHANGED
@@ -22,7 +22,9 @@ module RTX
|
|
22
22
|
layouts: 'layouts',
|
23
23
|
locations: 'locations',
|
24
24
|
metric_locations: 'export/csv/location_metrics',
|
25
|
+
metric_locations_new: 'location_score/export/locations/csv',
|
25
26
|
metric_groups: 'export/csv/group_metrics',
|
27
|
+
metric_groups_new: 'location_score/export/groups/csv',
|
26
28
|
notes: 'notes',
|
27
29
|
passwords: 'passwords',
|
28
30
|
permissions: 'permissions',
|
data/lib/rtx/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtx-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Review Trackers Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -73,9 +73,9 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".github/workflows/main.yml"
|
76
77
|
- ".gitignore"
|
77
78
|
- ".rubocop.yml"
|
78
|
-
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE
|
81
81
|
- README.md
|
@@ -112,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
|
116
|
-
rubygems_version: 2.6.8
|
115
|
+
rubygems_version: 3.3.6
|
117
116
|
signing_key:
|
118
117
|
specification_version: 4
|
119
118
|
summary: Ruby Client for the Review Trackers RTX API.
|
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
addons:
|
3
|
-
code_climate:
|
4
|
-
repo_token: 0a659ed837c1f84266607a52710053cb96ff09edf9589cc16c7820cb21289987
|
5
|
-
gemfile:
|
6
|
-
- Gemfile
|
7
|
-
rvm:
|
8
|
-
- 2.3.0
|
9
|
-
- 2.5.0
|
10
|
-
- 2.6.0
|
11
|
-
script:
|
12
|
-
- bundle exec rubocop && bundle exec rake test
|
13
|
-
env:
|
14
|
-
global:
|
15
|
-
- COVERAGE=1
|
16
|
-
- secure: ZKA3gxZ13JbmstnDo0FOVUxnWvU2uY4tI/zjob4Lyu9sYrnI7ge7LSf8RNbpwmLdzHT45OgD5LrV4dQp6Z2lmDJygQBQXkZ+tnyPrxDvEWKhjH70ve6EJ5qzQxrAiIX9iP4iWJ7t3HPI3yEwCyaVjlFKFyGq0eTaalnvIadQRImfTh8yp7v4Kpg8ojQe+6CmzUqzn+Kq/4jYV2420HDwZrFq5VP1iCAjpdIh6TT8j/TH8v7jzHR6rtgcXsEDf8tSBWZaRt71LaB5eq5GeXgHWYi8BjLkl1i2Mxvb9+gtN94ujuWf9AzRR1hZsMnTO/x/xd8RpHg65OHlA2HUmJZfkJol6iT+U96Im+NlhNAeecfys9TPthPqxaj9aebu0MjexezFlsQsvsR63WrXJ9pv9umP6Q8kRRL0fmQzoheFcEGnoMnnspWd9o0rqSIz1NuIpB/z5j5lGHUerbZ3hY5m4V/JTOb5oaRmWlqgkydPh0L9q7+3dDb2it9dKeBoQpaXiLqsvRqDfCwlBhmuryPCmVwfBQcV7zzcuEV32xr0/ogGInR/ccUZXXnG6RCSBgXE+1Pp3xQS+iR39ND3Su7IViVsmMBhcMxdGPGTlVufBFhZtHS+qhze5XbS39jRp05cvYzjao1I6Mvt+C+KAxb4v6fzUSNAdNgVWLnUlmhkcE8=
|
17
|
-
branches:
|
18
|
-
only:
|
19
|
-
- master
|
20
|
-
after_script:
|
21
|
-
- bundle exec codeclimate-test-reporter
|