wisper-activejob 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.travis.yml +0 -2
- data/README.md +19 -0
- data/lib/wisper/active_job/version.rb +1 -1
- data/wisper-activejob.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d53bfc83e3f730594c5fbe2dee7a2060048c5d58
|
4
|
+
data.tar.gz: 2d0422efceea8383a6b272605b91fa0e7bfd332f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e0af56c4c170aff4d6600c236a1e2510d299634a3c39fc60c694826e3da69b53d1695980facc23585b17575a5d9d441a721de6dba14eb524c6cdf8da7855fe0
|
7
|
+
data.tar.gz: e73d9bafb37b73eef97be2cbd168870c20555774f726ee3847e1a4acf0186c208ae8c91341fca99544f2c30984903df9f1ec0a821af1ac65541793ee7ac03fe1
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -24,6 +24,16 @@ publisher.subscribe(MyListener, async: true)
|
|
24
24
|
The listener must be a class (or module), not an object. This is because ActiveJob
|
25
25
|
can not reconstruct the state of an object. Whereas a class has no state.
|
26
26
|
|
27
|
+
Additionally, you should also ensure that your methods used to handle events under `MyListener` are all declared as class methods:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
class MyListener
|
31
|
+
def self.event_name
|
32
|
+
end
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
|
27
37
|
When publshing events the arguments must be simple types as they need to be
|
28
38
|
serialized, or the object must include `GlobalID` such as `ActiveRecord` models.
|
29
39
|
|
@@ -41,3 +51,12 @@ See the [build status](https://travis-ci.org/krisleech/wisper-activejob) for det
|
|
41
51
|
Please send a [Pull Request](https://github.com/krisleech/wisper-activejob/pulls)
|
42
52
|
or an [Issue](https://github.com/krisleech/wisper-activejob/issues) to discuss
|
43
53
|
your idea first.
|
54
|
+
|
55
|
+
## Releasing
|
56
|
+
|
57
|
+
* Bump VERSION
|
58
|
+
* Push to master
|
59
|
+
* git tag -a 'v<VERSION>' -m 'v<VERSION>'
|
60
|
+
* git push --tags
|
61
|
+
* rake build
|
62
|
+
* rake release
|
data/wisper-activejob.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wisper-activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Leech
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wisper
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.2
|
33
|
+
version: '4.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.2
|
40
|
+
version: '4.2'
|
41
41
|
description: Provides Wisper with asynchronous event publishing using ActiveJob
|
42
42
|
email:
|
43
43
|
- kris.leech@gmail.com
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- ".rspec"
|
50
|
+
- ".ruby-version"
|
50
51
|
- ".travis.yml"
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
81
|
version: '0'
|
81
82
|
requirements: []
|
82
83
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.4.5
|
84
85
|
signing_key:
|
85
86
|
specification_version: 4
|
86
87
|
summary: Provides Wisper with asynchronous event publishing using ActiveJob
|