sticapi_client 3.5.3 → 3.5.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d58ee805bf55e1efd97963cbd8bfab5173e874ef93fe4b7a798c45bee717b5
4
- data.tar.gz: c466299a14906065948ba196a95c36fd17ed225696859ac8dcd97ff87006c815
3
+ metadata.gz: a0dd3eb13aa3830b54c36344e1cf486f8c1f6b81e2b9e1e5217fead5d3c198b6
4
+ data.tar.gz: 314bfbbffd6a42dbc84b8c646e874bb78a31198dbac1e3df70813cb02ff2d6a9
5
5
  SHA512:
6
- metadata.gz: 52adee430811bf6ef337c663016e9f5cf2fd30592dec94fb673797d51a93ab7471a49746bb02fab491021d9120f6d1afe3e676f4ad6b420219a0e986671d0f73
7
- data.tar.gz: 631afc57857be402b3ba980d5bcc5a6c770a0c1b2dbe24959d49b685d6ded3fee8939ee80f262397087612dfb0a56e7a351cbc6682633c809fd113b592b6d663
6
+ metadata.gz: dfcd9cabefff5ef0db7e0efe58de8109a4da014b201e781254fbefdd2e55c8e31fb1a8558ef8e3370324871cc6508eabae8547203825ed3391fbd073b0e7f54e
7
+ data.tar.gz: edc8c7b92948e5bf20b04672255db0292ce5a3c520feb32ca6ce0b0529fb8c02c5a5a36c402996598a93d94fc0998992ca7dc28e11ea3491a2924a58dd337265
@@ -128,5 +128,12 @@ module SticapiClient
128
128
  options[:kind] = "get"
129
129
  Sticapi::SticapiClient.instance.sticapi_request("/pessoas/unidade", options)
130
130
  end
131
+
132
+ # Retorna os dados de todos os grupos de trabalho
133
+ # Retorno [JSON] Grupo de Trabalho e vinculados correspondentes
134
+ def self.grupo_trabalho(options = {})
135
+ options[:kind] = "get"
136
+ Sticapi::SticapiClient.instance.sticapi_request("/pessoas/grupo_trabalho", options)
137
+ end
131
138
  end
132
139
  end
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "3.5.3"
2
+ VERSION = "3.5.5"
3
3
  end
@@ -36,7 +36,10 @@ module Sticapi
36
36
  attr_accessor :expiry
37
37
 
38
38
  def initialize
39
- configs = YAML.load_file("#{Rails.root}/config/sticapi.yml")[Rails.env]
39
+ configs = YAML.safe_load(
40
+ ERB.new(File.read("#{Rails.root}/config/sticapi.yml")).result,
41
+ aliases: true
42
+ )[Rails.env]
40
43
  @host = configs["host"]
41
44
  @port = configs["port"] || 80
42
45
  @user = configs["user"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.7.0
141
+ rubygems_version: 3.7.2
142
142
  specification_version: 4
143
143
  summary: Client to use TJPI sticapi services
144
144
  test_files: []