pause 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
- # Pause
1
+ Pause
2
+ ======
2
3
 
3
- Pause is a redis-backed rate-limiting client. Use it to track events, with
4
+ Pause is a Redis-backed rate-limiting client. Use it to track events, with
4
5
  rules around how often they are allowed to occur within configured time checks.
5
6
 
6
7
  ## Installation
@@ -110,8 +111,10 @@ end
110
111
 
111
112
  ## Contributing
112
113
 
114
+ Want to make it better? Cool. Here's how:
115
+
113
116
  1. Fork it
114
117
  2. Create your feature branch (`git checkout -b my-new-feature`)
115
118
  3. Commit your changes (`git commit -am 'Add some feature'`)
116
119
  4. Push to the branch (`git push origin my-new-feature`)
117
- 5. Create new Pull Request
120
+ 5. Create a new pull request
data/lib/pause/action.rb CHANGED
@@ -39,6 +39,10 @@ module Pause
39
39
  @checks << Pause::PeriodCheck.new(period_seconds, max_allowed, block_ttl)
40
40
  end
41
41
 
42
+ def self.checks
43
+ @checks
44
+ end
45
+
42
46
  def checks
43
47
  self.class.instance_variable_get(:@checks)
44
48
  end
data/lib/pause/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pause
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/pause.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'pause/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "pause"
8
8
  gem.version = Pause::VERSION
9
- gem.authors = ["Atasay Gokkaya", "Paul Henry"]
10
- gem.email = %w(atasay@wanelo.com paul@wanelo.com)
9
+ gem.authors = ["Atasay Gokkaya", "Paul Henry", "Eric Saxny"]
10
+ gem.email = %w(atasay@wanelo.com paul@wanelo.com sax@wanelo.com)
11
11
  gem.description = %q(Real time redis rate limiting)
12
12
  gem.summary = %q(Real time redis rate limiting)
13
13
  gem.homepage = "https://github.com/wanelo/pause"
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pause
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:
8
8
  - Atasay Gokkaya
9
9
  - Paul Henry
10
+ - Eric Saxny
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2012-11-13 00:00:00.000000000 Z
14
+ date: 2012-11-14 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: redis
@@ -112,6 +113,7 @@ description: Real time redis rate limiting
112
113
  email:
113
114
  - atasay@wanelo.com
114
115
  - paul@wanelo.com
116
+ - sax@wanelo.com
115
117
  executables: []
116
118
  extensions: []
117
119
  extra_rdoc_files: []