sticapi_client 3.5.0 → 3.5.1
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 +4 -4
- data/lib/sticapi_client/pessoas.rb +9 -0
- data/lib/sticapi_client/seadferias.rb +12 -0
- data/lib/sticapi_client/version.rb +1 -1
- data/lib/sticapi_client.rb +1 -0
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 994e1fca90bd6f9020c0e365c688feed9996861e1cf30747d5b5c2d179cc5508
|
4
|
+
data.tar.gz: e476b0f109da4426d3e58d4263ddfb41ffa73c634a353249e5b5c9b424679c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3fb0c741a6c50af444127d7b34a3820d94757d0e861f3c4b19f2443bb3c8c989c7de51544355b5269c2a66c043cb7ab9f720085bfe1538d4416d19d2089968f
|
7
|
+
data.tar.gz: 3a2003427e9b3bfcfabc1997c5108feb256c965686c36e2283c6b9e00f970e0e8c6cadbd416b6b0875c0c76575d873ab52594d0667e15484c6a7531a92e71557
|
@@ -63,6 +63,15 @@ module SticapiClient
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
# Retorna os dados de uma pessoa do sistema pessoas pelo CPF ou Matrícula
|
67
|
+
# Parâmetro cpf [String] cpf da pessoa ou username [String] username da pessoa
|
68
|
+
# Retorno [JSON] Dados da pessoa
|
69
|
+
def self.find(options = {})
|
70
|
+
return {} unless options[:cpf].present? || options[:username].present?
|
71
|
+
|
72
|
+
Sticapi::SticapiClient.instance.sticapi_request("/pessoas/find", options.merge(kind: "get"))
|
73
|
+
end
|
74
|
+
|
66
75
|
# Retorna as autodeclarações pendentes por CPF a partir do sistema Pessoas
|
67
76
|
# Parâmetro cpf [String] cpf da pessoa
|
68
77
|
# Retorno [JSON] Autodeclarações da pessoa com pedência de preenchimento
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module SticapiClient
|
2
|
+
class Seadferias
|
3
|
+
# Retorna os periodos de fruicao de ferias marcadas para a pessoa
|
4
|
+
# Parâmetro cpf [String] cpf da pessoa ou username [String] username da pessoa
|
5
|
+
# Retorno [JSON] Unidades do sistema SEI com dados de contato
|
6
|
+
def self.fruicoes(options = {})
|
7
|
+
return [] unless options[:cpf].present? || options[:username].present?
|
8
|
+
|
9
|
+
Sticapi::SticapiClient.instance.sticapi_request("/seadferias/fruitions", options.merge(kind: "get"))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/sticapi_client.rb
CHANGED
@@ -10,6 +10,7 @@ require "sticapi_client/intranet"
|
|
10
10
|
require "sticapi_client/gestorh"
|
11
11
|
require "sticapi_client/pessoas"
|
12
12
|
require "sticapi_client/pje"
|
13
|
+
require "sticapi_client/seadferias"
|
13
14
|
require "sticapi_client/sip"
|
14
15
|
require "sticapi_client/tjpi"
|
15
16
|
require "sticapi_client/themis"
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sticapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rails
|
@@ -112,6 +111,7 @@ files:
|
|
112
111
|
- lib/sticapi_client/ou.rb
|
113
112
|
- lib/sticapi_client/pessoas.rb
|
114
113
|
- lib/sticapi_client/pje.rb
|
114
|
+
- lib/sticapi_client/seadferias.rb
|
115
115
|
- lib/sticapi_client/sip.rb
|
116
116
|
- lib/sticapi_client/sticapi_controller.rb
|
117
117
|
- lib/sticapi_client/sticapi_devise_strategy.rb
|
@@ -124,7 +124,6 @@ homepage: https://github.com/zezim/sticapi_client
|
|
124
124
|
licenses:
|
125
125
|
- MIT
|
126
126
|
metadata: {}
|
127
|
-
post_install_message:
|
128
127
|
rdoc_options: []
|
129
128
|
require_paths:
|
130
129
|
- lib
|
@@ -139,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
138
|
- !ruby/object:Gem::Version
|
140
139
|
version: '0'
|
141
140
|
requirements: []
|
142
|
-
rubygems_version: 3.5
|
143
|
-
signing_key:
|
141
|
+
rubygems_version: 3.6.5
|
144
142
|
specification_version: 4
|
145
143
|
summary: Client to use TJPI sticapi services
|
146
144
|
test_files: []
|