roo_on_rails 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/README.routemaster_client.md +2 -2
- data/lib/roo_on_rails/concerns/require_api_key.rb +1 -1
- data/lib/roo_on_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5075b97f48faa66fe3ec3caf3d051e08be4ca33
|
4
|
+
data.tar.gz: 3b566e379092902915901a3a5fd61e4efa36dff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b2b193d90ea71f3b1775099be4c74f1290bd70ec693b61188e28ba210db32b3be8d5d7220e4a6c8a183299276af6a50c421e1ebaf276530c1bbb1d73e9a4ee8
|
7
|
+
data.tar.gz: e40b44388e2ebade6a342a4a43018bd0b87cb28c90620d6afab99aa1ddbd2542c4f4e35d0999e56f917f460af91fd879fab208bfbc13cb1209b3333a237a6d95
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# HEAD
|
2
|
+
|
3
|
+
_A description of the awesome feature or bug fix you just wrote!_
|
4
|
+
|
5
|
+
# v1.13.1 (2017-10-18)
|
6
|
+
|
7
|
+
Bug fix:
|
8
|
+
|
9
|
+
- Fixes issue when `service_name` is null in `require_api_key` (#74)
|
10
|
+
|
11
|
+
# v1.13.0 (2017-10-12)
|
2
12
|
|
3
13
|
Features:
|
4
14
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[`routemaster-client`](https://github.com/deliveroo/routemaster-client) comes as a dependency of `roo_on_rails` with a basic implementation of lifecycle event publishers.
|
4
4
|
|
5
|
-
This code example assumes that you are using the latest version of the [`roo_on_rails`](roo_on_rails) gem and that you have set the correct environment variables for Routemaster Client to work on your app, as explained in the main [`README.md`](roo_on_rails#routemaster-client) file.
|
5
|
+
This code example assumes that you are using the latest version of the [`roo_on_rails`](https://github.com/deliveroo/roo_on_rails) gem and that you have set the correct environment variables for Routemaster Client to work on your app, as explained in the main [`README.md`](https://github.com/deliveroo/roo_on_rails#routemaster-client) file.
|
6
6
|
|
7
7
|
It also assumes that your app has an API for the resources you want to publish lifecycle events for, with matching routes and an `API_HOST` environment variable set.
|
8
8
|
|
@@ -78,7 +78,7 @@ class RiderPublisher < ApplicationPublisher
|
|
78
78
|
end
|
79
79
|
```
|
80
80
|
|
81
|
-
`#publish?`, `#topics`, `#async?`, `#data` and `#timestamp` can be overriden; see [the `Publisher` class](lib/
|
81
|
+
`#publish?`, `#topics`, `#async?`, `#data` and `#timestamp` can be overriden; see [the `Publisher` class](lib/roo_on_rails/routemaster/publisher.rb) for the default implementations.
|
82
82
|
|
83
83
|
### Register the publishers with Routemaster
|
84
84
|
|
@@ -83,7 +83,7 @@ module RooOnRails
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def valid?(service_name, client_key)
|
86
|
-
return false if service_name
|
86
|
+
return false if service_name.to_s.empty? || client_key.to_s.empty?
|
87
87
|
|
88
88
|
client_keys = @cache[normalize(service_name)]
|
89
89
|
return false unless client_keys
|
data/lib/roo_on_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roo_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv-rails
|