a2 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc54ef0fc44adbd3b8e6fa6f6586dd100c2c536aa13ebf545de3fcab41424a3b
4
- data.tar.gz: 5aaa16dae692a671ff1a76b6ec56335fcbac34c46f3753e7743e602c1f8292ab
3
+ metadata.gz: e724f7c4be83a1deeacacd760435708a7c8fa594fa62ba6397cac29ad07820c7
4
+ data.tar.gz: c218ab82d310845e7284edeb583b178800d21bca80603889baefc7c8f8897531
5
5
  SHA512:
6
- metadata.gz: f8bf300517f1f6690d5000042b7cbc175666c9d84527a8f81d1750afb4de4248fb0e9add7fffc4da17e15dcf8991332a8be8176de5113796a96d095ca2ee71fa
7
- data.tar.gz: 76bd17a096f75021a71733624200d2b4e2ce24ff515dceff8fc681b5f91a1e007a794243e18606dea463322cfe657d621a87b85427c5cdcb64095f1f43093551
6
+ metadata.gz: 1417567e7b7ac76433c1d84d0e506555424721a85f558c08c2fe416da49960e0bb8af7cd9b048170633e0e333b1d83cfa6f97b18e874edbc471ece00f5691808
7
+ data.tar.gz: 32f613016abdd104ccfda2bbb1c8ff4a10ebc398e3fae4c875bdcb54318003f7789d7637b6c9f8869caa6f95016cee788d58bafd03b4ae3c470909eb4900aa83
@@ -9,10 +9,10 @@ jobs:
9
9
 
10
10
  steps:
11
11
  - uses: actions/checkout@v2
12
- - name: Set up Ruby 2.6
13
- uses: actions/setup-ruby@v1
12
+ - name: Set up Ruby 3.1
13
+ uses: ruby/setup-ruby@v1
14
14
  with:
15
- ruby-version: 2.6.x
15
+ ruby-version: 3.1.2
16
16
  - name: Publish to RubyGems
17
17
  run: |
18
18
  mkdir -p $HOME/.gem
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.6']
15
+ ruby-version: ['2.6', '3.1']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v2
@@ -21,6 +21,6 @@ jobs:
21
21
  with:
22
22
  ruby-version: ${{ matrix.ruby-version }}
23
23
  bundler-cache: true
24
- bundler: '2.2.15'
24
+ bundler: '2.3.26'
25
25
  - name: Run tests
26
26
  run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/gscho/a2-cli/tree/HEAD)
3
+ ## [v0.3.1](https://github.com/gscho/a2-cli/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/gscho/a2-cli/compare/v0.3.0...HEAD)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Ruby 3.1 support [\#6](https://github.com/gscho/a2-cli/pull/6) ([gscho](https://github.com/gscho))
10
+ - Bump addressable from 2.7.0 to 2.8.0 [\#5](https://github.com/gscho/a2-cli/pull/5) ([gscho](https://github.com/gscho))
11
+
12
+ ## [v0.3.0](https://github.com/gscho/a2-cli/tree/HEAD)
4
13
 
5
14
  [Full Changelog](https://github.com/gscho/a2-cli/compare/v0.2.0...HEAD)
6
15
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- a2 (0.2.0)
4
+ a2 (0.3.1)
5
5
  cmdparse
6
6
  httparty
7
7
 
@@ -14,7 +14,7 @@ GEM
14
14
  minitest (~> 5.1)
15
15
  tzinfo (~> 1.1)
16
16
  zeitwerk (~> 2.2, >= 2.2.2)
17
- addressable (2.7.0)
17
+ addressable (2.8.0)
18
18
  public_suffix (>= 2.0.2, < 5.0)
19
19
  async (1.28.9)
20
20
  console (~> 1.10)
@@ -53,14 +53,12 @@ GEM
53
53
  rainbow (>= 2.2.1)
54
54
  rake (>= 10.0)
55
55
  retriable (~> 3.0)
56
- httparty (0.18.1)
57
- mime-types (~> 3.0)
56
+ httparty (0.21.0)
57
+ mini_mime (>= 1.0.0)
58
58
  multi_xml (>= 0.5.2)
59
59
  i18n (1.8.5)
60
60
  concurrent-ruby (~> 1.0)
61
- mime-types (3.3.1)
62
- mime-types-data (~> 3.2015)
63
- mime-types-data (3.2021.0225)
61
+ mini_mime (1.1.2)
64
62
  minitest (5.14.4)
65
63
  multi_json (1.15.0)
66
64
  multi_xml (0.6.0)
@@ -96,10 +94,10 @@ PLATFORMS
96
94
 
97
95
  DEPENDENCIES
98
96
  a2!
99
- bundler (~> 2.2.15)
97
+ bundler (~> 2.3)
100
98
  github_changelog_generator
101
99
  minitest (~> 5.0)
102
100
  rake (>= 12.3.3)
103
101
 
104
102
  BUNDLED WITH
105
- 2.2.15
103
+ 2.3.26
data/README.md CHANGED
@@ -3,11 +3,14 @@
3
3
  ![build status](https://github.com/gscho/a2-cli/actions/workflows/run-rake.yml/badge.svg?branch=main)
4
4
  [![Gem Version](https://badge.fury.io/rb/a2.svg)](https://badge.fury.io/rb/a2)
5
5
 
6
- This gem is a CLI for interacting with Chef Automate 2+ APIs.
6
+ A CLI and ruby client for interacting with Chef Automate 2+ APIs.
7
7
 
8
8
 
9
9
  ## Usage
10
10
 
11
+ * [CLI Usage](#using-from-the-command-line)
12
+ * [Client Usage](#using-as-an-api-client)
13
+
11
14
  ### Using from the command line
12
15
 
13
16
  Install the CLI via rubygems:
@@ -75,9 +78,9 @@ List the available commands:
75
78
  -h, --help Show help
76
79
 
77
80
 
78
- ### Using as a library
81
+ ### Using as an API Client
79
82
 
80
- You can also use it as a library by adding this line to your application's Gemfile:
83
+ You can also use the ruby API client directly by adding this line to your application's Gemfile:
81
84
 
82
85
  ```ruby
83
86
  gem 'a2'
data/a2.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['greg.c.schofield@gmail.com']
11
11
  spec.summary = %q{A gem for interacting with the Chef Automate 2+ API}
12
12
  spec.description = %q{A gem for interacting with the Chef Automate 2+ API}
13
- spec.homepage = 'https://github.com/gscho/a2-cli'
13
+ spec.homepage = 'https://github.com/gscho/a2'
14
14
  spec.license = 'MIT'
15
15
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
16
16
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  "source_code_uri" => spec.homepage,
23
23
  "changelog_uri" => "#{spec.homepage}/CHANGELOG.md"
24
24
  }
25
- spec.add_development_dependency 'bundler', '~> 2.2.15'
25
+ spec.add_development_dependency 'bundler', '~> 2.3'
26
26
  spec.add_development_dependency 'rake', '>= 12.3.3'
27
27
  spec.add_development_dependency 'minitest', '~> 5.0'
28
28
  spec.add_development_dependency 'github_changelog_generator'
@@ -3,7 +3,7 @@ module A2
3
3
  attr_reader :query_filter, :filter_key
4
4
  def initialize(name, opts = {})
5
5
  set_custom_opts!(opts)
6
- super(name, opts)
6
+ super(name, takes_commands: opts[:takes_commands])
7
7
  set_filter_optparse_options!(options, @query_filter)
8
8
  end
9
9
 
data/lib/a2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module A2
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gscho
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-15 00:00:00.000000000 Z
11
+ date: 2023-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.15
19
+ version: '2.3'
20
20
  type: :development
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: 2.2.15
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -99,8 +99,6 @@ email:
99
99
  - greg.c.schofield@gmail.com
100
100
  executables:
101
101
  - a2
102
- - console
103
- - setup
104
102
  extensions: []
105
103
  extra_rdoc_files: []
106
104
  files:
@@ -115,8 +113,6 @@ files:
115
113
  - Rakefile
116
114
  - a2.gemspec
117
115
  - bin/a2
118
- - bin/console
119
- - bin/setup
120
116
  - lib/a2.rb
121
117
  - lib/a2/client.rb
122
118
  - lib/a2/client/config_mgmt.rb
@@ -139,13 +135,13 @@ files:
139
135
  - lib/a2/subcommands/team.rb
140
136
  - lib/a2/subcommands/user.rb
141
137
  - lib/a2/version.rb
142
- homepage: https://github.com/gscho/a2-cli
138
+ homepage: https://github.com/gscho/a2
143
139
  licenses:
144
140
  - MIT
145
141
  metadata:
146
- source_code_uri: https://github.com/gscho/a2-cli
147
- changelog_uri: https://github.com/gscho/a2-cli/CHANGELOG.md
148
- post_install_message:
142
+ source_code_uri: https://github.com/gscho/a2
143
+ changelog_uri: https://github.com/gscho/a2/CHANGELOG.md
144
+ post_install_message:
149
145
  rdoc_options: []
150
146
  require_paths:
151
147
  - lib
@@ -160,8 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
156
  - !ruby/object:Gem::Version
161
157
  version: '0'
162
158
  requirements: []
163
- rubygems_version: 3.0.3.1
164
- signing_key:
159
+ rubygems_version: 3.3.7
160
+ signing_key:
165
161
  specification_version: 4
166
162
  summary: A gem for interacting with the Chef Automate 2+ API
167
163
  test_files: []
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "a2"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here