domoscio_admin 0.3.1 → 0.3.5

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: 803479587b960b56624c80a2556cf6d2cf0a30fbbba879874e8126bf2a7f3097
4
- data.tar.gz: a4af20195420db5d4fbd74188258b4797323363a7ea833b624e03db7c109c4f9
3
+ metadata.gz: e13dd13b5a0c4607c41a261227b9be65de5badb861d91ecbb67aba15673f805f
4
+ data.tar.gz: d784655c5a27452520635b6ac6583cae4d9284c0a3c4e2d179f8a6895a6ff776
5
5
  SHA512:
6
- metadata.gz: a8dd27e6cbe94b22326e72a4f74c0df2ecddf56139a4cf4bbf03f3aaf0266941b438bf1e4b26194510fa0d8a65e3513889f06363b34e15d8fb7663876ab9523d
7
- data.tar.gz: 9ced7635b86302dab1def46dd0c8c95e0475a10d505af9264dea3038e6b6912df670a7ae882aa1a0350bbd503dabf48800a59f441f552436232d9f5916f7962f
6
+ metadata.gz: cb361e7fbe82c675eb44ace0a1832e37b350c7b559f89fb81d9e6fe56a94134870203afe62ad7e4bd97aff8c25afe5e73a948cbe19605da0e5fb72e43cbf359c
7
+ data.tar.gz: 24bcca18f7358fd06da67754f7981f37d1359c752e31745b5d9d91361782faa688f14e38b72ad8eb14b6e5ed79b863865ccf692f375acd4fe5d24ea27bb7db64
@@ -0,0 +1,8 @@
1
+ module DomoscioAdmin
2
+ class StudentGroup < ResourceInstance
3
+ include DomoscioAdmin::HTTPCalls::Create
4
+ include DomoscioAdmin::HTTPCalls::Fetch
5
+ include DomoscioAdmin::HTTPCalls::Update
6
+ include DomoscioAdmin::HTTPCalls::Destroy
7
+ end
8
+ end
@@ -5,7 +5,7 @@ module DomoscioAdmin
5
5
  raise NotImplementedError, 'Resource is an abstract class. Do not use it directly.' if self == Resource
6
6
 
7
7
  build_url = "/instances/#{DomoscioAdmin.configuration.client_id}/#{underscore(class_name)}s"
8
- build_url << "/#{CGI.escape(id.to_s)}" if id
8
+ build_url << "/#{CGI.escape(id.to_s).gsub('.', '%2E')}" if id
9
9
  build_url
10
10
  end
11
11
 
@@ -7,7 +7,7 @@ module DomoscioAdmin
7
7
  end
8
8
 
9
9
  build_url = "/users"
10
- build_url << "/#{CGI.escape(id.to_s)}" if id
10
+ build_url << "/#{CGI.escape(id.to_s.replace('.', '%2E'))}" if id
11
11
  return build_url
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module DomoscioAdmin
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.5'.freeze
3
3
  end
@@ -11,6 +11,7 @@ require 'domoscio_admin/resources/resource_user'
11
11
  require 'domoscio_admin/resources/resource_instance'
12
12
  require 'domoscio_admin/resources/instances/instance_parameter'
13
13
  require 'domoscio_admin/resources/instances/instance_user'
14
+ require 'domoscio_admin/resources/instances/student_group'
14
15
  require 'domoscio_admin/resources/users/user'
15
16
 
16
17
  module DomoscioAdmin
@@ -79,7 +80,7 @@ module DomoscioAdmin
79
80
  response = perform_call(uri, method, params, headers)
80
81
  response = retry_call_and_store_tokens(uri, method, params) if %w[401 403].include? response.code
81
82
  response
82
- rescue Timeout::Error, Errno::EINVAL, HTTP::ConnectionError, Errno::ECONNREFUSED, Errno::ECONNRESET,
83
+ rescue Timeout::Error, Errno::EINVAL, Errno::ECONNREFUSED, Errno::ECONNRESET,
83
84
  EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
84
85
  ProcessingError.new(uri, 500, e, response, params)
85
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domoscio_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pascal Lim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -55,6 +55,7 @@ files:
55
55
  - lib/domoscio_admin/json.rb
56
56
  - lib/domoscio_admin/resources/instances/instance_parameter.rb
57
57
  - lib/domoscio_admin/resources/instances/instance_user.rb
58
+ - lib/domoscio_admin/resources/instances/student_group.rb
58
59
  - lib/domoscio_admin/resources/resource.rb
59
60
  - lib/domoscio_admin/resources/resource_instance.rb
60
61
  - lib/domoscio_admin/resources/resource_user.rb
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  - !ruby/object:Gem::Version
81
82
  version: '0'
82
83
  requirements: []
83
- rubygems_version: 3.1.2
84
+ rubygems_version: 3.2.22
84
85
  signing_key:
85
86
  specification_version: 4
86
87
  summary: Summary of DomoscioAdmin.