linear_api 0.3.0 → 0.3.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: 6a4003a10fb0279c739bb5cadef86f1d953ada25452b33bc274cc50c1ac14df9
4
- data.tar.gz: 5b1e90306471473e8983634c34ea0d4543ab9fd987be9e9917da10d88ae68731
3
+ metadata.gz: 8f5dbd45da7e5e461fd1f9c04b5b94d859b74a85f8be4b2818f2cb418597ed83
4
+ data.tar.gz: d082eb5a92d5343d8eb5be7e41ebefa1c17aa20ecb347139dbe98c1a9fb533d9
5
5
  SHA512:
6
- metadata.gz: cfec50c4d35241ed7923ae427a55702e970aaa734d5d2cfd3d51ca7a07cf9667908a5084a997418faff6d56f64b3196f6908bd28296003d53cad0ccdfcfd07d9
7
- data.tar.gz: 58171286e1925c8b665b1be6f09c5525761a7708abe8390c53b3897bff2bae12f206df8a7ca117fa7da8deb389bad906a70ec8bcad0027120b3e1b1d8484fbdf
6
+ metadata.gz: 01feecb156624a79c91954ba5527948e962ff6d64e9a8aaa2906e4afb633bf62e82527c8a6a9c75444782ec383b0918828c77ffb80e9ac68b08abe68c168859e
7
+ data.tar.gz: 861150c54a6f3af9964af691dce4a43bb7cfcc48a6f8963ba82f5f7e76762f0b7ee5d94193f6f76283978713e4968d0aae56ae8c93cbc87845bb0a329a7f1056
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
@@ -20,8 +20,5 @@ module LinearApi
20
20
  LinearApi.api_key ||= ENV['LINEAR_API_KEY']
21
21
  LinearApi.team_id ||= ENV['LINEAR_TEAM_ID']
22
22
  end
23
-
24
- # Eager load models in production
25
- config.eager_load_namespaces << LinearApi
26
23
  end
27
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LinearApi
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.2'
5
5
  end
data/lib/linear_api.rb CHANGED
@@ -37,5 +37,12 @@ module LinearApi
37
37
  def reset_client!
38
38
  @client = nil
39
39
  end
40
+
41
+ # Rails calls eager_load! on all registered eager_load_namespaces.
42
+ # LinearApi::Engine (a Rails::Engine) registers this module's namespace,
43
+ # so Rails expects it to respond to eager_load!. Without this, CI fails
44
+ # with NoMethodError when config.eager_load = true.
45
+ def eager_load!
46
+ end
40
47
  end
41
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linear_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TheOwnerStack