jess 1.1.0 → 1.1.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 +4 -4
- data/README.md +1 -1
- data/lib/jess/http_client/error_decorator.rb +0 -2
- data/lib/jess/version.rb +1 -1
- metadata +9 -151
- data/.github/pull_request_template.md +0 -6
- data/.github/release-drafter.yml +0 -17
- data/.github/workflows/push.yml +0 -12
- data/.gitignore +0 -8
- data/.prettierignore +0 -2
- data/.rubocop.yml +0 -72
- data/.travis.yml +0 -15
- data/CHANGELOG.md +0 -1
- data/CODE_OF_CONDUCT.md +0 -74
- data/CONTRIBUTING.md +0 -21
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -93
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/jess.gemspec +0 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54decc31bf64a265a967a7df044bbe091892dac4c58173886be2387f766eec9d
|
|
4
|
+
data.tar.gz: 8e6c88f9595b6f299ed123ae6cdabd6a77259eec25f0d1af16fecd5ad423d064
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12c86f76f10ca6c60f36657dd11500152f5e1b7803f2faf77c8be2a33afe45b5f130475f7fd41b428b205c6ac8e07f34a35df198d995a410d81e5f2b4978cc16
|
|
7
|
+
data.tar.gz: 8f06f887a7e122019d01cda4a4cde3afda8554711e0c2898f3170e1c6c2ed2b8a6d19e96368fba0e207ef65304140381f84c5b41205da63b144f7e62bb56be71
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Jess
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/jess)
|
|
4
|
-
[](https://travis-ci.org/mattbrictson/jess)
|
|
5
5
|
[](https://codeclimate.com/github/mattbrictson/jess)
|
|
6
6
|
|
|
7
7
|
**Jess is an extremely lightweight, read-only client for the JAMF Software Server (JSS) API.**
|
|
@@ -26,7 +26,6 @@ module Jess
|
|
|
26
26
|
raise Error, res.message
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
# rubocop:disable Lint/EmptyWhen
|
|
30
29
|
def handle_exception(err, req, res)
|
|
31
30
|
case err
|
|
32
31
|
when IOError, Timeout::Error
|
|
@@ -40,7 +39,6 @@ module Jess
|
|
|
40
39
|
fill_exception(err, req, res)
|
|
41
40
|
raise err
|
|
42
41
|
end
|
|
43
|
-
# rubocop:enable Lint/EmptyWhen
|
|
44
42
|
|
|
45
43
|
def fill_exception(err, req, res)
|
|
46
44
|
err.uri = req.uri
|
data/lib/jess/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,165 +1,23 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jess
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brictson
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
12
|
-
dependencies:
|
|
13
|
-
|
|
14
|
-
name: awesome_print
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.7'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.7'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: minitest
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '5.0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '5.0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: minitest-reporters
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.1'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.1'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '13.0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '13.0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rexml
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '3.2'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '3.2'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - '='
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.81.0
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - '='
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.81.0
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-performance
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - '='
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.5.2
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - '='
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 1.5.2
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: webmock
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - "~>"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '3.1'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '3.1'
|
|
139
|
-
description:
|
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
140
14
|
email:
|
|
141
15
|
- opensource@mattbrictson.com
|
|
142
16
|
executables: []
|
|
143
17
|
extensions: []
|
|
144
18
|
extra_rdoc_files: []
|
|
145
19
|
files:
|
|
146
|
-
- ".github/pull_request_template.md"
|
|
147
|
-
- ".github/release-drafter.yml"
|
|
148
|
-
- ".github/workflows/push.yml"
|
|
149
|
-
- ".gitignore"
|
|
150
|
-
- ".prettierignore"
|
|
151
|
-
- ".rubocop.yml"
|
|
152
|
-
- ".travis.yml"
|
|
153
|
-
- CHANGELOG.md
|
|
154
|
-
- CODE_OF_CONDUCT.md
|
|
155
|
-
- CONTRIBUTING.md
|
|
156
|
-
- Gemfile
|
|
157
|
-
- LICENSE.txt
|
|
158
20
|
- README.md
|
|
159
|
-
- Rakefile
|
|
160
|
-
- bin/console
|
|
161
|
-
- bin/setup
|
|
162
|
-
- jess.gemspec
|
|
163
21
|
- lib/jess.rb
|
|
164
22
|
- lib/jess/computer.rb
|
|
165
23
|
- lib/jess/computers.rb
|
|
@@ -178,10 +36,10 @@ licenses:
|
|
|
178
36
|
- MIT
|
|
179
37
|
metadata:
|
|
180
38
|
homepage_uri: https://github.com/mattbrictson/jess
|
|
181
|
-
changelog_uri: https://github.com/mattbrictson/jess/
|
|
39
|
+
changelog_uri: https://github.com/mattbrictson/jess/releases
|
|
182
40
|
source_code_uri: https://github.com/mattbrictson/jess/
|
|
183
41
|
bug_tracker_uri: https://github.com/mattbrictson/jess/issues
|
|
184
|
-
post_install_message:
|
|
42
|
+
post_install_message:
|
|
185
43
|
rdoc_options: []
|
|
186
44
|
require_paths:
|
|
187
45
|
- lib
|
|
@@ -196,8 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
54
|
- !ruby/object:Gem::Version
|
|
197
55
|
version: '0'
|
|
198
56
|
requirements: []
|
|
199
|
-
rubygems_version: 3.1.
|
|
200
|
-
signing_key:
|
|
57
|
+
rubygems_version: 3.1.4
|
|
58
|
+
signing_key:
|
|
201
59
|
specification_version: 4
|
|
202
60
|
summary: Lightweight, unofficial client for the JAMF Software Server (JSS) API
|
|
203
61
|
test_files: []
|
data/.github/release-drafter.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name-template: "$NEXT_PATCH_VERSION"
|
|
2
|
-
tag-template: "v$NEXT_PATCH_VERSION"
|
|
3
|
-
categories:
|
|
4
|
-
- title: "⚠️ Breaking Changes"
|
|
5
|
-
label: "⚠️ Breaking"
|
|
6
|
-
- title: "✨ New Features"
|
|
7
|
-
label: "✨ Feature"
|
|
8
|
-
- title: "🐛 Bug Fixes"
|
|
9
|
-
label: "🐛 Bug Fix"
|
|
10
|
-
- title: "📚 Documentation"
|
|
11
|
-
label: "📚 Docs"
|
|
12
|
-
- title: "🏠 Housekeeping"
|
|
13
|
-
label: "🏠 Housekeeping"
|
|
14
|
-
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
|
|
15
|
-
no-changes-template: "- No changes"
|
|
16
|
-
template: |
|
|
17
|
-
$CHANGES
|
data/.github/workflows/push.yml
DELETED
data/.gitignore
DELETED
data/.prettierignore
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
require:
|
|
2
|
-
- rubocop-performance
|
|
3
|
-
|
|
4
|
-
AllCops:
|
|
5
|
-
DisplayCopNames: true
|
|
6
|
-
DisplayStyleGuide: true
|
|
7
|
-
TargetRubyVersion: 2.5
|
|
8
|
-
|
|
9
|
-
Layout/LineLength:
|
|
10
|
-
Exclude:
|
|
11
|
-
- "*.gemspec"
|
|
12
|
-
|
|
13
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
14
|
-
EnforcedStyle: no_space
|
|
15
|
-
|
|
16
|
-
Lint/RaiseException:
|
|
17
|
-
Enabled: true
|
|
18
|
-
|
|
19
|
-
Lint/StructNewOverride:
|
|
20
|
-
Enabled: true
|
|
21
|
-
|
|
22
|
-
Metrics/AbcSize:
|
|
23
|
-
Exclude:
|
|
24
|
-
- "test/**/*"
|
|
25
|
-
|
|
26
|
-
Metrics/BlockLength:
|
|
27
|
-
Exclude:
|
|
28
|
-
- "*.gemspec"
|
|
29
|
-
- "Rakefile"
|
|
30
|
-
|
|
31
|
-
Metrics/ClassLength:
|
|
32
|
-
Exclude:
|
|
33
|
-
- "test/**/*"
|
|
34
|
-
|
|
35
|
-
Metrics/MethodLength:
|
|
36
|
-
Exclude:
|
|
37
|
-
- "test/**/*"
|
|
38
|
-
|
|
39
|
-
Naming/MemoizedInstanceVariableName:
|
|
40
|
-
Enabled: false
|
|
41
|
-
|
|
42
|
-
Style/BarePercentLiterals:
|
|
43
|
-
EnforcedStyle: percent_q
|
|
44
|
-
|
|
45
|
-
Style/ClassAndModuleChildren:
|
|
46
|
-
Enabled: false
|
|
47
|
-
|
|
48
|
-
Style/Documentation:
|
|
49
|
-
Exclude:
|
|
50
|
-
- "Rakefile"
|
|
51
|
-
- "test/**/*"
|
|
52
|
-
|
|
53
|
-
Style/DoubleNegation:
|
|
54
|
-
Enabled: false
|
|
55
|
-
|
|
56
|
-
Style/FrozenStringLiteralComment:
|
|
57
|
-
Enabled: false
|
|
58
|
-
|
|
59
|
-
Style/HashEachMethods:
|
|
60
|
-
Enabled: true
|
|
61
|
-
|
|
62
|
-
Style/HashTransformKeys:
|
|
63
|
-
Enabled: true
|
|
64
|
-
|
|
65
|
-
Style/HashTransformValues:
|
|
66
|
-
Enabled: true
|
|
67
|
-
|
|
68
|
-
Style/StringLiterals:
|
|
69
|
-
EnforcedStyle: double_quotes
|
|
70
|
-
|
|
71
|
-
Style/TrivialAccessors:
|
|
72
|
-
AllowPredicates: true
|
data/.travis.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sudo: false
|
|
3
|
-
language: ruby
|
|
4
|
-
cache: bundler
|
|
5
|
-
branches:
|
|
6
|
-
only:
|
|
7
|
-
- master
|
|
8
|
-
rvm:
|
|
9
|
-
- 2.5.8
|
|
10
|
-
- 2.6.6
|
|
11
|
-
- 2.7.1
|
|
12
|
-
- ruby-head
|
|
13
|
-
before_install:
|
|
14
|
-
- gem install bundler -v 2.1.4 --conservative --no-document
|
|
15
|
-
- gem install executable-hooks --conservative --no-document
|
data/CHANGELOG.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Release notes for this project are kept here: https://github.com/mattbrictson/jess/releases
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at matt@mattbrictson.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: http://contributor-covenant.org
|
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/CONTRIBUTING.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Contributing to Jess
|
|
2
|
-
|
|
3
|
-
Have a feature idea, bug fix, or refactoring suggestion? Contributions are welcome! Here are some general guidelines.
|
|
4
|
-
|
|
5
|
-
## Discuss first!
|
|
6
|
-
|
|
7
|
-
1. Check [Issues][] to see if your contribution has already been discussed and/or implemented.
|
|
8
|
-
2. If not, open an issue to discuss your contribution. I won't accept all changes and do not want to waste your time.
|
|
9
|
-
3. Once you have the :thumbsup:, fork the repo, make your changes, and open a PR.
|
|
10
|
-
|
|
11
|
-
## Before you commit
|
|
12
|
-
|
|
13
|
-
* Did you add tests? New features or changes in behavior should be tested.
|
|
14
|
-
* Do all tests and RuboCop checks pass? Run `bundle exec rake` to be sure.
|
|
15
|
-
* Did you add a CHANGELOG entry? All non-trivial PRs need one.
|
|
16
|
-
|
|
17
|
-
## Questions?
|
|
18
|
-
|
|
19
|
-
Need help writing an appropriate test? Not sure the best way to attack a problem? Please ask by [posting a GitHub issue][Issues]!
|
|
20
|
-
|
|
21
|
-
[Issues]: https://github.com/mattbrictson/jess/issues
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Matt Brictson
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
data/Rakefile
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
2
|
-
require "rake/testtask"
|
|
3
|
-
require "rubocop/rake_task"
|
|
4
|
-
|
|
5
|
-
Rake::TestTask.new(:test) do |t|
|
|
6
|
-
t.libs << "test"
|
|
7
|
-
t.libs << "lib"
|
|
8
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
RuboCop::RakeTask.new
|
|
12
|
-
|
|
13
|
-
task default: %i[test rubocop]
|
|
14
|
-
|
|
15
|
-
Rake::Task["release"].enhance do
|
|
16
|
-
puts "Don't forget to publish the release on GitHub!"
|
|
17
|
-
system "open https://github.com/mattbrictson/jess/releases"
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
task bump: %w[bump:bundler bump:ruby bump:year]
|
|
21
|
-
|
|
22
|
-
namespace :bump do
|
|
23
|
-
task :bundler do
|
|
24
|
-
version = Gem.latest_version_for("bundler").to_s
|
|
25
|
-
replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
|
|
26
|
-
replace_in_file "Gemfile.lock", /^BUNDLED WITH\n\s+([\d\.]+)$/ => version
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
task :ruby do
|
|
30
|
-
lowest = RubyVersions.lowest_supported
|
|
31
|
-
lowest_minor = RubyVersions.lowest_supported_minor
|
|
32
|
-
|
|
33
|
-
replace_in_file "jess.gemspec", /ruby_version = ">= (.*)"/ => lowest
|
|
34
|
-
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor
|
|
35
|
-
replace_in_file "README.md", /requires Ruby (\d\.\d)/i => lowest_minor
|
|
36
|
-
|
|
37
|
-
travis = YAML.safe_load(open(".travis.yml"))
|
|
38
|
-
travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"]
|
|
39
|
-
IO.write(".travis.yml", YAML.dump(travis))
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
task :year do
|
|
43
|
-
replace_in_file "LICENSE.txt", /\(c\) (\d+)/ => Date.today.year.to_s
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
require "date"
|
|
48
|
-
require "open-uri"
|
|
49
|
-
require "yaml"
|
|
50
|
-
|
|
51
|
-
def replace_in_file(path, replacements)
|
|
52
|
-
contents = IO.read(path)
|
|
53
|
-
orig_contents = contents.dup
|
|
54
|
-
replacements.each do |regexp, text|
|
|
55
|
-
contents.gsub!(regexp) do |match|
|
|
56
|
-
match[regexp, 1] = text
|
|
57
|
-
match
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
IO.write(path, contents) if contents != orig_contents
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
module RubyVersions
|
|
64
|
-
class << self
|
|
65
|
-
def lowest_supported
|
|
66
|
-
"#{lowest_supported_minor}.0"
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
def lowest_supported_minor
|
|
70
|
-
latest_supported_patches.first[/\d+\.\d+/]
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def latest
|
|
74
|
-
latest_supported_patches.last
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
def latest_supported_patches
|
|
78
|
-
patches = [versions[:stable], versions[:security_maintenance]].flatten
|
|
79
|
-
patches.map(&Gem::Version.method(:new)).sort.map(&:to_s)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
private
|
|
83
|
-
|
|
84
|
-
def versions
|
|
85
|
-
@_versions ||= begin
|
|
86
|
-
yaml = URI.open(
|
|
87
|
-
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
|
|
88
|
-
)
|
|
89
|
-
YAML.safe_load(yaml, symbolize_names: true)
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
end
|
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "jess"
|
|
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
data/jess.gemspec
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require "jess/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "jess"
|
|
7
|
-
spec.version = Jess::VERSION
|
|
8
|
-
spec.authors = ["Matt Brictson"]
|
|
9
|
-
spec.email = ["opensource@mattbrictson.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "Lightweight, unofficial client for the JAMF Software "\
|
|
12
|
-
"Server (JSS) API"
|
|
13
|
-
spec.homepage = "https://github.com/mattbrictson/jess"
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
|
|
16
|
-
spec.metadata = {
|
|
17
|
-
"homepage_uri" => "https://github.com/mattbrictson/jess",
|
|
18
|
-
"changelog_uri" => "https://github.com/mattbrictson/jess/blob/master/CHANGELOG.md",
|
|
19
|
-
"source_code_uri" => "https://github.com/mattbrictson/jess/",
|
|
20
|
-
"bug_tracker_uri" => "https://github.com/mattbrictson/jess/issues"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
24
|
-
f.match(%r{^(test|spec|features)/})
|
|
25
|
-
end
|
|
26
|
-
spec.bindir = "exe"
|
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
|
-
spec.require_paths = ["lib"]
|
|
29
|
-
|
|
30
|
-
spec.required_ruby_version = ">= 2.5.0"
|
|
31
|
-
|
|
32
|
-
spec.add_development_dependency "awesome_print", "~> 1.7"
|
|
33
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
34
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
|
35
|
-
spec.add_development_dependency "minitest-reporters", "~>1.1"
|
|
36
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
|
37
|
-
spec.add_development_dependency "rexml", "~> 3.2"
|
|
38
|
-
spec.add_development_dependency "rubocop", "= 0.81.0"
|
|
39
|
-
spec.add_development_dependency "rubocop-performance", "= 1.5.2"
|
|
40
|
-
spec.add_development_dependency "webmock", "~> 3.1"
|
|
41
|
-
end
|