tfso 1.0.1 → 1.0.2

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: 9c09729d8fa58e87a400ba413c980bd4b7f3c965462e8ad0954299e2bb5f8004
4
- data.tar.gz: 8a23d5ca195d50977d5d83c8c1cb454f3f276a266144b3569805c3429359b862
3
+ metadata.gz: 49fddfbc2027f861bb99bcca42cbf7b345c4c491e1c04c5f76e9b3e7aa2b1dd3
4
+ data.tar.gz: ca977aff312bf6266cb7034d85c7f4b97fa4c9f2f99f244cf1ce4168c1577d03
5
5
  SHA512:
6
- metadata.gz: 6bcfb80059da00bc081e9f309089ca6027b31c337ebd64a2296cc2de6f1f25bfe870eec4d4e00ccb6978fdba3daa620da8f0d483c3317eecef6c966e75948121
7
- data.tar.gz: 76a11939ea64f11c4345630dbe29369b934fd7e0b11d2422257e1ab1d3d374a5ab5d35f2e82f47596b9d35efaa9fab510469f259d9e04be0ad3cd2636a854b75
6
+ metadata.gz: 507ae593e60c81909016c498f2ca7d3b64f45a64b3ea6be04cb6ccbc2f9b1ff0ab224c14c514e2b541469fdb101912c6b19b325804ec1a3364e63e349614874b
7
+ data.tar.gz: 5a76203f710eec5d3c6cc212510473c9dd7efbb428299d4663bd3bff42beac45aec6d0e2ab22f674d9dc4a9c049335ac27592708ee0017ef86c3e0e99fce94be
data/lib/tfso/company.rb CHANGED
@@ -41,7 +41,7 @@ module TFSO
41
41
  if result
42
42
  if result[:company].class == Hash
43
43
  if result[:company][:api_exception]
44
- raise "Error when saving tfso company"
44
+ raise result[:company][:api_exception]
45
45
  else
46
46
  result[:company]
47
47
  end
data/lib/tfso/person.rb CHANGED
@@ -31,7 +31,7 @@ module TFSO
31
31
  if result
32
32
  if result.class == Hash
33
33
  if result[:api_exception]
34
- raise "Error when saving tfso person"
34
+ raise result[:api_exception]
35
35
  else
36
36
  result
37
37
  end
data/lib/tfso/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TFSO
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tfso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espen Antonsen