rubyqrpay 0.2.3 → 0.2.4

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
- SHA256:
3
- metadata.gz: 63244c6f6a79ed189620e0ee2d89d20f998ce2378bea20b41cd83ebcc6fa74d7
4
- data.tar.gz: 2d14b705a12d95f7acb6f4b24c7c42abdbbb59d7e2cc5c2f4a149945db9dc378
2
+ SHA1:
3
+ metadata.gz: c8de27ac41804545d5917fb2ca8a2bcc234f7502
4
+ data.tar.gz: b72391652d3b833584d8bdb4dd982168a9e4293d
5
5
  SHA512:
6
- metadata.gz: 5550aa8ed3c95fa4bdf6247e92a03c773a013503d31b4b9b935466bd31152b7845e29f44cf5fcd58a6dddf00bc87a7351445e4b05f57e2538b68c7ca6dd55c3a
7
- data.tar.gz: e725ed497d66f375de59f78bd46a90c3f90b8f97b41ed83c30ac1476066ca55eb15a3ad04c7bd62f4199d0947b169b424a16e42f3261da7afcca0542f2e6dd84
6
+ metadata.gz: 20413b9eb56998f7109f6dbf6284ec711de3fbff7ca9858275bfefb3aceb1a3e56e2028017f76419520ef8305ed93c8be9c441b8e4176348dd0240223a8c4c42
7
+ data.tar.gz: 549a007302255ec9241f33c4a16b68c8faf8191b4c6ea1af8068da1ed00b0242e23d5aac8995c467b781bf7d71512c21c6f30f76f4b3768ddf7ad12285063284
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubyqrpay (0.2.3)
4
+ rubyqrpay (0.2.4)
5
5
  countries (~> 2.1)
6
6
  digest-crc (~> 0.4)
7
7
  dry-validation (~> 0.11)
data/README.md CHANGED
@@ -20,10 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  ```ruby
22
22
  transaction_information = {
23
- agregator_id: 'rubyqrpay',
23
+ agregator_id: 'rubyQRpay',
24
24
  merchant_account_32: {
25
- service_code_erip: '111111',
26
- payer_unique_id: '12345678',
25
+ service_code_erip: '123456',
26
+ payer_unique_id: '123456789',
27
27
  payer_number: '--',
28
28
  amount_edit_possibility: true,
29
29
  },
@@ -40,13 +40,13 @@ transaction_information = {
40
40
  fixed_fee: 0.01,
41
41
  percentage_fee: 12.0,
42
42
  country: 'BY',
43
- merchant_name: 'Egor',
43
+ merchant_name: 'Ivan Ivanov',
44
44
  merchant_city: 'Minsk',
45
- postal_code: '222310',
45
+ postal_code: '123456',
46
46
  additional_data: {
47
47
  bill_number: '--',
48
48
  mobile_number: '--',
49
- store_label: '--',
49
+ store_label: "OOO \"rubyQRpay\"",
50
50
  loyalty_number: '***',
51
51
  reference_label: '***',
52
52
  customer_label: '--',
@@ -56,7 +56,7 @@ transaction_information = {
56
56
  },
57
57
  merchant_information_language: {
58
58
  language_reference: 'ru',
59
- name_alternate: 'Егор',
59
+ name_alternate: 'Иван Иванов',
60
60
  city_alternate: 'Минск'
61
61
  }
62
62
  }
@@ -6,7 +6,7 @@ require 'iso639'
6
6
  module Rubyqrpay
7
7
  class Validator
8
8
  CONSUMER_DATA_REQUEST_PATTERN = /^(A?E?M|E?M?A|M?A?E|A?M?E|E?M?A|M?E?A)$/
9
- ANS_PATTERN = /^[\w\s.:\/?#\[\]@!$&'()*+,;=\-~]*$/
9
+ ANS_PATTERN = /^[a-zA-Z0-9!@#$&()\-`.+,\/\" *]*$/ # '*' is a specific symbol for additional_data field
10
10
  MIN_MCC = 0
11
11
  MAX_MCC = 10_000
12
12
  MIN_FIXED = 0.01
@@ -1,3 +1,3 @@
1
1
  module Rubyqrpay
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyqrpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egor Shpalov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-13 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,8 +180,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.7.7
183
+ rubygems_version: 2.6.14
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Ruby prompt pay QR-code generator
187
187
  test_files: []
188
+ has_rdoc: