roo_on_rails 1.13.1 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e5075b97f48faa66fe3ec3caf3d051e08be4ca33
4
- data.tar.gz: 3b566e379092902915901a3a5fd61e4efa36dff6
2
+ SHA256:
3
+ metadata.gz: 101bbe2f7ca6f86ba6dc9813c5871be5e18933f2fe75634763eec5b1cfe5adcc
4
+ data.tar.gz: 2efc21d30c33572d62183d2f80456c046442b9f2cce8d74d6120fe6e01e029c2
5
5
  SHA512:
6
- metadata.gz: 4b2b193d90ea71f3b1775099be4c74f1290bd70ec693b61188e28ba210db32b3be8d5d7220e4a6c8a183299276af6a50c421e1ebaf276530c1bbb1d73e9a4ee8
7
- data.tar.gz: e40b44388e2ebade6a342a4a43018bd0b87cb28c90620d6afab99aa1ddbd2542c4f4e35d0999e56f917f460af91fd879fab208bfbc13cb1209b3333a237a6d95
6
+ metadata.gz: 625ef2e2f32eadc97628075838a991e5271728b1ca282c63cd40b53da344e2bf3e7cd451cd10ec7de8a3025c1e0509eacf5ef498b9e9d7580091b4528b83306c
7
+ data.tar.gz: 745e97920deb29280dafe9cc4ed9a72180547823a93f4ea4debbd582a64faa58188b515112443f480087b7a566355bf3bd21c2217ab5082bf3894cc42dc1fd25
data/README.md CHANGED
@@ -26,6 +26,7 @@
26
26
  - [Google OAuth authentication](#google-oauth-authentication)
27
27
  - [Datadog Integration](#datadog-integration)
28
28
  - [Routemaster Client](#routemaster-client)
29
+ - [API Authentication ](#api-authentication)
29
30
  - [Command features](#command-features)
30
31
  - [Usage](#usage)
31
32
  - [Description](#description)
@@ -287,6 +288,8 @@ RooOnRails provides a concern which will make adding rotatable API authenticatio
287
288
  require 'roo_on_rails/concerns/require_api_key'
288
289
 
289
290
  class ThingController < ActionController::Base
291
+ include RooOnRails::Concerns::RequireApiKey
292
+
290
293
  require_api_key
291
294
  # or
292
295
  require_api_key(only: :update)
@@ -28,7 +28,7 @@ module RooOnRails
28
28
  url,
29
29
  async: async?,
30
30
  data: stringify_keys(data),
31
- t: timestamp && timestamp.to_i
31
+ t: timestamp && (timestamp.to_f * 1000).to_i
32
32
  )
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module RooOnRails
2
- VERSION = '1.13.1'.freeze
2
+ VERSION = '1.14.0'.freeze
3
3
  end
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.1
4
+ version: 1.14.0
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-18 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv-rails
@@ -470,7 +470,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
470
470
  version: '0'
471
471
  requirements: []
472
472
  rubyforge_project:
473
- rubygems_version: 2.6.11
473
+ rubygems_version: 2.7.0
474
474
  signing_key:
475
475
  specification_version: 4
476
476
  summary: Scaffolding for building services