fortnox-api 1.0.0 → 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: 5cb997af480b5faeb41221e86f2e2e582509680e3bd9dd37260c4de1efc5d63b
4
- data.tar.gz: dcd0a9d4965d8f6a810b8ad8d646c104b5c6955ef18a61e587f70497c2cafd69
3
+ metadata.gz: 5db677e4f99789c2fffa72d68ab5b0a9ebf06cdd2985ea3e9c0486d8177d9a1b
4
+ data.tar.gz: 7eae725d20f948b0cb4380b268ec559ac163a88c5574e4d8c387b86c91bb8605
5
5
  SHA512:
6
- metadata.gz: 63600c1ae19e3104aea10be4064e1507f55de6365f884c7a9fac0d72beecd2c1d0399676a38bf93fe0c91f305282c2081022bc417576d8c7b809755cbd475445
7
- data.tar.gz: e8958e7c8b99ea86ad1e7391db05bcd395faabfca787d55f34d391407751dded8b6ad982cc08ff17c2c11babc89aeb63fbfee747a0c8fb95577805c0c458905a
6
+ metadata.gz: 3a5bdc33c4f46e6d3d6e1bb11a4ddec13c3a9f5fc3b62cbd1fbfc8cc7fbba655706942725d227083205f92c9768778bb5d429259fb68c40da5b0cf42f593b564
7
+ data.tar.gz: af4789bf18d675f088d24481580ba7d2c232267a832f9233a1e373138a8d4c6da77e77a0748232c966a68e4fe5d4f643e59a887519d330edbe5f0cace1844198
data/CHANGELOG.md CHANGED
@@ -8,6 +8,40 @@ and this project adheres to
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [1.0.2] - 2026-11-17
12
+
13
+ ### Changed
14
+
15
+ - The `rest-easy` dependency is now `~> 1.5`, allowing any 1.x release from
16
+ 1.5.0 on instead of capping at 1.4.x.
17
+
18
+ ## [1.0.1] - 2026-09-23
19
+
20
+ ### Fixed
21
+
22
+ - **Updating a record before its first save no longer drops the attributes it
23
+ was built with.** Calling `.update` on a stubbed record marked it as already
24
+ persisted, so `save` sent a PUT for a record that does not exist yet, and the
25
+ request body shrank to only the updated fields — everything passed to `stub`
26
+ never reached Fortnox. This is the bug reported in #233 against 0.x and fixed
27
+ there in 2023; the 1.0 rest-easy rewrite reintroduced it, and made it worse by
28
+ switching the verb as well as the body.
29
+ - **Chained updates no longer lose all but the last.**
30
+ `record.update(phone1: '1').update(email: 'x@y.se')` sent only `Email`, while
31
+ `phone1` still read back as `'1'` on the instance — the object and the request
32
+ body disagreed, with nothing raised. Both attributes are now sent. Introduced
33
+ by the 1.0 rewrite.
34
+ - **`meta.partial?` survives an update.** Instances parsed from a collection
35
+ response are flagged partial, and `.update` silently cleared the flag, so the
36
+ check the README recommends before re-fetching reported a shallow record as
37
+ complete the moment anything touched it. The flag is new in 1.0, so this
38
+ never affected 0.x.
39
+
40
+ ### Changed
41
+
42
+ - The `rest-easy` dependency is now `~> 1.4.2`, which carries the three fixes
43
+ above — all of them live in its `update`, not in this gem.
44
+
11
45
  ## [1.0.0] - 2026-09-23
12
46
 
13
47
  The first stable release of the 1.0 line. No code changes since
@@ -494,7 +528,9 @@ for the full list of breaking changes.
494
528
  For changes prior to the 1.0 rewrite, see the
495
529
  [0.x changelog](https://github.com/accodeing/fortnox-api/blob/v0.9.2/CHANGELOG.md).
496
530
 
497
- [Unreleased]: https://github.com/accodeing/fortnox-api/compare/v1.0.0...HEAD
531
+ [Unreleased]: https://github.com/accodeing/fortnox-api/compare/v1.0.2...HEAD
532
+ [1.0.2]: https://github.com/accodeing/fortnox-api/compare/v1.0.1...v1.0.2
533
+ [1.0.1]: https://github.com/accodeing/fortnox-api/compare/v1.0.0...v1.0.1
498
534
  [1.0.0]: https://github.com/accodeing/fortnox-api/compare/v1.0.0.rc16...v1.0.0
499
535
  [1.0.0.rc16]: https://github.com/accodeing/fortnox-api/compare/v1.0.0.rc15...v1.0.0.rc16
500
536
  [1.0.0.rc15]: https://github.com/accodeing/fortnox-api/compare/v1.0.0.rc14...v1.0.0.rc15
data/fortnox.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'base64', '~> 0.2'
33
33
  spec.add_dependency 'countries', '~> 7.1'
34
34
  spec.add_dependency 'dry-struct', '~> 1.5'
35
- spec.add_dependency 'rest-easy', '~> 1.4.1'
35
+ spec.add_dependency 'rest-easy', '~> 1.5'
36
36
 
37
37
  spec.metadata['rubygems_mfa_required'] = 'true'
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fortnox
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.2'
5
5
  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: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Schubert Erlandsson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2026-09-23 00:00:00.000000000 Z
14
+ date: 2026-11-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: base64
@@ -61,14 +61,14 @@ dependencies:
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 1.4.1
64
+ version: '1.5'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: 1.4.1
71
+ version: '1.5'
72
72
  description: |
73
73
  Fortnox's REST API wraps every payload in a type key, spells its
74
74
  attributes in PascalCase, and treats an empty string as "leave this