xsys 0.0.7 → 0.0.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
  SHA1:
3
- metadata.gz: e8c0eaa3c9d7a5cd0b06ce49c1a8fe1f7c4d9cec
4
- data.tar.gz: 5186d207fc4420490d482d7e885ee6cc93863ce7
3
+ metadata.gz: a6f648bea35c0264bf535826aa41e1b77555e710
4
+ data.tar.gz: 14914967298ea0997c75f12890a98ea15e17e211
5
5
  SHA512:
6
- metadata.gz: d24c4a4896a06f29caa5a4bca1cccf9cdcd90d95cb9430e7a0d35e0bcc8172e3ee0221630d72e6d021c9a88a00a920b91f9f74cd2d06a1d82709a00f70715aa6
7
- data.tar.gz: a49c57b1702323cb296b52b57c40adb3f56c93d6e874c9990a65eb03c02e9cf7684ddba98f9d4da8b6b626f3039da2494bbf11820d71965c9cded23c2eda8cd8
6
+ metadata.gz: dd1690c6fc2ab871026d37cce72d467cc00471d78f6f0994c0d1f3d7acbc303727005e61d112510cd67b577ae42919c9950ff9e967667fe3cb80b4715c00764c
7
+ data.tar.gz: 4fcbe914743829f19598f963f49ba457c379669076b49ac8ee335261c88555231c235ed32dd3cec6a95c980096d096cf57b381ff40c871c4759c9c336c540a94
data/CHANGELOG.md CHANGED
@@ -25,3 +25,7 @@
25
25
  ## v0.0.7
26
26
 
27
27
  * All api methods are static
28
+
29
+ ## v0.0.8
30
+
31
+ * Added param to sales period
data/lib/xsys/api.rb CHANGED
@@ -58,11 +58,12 @@ module Xsys
58
58
  get_request('/sellers').map { |r| Model::Seller.new(r) }
59
59
  end
60
60
 
61
- def self.get_sales_period(period, from, to, shop_code=nil)
61
+ def self.get_sales_period(period, from, to, shop_code=nil, only_with_target=false)
62
62
  get_request("/sales_periods/#{period}", {
63
63
  date_from: from,
64
64
  date_to: to,
65
- shop_code: shop_code
65
+ shop_code: shop_code,
66
+ only_with_target: only_with_target
66
67
  }).map { |r| Model::SalesPeriod.new(r) }
67
68
  end
68
69
 
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-23 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler