xsys 0.0.21 → 0.0.22

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
  SHA1:
3
- metadata.gz: 88f14982fa5ce29d938b9df73f16dd3143addee6
4
- data.tar.gz: 240910b7f081f7edcbc55ddf7e8da22fc0228a6d
3
+ metadata.gz: 48522eb8a29db73f2ef19ccf9ba2120b1570c4e6
4
+ data.tar.gz: d5bc0db8d17f562e2fbdbee25f86038e38f0c68e
5
5
  SHA512:
6
- metadata.gz: cd1b6b94eeb80d3566e1aaa13fad5c4560fb868ee71237c55eda6d51737ec44cc7e689324839296da4b857f5c1619d1adb56b5980fa99ad1c8f4ec2ebd11c0cc
7
- data.tar.gz: ca3f887b1c3b7dbe420612a5e029f1e8e6d3d2bff4dfe73e284e2ec44f968e2aab6e296f6ca974285513ce42ef5f6f60354b5a1f96e9774b8aa4ba1e668093f5
6
+ metadata.gz: 19745783b12428fe22cb4078013fe6464d951e529f96489d947151e93d4cf4e27f6734af78cdc2b79ca8f32bb6a23523f8d079a6673d89475f3c7133a97a041c
7
+ data.tar.gz: 96f5f5392465f93bf83bc0afbd8dd430d909a04562493509cf3de9801ccfe62af1f7447789235209aeb6c7e23a8f79ecd9aa4b304120528168bac9b940548ce1
data/CHANGELOG.md CHANGED
@@ -81,3 +81,7 @@
81
81
  ## v0.0.21
82
82
 
83
83
  * Updated field to users
84
+
85
+ ## v0.0.22
86
+
87
+ * Bugfix stock controls pagination
data/lib/xsys/api.rb CHANGED
@@ -103,8 +103,8 @@ module Xsys
103
103
 
104
104
  def self.get_stock_controls(params={})
105
105
  request = get_request('/stock_controls', params)
106
-
107
- request.map { |r| Model::StockControl.new(r) }
106
+ request[:results] = request[:results].map { |r| Model::StockControl.new(r) }
107
+ request
108
108
  end
109
109
 
110
110
  def self.get_stock_control(params={})
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick