gotransverse-tract-api 0.6.1 → 0.6.2

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: f6f050bd872a023ba93f649c5de045f1e31adf41
4
- data.tar.gz: 11cd598aaea390ba895dd93922d5785e0a19c623
3
+ metadata.gz: 9689ba8b949975e0feba1a256d63c50225fd1bf4
4
+ data.tar.gz: 85609793ec21666f77e09bee1031425e38ebe2d6
5
5
  SHA512:
6
- metadata.gz: 391751a571d4da9e0378d19624b0f61234afd67e5441f68c35d7c7dd4aec265e7d2aeb84cd1d2ef7e11eb3290eaad822cf0adb2891244728bab6bbcb8f010768
7
- data.tar.gz: d2fb279e1222d04969c667bad477301384c1d0fab8f61cff8d04348d7739f9b5a21a13dc39210966542fd7f334bd6fa00c2dd93092df37f958f8b87d58c6ac87
6
+ metadata.gz: cca8b98b5ebbc86c61df8cf7bdbe04af2585db421ae16b6940de0fbae6e18201b13b35021ceae4f0bd603c185e919a0df8bec6b68bbdb9e67a5c0d930917e796
7
+ data.tar.gz: 30417ee3c093d8446906727506b8eaf447b41d0da712d356f3e9ef1a31698a62319fed6e9c407dbf9d7d9643b6723f21513422c44e6cac09bbda61c0a94c0148
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  A ruby gem allowing developers to conveniently integrate with GoTransverse's TRACT API.
4
4
 
5
- Current supported version is 1.28 REST API (XML)
6
- https://documentation.gotransverse.com/Content/Archive/site/tract.gotransverse.com/Developer-Guides/TRACT-API-1.28/REST-Endpoints.html
5
+ Current supported version is 1.29 REST API (XML)
6
+ https://documentation.gotransverse.com/Content/Archive/site/tract.gotransverse.com/Developer-Guides/TRACT-API-1.29/REST-Endpoints.html
7
7
 
8
8
  For more details, please refer to GoTransverse's TRACT API Documentation available at:
9
9
  https://documentation.gotransverse.com/Content/Archive/site/tract.gotransverse.com/User-%26-Administrator-Guides/Understanding-TRACT.html
@@ -273,8 +273,9 @@ module GoTransverseTractApi
273
273
  end
274
274
 
275
275
  return hsh
276
- rescue
277
- {}
276
+ rescue Timeout::Error, Errno::ECONNRESET, EOFError,
277
+ Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
278
+ {message: e}
278
279
  end
279
280
 
280
281
  #
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
@@ -113,13 +113,13 @@ module GoTransverseTractApi
113
113
  invoice: {
114
114
  invoice_num: '23',
115
115
  amount: '10.00',
116
- pdf_path: 'https//my.tractbilling.com/t/s/r/1.28/invoices/2914/pdf',
116
+ pdf_path: "https//my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}/invoices/2914/pdf",
117
117
  occurred_on: '2014-10-10T000000',
118
118
  due_date: '2014-10-10T000000',
119
119
  amount_to_pay: '4.00',
120
120
  late_fee_charged: 'false',
121
121
  status: 'open',
122
- usage_csv_path: 'https//my.tractbilling.com/t/s/r/1.28/invoices/2914/csv',
122
+ usage_csv_path: "https//my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}/invoices/2914/csv",
123
123
  eid: '2342'
124
124
  }
125
125
  }
@@ -147,13 +147,13 @@ module GoTransverseTractApi
147
147
  invoice: {
148
148
  invoice_num: '23',
149
149
  amount: '10.00',
150
- pdf_path: 'https//my.tractbilling.com/t/s/r/1.28/invoices/2914/pdf',
150
+ pdf_path: "https//my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}/invoices/2914/pdf",
151
151
  occurred_on: '2014-10-10T000000',
152
152
  due_date: '2014-10-10T000000',
153
153
  amount_to_pay: '4.00',
154
154
  late_fee_charged: 'false',
155
155
  status: 'open',
156
- usage_csv_path: 'https//my.tractbilling.com/t/s/r/1.28/invoices/2914/csv',
156
+ usage_csv_path: "https//my.tractbilling.com/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}/invoices/2914/csv",
157
157
  eid: '2342'
158
158
  }
159
159
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotransverse-tract-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien DeFrance
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-02-05 00:00:00.000000000 Z
12
+ date: 2016-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler