barion 0.4.0 → 0.4.1

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: 575b950187d8de272065169bce30d830c4731761b4b25b9d7533e8899b2674dd
4
- data.tar.gz: 4465db2681c4da8f1b8b4b01b6ef34158be8d7bacb02302eae779cd1fcff7985
3
+ metadata.gz: 1ce7445be623c98ab928342e5a7c91e6cefba8289c000deffee990b231ec5579
4
+ data.tar.gz: 279f4a94a13cc650e92f37da59b8fa32819d120192062a931da51cf1dce4f2c0
5
5
  SHA512:
6
- metadata.gz: ca9acdf451e26ab69a247b8098be1db3f8f43ffada9229a9f5e0378a6db5b8c8afcf720751de5117708d2372eefd3242fbe874d2abaed5c3cf1da7930a2c15b2
7
- data.tar.gz: 5b708506775ecb6ecb647ceeafd1fcd0fb707447f78b77d922c91a1e66c9532d73b373376ec72a34c2db38e2a579166eb8ac1339ada8ee97809044484ad3e829
6
+ metadata.gz: e149b35819edab85f6455fde84cdcbc9bf90073de71ace121fe77c56175475fdf9d390538320112877018c2c39b6421c5a4018e42ab99df5b25159301b2b9dbc
7
+ data.tar.gz: f17d849b68270f45113ba7a23a1680644f4b2f764fc65bd070308c580165369465ba4913acfbbcae35c5b1adddaa877ad4b49b9707e6ce2dc8ec29240d1315ec
data/README.md CHANGED
@@ -34,14 +34,12 @@ After installing the gem you have to initalize it.
34
34
  Just create a file in `config/initializers/barion.rb` with the below content:
35
35
 
36
36
  ```ruby
37
- ::Barion.config do |shop|
38
- shop.poskey = ''
39
- shop.publickey = ''
40
- shop.pixel_id = ''
41
- shop.sandbox = true
42
- shop.acronym = ''
43
- shop.default_payee = ''
44
- end
37
+ Barion.poskey = ''
38
+ Barion.publickey = ''
39
+ Barion.pixel_id = ''
40
+ Barion.sandbox = true
41
+ Barion.acronym = ''
42
+ Barion.default_payee = ''
45
43
  ```
46
44
 
47
45
  #### POSKey and PublicKey (default: empty)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Barion
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
data/lib/barion.rb CHANGED
@@ -9,7 +9,7 @@ module Barion
9
9
  prod: 'https://api.barion.com'
10
10
  }.freeze
11
11
 
12
- PIXELID_PATTERN = ::Regexp.new('BP-\d{10}-\d{2}').freeze
12
+ PIXELID_PATTERN = ::Regexp.new('BP-.{10}-\d{2}').freeze
13
13
 
14
14
  # rubocop:disable Style/ClassVars
15
15
  mattr_accessor :poskey, default: nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Péter Nagy