Commit 6abdc93
refactor: use release-please markers for version instead of Application.spec (#51)
Use x-release-please markers directly in the code to maintain a
pseudo-hardcoded version number, rather than reading from Application.spec
at runtime. This approach:
- Makes the implementation consistent across Flagsmith SDKs
- Relies solely on release-please for version management
- Keeps version visible in source code for easier debugging
- Simplifies the user_agent/0 function implementation
The version is now defined directly in lib/flagsmith_client.ex between
x-release-please markers, and release-please will automatically update
it during releases.
Also removed the redundant user_agent/0 unit test since the function now
simply returns a hardcoded string with no conditional logic. The HTTP
integration test sufficiently validates the User-Agent header behavior.
Co-authored-by: Claude <claude@anthropic.com>1 parent 11148da commit 6abdc93
3 files changed
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 442 | | |
452 | 443 | | |
453 | 444 | | |
| |||
0 commit comments