activist 0.0.6 → 0.0.7

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activist (0.0.6)
4
+ activist (0.0.7)
5
5
  activesupport (~> 3.0)
6
6
  redis (~> 2.2)
7
7
  redis-namespace (= 0.10.0)
@@ -23,7 +23,7 @@ GEM
23
23
  builder (2.1.2)
24
24
  diff-lcs (1.1.2)
25
25
  i18n (0.5.0)
26
- redis (2.2.0)
26
+ redis (2.2.1)
27
27
  redis-namespace (0.10.0)
28
28
  redis (< 3.0.0)
29
29
  rspec (2.5.0)
@@ -6,7 +6,7 @@ module Activist
6
6
  # Options:
7
7
  # :actor (optional)
8
8
  # :action (optional)
9
- # :on (required)
9
+ # :on (optional)
10
10
  # :data (optional)
11
11
  # :if (optional)
12
12
  # :unless (optional)
@@ -43,7 +43,7 @@ module Activist
43
43
  when Proc
44
44
  options[:actor].call(self)
45
45
  else
46
- nil
46
+ options[:actor]
47
47
  end
48
48
 
49
49
  action = if options[:action].nil?
@@ -64,7 +64,7 @@ module Activist
64
64
  end
65
65
 
66
66
  data = case options[:data]
67
- when Hash
67
+ when Hash, Array
68
68
  options[:data]
69
69
  when Proc
70
70
  options[:data].call(self)
@@ -1,3 +1,3 @@
1
1
  module Activist
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Adrian Duli\xC4\x87"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-27 00:00:00 +02:00
13
+ date: 2011-07-28 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency