limiter-ruby 0.2.3 → 0.2.4

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
2
  SHA256:
3
- metadata.gz: a9ba8ac345e89fbc58649c0c06431b2ce0029d80c3973ca245783d754a24b6f3
4
- data.tar.gz: 51dd4e3fea76756e19af4fc80bab6dd65e9ce3f98142e51aff291062ea4e653a
3
+ metadata.gz: 442bbfcc13722e3bbffe3edc6bb8ea56bfd19d84e4c13ba76dcd941b3bcdcb78
4
+ data.tar.gz: 6c931ecf9b1a4ac9395e651b624e86fb1e6c2e5ee206be86f8f302bef554e706
5
5
  SHA512:
6
- metadata.gz: 111c8a224408fab34f680f2772ad2c171df274bbe8aa67ba20a95484b92ab785dba9f1cb341a337325a5633fe2a3713678cc57c15f162ef3a5da8c3b449a8f6d
7
- data.tar.gz: bd53e9bd59342b45898b32e71d3f4c904fbbff547cc1439756490d18b672a2ac544a511efe99f567f3fc9f76f4c8021449e998861421697e7abe2da66199b7e6
6
+ metadata.gz: 3328f0aa9e901c793feeb41a39ada21502a1e3edfb2960a5d8c18d7548e53e976fcb8bfb279c942a80a1514ee5d05aa431d17e0cd502b5c371ffca6aeab603e6
7
+ data.tar.gz: dc5ec8dfa8ac8ffc85888a4b9b18c88cddde408cff24f4df83cd1612b789b6d8e9705b1ecff0b309d337f3d694d0269d5d02247f9ce8e715a12abc009a6e387d
@@ -3,6 +3,8 @@
3
3
  module Limiter
4
4
  class Client
5
5
 
6
+ BASE_URL = "https://api.limiter.dev"
7
+
6
8
  attr_reader :namespace, :limit, :interval, :identifier, :token, :response
7
9
  delegate :exhausted?, :allowed?, :exceeded?, :resets_in, :to => :response
8
10
 
@@ -48,7 +50,7 @@ module Limiter
48
50
  HTTP
49
51
  .auth("Bearer #{Limiter.configuration.api_token}")
50
52
  .headers("User-Agent" => "Limiter-Ruby/#{Limiter::VERSION}")
51
- .get(Limiter.configuration::API_BASE_URL + limiter_path, params: params)
53
+ .get(BASE_URL + limiter_path, params: params)
52
54
  end
53
55
  end
54
56
  end
@@ -1,6 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Limiter
2
4
  class Configuration
3
- API_BASE_URL = "https://api.limiter.dev"
4
5
 
5
6
  attr_accessor :api_token, :raise_errors
6
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Limiter
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limiter-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bilal Budhani