fortnox-api 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +29 -1
- data/fortnox.gemspec +1 -1
- data/lib/fortnox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee5902e0761d37969a38cf156349c22e8f3e967f0e8120f31753b17a12561e51
|
|
4
|
+
data.tar.gz: 4fc8b16d34cf2b2211f5587422c196f1711b4d498158a39480024117330284cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bbee1c33ff2a933bf3f090aea82838a61f744300f0f8ad3106d17e28a461b77c3b649141628361d9a3359a98bef33cef0e2d0c1545f922e3834df520c42da2e
|
|
7
|
+
data.tar.gz: 4013813c2652fedc7b8f96e31686ff6a6c62aefac25e8a8f8e1516159fa95b22386e26bd8f19f538cd0b7e882cfcdaed97b2a6a9681c4238af8885f8b484dba3
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,33 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.0.1] - 2026-09-23
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **Updating a record before its first save no longer drops the attributes it
|
|
16
|
+
was built with.** Calling `.update` on a stubbed record marked it as already
|
|
17
|
+
persisted, so `save` sent a PUT for a record that does not exist yet, and the
|
|
18
|
+
request body shrank to only the updated fields — everything passed to `stub`
|
|
19
|
+
never reached Fortnox. This is the bug reported in #233 against 0.x and fixed
|
|
20
|
+
there in 2023; the 1.0 rest-easy rewrite reintroduced it, and made it worse by
|
|
21
|
+
switching the verb as well as the body.
|
|
22
|
+
- **Chained updates no longer lose all but the last.**
|
|
23
|
+
`record.update(phone1: '1').update(email: 'x@y.se')` sent only `Email`, while
|
|
24
|
+
`phone1` still read back as `'1'` on the instance — the object and the request
|
|
25
|
+
body disagreed, with nothing raised. Both attributes are now sent. Introduced
|
|
26
|
+
by the 1.0 rewrite.
|
|
27
|
+
- **`meta.partial?` survives an update.** Instances parsed from a collection
|
|
28
|
+
response are flagged partial, and `.update` silently cleared the flag, so the
|
|
29
|
+
check the README recommends before re-fetching reported a shallow record as
|
|
30
|
+
complete the moment anything touched it. The flag is new in 1.0, so this
|
|
31
|
+
never affected 0.x.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- The `rest-easy` dependency is now `~> 1.4.2`, which carries the three fixes
|
|
36
|
+
above — all of them live in its `update`, not in this gem.
|
|
37
|
+
|
|
11
38
|
## [1.0.0] - 2026-09-23
|
|
12
39
|
|
|
13
40
|
The first stable release of the 1.0 line. No code changes since
|
|
@@ -494,7 +521,8 @@ for the full list of breaking changes.
|
|
|
494
521
|
For changes prior to the 1.0 rewrite, see the
|
|
495
522
|
[0.x changelog](https://github.com/accodeing/fortnox-api/blob/v0.9.2/CHANGELOG.md).
|
|
496
523
|
|
|
497
|
-
[Unreleased]: https://github.com/accodeing/fortnox-api/compare/v1.0.
|
|
524
|
+
[Unreleased]: https://github.com/accodeing/fortnox-api/compare/v1.0.1...HEAD
|
|
525
|
+
[1.0.1]: https://github.com/accodeing/fortnox-api/compare/v1.0.0...v1.0.1
|
|
498
526
|
[1.0.0]: https://github.com/accodeing/fortnox-api/compare/v1.0.0.rc16...v1.0.0
|
|
499
527
|
[1.0.0.rc16]: https://github.com/accodeing/fortnox-api/compare/v1.0.0.rc15...v1.0.0.rc16
|
|
500
528
|
[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.
|
|
35
|
+
spec.add_dependency 'rest-easy', '~> 1.4.2'
|
|
36
36
|
|
|
37
37
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
38
38
|
end
|
data/lib/fortnox/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonas Schubert Erlandsson
|
|
@@ -61,14 +61,14 @@ dependencies:
|
|
|
61
61
|
requirements:
|
|
62
62
|
- - "~>"
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: 1.4.
|
|
64
|
+
version: 1.4.2
|
|
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.
|
|
71
|
+
version: 1.4.2
|
|
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
|