plan_my_stuff 0.13.0 → 0.14.0

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: caa7ca14656d70850ad30923738ffa58177caf5fb91bd14bc6551f547590ca63
4
- data.tar.gz: 1d4b79cc957efa2c146ffb2a433a90c798680b23da7b8907d9351b5cb041cc09
3
+ metadata.gz: 4bb39718bce95afcf03151d7feaed80b192a9d0ae9224ca1cbe1da5936b38cc7
4
+ data.tar.gz: 3d82fabbea5dc402278882bd93eedc21d7cbfaf8e868c13f30dfc759a6dc964e
5
5
  SHA512:
6
- metadata.gz: fd8f13707987c75445038cf93240be65897b00c538d3500665738554aa5ee3a6680352a2bb932e1fab41ba24e58985606655bd2f34e042375bc8a7692cde7310
7
- data.tar.gz: 4b2160e17a7043004f294b7c6ae5c46f25f6a68ed5ca65ec5c3a124bfd34260521d1d07a6d22152e341f1d2ed8d6f1b79e729f6c9d39f8c7c0a907803baa017e
6
+ metadata.gz: d6195d4cd41797ac803b4c3b0fb8a009782f616a2e634f20eb94415f6863337e6ec46705fc0b75af1cd8ff37f07254b7dc3b14e46aff0d3a087bcb01c2adcab3
7
+ data.tar.gz: fcc8ed29694e8256132207014bf6f9ceea3fc0f93c9a50cc11601d22cbc745c09e16f058ba243b6069a9662669f3675e6877eaffd97316487ed810ef5a73e1df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Added
6
+
7
+ - `Repo.resolve!` now treats a String matching a configured repo key (e.g. `"dummy"` when
8
+ `config.repos[:dummy]` is set) as that key, returning a Repo with `key:` populated.
9
+ Previously only Symbols hit the key lookup; strings always went through `"Org/Repo"`
10
+ parsing and raised on names without a slash. This prevents the need to call `to_sym` from the consuming app
11
+
3
12
  ## 0.13.0
4
13
 
5
14
  ### Changed
@@ -44,8 +44,12 @@ module PlanMyStuff
44
44
 
45
45
  from_full_name!(full_name, key: repo)
46
46
  when String
47
- key = PlanMyStuff.configuration.repos.key(repo)
48
- from_full_name!(repo, key: key)
47
+ if PlanMyStuff.configuration.repos.has_key?(repo.to_sym)
48
+ resolve!(repo.to_sym)
49
+ else
50
+ key = PlanMyStuff.configuration.repos.key(repo)
51
+ from_full_name!(repo, key: key)
52
+ end
49
53
  else
50
54
  raise(ArgumentError, "Cannot resolve repo: #{repo.inspect}")
51
55
  end
@@ -3,7 +3,7 @@
3
3
  module PlanMyStuff
4
4
  module VERSION
5
5
  MAJOR = 0
6
- MINOR = 13
6
+ MINOR = 14
7
7
  TINY = 0
8
8
 
9
9
  # Set PRE to nil unless it's a pre-release (beta, rc, etc.)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plan_my_stuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance