cumulus_ruby 0.1.1 → 0.2.0
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/README.md +4 -4
- data/lib/cumulus/pmx.rb +6 -2
- data/lib/cumulus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4434b0828e8cf265468e60a22cd0dbce6d2ad033
|
4
|
+
data.tar.gz: 3afcc995fc6c466b23c27fdc172b765e78ba4e96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f3c1dfc06bb6ad5f264552f27ac5b790008e64e512e0fdedcf8833fe251ea9707d66aa5d6472e410da54fb56cf3674c58910c8639441187214c9f2b8f17b15
|
7
|
+
data.tar.gz: 5e766f265cd91deaf7d34406e0c1d99771c003d948fb35bdb6b9e1fab319dddacb7b22d29e3aaa342ae9f6d2ed2d63de6fac1d11782994a32252e4551e1d4366
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ pmx = Cumulus::Pmx.new(client)
|
|
68
68
|
Look for companies
|
69
69
|
|
70
70
|
```ruby
|
71
|
-
pmx.companies
|
71
|
+
pmx.companies
|
72
72
|
```
|
73
73
|
|
74
74
|
Look for entitlement
|
@@ -78,11 +78,11 @@ pmx.entitled({ 'numeroEmpresa' => '123',
|
|
78
78
|
'numeroEmpleado' => '123', 'codigoDerechoHabiente' => '0' })
|
79
79
|
```
|
80
80
|
|
81
|
-
Look for
|
81
|
+
Look for employee
|
82
82
|
|
83
83
|
```ruby
|
84
|
-
pmx.
|
85
|
-
'numeroEmpleado' => '123'
|
84
|
+
pmx.employee({ 'numeroEmpresa' => '123',
|
85
|
+
'numeroEmpleado' => '123' })
|
86
86
|
```
|
87
87
|
|
88
88
|
## License
|
data/lib/cumulus/pmx.rb
CHANGED
@@ -4,8 +4,12 @@ module Cumulus
|
|
4
4
|
@client = client
|
5
5
|
end
|
6
6
|
|
7
|
-
def companies
|
8
|
-
client.request(:
|
7
|
+
def companies
|
8
|
+
client.request(:get, '/pemex/empresas')
|
9
|
+
end
|
10
|
+
|
11
|
+
def employees(params)
|
12
|
+
client.request(:post, '/pemex/empleados', params)
|
9
13
|
end
|
10
14
|
|
11
15
|
def entitled(params)
|
data/lib/cumulus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cumulus_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amed Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|