strongmind-agilix-buzz-client 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/code-coverage.yml +34 -0
- data/.github/workflows/publish-gem.yml +3 -9
- data/Gemfile +2 -0
- data/README.md +4 -0
- data/agilix.gemspec +2 -2
- data/lib/agilix/buzz/api.rb +1 -0
- data/lib/agilix/buzz/commands/manifest.rb +21 -0
- data/lib/agilix/version.rb +1 -1
- data/lib/agilix.rb +1 -0
- metadata +11 -9
- data/.coveralls.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c69f27931ce39b01abdfa2026ec0f98b3f5725416bffe899ed8ba35ad9c447
|
4
|
+
data.tar.gz: 100cc35cb8075e3b1ce8ec6630d734d90208556fc84c6ccfa530a253316760b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f678f5590cfa298ab258fe84120284f6f96beb95bbeebc9c3e51c3a34b37293d1f90e7fba36b65194759a34bf5364f8dd4bad8ac5e2b6013ee94805beb273825
|
7
|
+
data.tar.gz: d49f91c31142a5445866f2cfe872fca59d4a04eef33889a6fe110c08ac4e47f7803911506b742b5147914f7a2b928d3b5b1c9dade8288e604640159335aa9ff4
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: test with coverage
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- "main"
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
run-tests:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Setup Ubuntu Image
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
|
16
|
+
- name: Setup PostgreSQL with PostgreSQL extensions and unprivileged user
|
17
|
+
uses: Daniel-Marynicz/postgresql-action@1.0.0
|
18
|
+
|
19
|
+
- name: Setup Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
23
|
+
ruby-version: '3.1'
|
24
|
+
|
25
|
+
- name: Test & publish code coverage
|
26
|
+
uses: paambaati/codeclimate-action@v5.0.0
|
27
|
+
env:
|
28
|
+
CC_TEST_REPORTER_ID: ${{ secrets.TEST_REPORTER_ID }}
|
29
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
30
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
31
|
+
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
|
32
|
+
with:
|
33
|
+
coverageCommand: 'bundle exec rake test'
|
34
|
+
debug: true
|
@@ -13,19 +13,13 @@ jobs:
|
|
13
13
|
with:
|
14
14
|
ruby-version: '3.1.4'
|
15
15
|
- run: bundle install
|
16
|
-
|
16
|
+
- run: rake test
|
17
17
|
|
18
18
|
publish-gem:
|
19
19
|
needs: bundle-and-test
|
20
20
|
runs-on: ubuntu-latest
|
21
21
|
steps:
|
22
22
|
- uses: actions/checkout@v3
|
23
|
-
#- name: Publish gem
|
24
|
-
# uses: cadwallion/publish-rubygems-action@master
|
25
|
-
# env:
|
26
|
-
# GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
|
27
|
-
# RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
28
|
-
# RELEASE_COMMAND: rake build gem push
|
29
23
|
- name: Publish to RubyGems
|
30
24
|
run: |
|
31
25
|
mkdir -p $HOME/.gem
|
@@ -36,8 +30,8 @@ jobs:
|
|
36
30
|
gem push *.gem
|
37
31
|
env:
|
38
32
|
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
|
39
|
-
AGILIX_BUZZ_USERNAME: ${{ secrets.AGILIX_BUZZ_USERNAME }}
|
40
|
-
AGILIX_BUZZ_PASSWORD: ${{ secrets.AGILIX_BUZZ_PASSWORD }}
|
33
|
+
AGILIX_BUZZ_USERNAME: "${{ secrets.AGILIX_BUZZ_USERNAME }}"
|
34
|
+
AGILIX_BUZZ_PASSWORD: "${{ secrets.AGILIX_BUZZ_PASSWORD }}"
|
41
35
|
VelocityCheckin:
|
42
36
|
uses: StrongMind/public-reusable-workflows/.github/workflows/velocityCheckin.yml@main
|
43
37
|
with:
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -942,6 +942,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
942
942
|
|
943
943
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
944
944
|
|
945
|
+
Run this command at the application's root directory to view test code coverage:
|
946
|
+
```
|
947
|
+
open coverage/index.html
|
948
|
+
```
|
945
949
|
## Contributing
|
946
950
|
|
947
951
|
Bug reports and pull requests are welcome on GitHub at https://github.com/beneggett/agilix. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/agilix.gemspec
CHANGED
@@ -5,7 +5,7 @@ require "agilix/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "strongmind-agilix-buzz-client"
|
7
7
|
spec.version = Agilix::VERSION
|
8
|
-
spec.authors = ["Strongmind"]
|
8
|
+
spec.authors = ["Strongmind", "beneggett"]
|
9
9
|
spec.email = ["qwertytalk@strongmind.com"]
|
10
10
|
|
11
11
|
spec.summary = %q{Agilix Buzz API wrapper}
|
@@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency "rake"
|
33
33
|
spec.add_development_dependency "minitest"
|
34
34
|
spec.add_development_dependency "vcr"
|
35
|
+
spec.add_development_dependency "webmock"
|
35
36
|
spec.add_development_dependency "pry"
|
36
37
|
spec.add_development_dependency "dotenv"
|
37
38
|
spec.add_dependency "httparty"
|
38
39
|
spec.add_dependency "builder"
|
39
|
-
spec.add_dependency "webmock"
|
40
40
|
end
|
data/lib/agilix/buzz/api.rb
CHANGED
@@ -9,6 +9,7 @@ module Agilix
|
|
9
9
|
include Agilix::Buzz::Commands::Enrollment
|
10
10
|
include Agilix::Buzz::Commands::General
|
11
11
|
include Agilix::Buzz::Commands::Library
|
12
|
+
include Agilix::Buzz::Commands::Manifest
|
12
13
|
include Agilix::Buzz::Commands::Report
|
13
14
|
include Agilix::Buzz::Commands::Resource
|
14
15
|
include Agilix::Buzz::Commands::Right
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Agilix
|
2
|
+
module Buzz
|
3
|
+
module Commands
|
4
|
+
module Manifest
|
5
|
+
def update_manifest_data(items = [])
|
6
|
+
options = items.map do |item|
|
7
|
+
argument_cleaner(required_params: %i( entityid data ), optional_params: %i( ), options: item )
|
8
|
+
end
|
9
|
+
authenticated_bulk_post cmd: 'updatemanifestdata', root_node: 'manifest', body: options
|
10
|
+
end
|
11
|
+
|
12
|
+
def put_items(items = [])
|
13
|
+
options = items.map do |item|
|
14
|
+
argument_cleaner(required_params: %i( entityid itemid data ), optional_params: %i( ), options: item )
|
15
|
+
end
|
16
|
+
authenticated_bulk_post cmd: 'putitems', root_node: 'item', body: options
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/agilix/version.rb
CHANGED
data/lib/agilix.rb
CHANGED
@@ -9,6 +9,7 @@ require "agilix/buzz/commands/domain"
|
|
9
9
|
require "agilix/buzz/commands/enrollment"
|
10
10
|
require "agilix/buzz/commands/general"
|
11
11
|
require "agilix/buzz/commands/library"
|
12
|
+
require "agilix/buzz/commands/manifest"
|
12
13
|
require "agilix/buzz/commands/report"
|
13
14
|
require "agilix/buzz/commands/resource"
|
14
15
|
require "agilix/buzz/commands/right"
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-agilix-buzz-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Strongmind
|
8
|
+
- beneggett
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2023-
|
12
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -67,7 +68,7 @@ dependencies:
|
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '0'
|
69
70
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
+
name: webmock
|
71
72
|
requirement: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
74
|
- - ">="
|
@@ -81,7 +82,7 @@ dependencies:
|
|
81
82
|
- !ruby/object:Gem::Version
|
82
83
|
version: '0'
|
83
84
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
85
|
+
name: pry
|
85
86
|
requirement: !ruby/object:Gem::Requirement
|
86
87
|
requirements:
|
87
88
|
- - ">="
|
@@ -95,13 +96,13 @@ dependencies:
|
|
95
96
|
- !ruby/object:Gem::Version
|
96
97
|
version: '0'
|
97
98
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
99
|
+
name: dotenv
|
99
100
|
requirement: !ruby/object:Gem::Requirement
|
100
101
|
requirements:
|
101
102
|
- - ">="
|
102
103
|
- !ruby/object:Gem::Version
|
103
104
|
version: '0'
|
104
|
-
type: :
|
105
|
+
type: :development
|
105
106
|
prerelease: false
|
106
107
|
version_requirements: !ruby/object:Gem::Requirement
|
107
108
|
requirements:
|
@@ -109,7 +110,7 @@ dependencies:
|
|
109
110
|
- !ruby/object:Gem::Version
|
110
111
|
version: '0'
|
111
112
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
113
|
+
name: httparty
|
113
114
|
requirement: !ruby/object:Gem::Requirement
|
114
115
|
requirements:
|
115
116
|
- - ">="
|
@@ -123,7 +124,7 @@ dependencies:
|
|
123
124
|
- !ruby/object:Gem::Version
|
124
125
|
version: '0'
|
125
126
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
127
|
+
name: builder
|
127
128
|
requirement: !ruby/object:Gem::Requirement
|
128
129
|
requirements:
|
129
130
|
- - ">="
|
@@ -143,8 +144,8 @@ executables: []
|
|
143
144
|
extensions: []
|
144
145
|
extra_rdoc_files: []
|
145
146
|
files:
|
146
|
-
- ".coveralls.yml"
|
147
147
|
- ".env.sample"
|
148
|
+
- ".github/workflows/code-coverage.yml"
|
148
149
|
- ".github/workflows/dependabot-auto-merge.yml"
|
149
150
|
- ".github/workflows/publish-gem.yml"
|
150
151
|
- ".github/workflows/velocityCheckin.yml"
|
@@ -170,6 +171,7 @@ files:
|
|
170
171
|
- lib/agilix/buzz/commands/enrollment.rb
|
171
172
|
- lib/agilix/buzz/commands/general.rb
|
172
173
|
- lib/agilix/buzz/commands/library.rb
|
174
|
+
- lib/agilix/buzz/commands/manifest.rb
|
173
175
|
- lib/agilix/buzz/commands/report.rb
|
174
176
|
- lib/agilix/buzz/commands/resource.rb
|
175
177
|
- lib/agilix/buzz/commands/right.rb
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|