async-rest 0.7.2 → 0.7.3

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: 3adbfb21cd205efe945c0b0197e5eb84d7d70c132038537ac55e1328b0105f11
4
- data.tar.gz: 22e7085cf862cea15fdcff5d539ca788dc127746938509e2a8e79d421c643c82
3
+ metadata.gz: 18152adb0c139c842d91c9e31114c2ec7c8f33408a0233276cb2acdc09d7f84d
4
+ data.tar.gz: b7159ec4f05af395a710b7d1d81fe5477f7e5e38f51e20dbc0a1464ede4c86cb
5
5
  SHA512:
6
- metadata.gz: 03af9605664643cb7f6e5a8d7adce8d2cbc265836749bb2652cb6ec329b68c52653e2f207947b187d4480976e7d9dbf6ea056569d72ce508b3f13e1b076dde41
7
- data.tar.gz: 20c7bab7de8886462e3077ecbf6e30967ade6025b961d14e249b72d27a4f296267e96ffdf46c2ee19bc8ab65235782d043cc76227d9e168b70a223c9dc00dc4e
6
+ metadata.gz: 105602f5f11a4de0871ef6c0240b20391b748be9924a55b615f8fa15e9d8ea460be4c47368dbfc8979ab07defabd5cf76f0693cf919569a52bd25f03b584522d
7
+ data.tar.gz: 8a288f1c725899e267bff0f6b403d56289ab64582264199bd194e26f59507044dfea74838fa90adcfdb9497b8db208eb9e6abac88791a4ca89cf3f681c528992
@@ -9,7 +9,7 @@ def rate_limited?(response)
9
9
  response[:error] == "ratelimited"
10
10
  end
11
11
 
12
- require 'async/rest/resource'
12
+ require 'async/rest'
13
13
 
14
14
  URL = "https://slack.com/api"
15
15
  TOKEN = "xoxp-your-api-token"
@@ -45,7 +45,7 @@ Async::REST::Resource.for(URL) do |resource|
45
45
  response = message_delete.post
46
46
  if rate_limited?(response.read)
47
47
  puts "Rate limiting..."
48
- Async::Task.current.sleep 1
48
+ Async::Task.current.sleep 2
49
49
  end
50
50
  end
51
51
 
@@ -19,4 +19,4 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  require_relative 'rest/version'
22
- require_relative 'rest/resource'
22
+ require_relative 'rest/representation'
@@ -24,8 +24,6 @@ require 'async/http/accept_encoding'
24
24
  require 'async/http/reference'
25
25
  require 'async/http/url_endpoint'
26
26
 
27
- require_relative 'representation'
28
-
29
27
  module Async
30
28
  module REST
31
29
  # The key abstraction of information in REST is a resource. Any information that can be named can be a resource: a document or image, a temporal service (e.g. "today's weather in Los Angeles"), a collection of other resources, a non-virtual object (e.g. a person), and so on. In other words, any concept that might be the target of an author's hypertext reference must fit within the definition of a resource. A resource is a conceptual mapping to a set of entities, not the entity that corresponds to the mapping at any particular point in time.
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module REST
23
- VERSION = "0.7.2"
23
+ VERSION = "0.7.3"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http