jess 1.1.2 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c1f2b2768c6dd2b43da546c3a488515b0f8717d13a7542e9ae300be498a21a0
4
- data.tar.gz: 9017e596dd4f7e9b457474deaca58981e4f338ed5e22c1f041b93274e11cc3c4
3
+ metadata.gz: 9783b6a915764b6c78ebb586a6317168ce0cb3de2476d2559d007a55fbd0871c
4
+ data.tar.gz: 35eba87bab453c324abf5b625ccd84be66e76c3fb9a6e56672e66a384871ec26
5
5
  SHA512:
6
- metadata.gz: 42c7307ff7ec5840f0a2753cb8ebbf9b6a66c922a2fe619195a341402fcdd899a15fd0aa34df09a7bd2bb5e1cb725b104f921bb0b2928450ddf7206b19905c7b
7
- data.tar.gz: 2e0764b8579cfc647af0b4732c2f035245ddd165d7db0393cee0cf164aeb7c8a524dab142295ca91809bcdbad508fd8c84d65c57a1be02f17c75244612970121
6
+ metadata.gz: 0f2db035005abf377ba48d1272f714a7aed3478ae31808e0b153d914508de6c225aa1044d9399888aa2f10502af28cbf873ef1d115006f6c5c6e4ca8d1780be1
7
+ data.tar.gz: 2978eb8a803b5bf33b78f6d153096c99dc7c7fc84c8a3a886a766ec504a64c3b3059b8842e7178f4108a25ce0c1f7bd46dd46217da8958c2e917e71d1f5a4fd6
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Matt Brictson
3
+ Copyright (c) 2022 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Jess
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/jess.svg)](http://badge.fury.io/rb/jess)
4
- [![Build Status](https://travis-ci.org/mattbrictson/jess.svg?branch=main)](https://travis-ci.org/mattbrictson/jess)
4
+ [![Build Status](https://circleci.com/gh/mattbrictson/jess/tree/main.svg?style=shield)](https://app.circleci.com/pipelines/github/mattbrictson/jess?branch=main)
5
5
  [![Code Climate](https://codeclimate.com/github/mattbrictson/jess/badges/gpa.svg)](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.**
@@ -31,7 +31,7 @@ Or install it yourself as:
31
31
 
32
32
  $ gem install jess
33
33
 
34
- *Note that Jess requires Ruby 2.5 or newer.*
34
+ *Note that Jess requires Ruby 2.6 or newer.*
35
35
 
36
36
  ## Usage
37
37
 
data/lib/jess/resource.rb CHANGED
@@ -34,7 +34,7 @@ module Jess
34
34
  when Hash
35
35
  Resource.new(json)
36
36
  when Array
37
- json.map(&method(:_as_resource)).freeze
37
+ json.map { |j| _as_resource(j) }.freeze
38
38
  else
39
39
  json.freeze
40
40
  end
data/lib/jess/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jess
2
- VERSION = "1.1.2".freeze
2
+ VERSION = "1.2.2".freeze
3
3
  end
data/lib/jess.rb CHANGED
@@ -11,14 +11,14 @@ require "jess/version"
11
11
  # computer.hardware.model # => "iMac Intel (Retina 5k, 27-Inch, Late 2015)"
12
12
  #
13
13
  module Jess
14
- autoload "Computer", "jess/computer"
15
- autoload "Computers", "jess/computers"
16
- autoload "Connection", "jess/connection"
17
- autoload "ExtensionAttributes", "jess/extension_attributes"
18
- autoload "HttpClient", "jess/http_client"
19
- autoload "MobileDevice", "jess/mobile_device"
20
- autoload "MobileDevices", "jess/mobile_devices"
21
- autoload "Resource", "jess/resource"
14
+ autoload :Computer, "jess/computer"
15
+ autoload :Computers, "jess/computers"
16
+ autoload :Connection, "jess/connection"
17
+ autoload :ExtensionAttributes, "jess/extension_attributes"
18
+ autoload :HttpClient, "jess/http_client"
19
+ autoload :MobileDevice, "jess/mobile_device"
20
+ autoload :MobileDevices, "jess/mobile_devices"
21
+ autoload :Resource, "jess/resource"
22
22
 
23
23
  # Establish a connection with JSS and return a Jess::Connection object that
24
24
  # can be used to interact with the JSS API. This is a convenience method. For
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jess
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-04 00:00:00.000000000 Z
11
+ date: 2022-02-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -40,6 +40,7 @@ metadata:
40
40
  changelog_uri: https://github.com/mattbrictson/jess/releases
41
41
  source_code_uri: https://github.com/mattbrictson/jess/
42
42
  bug_tracker_uri: https://github.com/mattbrictson/jess/issues
43
+ rubygems_mfa_required: 'true'
43
44
  post_install_message:
44
45
  rdoc_options: []
45
46
  require_paths:
@@ -48,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
49
  requirements:
49
50
  - - ">="
50
51
  - !ruby/object:Gem::Version
51
- version: 2.5.0
52
+ version: 2.6.0
52
53
  required_rubygems_version: !ruby/object:Gem::Requirement
53
54
  requirements:
54
55
  - - ">="
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  requirements: []
58
- rubygems_version: 3.1.4
59
+ rubygems_version: 3.3.7
59
60
  signing_key:
60
61
  specification_version: 4
61
62
  summary: Lightweight, unofficial client for the JAMF Software Server (JSS) API