testimonials 0.1.5 → 0.3.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 +18 -0
- data/config/routes.rb +4 -1
- data/lib/testimonials/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: 775e2f3be386fed634ac1dc381b5557e2ab6de931e0ee70bf31d7dedaa7aa1c5
|
|
4
|
+
data.tar.gz: 59115bcc0fcc2b7a882d94acf3bf1052396ef6cffc72c173fbfbc5928bc6f183
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45d8c4d2c40d674d44a086be802101ba4ff30dde287da19e5f442b4c2f0bd54362221f98fbe2a5d854198778a587537fb2d4536509e4556d0f6d9d5f7ff14f99
|
|
7
|
+
data.tar.gz: 1ffbac4c4bc0cd7714545d365de849a4c6914c7ccfe5ea558dd33e6d1e480f5c268798c0b2249d6bf464636a0cd767d3622bbb487050c3125da9d97cbcbc01cc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- Reverted 0.2.0's API path change: the read API collection is back at
|
|
6
|
+
`<mount>/api/testimonials` (plain REST — the collection is a noun). The
|
|
7
|
+
bare `<mount>/api` from 0.2.0 read as the API root rather than a
|
|
8
|
+
collection, and was asymmetric with `<mount>/api/stats`. If the
|
|
9
|
+
same-named echo under a `/testimonials` mount bothers you, mount the
|
|
10
|
+
engine at a shorter path (e.g. `/reviews`).
|
|
11
|
+
|
|
12
|
+
## 0.2.0
|
|
13
|
+
|
|
14
|
+
- **Breaking (API paths):** the read API's collection moved from
|
|
15
|
+
`<mount>/api/testimonials` to `<mount>/api` — so it reads clean under any
|
|
16
|
+
mount instead of echoing the resource name (e.g. `/testimonials/api`
|
|
17
|
+
rather than `/testimonials/api/testimonials`). `<mount>/api/stats` is
|
|
18
|
+
unchanged. Update any hardcoded API URLs. (Off by default: only affects
|
|
19
|
+
apps that set `config.public_api = true` or call the API as an admin.)
|
|
20
|
+
|
|
3
21
|
## 0.1.5
|
|
4
22
|
|
|
5
23
|
- Docs: show how to wire `current_user` with Rails 8's built-in authentication
|
data/config/routes.rb
CHANGED
|
@@ -10,7 +10,10 @@ Testimonials::Engine.routes.draw do
|
|
|
10
10
|
resource :nps, only: :create, controller: 'nps'
|
|
11
11
|
resources :nps_responses, only: :index
|
|
12
12
|
|
|
13
|
-
# Read-only JSON for rendering testimonials anywhere.
|
|
13
|
+
# Read-only JSON for rendering testimonials anywhere. Plain REST: the
|
|
14
|
+
# collection is a noun. Under a same-named mount this reads
|
|
15
|
+
# "/testimonials/api/testimonials"; mount the engine at a shorter path
|
|
16
|
+
# (e.g. "/reviews") for "/reviews/api/testimonials".
|
|
14
17
|
namespace :api do
|
|
15
18
|
resources :testimonials, only: :index
|
|
16
19
|
get 'stats', to: 'stats#show'
|
data/lib/testimonials/version.rb
CHANGED