-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathruby-jss.gemspec
98 lines (81 loc) · 4.08 KB
/
ruby-jss.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
### Copyright 2023 Pixar
###
### Licensed under the Apache License, Version 2.0 (the "Apache License")
### with the following modification; you may not use this file except in
### compliance with the Apache License and the following modification to it:
### Section 6. Trademarks. is deleted and replaced with:
###
### 6. Trademarks. This License does not grant permission to use the trade
### names, trademarks, service marks, or product names of the Licensor
### and its affiliates, except as required to comply with Section 4(c) of
### the License and to reproduce the content of the NOTICE file.
###
### You may obtain a copy of the Apache License at
###
### http://www.apache.org/licenses/LICENSE-2.0
###
### Unless required by applicable law or agreed to in writing, software
### distributed under the Apache License with the above modification is
### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
### KIND, either express or implied. See the Apache License for the specific
### language governing permissions and limitations under the Apache License.
###
proj_name = 'ruby-jss'
lib_dir = 'jamf'
require "./lib/#{lib_dir}/version"
Gem::Specification.new do |s|
# General
s.description = <<~EODESC
The ruby-jss gem provides native ruby access to the REST APIs of Jamf Pro,
an enterprise/education tool for managing Apple devices, from jamf.com.
The Jamf module provides access to both the 'Classic' API and the more modern
'Jamf Pro' API. Jamf Pro objects are implemented as classes and can interact
with each other. Authentication tokens, data transfer using JSON or XML and other
details are handled automatically under the hood to allow simpler, intuitive
automation of Jamf-related tasks.
EODESC
s.name = proj_name
s.version = Jamf::VERSION
s.license = 'Nonstandard'
s.date = Time.now.utc.strftime('%Y-%m-%d')
s.summary = 'A Ruby interface to the Jamf Pro REST APIs'
s.authors = ['Chris Lasell', 'Aurica Hayes']
s.email = '[email protected]'
s.homepage = 'http://pixaranimationstudios.github.io/ruby-jss/'
s.metadata = {
'source_code_uri' => 'https://github.com/PixarAnimationStudios/ruby-jss',
'changelog_uri' => 'https://github.com/PixarAnimationStudios/ruby-jss/blob/master/CHANGES.md',
'wiki_uri' => 'https://github.com/PixarAnimationStudios/ruby-jss/wiki'
}
s.files = Dir['lib/**/*.rb']
s.files << '.yardopts'
s.files += Dir['data/**/*']
s.files += Dir['test/**/*']
s.executables << 'cgrouper'
s.executables << 'netseg-update'
s.executables << 'jamfHelperBackgrounder'
# Dependencies
s.required_ruby_version = '>= 2.6.3'
# https://github.com/ckruse/CFPropertyList MIT License (no dependencies)
s.add_runtime_dependency 'CFPropertyList', '~> 3.0'
# https://github.com/tmtm/ruby-mysql Ruby License (no dependencies)
# DEPRECATED: mysql support in ruby-jss will be removed eventually
s.add_runtime_dependency 'ruby-mysql', '~> 2.9', '>= 2.9.12'
# https://github.com/lostisland/faraday: MIT License
s.add_runtime_dependency 'faraday', '~> 2.0'
# https://github.com/lostisland/faraday-multipart & dependencies: MIT License
s.add_runtime_dependency 'faraday-multipart', '~> 1.0', '>= 1.0.4'
# https://github.com/ruby-concurrency/concurrent-ruby MIT License (no dependencies)
s.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
# https://github.com/stitchfix/immutable-struct MIT License (no dependencies)
# TODO: replace this with the one from concurrent-ruby
s.add_runtime_dependency 'immutable-struct', '~> 2.3'
# https://github.com/fxn/zeitwerk MIT License (no dependencies)
s.add_runtime_dependency 'zeitwerk', '~> 2.5', '>= 2.5.4'
# Ruby 3.0+ doesn't include rexml in the stdlib, but
# the min. version of ruby 2 we support includes v 3.1.9
s.add_runtime_dependency 'rexml', '~> 3.1', '>= 3.1.9'
# Rdoc
s.extra_rdoc_files = ['README.md', 'LICENSE.txt', 'CHANGES.md', 'THANKS.md', 'README-2.0.0.md']
s.rdoc_options << '--title' << 'Jamf' << '--line-numbers' << '--main' << 'README.md'
end