fortnox-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: 85b42d49811233c1c1d4e815722ffd44c7f3c6bd
4
- data.tar.gz: f76f5a9d4ceb7dafb518500dec1e821ed9d2d594
3
+ metadata.gz: 790f4fbabb42b6455b84fac371b7d0273432c65c
4
+ data.tar.gz: 81802b99dcd1d93af3ca69c774967271db96f318
5
5
  SHA512:
6
- metadata.gz: 79da1d99c4527507eeae03f28abaf0f40a591d8ee981dc10568c75a3e9356f5aac50a32d7de9315bb18c635607442e39ad7da9933fc7ee188c6d535886efe5b3
7
- data.tar.gz: 2d8c4d40948e6640c25151c5f2c72a5a065081d5477013cd074e8cc7d566aec76237c7c15ff0d28f78ff5fa1c3d9d742dbeadae46893427303ae8328ec5461b1
6
+ metadata.gz: cd2300b9cabe6ddc2e9ec16d767dc6e2c8e078078e7deacca457c003b6049f9f9d46a259b537aaafadbcd08b80d8712a8ecb7ab2ac7fa7e328b54c0318ec5a9f
7
+ data.tar.gz: bb686131fa2559c04b0e3b4a6036ab1ff912ff261aaa4eeb891dae57eb04f87a653b3e598e6d4bb48a2b8b1ddd9a63912fd303aca13b2f09cd94ba338f8fff39
@@ -20,7 +20,7 @@ module Fortnox
20
20
  attribute :cost_center, Types::Nullable::String
21
21
 
22
22
  # DeliveredQuantity Delivered quantity. 14 digits
23
- attribute :delivered_quantity, Types::Sized::Float[0.0, 9_999_999_999_999.9]
23
+ attribute :delivered_quantity, Types::Sized::Float[-9_999_999_999_999.9, 9_999_999_999_999.9]
24
24
 
25
25
  # Description Description Row description. 50 characters
26
26
  attribute :description, Types::Sized::String[50]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fortnox
4
4
  module API
5
- VERSION = '0.6.1'
5
+ VERSION = '0.6.2'
6
6
  end
7
7
  end
@@ -6,12 +6,20 @@ shared_examples_for 'DocumentRow' do |valid_hash|
6
6
  it { is_expected.to have_sized_string(:article_number, 50, valid_hash) }
7
7
  it { is_expected.to have_sized_string(:description, 50, valid_hash) }
8
8
 
9
- it { is_expected.to have_sized_float(:delivered_quantity, 0.0, 9_999_999_999_999.9, valid_hash) }
10
- it { is_expected.to have_sized_float(:price, 0.0, 99_999_999_999.9, valid_hash) }
11
-
12
9
  it { is_expected.to have_discount_type(:discount_type, valid_hash) }
13
10
 
14
11
  it { is_expected.to have_sized_integer(:housework_hours_to_report, 0, 99_999, valid_hash) }
15
12
 
16
13
  it { is_expected.to have_housework_type(:housework_type, valid_hash) }
14
+
15
+ it { is_expected.to have_sized_float(:price, 0.0, 99_999_999_999.9, valid_hash) }
16
+
17
+ it do
18
+ is_expected.to have_sized_float(
19
+ :delivered_quantity,
20
+ -9_999_999_999_999.9,
21
+ 9_999_999_999_999.9,
22
+ valid_hash
23
+ )
24
+ end
17
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortnox-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
  - Jonas Schubert Erlandsson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-03-05 00:00:00.000000000 Z
13
+ date: 2018-03-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dry-struct