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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/plan_my_stuff/repo.rb +6 -2
- data/lib/plan_my_stuff/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: 4bb39718bce95afcf03151d7feaed80b192a9d0ae9224ca1cbe1da5936b38cc7
|
|
4
|
+
data.tar.gz: 3d82fabbea5dc402278882bd93eedc21d7cbfaf8e868c13f30dfc759a6dc964e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/plan_my_stuff/repo.rb
CHANGED
|
@@ -44,8 +44,12 @@ module PlanMyStuff
|
|
|
44
44
|
|
|
45
45
|
from_full_name!(full_name, key: repo)
|
|
46
46
|
when String
|
|
47
|
-
|
|
48
|
-
|
|
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
|