sticapi_client 0.3.7 → 0.3.8

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: 03fb30349df06208ce6cbc5fb77b5b9214aed46e09ef17fc54d8d68a724f726e
4
- data.tar.gz: b923b2965afe1765750ec351ed052d78cb662915d12da4290ac6d7c7e2a233db
3
+ metadata.gz: 933a55fd893c89db8b9722ff29cc456807aeca60ab4078315b99100bb2ca186a
4
+ data.tar.gz: 87483eff646005c7d5e21ff7385e316f5e07a8c3066ca0ad111cab82a9a1672d
5
5
  SHA512:
6
- metadata.gz: a9bebb2bf6de2a3e6d5916aff896453568338806795f9f3c9b5e8c83ba79ec5e09b3bcf9a61498b28e136bd6d7a615f73612c83885088eb238775a266889d67a
7
- data.tar.gz: 011dd93721cc153c357a90abcdee08ecfcfe8ad40635c572646060b1354e625bfada7ec046cf449416413e025993c14295517b36c07972a39f7b86eaa27bb6aa
6
+ metadata.gz: c3d5df595ce64a6f358395dd206618aa09bbe03c8e0de5a992b9a20ba4e8b1e2dd6db0c75051450546eeff3a85f2b482d26aa039f01b6a2e524691db799e46a7
7
+ data.tar.gz: 0d1247ea9fe4f15747bd9e676aad86314e586b886b0942aeb4635df5d8e3ec8948c977d5173169dad5e551a12e5ddf880e5c445123a34d8b565d44960b2990e6
@@ -0,0 +1,15 @@
1
+ module SticapiClient
2
+ class Gestorh
3
+ def self.show(cpf)
4
+ Sticapi::SticapiClient.instance.sticapi_request("/gestorh/#{cpf}", kind: 'get')
5
+ end
6
+
7
+ def self.contracheques(cpf)
8
+ Sticapi::SticapiClient.instance.sticapi_request("/gestorh/#{cpf}/contracheques", kind: 'get')
9
+ end
10
+
11
+ def self.contracheque(cpf, mes, ano)
12
+ Sticapi::SticapiClient.instance.sticapi_request("/gestorh/#{cpf}/contracheque?mes=#{mes}&ano=#{ano}", kind: 'get')
13
+ end
14
+ end
15
+ end
@@ -1,7 +1,7 @@
1
- module SticapiClient
2
- class Sip
3
- def self.unidades
4
- Sticapi::SticapiClient.instance.sticapi_request('/sip/unidades')
5
- end
6
- end
7
- end
1
+ module SticapiClient
2
+ class Sip
3
+ def self.unidades
4
+ Sticapi::SticapiClient.instance.sticapi_request('/sip/unidades')
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module SticapiClient
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -7,6 +7,7 @@ require 'sticapi_client/sticapi_devise_strategy'
7
7
  require 'sticapi_client/sticapi_controller'
8
8
  require 'sticapi_client/etjpi'
9
9
  require 'sticapi_client/intranet'
10
+ require 'sticapi_client/gestorh'
10
11
  require 'sticapi_client/sip'
11
12
  require 'net/http'
12
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sticapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Viana
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-22 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -105,6 +105,7 @@ files:
105
105
  - lib/generators/sticapi_client/templates/sticapi.yml
106
106
  - lib/sticapi_client.rb
107
107
  - lib/sticapi_client/etjpi.rb
108
+ - lib/sticapi_client/gestorh.rb
108
109
  - lib/sticapi_client/intranet.rb
109
110
  - lib/sticapi_client/sip.rb
110
111
  - lib/sticapi_client/sticapi_controller.rb