plan_my_stuff 1.1.0 → 1.1.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: 9ebad7566954c25e32a08db69c0371b4328fa7fb242c59a6f3ef70f2682e2671
4
- data.tar.gz: 0435a322e73075d11006907068556be895a14dc956d0a41efa7a4ebc0f6b5540
3
+ metadata.gz: 5d29d30fa4248679db945b006ffe0016f7ff57c743996430d2782ec027a5485f
4
+ data.tar.gz: 674d4fc641d4176c2b487bc0926871566d72ddb6504d8f292a13d7710f6adeb5
5
5
  SHA512:
6
- metadata.gz: c72c64408c325f038304f85a368bcb9419063bf16ff48fb5c18707b4246f11d6f373ea4ab79a6528e225718b0db02bd88bb92b91b2069104126593801a8c9f1f
7
- data.tar.gz: 56303a07b5a767acbe2e0ac0c5d50cf2de4aa534bf568b360bc34d1342ff9acc19e29164d4edd05e7e63912eb9fbe4076d3a2081252967d78f4782d27f1bf954
6
+ metadata.gz: b15d23a2e08403ebe5408f77c4b44df79d913a91847efcd75e56fe0046cc446b90d1c991a6de3630f7dfe6a1832379d70d6beb8d23af62e74786dd34549f6def
7
+ data.tar.gz: 45ddb801f688e6944ae80afea8f42261c38c51a28b2d845450d9034b3b7be1b3328e1013ee5ed7f9fdfc74dc16347477e56c0cdd4499a1be1cc1f68f179931b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Fixed
6
+
7
+ - Incorrect default for `config.eager_load_controllers_on_boot` (should be `false` not `true`)
8
+ - `Configuration#repo_nickname_for` no longer produces a space for underscored `config.repos` keys (e.g. `:some_name`
9
+ now resolves to `"SomeName"` instead of `"Some Name"`), which previously broke URL routing
10
+
11
+ ## 1.1.1
12
+
13
+ ### Fixed
14
+
15
+ - `Issue#mark_responded!` now reloads `self` after stamping `metadata.responded_at` via the class-level
16
+ `Issue.update!`. Previously the in-memory instance kept its pre-update `updated_at`, so any `pipeline_started`
17
+ subscriber that called `payload[:project_item].issue.update!` tripped `raise_if_stale!` and raised
18
+ `PlanMyStuff::StaleObjectError` mid-take
19
+
3
20
  ## 1.1.0
4
21
 
5
22
  ### Added
@@ -26,8 +26,8 @@ PlanMyStuff.configure do |config|
26
26
 
27
27
  # Human-readable prefix used as the `Issue#to_param` so URLs read
28
28
  # `/issues/Element-1234` instead of `/issues/1234`. Missing keys fall back
29
- # to `key.to_s.titleize`; only repos whose key doesn't titleize cleanly
30
- # need an entry.
29
+ # to `key.to_s.titleize.delete(' ')`; only repos whose key doesn't titleize
30
+ # cleanly need an entry.
31
31
  # config.repo_nicknames = { safety: 'Compliance' }
32
32
 
33
33
  # --------------------------------------------------------------------------
@@ -222,7 +222,7 @@ PlanMyStuff.configure do |config|
222
222
  # the constant. Opt in if the host app probes engine controllers via
223
223
  # `defined?` in dev mode.
224
224
  #
225
- # config.eager_load_controllers_on_boot = true
225
+ # config.eager_load_controllers_on_boot = false
226
226
 
227
227
  # --------------------------------------------------------------------------
228
228
  # Release pipeline
@@ -367,8 +367,8 @@ module PlanMyStuff
367
367
  attr_accessor :repos
368
368
 
369
369
  # Human-readable repo names used as the +to_param+ prefix on +PlanMyStuff::Issue+ instances. Symbol-keyed
370
- # against +repos+ -- missing keys fall back to +key.to_s.titleize+, so only entries that diverge from a simple
371
- # +titleize+ of the key (e.g. +:safety+ -> +"Compliance"+) need to be listed.
370
+ # against +repos+ -- missing keys fall back to +key.to_s.titleize.delete(' ')+, so only entries that diverge
371
+ # from a simple +titleize+ of the key (e.g. +:safety+ -> +"Compliance"+) need to be listed.
372
372
  #
373
373
  # @return [Hash{Symbol => String}]
374
374
  #
@@ -520,14 +520,14 @@ module PlanMyStuff
520
520
  end
521
521
 
522
522
  # Human-readable nickname for a repo key, used as the +to_param+ prefix on +PlanMyStuff::Issue+ instances. Falls
523
- # back to +key.to_s.titleize+ when no explicit entry exists in +repo_nicknames+.
523
+ # back to +key.to_s.titleize.delete(' ')+ when no explicit entry exists in +repo_nicknames+.
524
524
  #
525
525
  # @param key [Symbol, String]
526
526
  #
527
527
  # @return [String]
528
528
  #
529
529
  def repo_nickname_for(key)
530
- repo_nicknames[key&.to_sym] || key.to_s.titleize
530
+ repo_nicknames[key&.to_sym] || key.to_s.titleize.delete(' ')
531
531
  end
532
532
 
533
533
  private
@@ -961,6 +961,7 @@ module PlanMyStuff
961
961
  repo: repo,
962
962
  metadata: { responded_at: PlanMyStuff.format_time(Time.now.utc) },
963
963
  )
964
+ reload
964
965
  end
965
966
 
966
967
  # Re-fetches this issue from GitHub and updates all local attributes.
@@ -4,7 +4,7 @@ module PlanMyStuff
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 1
7
- TINY = 0
7
+ TINY = 2
8
8
 
9
9
  # Set PRE to nil unless it's a pre-release (beta, rc, etc.)
10
10
  PRE = nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plan_my_stuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-04 00:00:00.000000000 Z
11
+ date: 2026-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails