linear_api 0.3.0 → 0.3.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 +11 -0
- data/app/models/linear_api/cached_metadata.rb +8 -0
- data/lib/linear_api/engine.rb +6 -2
- data/lib/linear_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77b18d58cafd0b1bd82ff508b96655dfa6cc0150264d89540eb5dd71a83baf7f
|
|
4
|
+
data.tar.gz: '004967e9d760e3b738347a51268210ca67a2ac67a5fc3944d76e5618da65775d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87570c47ade6f4009fd4bc139ba52d268ba7b099f5cc3ba8f75b80542482bcd8d432ac07bcdb493a495551542a7702f2a0737741e719ae8669cd5fe6932936d6
|
|
7
|
+
data.tar.gz: eb2268025dbd7e0c33bd3b193b6bf9a414d9ed018ab9bed9aa4b47fefad68adbdf5c722ea9db6f1ee4ebd16933b4b4eb6a7ecc98041fd70f8f442d3d7fad3b48
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.1] - 2026-02-06
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `in_review_state_id` helper on `CachedMetadata` for in-review workflow state lookup
|
|
13
|
+
- `qa_state_id` helper on `CachedMetadata` for QA workflow state lookup
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Engine eager loading: replaced `eager_load_namespaces` with `eager_load_paths` initializer to avoid `eager_load!` errors in production
|
|
18
|
+
|
|
8
19
|
## [0.2.0] - 2026-02-02
|
|
9
20
|
|
|
10
21
|
### Added
|
|
@@ -62,6 +62,14 @@ module LinearApi
|
|
|
62
62
|
states.find_by(key: 'in_progress')&.linear_id
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
def in_review_state_id
|
|
66
|
+
states.find_by(key: 'in_review')&.linear_id
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def qa_state_id
|
|
70
|
+
states.find_by(key: 'qa')&.linear_id
|
|
71
|
+
end
|
|
72
|
+
|
|
65
73
|
def done_state_id
|
|
66
74
|
states.find_by(key: 'done')&.linear_id
|
|
67
75
|
end
|
data/lib/linear_api/engine.rb
CHANGED
|
@@ -21,7 +21,11 @@ module LinearApi
|
|
|
21
21
|
LinearApi.team_id ||= ENV['LINEAR_TEAM_ID']
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
# Eager load
|
|
25
|
-
|
|
24
|
+
# Eager load lib files in production
|
|
25
|
+
# Note: Using eager_load_paths instead of eager_load_namespaces
|
|
26
|
+
# because LinearApi module doesn't implement eager_load!
|
|
27
|
+
initializer 'linear_api.add_eager_load_paths', before: :set_eager_load_paths do |app|
|
|
28
|
+
app.config.eager_load_paths << root.join('lib').to_s
|
|
29
|
+
end
|
|
26
30
|
end
|
|
27
31
|
end
|
data/lib/linear_api/version.rb
CHANGED