ruby-jss 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-jss might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/jss.rb +3 -0
- data/lib/jss/api_object.rb +27 -23
- data/lib/jss/api_object/account.rb +160 -0
- data/lib/jss/api_object/computer.rb +30 -12
- data/lib/jss/api_object/computer_invitation.rb +206 -0
- data/lib/jss/api_object/creatable.rb +7 -6
- data/lib/jss/api_object/distribution_point.rb +11 -6
- data/lib/jss/api_object/group.rb +13 -13
- data/lib/jss/api_object/osx_configuration_profile.rb +61 -59
- data/lib/jss/api_object/package.rb +41 -12
- data/lib/jss/api_object/restricted_software.rb +86 -0
- data/lib/jss/api_object/script.rb +1 -1
- data/lib/jss/api_object/self_servable.rb +55 -58
- data/lib/jss/api_object/updatable.rb +1 -1
- data/lib/jss/client.rb +1 -1
- data/lib/jss/version.rb +1 -1
- metadata +5 -2
@@ -94,7 +94,7 @@ module JSS
|
|
94
94
|
raise JSS::InvalidDataError, "Names can't be empty!" if newname.to_s.empty?
|
95
95
|
raise JSS::AlreadyExistsError, "A #{self.class::RSRC_OBJECT_KEY} named '#{newname}' already exsists in the JSS" if self.class.all_names(:refresh).include? newname
|
96
96
|
@name = newname
|
97
|
-
@rest_rsrc = "#{self.class::RSRC_BASE}/name/#{
|
97
|
+
@rest_rsrc = "#{self.class::RSRC_BASE}/name/#{CGI.escape @name}" if @rest_rsrc.include? '/name/'
|
98
98
|
@need_to_update = true
|
99
99
|
end # name=(newname)
|
100
100
|
|
data/lib/jss/client.rb
CHANGED
data/lib/jss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-jss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Lasell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plist
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- lib/jss.rb
|
108
108
|
- lib/jss/api_connection.rb
|
109
109
|
- lib/jss/api_object.rb
|
110
|
+
- lib/jss/api_object/account.rb
|
110
111
|
- lib/jss/api_object/advanced_search.rb
|
111
112
|
- lib/jss/api_object/advanced_search/advanced_computer_search.rb
|
112
113
|
- lib/jss/api_object/advanced_search/advanced_mobile_device_search.rb
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- lib/jss/api_object/building.rb
|
115
116
|
- lib/jss/api_object/category.rb
|
116
117
|
- lib/jss/api_object/computer.rb
|
118
|
+
- lib/jss/api_object/computer_invitation.rb
|
117
119
|
- lib/jss/api_object/creatable.rb
|
118
120
|
- lib/jss/api_object/criteriable.rb
|
119
121
|
- lib/jss/api_object/criteriable/criteria.rb
|
@@ -142,6 +144,7 @@ files:
|
|
142
144
|
- lib/jss/api_object/policy.rb
|
143
145
|
- lib/jss/api_object/purchasable.rb
|
144
146
|
- lib/jss/api_object/removable_macaddr.rb
|
147
|
+
- lib/jss/api_object/restricted_software.rb
|
145
148
|
- lib/jss/api_object/scopable.rb
|
146
149
|
- lib/jss/api_object/scopable/scope.rb
|
147
150
|
- lib/jss/api_object/script.rb
|