limiter-ruby 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/limiter/client.rb +4 -1
- data/lib/limiter/configuration.rb +1 -1
- data/lib/limiter/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: a9ba8ac345e89fbc58649c0c06431b2ce0029d80c3973ca245783d754a24b6f3
|
4
|
+
data.tar.gz: 51dd4e3fea76756e19af4fc80bab6dd65e9ce3f98142e51aff291062ea4e653a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111c8a224408fab34f680f2772ad2c171df274bbe8aa67ba20a95484b92ab785dba9f1cb341a337325a5633fe2a3713678cc57c15f162ef3a5da8c3b449a8f6d
|
7
|
+
data.tar.gz: bd53e9bd59342b45898b32e71d3f4c904fbbff547cc1439756490d18b672a2ac544a511efe99f567f3fc9f76f4c8021449e998861421697e7abe2da66199b7e6
|
data/lib/limiter/client.rb
CHANGED
@@ -45,7 +45,10 @@ module Limiter
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def request(params = {})
|
48
|
-
HTTP
|
48
|
+
HTTP
|
49
|
+
.auth("Bearer #{Limiter.configuration.api_token}")
|
50
|
+
.headers("User-Agent" => "Limiter-Ruby/#{Limiter::VERSION}")
|
51
|
+
.get(Limiter.configuration::API_BASE_URL + limiter_path, params: params)
|
49
52
|
end
|
50
53
|
end
|
51
54
|
end
|
data/lib/limiter/version.rb
CHANGED