scheherazade 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/scheherazade/story.rb +3 -3
- data/lib/scheherazade/version.rb +1 -1
- metadata +4 -4
data/lib/scheherazade/story.rb
CHANGED
@@ -17,8 +17,8 @@ module Scheherazade
|
|
17
17
|
# Ends the current substory and comes back
|
18
18
|
# to the previous current story
|
19
19
|
#
|
20
|
-
def self.end(
|
21
|
-
current.send :rollback if rollback
|
20
|
+
def self.end(opts = nil)
|
21
|
+
current.send :rollback if opts && opts[:rollback]
|
22
22
|
Thread.current[:scheherazade_stories].pop
|
23
23
|
current
|
24
24
|
end
|
@@ -28,7 +28,7 @@ module Scheherazade
|
|
28
28
|
def self.tell(opts = nil)
|
29
29
|
yield self.begin
|
30
30
|
ensure
|
31
|
-
self.end(opts
|
31
|
+
self.end(opts)
|
32
32
|
end
|
33
33
|
|
34
34
|
def initialize(parent = self.class.current)
|
data/lib/scheherazade/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scheherazade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
segments:
|
93
93
|
- 0
|
94
|
-
hash: -
|
94
|
+
hash: -3002711325699895277
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
segments:
|
102
102
|
- 0
|
103
|
-
hash: -
|
103
|
+
hash: -3002711325699895277
|
104
104
|
requirements: []
|
105
105
|
rubyforge_project:
|
106
106
|
rubygems_version: 1.8.24
|