genba-ruby 0.1.2 → 0.1.3

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: 81925f2beb056e852127da29461edcfad3962805
4
- data.tar.gz: 44fd64012dcffa16aab398a08420034409e6232c
3
+ metadata.gz: ec93ba5a3b120e995614d4fc869cacac8c0f3722
4
+ data.tar.gz: 6c507669a8ac148f031ed113c42e6530abc5f5cd
5
5
  SHA512:
6
- metadata.gz: 7ea2816df1be74b883f5ef2c902ded5548dcaaf42ef95d7748a52eba5288958145a701d51e41fbf4a45ab8591ee92e89cec20f51b0ee52c6f36ff2cc084ed3a3
7
- data.tar.gz: ed295145135bab4463a388298f08fd9f40116ef22782f991994af5a05a755099aa992b6ec339f9b070de45432eb3d9f7371b4692060b8f43514dd98764f5996b
6
+ metadata.gz: 130e8c65d54d05fe52f4fbb919d0c9ff6db190ff33b984945fbeb68263c28eb027ad91c9ca1be895f2acc5d8b83dab487205d05fea564f28b796c3ff375fe61e
7
+ data.tar.gz: 54732fd798c9c3aaee36dd038e3fc73088ea17119a1ac9ab518cb773972084e6c690f8ce4f17a8756a071caa000e8e3b0a9b39f270ff616dd735f8c023b17ad4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genba-ruby (0.1.2)
4
+ genba-ruby (0.1.3)
5
5
  oj (~> 2.18)
6
6
  rest-client (~> 2.0)
7
7
  ruby-mcrypt (= 0.2.0)
data/circle.yml CHANGED
@@ -1,3 +1,10 @@
1
1
  machine:
2
2
  ruby:
3
3
  version: 2.3.4
4
+
5
+ dependencies:
6
+ pre:
7
+ - gem install bundler --pre
8
+
9
+ override:
10
+ - bundle install: # note ':' here
@@ -38,8 +38,8 @@ module Genba
38
38
  end
39
39
 
40
40
  def get_report_usage(keys = nil, headers = {})
41
- return raise 'ReportUsage keys should be array' unless keys.is_a?(Array)
42
- return raise 'ReportUseag keys should be a KeyReportRequest class' unless key_report_request?(keys)
41
+ raise 'ReportUsage keys should be array' unless keys.is_a?(Array)
42
+ raise 'ReportUseag keys should be a KeyReportRequest class' unless key_report_request?(keys)
43
43
  payload = keys.map(&:to_genba_json_payload)
44
44
  @client.rest_post_with_token('/keyReport', payload, headers)
45
45
  end
@@ -17,6 +17,6 @@ class KeyBlackListRequest
17
17
  {
18
18
  keyId: @key_id,
19
19
  reasonText: @reason_text
20
- }.compact
20
+ }.select { |_, v| !v.nil? }
21
21
  end
22
22
  end
@@ -26,6 +26,6 @@ class KeyReportRequest
26
26
  ETailerSellingPriceNet: @e_tailer_selling_price_net,
27
27
  ETailerSellingPriceGross: @e_tailer_selling_price_gross,
28
28
  ETailerSellingPriceCurrencyCode: @e_tailer_selling_price_currency_code
29
- }.compact
29
+ }.select { |_, v| !v.nil? }
30
30
  end
31
31
  end
data/lib/genba/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Genba
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genba-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin