basecomm_sdk 1.1.2 → 1.1.3

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
  SHA1:
3
- metadata.gz: eb7fbc4f03ddbf7dbfd5172c005d062990caf5b8
4
- data.tar.gz: 81a7b91b8f0731c03276d1a2cd04f5733ce523d5
3
+ metadata.gz: 8afd7b3fe8ef4b23d769c1fe94ff7d95bf37077f
4
+ data.tar.gz: 1ca37570d8850f4c5265347d708c373a206a2a8d
5
5
  SHA512:
6
- metadata.gz: 0510ac6aab1b1926f7dbc280a8b3890c80acef885cfa8ff9f3155b12a55e596ccee069c8ffb6d6690ccb13d566d9959725402193e1e13f642fb3d29137dc73f8
7
- data.tar.gz: c4d9344d9469b935aff39116bbe9b418dfca0e8ad148ce033870987832643cd6673d7863f1d4ca6837b525816579954e47beffab9d7d89338f12776065d4b496
6
+ metadata.gz: f3b0a5b7f7f0ea9c1e8086c6838412227fb4de81c32eab8426ac93586f6a8d6b1e500f553fcae4a864fe79d4cc15d6178ca97c353ee846efafdddcc077bef0d1
7
+ data.tar.gz: 1f7a1f6f3b46e81d86e99ac49e3f9408f011747930811a8202ea1ec63659db96872133c448cde32efa2500ae81d1aba5a1c8049f0a80b56a41edf3743e37de2f
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *1.1.3* (March 24, 2015)
2
+
3
+ * Truncate when setting account name and truncate to 32 chars
4
+
1
5
  *1.1.2* (March 24, 2015)
2
6
 
3
7
  * Truncate to 31 characters instead of 32. Basecommerce documentation was incorrect.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Base Commerce SDK
2
2
 
3
- **Version: 1.1.2**
3
+ **Version: 1.1.3**
4
4
 
5
5
  A gem for interfacing with the [Base Commerce](http://www.basecommerce.com/) API. This gem was developed with their help and serves to provide a Gem wrapper around their own Ruby SDK. Please contact them for more information about the Ruby SDK.
6
6
 
@@ -71,8 +71,8 @@ module BasecommSdk
71
71
  end
72
72
  end
73
73
 
74
- def account_name
75
- @account_name.to_s.slice(0, 31).strip
74
+ def account_name=(name)
75
+ @account_name = name.to_s.slice(0, 32).strip
76
76
  end
77
77
  end
78
78
  end
@@ -1,3 +1,3 @@
1
1
  module BasecommSdk
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -137,11 +137,11 @@ module BasecommSdk
137
137
  end
138
138
 
139
139
  context '.account_name' do
140
- it 'truncates to 31 characters' do
140
+ it 'truncates to 32 characters' do
141
141
  account_name = '0123456789012345678901234567890123456789'
142
142
  expect(account_name.size).to eq(40)
143
143
  bat = create(:bank_account_transaction, account_name: account_name)
144
- expect(bat.account_name.size).to eq(31)
144
+ expect(bat.account_name.size).to eq(32)
145
145
  end
146
146
 
147
147
  it 'truncates and trims' do
@@ -151,8 +151,8 @@ module BasecommSdk
151
151
  expect(bat.account_name.size).to eq(30)
152
152
  end
153
153
 
154
- it 'retains the first 31 characters' do
155
- account_name = 'exactly as I f0und it_________!'
154
+ it 'retains the first 32 characters' do
155
+ account_name = 'exactly as I f0und it__________!'
156
156
  bat = create(:bank_account_transaction, account_name: account_name)
157
157
  expect(bat.account_name).to eq(account_name)
158
158
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecomm_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blackburn