rate_limited_scheduler 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rate_limited_scheduler.rb +2 -1
  2. metadata +2 -2
@@ -34,8 +34,9 @@ class RateLimitedScheduler
34
34
 
35
35
  def within_constraints(&block)
36
36
  start_execution
37
- yield
37
+ return_value = yield
38
38
  stop_execution
39
+ return_value
39
40
  end
40
41
 
41
42
  def count_active_executions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rate_limited_scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-15 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This rate-limited scheduler is made for requests to APIs with sensitive,
15
15
  time-critical access restrictions which means that even limits with short time intervals