genba 0.1.10 → 0.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2549766d6aa78a612a97e0dfde945efb957a5d7ed5fed603b94a063cb09aa89f
4
- data.tar.gz: 615bb36c8c85adec6543f009f92feda96ff4efcd503ff9b4b6324474f7bf81ea
3
+ metadata.gz: 4be36cd3df8a640dbaa855a141d4d05e14fdf52f9c5c98faa37f1da9f359d78e
4
+ data.tar.gz: 50df66fbc1c5ca660acef1a9040ec27aa8c5bb6dd733c9192273a3641669a879
5
5
  SHA512:
6
- metadata.gz: 4fa85bc6bf5e698ed5afb5c51ef550a271d0ca4fd9e2c0973c91a3bbc692e7683e0b887058127d9e80f362ebb46a0f1bda26eb860025f6ee96fbf0e81fa5e511
7
- data.tar.gz: 107cd3b48f5980531389d8a38e88f55d296ebc90d5d739fafb1d297c5a6937691568b58d35dbeb8e48479f4177754d7696ae6ffe2de7405605e9e5f9c15c2dfc
6
+ metadata.gz: 212661a6f5eeec4574d5c65cca30696824bec8cc50ab8e9fb6590bd3dee5d912d95891fd3643871d36fb32e9b1d4aa03fb411bcec5a43959c47206f359345835
7
+ data.tar.gz: e2a543e72ec0bd0ec753a27da5074e05cac947cbb4d839fc3e11c9141af73931621e0f426749c2ff69b390c7b4dcd52e8b74b805561d570fee08a2f8ae7ff855
@@ -0,0 +1,29 @@
1
+ version: 2
2
+
3
+ .build_template: &build_definition
4
+ steps:
5
+ - checkout
6
+ - run:
7
+ name: Install libmcrypt-dev
8
+ command: apt-get update && apt-get install libmcrypt-dev -y
9
+ - run:
10
+ name: Bundle version
11
+ command: gem install bundler
12
+ - run:
13
+ name: Bundle Install
14
+ command: bundle check || bundle install
15
+ - run:
16
+ name: Run tests
17
+ command: |
18
+ bundle exec rspec
19
+ working_directory: ~/app
20
+ workflows:
21
+ version: 2
22
+ build_ruby_versions:
23
+ jobs:
24
+ - build_ruby2_5
25
+ jobs:
26
+ build_ruby2_5:
27
+ <<: *build_definition
28
+ docker:
29
+ - image: ruby:2.3.8-jessie
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genba (0.1.10)
4
+ genba (0.1.11)
5
5
  oj (~> 3.5)
6
6
  rest-client (~> 2.0)
7
7
  ruby-mcrypt (= 0.2.0)
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Genba Ruby
2
2
 
3
3
  [![Build Status](https://travis-ci.org/iscreen/genba-ruby.svg)](https://travis-ci.org/iscreen/genba-ruby)
4
- [![CircleCI](https://circleci.com/gh/iscreen/genba-ruby.svg?style=shield)](https://circleci.com/gh/iscreen/genba-ruby)
4
+ [![CircleCI](https://circleci.com/gh/iscreen/genba-ruby.svg?style=svg)](https://circleci.com/gh/iscreen/genba-ruby)
5
5
  [![Gem Version](https://badge.fury.io/rb/genba-ruby.svg)](https://badge.fury.io/rb/genba-ruby)
6
6
 
7
7
  The Genba Library provides convenient access to the [Genba API](https://api.genbagames.com/doc/) from applications written in the Ruby language.
@@ -5,12 +5,14 @@ class KeyReportRequest
5
5
  attr_accessor :key, :key_id, :country_iso, :sale_date, :user_ip_address,
6
6
  :e_tailer_buying_price, :e_tailer_buying_price_currency_code,
7
7
  :e_tailer_selling_price_net, :e_tailer_selling_price_gross,
8
- :e_tailer_selling_price_currency_code
8
+ :e_tailer_selling_price_currency_code,
9
+ :e_tailer_subsidiary
9
10
 
10
11
  def initialize(
11
12
  key: nil, key_id: nil, country_iso:, user_ip_address:, sale_date: nil,
12
13
  e_tailer_buying_price:, e_tailer_buying_price_currency_code:,
13
- e_tailer_selling_price_net:, e_tailer_selling_price_gross:, e_tailer_selling_price_currency_code:
14
+ e_tailer_selling_price_net:, e_tailer_selling_price_gross:, e_tailer_selling_price_currency_code:,
15
+ e_tailer_subsidiary: nil
14
16
  )
15
17
  @key = key
16
18
  @key_id = key_id
@@ -22,6 +24,7 @@ class KeyReportRequest
22
24
  @e_tailer_selling_price_net = e_tailer_selling_price_net
23
25
  @e_tailer_selling_price_gross = e_tailer_selling_price_gross
24
26
  @e_tailer_selling_price_currency_code = e_tailer_selling_price_currency_code
27
+ @e_tailer_subsidiary = e_tailer_subsidiary
25
28
  raise 'at least one of key or key_id' if key.nil? && key_id.nil?
26
29
  end
27
30
 
@@ -35,7 +38,8 @@ class KeyReportRequest
35
38
  ETailerBuyingPriceCurrencyCode: @e_tailer_buying_price_currency_code,
36
39
  ETailerSellingPriceNet: @e_tailer_selling_price_net,
37
40
  ETailerSellingPriceGross: @e_tailer_selling_price_gross,
38
- ETailerSellingPriceCurrencyCode: @e_tailer_selling_price_currency_code
41
+ ETailerSellingPriceCurrencyCode: @e_tailer_selling_price_currency_code,
42
+ EtailerSubsidiary: @e_tailer_subsidiary
39
43
  }.select { |_, v| !v.nil? }
40
44
 
41
45
  payload[:saleDate] = @sale_date.strftime('%FT%T') if @sale_date
@@ -1,3 +1,3 @@
1
1
  module Genba
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.1.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".circleci/config.yml"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - ".travis.yml"