soapy_cake 1.9.2 → 1.10.0

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: d36e1e5d36cc2c6d7f4452e7c62054c236cb8324
4
- data.tar.gz: fe7b78ef2427727930d396bebdb4f8a02c79762e
3
+ metadata.gz: e449eedeaa5cdce80c84426b85054ebc48d19f14
4
+ data.tar.gz: e44a87372c2030c0971b36c41713b7b78d865395
5
5
  SHA512:
6
- metadata.gz: a3a624b6dcd5952b1cdfc278b94bc672403514f9994c1a3677f14566cfecab4dd348cdff53fa3de80d90a191fad173dc9cb65306d5503ba7892a413997a8dd47
7
- data.tar.gz: 3f4bd2d18d7c497f8314cf4f31f3f0364612cca7325940085d68f644a99bdbccbecd51828622db6e2bf90cf7e41487b21badf0e70312a8da8e5522d2f1b7cac7
6
+ metadata.gz: ed74f8a1fc307b5cb32dfee2a8c5c692118ac4338d7003791c4cff3c96e0288cc885eb7739fea8c7f8f91e9189a735c69b6b258830bb2bad853dcebbadf82dbd
7
+ data.tar.gz: 41137d677751139b8393d4e12abdc317e8e52c0aa806ffcb344c5cf4522f0ed362b528fc9c8511c14f3ab3e93ac9616854ec824f6d3034c43526a6697dfa65f2
@@ -76,7 +76,10 @@ module SoapyCake
76
76
  run Request.new(:admin, :reports, :traffic_export, opts)
77
77
  end
78
78
 
79
- def caps(opts = {})
79
+ def caps(opts)
80
+ require_params(opts, %i(start_date end_date))
81
+ translate_values!(opts, %i(cap_type_id))
82
+
80
83
  run Request.new(:admin, :reports, :caps, opts)
81
84
  end
82
85
 
@@ -1,3 +1,3 @@
1
1
  module SoapyCake
2
- VERSION = '1.9.2'
2
+ VERSION = '1.10.0'
3
3
  end
@@ -112,6 +112,7 @@ RSpec.describe SoapyCake::Admin do
112
112
 
113
113
  describe '#caps' do
114
114
  let(:method) { :caps }
115
+ let(:cake_opts) { { start_date: '2015-07-01', end_date: '2015-07-07' } }
115
116
  it_behaves_like 'a cake admin method'
116
117
  end
117
118
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH