komrade-client 1.0.5 → 1.0.6
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.
- data/lib/komrade-client.rb +1 -0
- data/lib/komrade-client/railtie.rb +9 -0
- data/readme.md +4 -11
- metadata +2 -1
data/lib/komrade-client.rb
CHANGED
data/readme.md
CHANGED
@@ -4,7 +4,7 @@ A small, Ruby superset of Komrade's [HTTP API](https://gist.github.com/4641301)
|
|
4
4
|
|
5
5
|
## Setup
|
6
6
|
|
7
|
-
Email komrade
|
7
|
+
Email beta@komrade.io with your heroku email address for a beta pass.
|
8
8
|
|
9
9
|
```bash
|
10
10
|
$ heroku addons:add komrade:test
|
@@ -24,7 +24,7 @@ Gemfile
|
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
source :rubygems
|
27
|
-
gem 'komrade-client', '1.0.
|
27
|
+
gem 'komrade-client', '1.0.6'
|
28
28
|
```
|
29
29
|
|
30
30
|
### Enqueue
|
@@ -33,14 +33,13 @@ Simple Example
|
|
33
33
|
|
34
34
|
```bash
|
35
35
|
$ export KOMRADE_URL=https://u:p@service.komrade.io
|
36
|
-
$ ruby -r komrade-client -e 'Komrade::Queue.enqueue("puts", "hello world")
|
37
|
-
$ ruby -r komrade-client -e 'puts Komrade::Queue.dequeue
|
36
|
+
$ ruby -r komrade-client -e 'Komrade::Queue.enqueue("puts", "hello world")'
|
37
|
+
$ ruby -r komrade-client -e 'puts Komrade::Queue.dequeue'
|
38
38
|
```
|
39
39
|
|
40
40
|
Example Model
|
41
41
|
|
42
42
|
```ruby
|
43
|
-
require 'komrade-client/queue'
|
44
43
|
|
45
44
|
class User < ActiveRecord::Base
|
46
45
|
after_create :enqueue_welcome_email
|
@@ -59,12 +58,6 @@ end
|
|
59
58
|
|
60
59
|
### Dequeue
|
61
60
|
|
62
|
-
Rakefile
|
63
|
-
|
64
|
-
```ruby
|
65
|
-
require 'komrade-client/tasks'
|
66
|
-
```
|
67
|
-
|
68
61
|
Procfile
|
69
62
|
|
70
63
|
```
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komrade-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,6 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- lib/komrade-client/http_helpers.rb
|
21
21
|
- lib/komrade-client/queue.rb
|
22
|
+
- lib/komrade-client/railtie.rb
|
22
23
|
- lib/komrade-client/rate_limiter.rb
|
23
24
|
- lib/komrade-client/tasks.rb
|
24
25
|
- lib/komrade-client/worker.rb
|