acts_as_arter_flow_object 0.2.5 → 0.3.0
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/VERSION +1 -1
- data/acts_as_arter_flow_object.gemspec +2 -2
- data/lib/afo/acts_as_afo.rb +6 -3
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.0
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{acts_as_arter_flow_object}
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "0.3.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["tim.teng"]
|
|
12
|
-
s.date = %q{2010-04-
|
|
12
|
+
s.date = %q{2010-04-28}
|
|
13
13
|
s.description = %q{simple progress indicator for game arters }
|
|
14
14
|
s.email = %q{tim.rubist@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/afo/acts_as_afo.rb
CHANGED
|
@@ -6,8 +6,10 @@ module ActsAsAFO
|
|
|
6
6
|
|
|
7
7
|
module ClassMethods
|
|
8
8
|
|
|
9
|
-
def acts_as_arter_flow_object
|
|
10
|
-
|
|
9
|
+
def acts_as_arter_flow_object options={}
|
|
10
|
+
default_options = { :as => :afoable, :dependent => :destroy }
|
|
11
|
+
default_options.merge!(options) unless options.empty?
|
|
12
|
+
has_one :arter_flow_object, default_options
|
|
11
13
|
include InstanceMethods
|
|
12
14
|
end
|
|
13
15
|
|
|
@@ -45,7 +47,8 @@ module ActsAsAFO
|
|
|
45
47
|
private
|
|
46
48
|
|
|
47
49
|
def create_arter_flow_object
|
|
48
|
-
|
|
50
|
+
p self.class
|
|
51
|
+
arter_flow_object.create
|
|
49
52
|
end
|
|
50
53
|
|
|
51
54
|
end
|
metadata
CHANGED
|
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
version: 0.
|
|
7
|
+
- 3
|
|
8
|
+
- 0
|
|
9
|
+
version: 0.3.0
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- tim.teng
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-04-
|
|
17
|
+
date: 2010-04-28 00:00:00 +08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|